menuops.h

Go to the documentation of this file.
00001 // $Id: menuops.h 1739 2006-09-05 11:07:16Z luke $
00002 /* @@tag:xara-cn@@ DO NOT MODIFY THIS LINE
00003 ================================XARAHEADERSTART===========================
00004  
00005                Xara LX, a vector drawing and manipulation program.
00006                     Copyright (C) 1993-2006 Xara Group Ltd.
00007        Copyright on certain contributions may be held in joint with their
00008               respective authors. See AUTHORS file for details.
00009 
00010 LICENSE TO USE AND MODIFY SOFTWARE
00011 ----------------------------------
00012 
00013 This file is part of Xara LX.
00014 
00015 Xara LX is free software; you can redistribute it and/or modify it
00016 under the terms of the GNU General Public License version 2 as published
00017 by the Free Software Foundation.
00018 
00019 Xara LX and its component source files are distributed in the hope
00020 that it will be useful, but WITHOUT ANY WARRANTY; without even the
00021 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00022 See the GNU General Public License for more details.
00023 
00024 You should have received a copy of the GNU General Public License along
00025 with Xara LX (see the file GPL in the root directory of the
00026 distribution); if not, write to the Free Software Foundation, Inc., 51
00027 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00028 
00029 
00030 ADDITIONAL RIGHTS
00031 -----------------
00032 
00033 Conditional upon your continuing compliance with the GNU General Public
00034 License described above, Xara Group Ltd grants to you certain additional
00035 rights. 
00036 
00037 The additional rights are to use, modify, and distribute the software
00038 together with the wxWidgets library, the wxXtra library, and the "CDraw"
00039 library and any other such library that any version of Xara LX relased
00040 by Xara Group Ltd requires in order to compile and execute, including
00041 the static linking of that library to XaraLX. In the case of the
00042 "CDraw" library, you may satisfy obligation under the GNU General Public
00043 License to provide source code by providing a binary copy of the library
00044 concerned and a copy of the license accompanying it.
00045 
00046 Nothing in this section restricts any of the rights you have under
00047 the GNU General Public License.
00048 
00049 
00050 SCOPE OF LICENSE
00051 ----------------
00052 
00053 This license applies to this program (XaraLX) and its constituent source
00054 files only, and does not necessarily apply to other Xara products which may
00055 in part share the same code base, and are subject to their own licensing
00056 terms.
00057 
00058 This license does not apply to files in the wxXtra directory, which
00059 are built into a separate library, and are subject to the wxWindows
00060 license contained within that directory in the file "WXXTRA-LICENSE".
00061 
00062 This license does not apply to the binary libraries (if any) within
00063 the "libs" directory, which are subject to a separate license contained
00064 within that directory in the file "LIBS-LICENSE".
00065 
00066 
00067 ARRANGEMENTS FOR CONTRIBUTION OF MODIFICATIONS
00068 ----------------------------------------------
00069 
00070 Subject to the terms of the GNU Public License (see above), you are
00071 free to do whatever you like with your modifications. However, you may
00072 (at your option) wish contribute them to Xara's source tree. You can
00073 find details of how to do this at:
00074   http://www.xaraxtreme.org/developers/
00075 
00076 Prior to contributing your modifications, you will need to complete our
00077 contributor agreement. This can be found at:
00078   http://www.xaraxtreme.org/developers/contribute/
00079 
00080 Please note that Xara will not accept modifications which modify any of
00081 the text between the start and end of this header (marked
00082 XARAHEADERSTART and XARAHEADEREND).
00083 
00084 
00085 MARKS
00086 -----
00087 
00088 Xara, Xara LX, Xara X, Xara X/Xtreme, Xara Xtreme, the Xtreme and Xara
00089 designs are registered or unregistered trademarks, design-marks, and/or
00090 service marks of Xara Group Ltd. All rights in these marks are reserved.
00091 
00092 
00093       Xara Group Ltd, Gaddesden Place, Hemel Hempstead, HP2 6EX, UK.
00094                         http://www.xara.com/
00095 
00096 =================================XARAHEADEREND============================
00097  */
00098 
00099 /*
00100  *  */
00101 
00102 #ifndef INC_MENUOPS
00103 #define INC_MENUOPS
00104 
00105 //#include "ops.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00106 //#include "opdesc.h"                             - in camtypes.h [AUTOMATICALLY REMOVED]
00107 //#include "pathname.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00108 
00109 // Menu Popup Op Tokens
00110 
00111 #define OPTOKEN_FILE_MENU       _T("FileMenu")
00112 #define OPTOKEN_EDIT_MENU       _T("EditMenu")
00113 //#define OPTOKEN_VIEW_MENU     "ViewMenu"
00114 #define OPTOKEN_HELP_MENU       _T("HelpMenu")
00115 //#define OPTOKEN_OPS_MENU      "OpsMenu"
00116 //#define OPTOKEN_DIALOGS_MENU  "DialogsMenu"
00117 #define OPTOKEN_WINDOW_MENU     _T("WindowMenu")
00118 //#define OPTOKEN_PRINT_MENU        "PrintMenu"
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 //Graham 20/10/97
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 //Graham 20/10/97: The following commands
00174 //do not have specific buttons of their own
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 //#define OPTOKEN_WINDOWNEW     "WindowNew"
00194 #define OPTOKEN_WINDOWARRANGE   _T("WindowArrange")
00195 #define OPTOKEN_WINDOWCASCADE   _T("WindowCascade")
00196 #define OPTOKEN_WINDOWTILE      _T("WindowTile")
00197 //#define OPTOKEN_WINDOWTILE_V  "WindowTileVert"
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 //#define OPTOKEN_EDITSELECTALL "EditSelectAll"         // Now defined in selall.h
00219 //#define OPTOKEN_EDITSELECTNONE"EditSelectNone"
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 //#define OPTOKEN_ARRANGEUPTOP      "ArrangeUpTop"
00232 //#define OPTOKEN_ARRANGEUPONE      "ArrangeUpOne"
00233 //#define OPTOKEN_ARRANGEDOWNONE        "ArrangeDownOne"
00234 //#define OPTOKEN_ARRANGEDOWNBOTTOM "ArrangeDownBottom"
00235 #define OPTOKEN_ARRANGEDOWNLAYER    _T("ArrangeDownLayer")
00236 #define OPTOKEN_ARRANGEALIGNMENT    _T("ArrangeAlignment")
00237 //#define OPTOKEN_ARRANGEPULLGRID       "ArrangePullToGrid"
00238 #define OPTOKEN_ARRANGEJOINSHAPES   _T("ArrangeJoinShapes")
00239 #define OPTOKEN_ARRANGEBREAKSHAPES  _T("ArrangeBreakShapes")
00240 //#define OPTOKEN_ARRANGEMAKESHAPES "ArrangeMakeShapes"
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 //#define OPTOKEN_WINDOWGRIDS       "WindowGrids"
00249 //#define OPTOKEN_WINDOWSNAP        "WindowSnap"
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 >   class OpExit : public Operation
00273 
00274     Author:     Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
00275     Created:    12/8/93
00276     Purpose:    This class represents the Exit Application operation.
00277     SeeAlso:    Operation
00278 
00279 ********************************************************************************************/
00280 
00281 class CCAPI OpExit: public Operation
00282 {                           
00283 
00284     CC_DECLARE_DYNCREATE( OpExit )    
00285     
00286 public:
00287     OpExit();                               // Constructor
00288 
00289     static BOOL     Init();                 // Register an OpDescriptor
00290                                             // Read the state of an operation
00291     static OpState  GetState(String_256*, OpDescriptor*);       
00292 
00293     void            Do(OpDescriptor*);      // "Do" function
00294 
00295 };
00296 
00297 /****************************************************************************
00298 
00299 >   class OpRegister: public Operation
00300 
00301     Author:     Marc_Power (Xara Group Ltd) <camelotdev@xara.com>
00302     Created:    7/5/2004
00303     Purpose:    Manage registration of CD 
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 >   class OpUpdate : public Operation
00338 
00339     Author:     Marc_Power (Xara Group Ltd) <camelotdev@xara.com>
00340     Created:    ?/4/2004
00341     Purpose:    This class represents the Update operation.
00342     SeeAlso:    Operation
00343 
00344 ********************************************************************************************/
00345 
00346 class CCAPI OpUpdate: public Operation
00347 {                           
00348 
00349     CC_DECLARE_DYNCREATE( OpUpdate )    
00350     
00351 public:
00352     OpUpdate();                         // Constructor
00353 
00354     static BOOL     Init();                 // Register an OpDescriptor
00355                                             // Read the state of an operation
00356     static OpState  GetState(String_256*, OpDescriptor*){return OpState();}
00357 
00358     void            Do(OpDescriptor*);      // "Do" function
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 >   class DocOps : public Operation
00389 
00390     Author:     Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
00391     Created:    12/8/93
00392     Purpose:    This class represents All the File operations.
00393     SeeAlso:    Operation
00394 
00395 ********************************************************************************************/
00396 
00397 class CCAPI DocOps: public Operation
00398 {                           
00399 
00400     CC_DECLARE_DYNCREATE( DocOps )    
00401     
00402 public:
00403     DocOps();                               // Constructor
00404 
00405     static BOOL     Init();                 // Register an OpDescriptor
00406                                             // Read the state of an operation
00407     static OpState  GetState(String_256*, OpDescriptor*);       
00408 
00409     void            Do(OpDescriptor*);      // "Do" function
00410 
00411 
00412     
00413 };
00414 
00415 /********************************************************************************************
00416 
00417 >   class MenuPopupOps : public Operation
00418 
00419     Author:     Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
00420     Created:    29/9/93
00421     Purpose:    This class represents All the Menu Popup operations.
00422     SeeAlso:    Operation
00423 
00424 ********************************************************************************************/
00425 
00426 class CCAPI MenuPopupOps: public Operation
00427 {                           
00428 
00429     CC_DECLARE_DYNCREATE( MenuPopupOps )    
00430     
00431 public:
00432     MenuPopupOps();                             // Constructor
00433 
00434     static BOOL     Init();                 // Register an OpDescriptor
00435                                             // Read the state of an operation
00436     static OpState  GetState(String_256*, OpDescriptor*);       
00437 
00438     void            Do(OpDescriptor*);      // "Do" function
00439 
00440 };
00441 
00442 /********************************************************************************************
00443 
00444 >   class OpToolSelect : public Operation
00445 
00446     Author:     Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
00447     Created:    12/8/93
00448     Purpose:    This class is used for Tool Selection.
00449     SeeAlso:    OpToolSelect
00450 
00451 ********************************************************************************************/
00452 
00453 class CCAPI OpToolSelect: public Operation
00454 {                           
00455 
00456     CC_DECLARE_DYNCREATE( OpToolSelect )    
00457     
00458 public:
00459     OpToolSelect();                     // Constructor
00460 
00461     static BOOL     Init();                         // Register an ToolOpDescriptor
00462                                                     // Read the state of an operation
00463     static OpState  GetState(String_256*, OpDescriptor* ToolOp);        
00464 
00465     void            Do(OpDescriptor* ToolOp);       // "Do" function
00466 
00467 }; 
00468 
00469 /********************************************************************************************
00470 
00471 >   class HelpOps : public Operation
00472 
00473     Author:     Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
00474     Created:    12/8/93
00475     Purpose:    This class is used for all the Help Operations found on the help menu.
00476     SeeAlso:    operation
00477 
00478 ********************************************************************************************/
00479 
00480 class CCAPI HelpOps: public Operation
00481 {                           
00482 
00483     CC_DECLARE_DYNCREATE( HelpOps )    
00484     
00485 public:
00486     HelpOps();                                      // Constructor
00487 
00488     static BOOL     Init();                         // Register the Help OpDescriptors
00489                                                     // Read the state of an operation
00490     static OpState  GetState(String_256*, OpDescriptor*);       
00491 
00492     void            Do(OpDescriptor* WhichOp);      // "Do" function
00493     static BOOL GetCDHelpOn()                   { return CDHelpOn;  }
00494     static void SetCDHelpOn(BOOL value)         { CDHelpOn = value; }
00495 
00496 protected:
00497     static BOOL CDHelpOn;       // Is the CD Help Otption enabled
00498 }; 
00499 
00500 /********************************************************************************************
00501 
00502 >   class WindowOps : public Operation
00503 
00504     Author:     Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
00505     Created:    12/8/93
00506     Purpose:    This class is used for all the Window operations found on the Window Menu.
00507     SeeAlso:    Operation
00508 
00509 ********************************************************************************************/
00510 
00511 class CCAPI WindowOps: public Operation
00512 {                           
00513 
00514     CC_DECLARE_DYNCREATE( WindowOps )    
00515     
00516 public:
00517     WindowOps();                                        // Constructor
00518 
00519     static BOOL     Init();                         // Register Window OpDescriptors
00520                                                     // Read the state of an operation
00521     static OpState  GetState(String_256*, OpDescriptor*);       
00522 
00523     void            Do(OpDescriptor* WhichOp);      // "Do" function
00524 
00525 }; 
00526 
00527 /********************************************************************************************
00528 
00529 >   class ViewOps : public Operation
00530 
00531     Author:     Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
00532     Created:    12/8/93
00533     Purpose:    This class is used for all the View operations found on the View Menu.
00534     SeeAlso:    Operation
00535 
00536 ********************************************************************************************/
00537 
00538 class CCAPI ViewOps: public Operation
00539 {                           
00540 
00541     CC_DECLARE_DYNCREATE( ViewOps )    
00542     
00543 public:
00544     ViewOps();                                      // Constructor
00545 
00546     static BOOL     Init();                         // Register Window OpDescriptors
00547                                                     // Read the state of an operation
00548     static OpState  GetState(String_256*, OpDescriptor*);
00549             
00550     virtual BOOL OnIdleEvent(void);     // Overriden idle event processing method
00551     static BOOL DoFullScreen ;
00552     static BOOL IsFullScreenPending(){return DoFullScreen;};
00553     void            Do(OpDescriptor* WhichOp);      // "Do" function
00554 
00555 }; 
00556 
00557 /********************************************************************************************
00558 
00559 >   class DummyOp : public Operation
00560 
00561     Author:     Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
00562     Created:    29/03/94
00563     Purpose:    This class represents the Dummy operation.
00564     SeeAlso:    Operation
00565 
00566 ********************************************************************************************/
00567 
00568 class CCAPI DummyOp: public Operation
00569 {
00570 
00571     CC_DECLARE_DYNCREATE( DummyOp )
00572 
00573 public:
00574     DummyOp();                              // Constructor
00575 
00576     static BOOL     Init();                 // Register an OpDescriptor
00577                                             // Read the state of an operation
00578     static OpState  GetState(String_256*, OpDescriptor*);       
00579 
00580     void            Do(OpDescriptor*);      // "Do" function
00581 
00582 };
00583 
00584 #endif  
00585 
00586 

Generated on Sat Nov 10 03:45:42 2007 for Camelot by  doxygen 1.4.4