From 36e4eb89ff00fff147fcd3f5de55636f51b60b8f Mon Sep 17 00:00:00 2001 From: "selmer%netscape.com" Date: Fri, 22 Oct 1999 23:45:20 +0000 Subject: [PATCH] globalizing includes git-svn-id: svn://10.0.0.236/trunk@51597 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/cck/include/WizardTypes.h | 148 ++++++++++++++++++++++++++++++ mozilla/cck/include/stdafx.h | 16 ++++ 2 files changed, 164 insertions(+) create mode 100644 mozilla/cck/include/WizardTypes.h create mode 100644 mozilla/cck/include/stdafx.h diff --git a/mozilla/cck/include/WizardTypes.h b/mozilla/cck/include/WizardTypes.h new file mode 100644 index 00000000000..b3c347e0be8 --- /dev/null +++ b/mozilla/cck/include/WizardTypes.h @@ -0,0 +1,148 @@ +#ifndef WIZARDTYPES +#define WIZARDTYPES + +#define MIN_SIZE 256 +#define MID_SIZE 512 +#define MAX_SIZE 1024 +#define EXTD_MAX_SIZE 10240 + +// Some global structures +typedef struct NVPAIR +{ + char name[MID_SIZE]; + char value[MID_SIZE]; + char options[MAX_SIZE]; + char type[MID_SIZE]; +}NVPAIR; + +typedef struct ACTIONSET +{ + CString event; + CString dll; + CString function; + char parameters[MAX_SIZE]; + CString onInit; + CString onCommand; +}ACTIONSET; + +typedef struct DIMENSION +{ + int width; + int height; +}DIMENSION; + +typedef struct FIELDLEN +{ + int length; + int max_len; + int min_len; +}FIELDLEN; +typedef struct OPTIONS +{ + char* name[25]; + char* value[25]; +}OPTIONS; + +typedef struct WIDGET +{ + CString type; + CString name; + CString value; + CString title; + CString group; + CString target; + CString description; + POINT location; + DIMENSION size; + FIELDLEN fieldlen; + ACTIONSET action; + int numOfOptions; + OPTIONS options; + int numOfOptDesc; + OPTIONS optDesc; + CString items; + BOOL cached; + UINT widgetID; + CWnd *control; +}WIDGET; + + +typedef struct IMAGE +{ + CString name; + CString value; + POINT location; + DIMENSION size; + HBITMAP hBitmap; +}IMAGE; + +typedef struct WIZBUT +{ + CString back; + CString next; + CString cancel; +}WIZBUT; + +typedef struct VARS +{ + CString title; + CString caption; + CString pageName; + CString image; + CString visibility; + CString functionality; + WIZBUT *wizbut; +}VARS; + +typedef struct PAGE +{ + CStringArray pages; + CStringArray visibility; +}PAGE; + +typedef struct CONTROLS +{ + CString onNextAction; + CString onEnter; + CString helpFile; +}CONTROLS; + +typedef struct WIDGETGROUPS +{ + CString groupName; + CString widgets; +}WIDGETGROUPS; + +typedef struct NODE +{ + NODE *parent; + NODE **childNodes; + int numChildNodes; + int currNodeIndex; + VARS *localVars; + PAGE *subPages; + CONTROLS *navControls; + WIDGET** pageWidgets; + int numWidgets; + int currWidgetIndex; + int pageBaseIndex; + IMAGE **images; + int numImages; + BOOL nodeBuilt; + BOOL isWidgetsSorted; +}NODE; + +//----------------------------------------------------------- + +typedef int (DLLPROC)(CString parms); + +typedef struct DLLINFO +{ + CString *dllName; + CString *procName; + HMODULE hDLL; + DLLPROC *procAddr; + DLLINFO *next; +} DLLINFO; + +#endif //WIZARDTYPES diff --git a/mozilla/cck/include/stdafx.h b/mozilla/cck/include/stdafx.h new file mode 100644 index 00000000000..12f69127c68 --- /dev/null +++ b/mozilla/cck/include/stdafx.h @@ -0,0 +1,16 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers + +#include // MFC core and standard components +#include // MFC extensions +#ifndef _AFX_NO_AFXCMN_SUPPORT +#include // MFC support for Windows Common Controls +#endif // _AFX_NO_AFXCMN_SUPPORT + + + +