00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102 #ifndef INC_MENUOPS
00103 #define INC_MENUOPS
00104
00105
00106
00107
00108
00109
00110
00111 #define OPTOKEN_FILE_MENU _T("FileMenu")
00112 #define OPTOKEN_EDIT_MENU _T("EditMenu")
00113
00114 #define OPTOKEN_HELP_MENU _T("HelpMenu")
00115
00116
00117 #define OPTOKEN_WINDOW_MENU _T("WindowMenu")
00118
00119 #define OPTOKEN_ATTRIBUTE_MENU _T("AttributeMenu")
00120 #define OPTOKEN_ARRANGE_MENU _T("ArrangeMenu")
00121 #define OPTOKEN_UTILS_MENU _T("UtilsMenu")
00122 #define OPTOKEN_DEBUG_MENU _T("DebugMenu")
00123 #define OPTOKEN_QUALITY_MENU _T("QualityMenu")
00124 #define OPTOKEN_BARS_MENU _T("BarsMenu")
00125 #define OPTOKEN_EXIT _T("Exit")
00126 #define OPTOKEN_UPDATE _T("Update")
00127 #define OPTOKEN_REGISTER _T("Register")
00128 #define OPTOKEN_FILEOPEN _T("FileOpen")
00129 #define OPTOKEN_FILECLOSE _T("FileClose")
00130 #define OPTOKEN_FILENEW _T("FileNew")
00131 #define OPTOKEN_FILESAVE _T("FileSave")
00132 #define OPTOKEN_FILESAVEAS _T("FileSaveAs")
00133 #define OPTOKEN_HELPINDEX _T("HelpIndex")
00134 #define OPTOKEN_HELPUSING _T("HelpUsing")
00135 #define OPTOKEN_HELPTOOLS _T("HelpTools")
00136 #define OPTOKEN_HELPGALLERIES _T("HelpGalleries")
00137 #define OPTOKEN_HELPDEMOS _T("HelpDemos")
00138 #define OPTOKEN_HELPPLAYER _T("HelpPlayer")
00139 #define OPTOKEN_HELPDEMOS_NATIVE _T("HelpDemosNative")
00140 #define OPTOKEN_HELPTECHSUPPORT _T("HelpTechSupport")
00141 #define OPTOKEN_NEXTDOCUMENT _T("NextDocument")
00142 #define OPTOKEN_LASTDOCUMENT _T("LastDocument")
00143
00144
00145 #define OPTOKEN_FILENEW_DRAWING _T("FileNewDrawing")
00146 #define OPTOKEN_FILENEW_ANIMATION _T("FileNewAnimation")
00147 #define OPTOKEN_FILENEW_TEMPLATE1 _T("1FileNewTemplate")
00148 #define OPTOKEN_FILENEW_TEMPLATE2 _T("2FileNewTemplate")
00149 #define OPTOKEN_FILENEW_TEMPLATE3 _T("3FileNewTemplate")
00150 #define OPTOKEN_FILENEW_TEMPLATE4 _T("4FileNewTemplate")
00151 #define OPTOKEN_FILENEW_TEMPLATE5 _T("5FileNewTemplate")
00152 #define OPTOKEN_FILENEW_TEMPLATE6 _T("6FileNewTemplate")
00153 #define OPTOKEN_FILENEW_TEMPLATE7 _T("7FileNewTemplate")
00154 #define OPTOKEN_FILENEW_TEMPLATE8 _T("8FileNewTemplate")
00155 #define OPTOKEN_FILENEW_TEMPLATE9 _T("9FileNewTemplate")
00156 #define OPTOKEN_FILENEW_TEMPLATE10 _T("10FileNewTemplate")
00157
00158
00159 #define HID_FILE_NEW_DRAWING 0
00160 #define HID_FILE_NEW_ANIMATION 0
00161 #define HID_FILE_NEW_TEMPLATE1 0
00162 #define HID_FILE_NEW_TEMPLATE2 0
00163 #define HID_FILE_NEW_TEMPLATE3 0
00164 #define HID_FILE_NEW_TEMPLATE4 0
00165 #define HID_FILE_NEW_TEMPLATE5 0
00166 #define HID_FILE_NEW_TEMPLATE6 0
00167 #define HID_FILE_NEW_TEMPLATE7 0
00168 #define HID_FILE_NEW_TEMPLATE8 0
00169 #define HID_FILE_NEW_TEMPLATE9 0
00170 #define HID_FILE_NEW_TEMPLATE10 0
00171
00172
00173
00174
00175 #define IDC_BTN_FILENEW_DRAWING 0
00176 #define IDC_BTN_FILENEW_TEMPLATE1 0
00177 #define IDC_BTN_FILENEW_TEMPLATE2 0
00178 #define IDC_BTN_FILENEW_TEMPLATE3 0
00179 #define IDC_BTN_FILENEW_TEMPLATE4 0
00180 #define IDC_BTN_FILENEW_TEMPLATE5 0
00181 #define IDC_BTN_FILENEW_TEMPLATE6 0
00182 #define IDC_BTN_FILENEW_TEMPLATE7 0
00183 #define IDC_BTN_FILENEW_TEMPLATE8 0
00184 #define IDC_BTN_FILENEW_TEMPLATE9 0
00185 #define IDC_BTN_FILENEW_TEMPLATE10 0
00186
00187
00188
00189 #ifdef STANDALONE
00190 #define OPTOKEN_HELPSPEC _T("HelpSpec")
00191 #endif
00192
00193
00194 #define OPTOKEN_WINDOWARRANGE _T("WindowArrange")
00195 #define OPTOKEN_WINDOWCASCADE _T("WindowCascade")
00196 #define OPTOKEN_WINDOWTILE _T("WindowTile")
00197
00198 #define OPTOKEN_VIEWTOOLBAR _T("ViewToolBar")
00199 #define OPTOKEN_VIEWSTATUSBAR _T("ViewStatusBar")
00200 #define OPTOKEN_VIEWCOLOURBAR _T("ViewColourBar")
00201 #define OPTOKEN_VIEWFULLSCREEN _T("ViewFullScreen")
00202 #define OPTOKEN_VIEWSCROLLBARS _T("ViewScrollBars")
00203 #define OPTOKEN_VIEWRULERS _T("ViewRulers")
00204
00205 #define OPTOKEN_EDITCUT _T("EditCut")
00206 #define OPTOKEN_EDITCOPY _T("EditCopy")
00207 #define OPTOKEN_EDITPASTE _T("EditPaste")
00208 #define OPTOKEN_EDITPASTESPECIAL _T("EditPasteSpecial")
00209 #define OPTOKEN_EDITDELETE _T("EditDelete")
00210
00211 #define OPTOKEN_DO_NOTHING _T("DoNothing")
00212
00213 #define OPTOKEN_FILESAVEALL _T("FileSaveAll")
00214 #define OPTOKEN_FILEMERGE _T("FileMerge")
00215 #define OPTOKEN_FILEINFO _T("FileInfo")
00216 #define OPTOKEN_FILEOPTIONS _T("FileOptions")
00217 #define OPTOKEN_EDITDELETE _T("EditDelete")
00218
00219
00220 #define OPTOKEN_EDITDUPLICATE _T("EditDuplicate")
00221 #define OPTOKEN_EDITCLONE _T("EditClone")
00222 #define OPTOKEN_EDITOLEINSERT _T("EditOLEInsert")
00223 #define OPTOKEN_EDITOLELINKS _T("EditOLELinks")
00224 #define OPTOKEN_EDITOLEOBJECT _T("EditOLEObject")
00225 #define OPTOKEN_EDITOBJECTINFO _T("EditObjectInfo")
00226 #define OPTOKEN_ATTRFONT _T("AttrFont")
00227 #define OPTOKEN_ATTRLINE _T("AttrLine")
00228 #define OPTOKEN_ATTRFILL _T("AttrFill")
00229 #define OPTOKEN_ATTRSTYLE _T("AttrStyle")
00230 #define OPTOKEN_ARRANGEUPLAYER _T("ArrangeUpLayer")
00231
00232
00233
00234
00235 #define OPTOKEN_ARRANGEDOWNLAYER _T("ArrangeDownLayer")
00236 #define OPTOKEN_ARRANGEALIGNMENT _T("ArrangeAlignment")
00237
00238 #define OPTOKEN_ARRANGEJOINSHAPES _T("ArrangeJoinShapes")
00239 #define OPTOKEN_ARRANGEBREAKSHAPES _T("ArrangeBreakShapes")
00240
00241 #define OPTOKEN_UTILCOLOUR _T("UtilColour")
00242 #define OPTOKEN_UTILCUSTOMIZE _T("UtilCustomize")
00243 #define OPTOKEN_UTILOPTIONS _T("UtilOptions")
00244 #define OPTOKEN_WINDOWNEWVIEW _T("WindowNewView")
00245 #define OPTOKEN_WINDOWEASYMDI _T("WindowEasyMDI")
00246 #define OPTOKEN_WINDOWTOOLBARS _T("WindowToolbars")
00247 #define OPTOKEN_WINDOWRULERS _T("WindowRulers")
00248
00249
00250 #define OPTOKEN_WINDOWBORDERS _T("WindowBorders")
00251 #define OPTOKEN_WINDOWQUALITY _T("WindowQuality")
00252 #define OPTOKEN_WINDOWSEPARATION _T("WindowSeparation")
00253 #define OPTOKEN_QUALITYANTIALIASED _T("QualityAntiAliased")
00254 #define OPTOKEN_QUALITYNORMAL _T("QualityNormal")
00255 #define OPTOKEN_QUALITYSIMPLE _T("QualitySimple")
00256 #define OPTOKEN_QUALITYOUTLINE _T("QualityOutline")
00257 #define OPTOKEN_MAKEMASK _T("MakeMask")
00258 #define OPTOKEN_MASKINSIDE _T("MaskInside")
00259 #define OPTOKEN_XARA_WEB_MENU _T("XaraWebMenu")
00260 #define OPTOKEN_XARAX_FORUM _T("XaraXForum")
00261 #define OPTOKEN_WEBSTER_HOME_PAGE _T("WebsterHomePage")
00262 #define OPTOKEN_XARA_HOME_PAGE _T("XaraHomePage")
00263 #define OPTOKEN_XARA_PURCHASE_PAGE _T("XaraPurchasePage")
00264 #define OPTOKEN_WEBLINK _T("WebLink")
00265 #define OPTOKEN_HINTS_AND_TIPS_PAGES _T("HintsAndTipsPages")
00266
00267 #define OPTOKEN_GALLERIES_SUBMENU _T("Galleries")
00268 #define OPTOKEN_ANIMATION_SUBMENU _T("Animation")
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281 class CCAPI OpExit: public Operation
00282 {
00283
00284 CC_DECLARE_DYNCREATE( OpExit )
00285
00286 public:
00287 OpExit();
00288
00289 static BOOL Init();
00290
00291 static OpState GetState(String_256*, OpDescriptor*);
00292
00293 void Do(OpDescriptor*);
00294
00295 };
00296
00297
00298
00299
00300
00301
00302
00303
00304
00305
00306
00307 class CCAPI OpRegister: public Operation
00308 {
00309 CC_DECLARE_DYNCREATE( OpRegister )
00310 public:
00311 OpRegister();
00312 static BOOL Init();
00313 static OpState GetState(String_256*, OpDescriptor*){return OpState();}
00314 void Do(OpDescriptor*);
00315 void DoWithParam ( OpDescriptor*, OpParam* Params );
00316
00317 static String_256 GetSerialNumber();
00318
00319 static BOOL get_HasRegistered();
00320 static void put_HasRegistered(BOOL);
00321
00322 protected:
00323 BOOL RegisterOnline();
00324 static BOOL RegisteredOnline;
00325
00326 PORTNOTE("other","Removed DATE usage")
00327 #ifndef EXCLUDE_FROM_XARALX
00328 static DATE LastCheck ;
00329 #endif
00330
00331 static INT32 DaysBetweenAutoChecks;
00332
00333 };
00334
00335
00336
00337
00338
00339
00340
00341
00342
00343
00344
00345
00346 class CCAPI OpUpdate: public Operation
00347 {
00348
00349 CC_DECLARE_DYNCREATE( OpUpdate )
00350
00351 public:
00352 OpUpdate();
00353
00354 static BOOL Init();
00355
00356 static OpState GetState(String_256*, OpDescriptor*){return OpState();}
00357
00358 void Do(OpDescriptor*);
00359 void DoWithParam ( OpDescriptor*, OpParam* Params );
00360 void CheckForNewFiles();
00361 static String_256 GetSpecialsFile();
00362 static BOOL UpdateFiles(BOOL bForeground);
00363 static String_256 GetWebFilePath(LPCTSTR p);
00364 static String_256 GetWebFileRoot();
00365 static String_256 GetUpdateURL();
00366 static BOOL UpdateFiles(BOOL bForeground,
00367 const String_256& strClientFolder,
00368 const String_256& strURL,
00369 const String_256& strIndexLeafName,
00370 const String_256& strRegKeyName
00371 );
00372
00373 static String_256 IndexBaseURL;
00374 static String_32 IndexLeafName;
00375
00376
00377 protected:
00378 static BOOL UpdateDontShowAgain;
00379 static BOOL SpecialsDontShowAgain;
00380 static INT32 UpdateFileDate;
00381 static INT32 SpecialsFileDate;
00382
00383 };
00384
00385
00386
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396
00397 class CCAPI DocOps: public Operation
00398 {
00399
00400 CC_DECLARE_DYNCREATE( DocOps )
00401
00402 public:
00403 DocOps();
00404
00405 static BOOL Init();
00406
00407 static OpState GetState(String_256*, OpDescriptor*);
00408
00409 void Do(OpDescriptor*);
00410
00411
00412
00413 };
00414
00415
00416
00417
00418
00419
00420
00421
00422
00423
00424
00425
00426 class CCAPI MenuPopupOps: public Operation
00427 {
00428
00429 CC_DECLARE_DYNCREATE( MenuPopupOps )
00430
00431 public:
00432 MenuPopupOps();
00433
00434 static BOOL Init();
00435
00436 static OpState GetState(String_256*, OpDescriptor*);
00437
00438 void Do(OpDescriptor*);
00439
00440 };
00441
00442
00443
00444
00445
00446
00447
00448
00449
00450
00451
00452
00453 class CCAPI OpToolSelect: public Operation
00454 {
00455
00456 CC_DECLARE_DYNCREATE( OpToolSelect )
00457
00458 public:
00459 OpToolSelect();
00460
00461 static BOOL Init();
00462
00463 static OpState GetState(String_256*, OpDescriptor* ToolOp);
00464
00465 void Do(OpDescriptor* ToolOp);
00466
00467 };
00468
00469
00470
00471
00472
00473
00474
00475
00476
00477
00478
00479
00480 class CCAPI HelpOps: public Operation
00481 {
00482
00483 CC_DECLARE_DYNCREATE( HelpOps )
00484
00485 public:
00486 HelpOps();
00487
00488 static BOOL Init();
00489
00490 static OpState GetState(String_256*, OpDescriptor*);
00491
00492 void Do(OpDescriptor* WhichOp);
00493 static BOOL GetCDHelpOn() { return CDHelpOn; }
00494 static void SetCDHelpOn(BOOL value) { CDHelpOn = value; }
00495
00496 protected:
00497 static BOOL CDHelpOn;
00498 };
00499
00500
00501
00502
00503
00504
00505
00506
00507
00508
00509
00510
00511 class CCAPI WindowOps: public Operation
00512 {
00513
00514 CC_DECLARE_DYNCREATE( WindowOps )
00515
00516 public:
00517 WindowOps();
00518
00519 static BOOL Init();
00520
00521 static OpState GetState(String_256*, OpDescriptor*);
00522
00523 void Do(OpDescriptor* WhichOp);
00524
00525 };
00526
00527
00528
00529
00530
00531
00532
00533
00534
00535
00536
00537
00538 class CCAPI ViewOps: public Operation
00539 {
00540
00541 CC_DECLARE_DYNCREATE( ViewOps )
00542
00543 public:
00544 ViewOps();
00545
00546 static BOOL Init();
00547
00548 static OpState GetState(String_256*, OpDescriptor*);
00549
00550 virtual BOOL OnIdleEvent(void);
00551 static BOOL DoFullScreen ;
00552 static BOOL IsFullScreenPending(){return DoFullScreen;};
00553 void Do(OpDescriptor* WhichOp);
00554
00555 };
00556
00557
00558
00559
00560
00561
00562
00563
00564
00565
00566
00567
00568 class CCAPI DummyOp: public Operation
00569 {
00570
00571 CC_DECLARE_DYNCREATE( DummyOp )
00572
00573 public:
00574 DummyOp();
00575
00576 static BOOL Init();
00577
00578 static OpState GetState(String_256*, OpDescriptor*);
00579
00580 void Do(OpDescriptor*);
00581
00582 };
00583
00584 #endif
00585
00586