main.cpp File Reference

(r1785/r1464)

#include "camtypes.h"
#include "clipint.h"
#include "module.h"
#include "bfxbase.h"
#include "printing.h"
#include "csrstack.h"
#include "hotkeys.h"
#include "fntcache.h"
#include "sginit.h"
#include "sgliboil.h"
#include "oilmenus.h"
#include "oilruler.h"
#include "layer.h"
#include "progress.h"
#include "scunit.h"
#include "valfunc.h"
#include "strkcomp.h"
#include "brshcomp.h"
#include "opfeathr.h"
#include "appprefs.h"

Go to the source code of this file.

Defines

#define new   CAM_DEBUG_NEW

Functions

BOOL InitPreTools ()
BOOL InitPostTools1 ()
BOOL InitPostTools2 ()
 DECLARE_SOURCE ("$Revision: 1464 $")
BOOL InitKernel ()
 Calls all Initxxx functions for everyone else.
BOOL InitKernelPostSplash ()
 Initialises various things that should be done after the splash screen has been shown.
void DeinitKernel ()
 Calls all Deinitxxx functions for everyone else.


Define Documentation

#define new   CAM_DEBUG_NEW
 

Definition at line 143 of file main.cpp.


Function Documentation

DECLARE_SOURCE "$Revision: 1464 $"   ) 
 

void DeinitKernel  ) 
 

Calls all Deinitxxx functions for everyone else.

Author:
Andy_Pennell (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/4/93
Parameters:
None [INPUTS]
None [OUTPUTS]
Returns:
None

Errors: None

Definition at line 232 of file main.cpp.

00233 {
00234     // Needs to happen before any major systems disappear (namely the message handler system)
00235     Layer::Deinit();
00236 
00237 // Neville 5/8/97 remove Stroking code
00238 #ifdef VECTOR_STROKING
00239     // Deinit ValueFunction classes
00240     ValueFunction::DeInit();
00241 #endif
00242 
00243 PORTNOTE("extClipboard", "Do no call ExternalClipboard::Deinit")
00244 #if !defined(EXCLUDE_FROM_RALPH) && !defined(EXCLUDE_FROM_XARALX)
00245     ExternalClipboard::Deinit();                    // Destroy clipboard manager
00246 //  InternalClipboard::Deinit();                    // Destroy internal clipboard cache
00247 #else
00248     InternalClipboard::Deinit();                    // Destroy internal clipboard cache
00249 #endif
00250 
00251     // Remove all the OpDescriptors from their internal static list
00252     OpDescriptor::DestroyAll();
00253     MessageHandler::Destroy(); // Remove MessageHandler class lists
00254 
00255     AttributeManager::Deinit();
00256 
00257 #if !defined(EXCLUDE_FROM_RALPH)
00258     #ifndef STANDALONE
00259         // Write out the preferences, only if the user has requested this
00260         if ( AppPrefsDlg::IsSaveOnExitSet() )
00261             Camelot.WritePreferences();
00262     #else
00263         Camelot.WritePreferences();
00264     #endif
00265 #else
00266     Camelot.WritePreferences();
00267 #endif
00268 
00269 PORTNOTE("other","Removed XPEHost usage")
00270 #ifndef EXCLUDE_FROM_XARALX
00271     XPEEditOp::DeInit();
00272     XPEHost::EndXPE3Connection();
00273 #endif
00274 
00275     // Always de-init the tools before the modules!
00276     Tool::DeinitTools();        // NB. tool function is also called prior to this
00277     Module::DeinitModules();    // by CMainFrame::OnDestroy() !!
00278 
00279 #ifndef EXCLUDE_BFX
00280 #if !defined(EXCLUDE_FROM_RALPH)
00281     BitmapEffectBase::DeInit();
00282 #endif
00283 #endif
00284 //WEBSTER-ranbirr-12/11/96
00285 #ifndef WEBSTER
00286 #ifndef STANDALONE
00287     // no printing on Viewer version 
00288     // defined as a blank nothing function
00289     OpPrint::Deinitialise();
00290 #endif
00291 #endif  // WEBSTER
00292 
00293 #if !defined(EXCLUDE_FROM_RALPH) && !defined(EXCLUDE_FROM_XARALX)
00294 #ifndef STANDALONE
00295     // Make sure we throw away all marks before the memory manager is deinitialised
00296     if (Camelot.GetMarksManager())
00297         Camelot.GetMarksManager()->InvalidateCache();
00298 #endif
00299 #endif
00300 
00301 // Neville 5/8/97 remove Stroking code
00302 #ifdef VECTOR_STROKING
00303     // Make sure any Stroke provider stuff is deinitialised
00304     StrokeComponentClass::DeInit();
00305 #endif
00306     // get rid of any stored brushes
00307     BrushComponentClass::DeInit();
00308 
00309     OpChangeFeatherSize::DeInit();
00310     
00311     DeinitMemory();                     // Must be before deinithandles, as it it uses handles
00312     DeinitHandles();
00313 //  DeinitHotKeySystem();
00314 
00315     CursorStack::DeInit();
00316 
00317 #if !defined(EXCLUDE_FROM_RALPH)
00318     Progress::Deinit();
00319     StandardUnit::DeInit();
00320 #endif
00321 
00322 #ifndef STANDALONE
00323     AppPrefsDlg::Deinit();              // Deinit the application preference/options dialog
00324 #endif
00325     Filter::DeinitFilters();
00326 #if !defined(EXCLUDE_FROM_RALPH) && !defined(EXCLUDE_FROM_XARALX)
00327     ControlHelper::DeInit();
00328     DialogControlHelper::DeInit();
00329 #endif
00330 PORTNOTE("other","Removed FontFactory usage")
00331 #ifndef EXCLUDE_FROM_XARALX
00332     FontFactory::Deinit();
00333 #endif
00334 PORTNOTE("other","Removed ATMInstall usage")
00335 #ifndef EXCLUDE_FROM_XARALX
00336     ATMInstall::AliasList.DeInit();
00337     DeinitButtonBar();
00338 #endif
00339 #if !defined(EXCLUDE_FROM_RALPH)
00340 // && !defined(EXCLUDE_FROM_XARALX)
00341     DeinitMenuSystem();
00342 #endif
00343     DimScale::Deinit();
00344     Unit::Deinit();
00345     DocUnitList::Deinit();
00346     GlobalBitmapList::DeInit();
00347     GlobalFractalList::DeInit();
00348     OILBitmap::Deinit();
00349 #if !defined(EXCLUDE_FROM_RALPH)
00350 // && !defined(EXCLUDE_FROM_XARALX)
00351     HotKey::Deinit(); 
00352 #endif
00353 #ifndef DISABLE_TEXT_RENDERING
00354     FontCache::DeInit();
00355 #endif
00356 #ifndef EXCLUDE_GALS
00357     SGInit::DeInit();       // De-init the galleries
00358 #endif
00359     View::Deinit();
00360 #if !defined(EXCLUDE_FROM_RALPH) && !defined(EXCLUDE_FROM_XARALX)
00361     SGLibOil::TidyUp();
00362 //  DeInitRegistry();
00363 #endif
00364 // WEBSTER - markn 15/1/97
00365 // No rulers in Webster
00366 #ifndef WEBSTER
00367     OILRuler::Deinit();
00368 #endif
00369 
00370     // Deinit static rendering stuff
00371 PORTNOTE("other","Removed GRenderBitmap usage")
00372 #ifndef EXCLUDE_FROM_XARALX
00373     GRenderBitmap::Deinit();
00374 #endif
00375 
00376     // Close down the kernel application object (including preferences system)
00377     Camelot.Deinit();
00378 
00379 #if !defined(EXCLUDE_FROM_RALPH) && !defined(EXCLUDE_FROM_XARALX)
00380     // do this last now as we use the key to save out some preference data
00381     DeInitRegistry();
00382 #endif
00383 }

BOOL InitKernel  ) 
 

Calls all Initxxx functions for everyone else.

Author:
Andy_Pennell (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/4/93
Parameters:
None [INPUTS]
None [OUTPUTS]
Returns:
TRUE if worked OK, FALSE if failed (program will not start)

Errors: None

Definition at line 162 of file main.cpp.

00163 {
00164     bool    fSuccess = true;
00165     if( !InitPreTools() ||
00166         !Tool::InitTools() ||               // Init Modules and tools (keep last) 
00167         !InitPostTools1() ||
00168         !InitPostTools2()
00169         )
00170     {
00171         if( 0 == Error::GetErrorNumber() )
00172             Error::SetError( _R(IDS_INITIALISATION_ERROR) );
00173 
00174         InformError();
00175         TRACE( _T("InitKernel failed - will exit very soon\n"));
00176         fSuccess = false;
00177     }
00178 
00179     return fSuccess;
00180 }

BOOL InitKernelPostSplash  ) 
 

Initialises various things that should be done after the splash screen has been shown.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
25/07/2005
Parameters:
None [INPUTS]
None [OUTPUTS]
Returns:
TRUE if worked OK, FALSE if failed (program will not start)

Errors: None

Definition at line 197 of file main.cpp.

00198 {
00199     if (
00200 #if !defined(PROD_XS) && !defined(EXCLUDE_FROM_XARALX)
00201         // disabled for XS builds
00202         PluginOILFilter::AutoRegisterFilters() &&
00203 #endif
00204 
00205         Filter::InitFilters()
00206         )
00207         return TRUE;
00208     else
00209     {
00210         InformError();
00211         TRACE( _T("InitKernelPostSplash failed - will exit very soon\n"));
00212         return FALSE;
00213     }
00214 }

BOOL InitPostTools1  ) 
 

Definition at line 219 of file main2.cpp.

00220 {
00221     return
00222 PORTNOTE("other","Removed DialogBarOp usage")
00223 #ifndef EXCLUDE_FROM_XARALX
00224             DialogBarOp::Init() &&
00225 #endif
00226 PORTNOTE("other","Removed SystemBarOp usage")
00227 #ifndef EXCLUDE_FROM_XARALX
00228             SystemBarOp::Init() &&              // Register system bars
00229 #endif
00230             OILBitmap::Init() &&                // read default fill bitmap
00231 PORTNOTE("other","Removed Lots of init functions")
00232 #ifndef EXCLUDE_FROM_XARALX
00233             GlobalBitmapList::Init() &&         // Setup the global bitmap list
00234             GlobalFractalList::Init() &&        // Setup the fractal list
00235 #endif
00236             OpUndo::Init() &&                   // Register Undo Operation
00237             OpRedo::Init() &&                   // Register Redo Operation
00238             OpToggleFore::Init() &&             // Register Toggle fore/back render Operation
00239             OpToggleDoubleBuffer::Init() &&     // Register Toggle double buffer operation
00240             OpToggleSolidDrag::Init() &&        // Register Toggle solid drag operation
00241             OpCut::Init() &&                    // Register Cut operation
00242             OpCopy::Init() &&                   // Register Copy operation
00243             OpPaste::Init() &&                  // Register Paste operation
00244             OpPasteAttributes::Init() &&        // Register Paste Attributes operation
00245             OpDelete::Init() &&                 // Register Delete operation
00246             OpDuplicate::Init() &&              // Register Duplicate operation
00247             OpClone::Init() &&                  // Register Clone operation
00248             OpCopyAndTransform::Init() &&       // Register the operation for dropping copies
00249             OpExit::Init() &&                   // Register Exit Operation
00250             BlobbyOp::Init() &&                 // Temp ******
00251             OpGroup::Init() &&                  // Register group operation  
00252             OpUngroup::Init() &&                // Register Ungroup operation  
00253             OpUngroupSpecial::Init() &&         // Register Ungroup Special operation  
00254             OpBringToFront::Init() &&           // Register BringToFront operation
00255             OpPutToBack::Init() &&              // Register PutToBack operation 
00256             OpMoveForwards::Init() &&           // Register MoveForwards operation
00257             OpMoveBackwards::Init() &&          // Register MoveBackwards operation
00258             OpMoveToLyrInFront::Init() &&       // Register Move to layer in front operation
00259             OpMoveToLyrBehind::Init() &&        // Register Move to layer behind operation
00260             OpApplyAttribToSelected::Init() &&  // Register OpApplyAttribToSelected Operation
00261             OpApplyAttribsToSelected::Init() && // Register OpApplyAttribsToSelected Operation
00262             OpApplyAttribToNode::Init() &&      // Register OpApplyAttribToNode Operation
00263 
00264             OpReplaceAttributes::Init() &&      // Register OpReplaceAttributes Operation
00265             DocOps::Init() &&                   // Register Doc Operations
00266             MenuPopupOps::Init() &&             // Register Menu Popup Operations
00267             OpChangeBlendDistance::Declare() && // Register the change blend steps distance op
00268 
00269 #ifndef EXCLUDE_FROM_XARALX
00270             OpToggleScroll::Init() &&           // Register Toggle proport scrolbar Operation
00271 #endif
00272             OpChangeFeatherSize::Init() &&      // Register feather size change operation
00273             OpChangeFeatherProfile::Init() &&   // Register feather profile change operation
00274             OpMakeShapes::Init() &&             // Register MakeShapes operation
00275 // Neville 5/8/97 remove Stroking code
00276 #ifdef VECTOR_STROKING
00277             OpMakeStroke::Init() &&             // Register MakeStroke operation
00278 #endif // VECTOR_STROKING
00279             AboutDlg::Init() &&                 // Register "About Camelot" Dialog
00280 #ifndef EXCLUDE_FROM_XARALX
00281             OpUpdate::Init() &&                 // Register Update Operation
00282             OpRegister::Init() &&               // Register Register Operation
00283             TipsDlg::Init() &&                  // Register "Tip of the Day" Dialog
00284             OpSlice::Init() &&                  // Register Image Slicing
00285             BarStatesDlg::Init() &&             // Register the Bar States Creation Dlg
00286             BarRedefineStateDlg::Init() &&      // Register the Redefine Bar State Dlg
00287             BarCreationDlg::Init() &&           // Register the Bar Creation Dlg
00288             OpBarCreation::Init() &&            // Register the Bar Creation Op
00289             OpDuplicateBar::Init() &&           // Register the Bar Duplication Op
00290             OpShortenBar::Init() &&             // Register the Bar Reducing Op
00291             OpDelBar::Init() &&                 // Register the Bar State Deleting Op
00292             OpShowState::Init() &&              // Register the Show State-Layer Op
00293             OpMoveToLayer::Init() &&            // Register the op that moves the selection between layers
00294             ExtendSetsDlg::Init() &&            // Register the Extend Sets Dialog
00295 #endif
00296             OpMakeNodesShapes::Init() &&        // Register the OpMakeNodesShapes operation
00297             OpChangeBrush::Declare() &&         // Register the change brush operation
00298 
00299             OpApplyClipView::Init() &&          // Register the Apply ClipView operation
00300             OpRemoveClipView::Init() &&         // Register the Remove ClipView operation
00301 // Neville 5/8/97 remove Stroking code
00302 #ifdef VECTOR_STROKING
00303             ValueFunction::Init() &&            // Init all value function classes
00304 #endif // VECTOR_STROKING
00305 //          LayerDlg::Init() &&                 // Register Layer dialog (No longer used)
00306 #ifndef EXCLUDE_FROM_XARALX
00307 #ifndef STANDALONE
00308             ToolbarDlg::Init() &&               // Register "Toolbar..." dialogs
00309 #endif // STANDALONE
00310 #endif //EXCLUDE_FROM_XARALX
00311 
00312 // WEBSTER - markn 15/1/97
00313 // Removed these ops as they are not used
00314 #ifndef WEBSTER
00315             OpLayerChange::Init() &&            // Register layer change Op
00316 #endif //WEBSTER
00317 
00318 #ifndef EXCLUDE_GALS
00319             SGInit::Init() &&                   // Init/Register all the supergallery related Ops
00320 #endif //EXCLUDE_GALS
00321             BmapPrevDlg::Init() &&              // Bitmap Preview Dialog Box - Dbug Builds for the moment [MartinD]
00322 
00323 // Moved this here from inside ColourSGallery::Init
00324             OpBackground::Init() &&
00325 
00326 // WEBSTER - markn 15/1/97
00327 // Removed these ops as they are not used
00328 #ifndef WEBSTER
00329             OpGuideline::Init() &&              // Register the guideline op
00330             OpSnapToGuides::Init() &&           // Register the snap-to-guides menu op
00331             OpShowGuides::Init() &&             // Register the show-guides menu op
00332 #endif //WEBSTER
00333 
00334             BlobbyDlg::Init() &&                // Temp ******
00335             BlobbyBar::Init() &&                // Temp ******
00336             StandardBar::Init() &&
00337 
00338 #if DEBUG_TREE
00339             DebugTreeDlg::Init() &&             // Temp ******
00340 #endif //DEBUG_TREE
00341 
00342 #if _DEBUG
00343             DebugDlg::Init() &&                 // Debug command dialogue - in debug builds only
00344 #endif //_DEBUG
00345 
00346             BlobbyTabDlg::Init() &&             // Temp ******
00347 #ifndef EXCLUDE_FROM_XARALX
00348 #if _DEBUG
00349             OpCreateFontThumbnails::Init() &&   // Debug only
00350             OpConvertFileFormats::Init() &&     // Debug only
00351 #endif //_DEBUG
00352 
00353 //#ifndef EXCLUDE_BFX
00354 //#ifndef STANDALONE
00355 //#ifndef WEBSTER
00356 //          BfxDlg::Init() &&                   // Register bitmap effects dialog
00357 //#endif //WEBSTER
00358 //#endif
00359 //#endif
00360 
00361 #if DEBUG_TREE
00362 PORTNOTE("other","Removed CMXTreeDlg usage")
00363 //          CMXTreeDlg::Init() &&               // Temp ******
00364 #endif //DEBUG_TREE
00365 #endif //EXCLUDE_FROM_XARALX
00366 
00367 #ifdef XAR_TREE_DIALOG
00368             CXFTreeDlg::Init() &&               // The Xar format debug tree dialog
00369 #endif //XAR_TREE_DIALOG
00370 
00371 #ifndef EXCLUDE_FROM_XARALX
00372             OpWhatsThis::Init() &&              // Register the "What's This?" help mode Operation
00373 #endif //EXCLUDE_FROM_XARALX
00374             ViewOps::Init() &&                  // Register View Operations
00375             WindowOps::Init() &&                // Register Window Operations
00376 //WEBSTER-ranbirr-12/11/96
00377 #ifndef WEBSTER
00378 #ifndef STANDALONE
00379 // no printing on Viewer version 
00380             OpPrint::Init() &&                  // Register Print operations
00381 #endif //STANDALONE
00382 #endif //webster
00383 
00384             HelpOps::Init() &&                  // Register Help Operations
00385 
00386             OpMenuImport::Init() &&             // Register import operations
00387             OpMenuExport::Init() &&             // Register export operations
00388 
00389 #ifndef EXCLUDE_FROM_XARALX
00390             OpURLImport::Init() &&              // Register internet import operations
00391             URLImportDlg::Init() &&             // Register internet import operations
00392             HelpDownloadOp::Init() &&           // Register help and support download operations
00393 #ifndef STANDALONE
00394 #endif // STANDALONE
00395 #endif //EXCLUDE_FROM_XARALX
00396             OpDroppedFile::Init() &&            // Register drag'n'drop import operations
00397             BaseFileDialog::Init() &&           // Declare the open and save default paths
00398             DummyOp::Init() &&                  // Register dummy ops for unimplemented menu items
00399             OpMenuLoad::Init() &&               // Register Load operation
00400 #ifndef STANDALONE
00401             OpMenuSave::Init() &&               // Register Save operation
00402 #endif
00403             OpException::Init() &&
00404 #ifndef EXCLUDE_FROM_XARALX
00405             InfoBarOp::Init() &&
00406             InfoBarViewOp::Init() &&
00407             ExternalClipboard::Init() &&        // Create the application's external clipboard manager
00408 #endif
00409             FileListOp::Init() &&               // Init the Recent File List Operation
00410             NodeRenderableInk::Init() &&
00411             NodeRenderableBounded::Init() &&    // Declare the magnetic radii options
00412             Filter::InitFilters() &&            // Init filters (must be after ExternalClipboard)
00413             OpTimeDraw::Init() &&
00414             OpShowGrid::Init() &&               // op for toggling "show grid" in a view
00415             OpSnapToGrid::Init() &&             // op for toggling "snap to grid" in a view
00416 // WEBSTER - markn 15/1/97
00417 // Removed these ops as they are not used
00418 #ifndef WEBSTER
00419             OpSnapToObjects::Init() &&          // op for toggling "snap to objects" in a view
00420 #endif
00421             OpPullOntoGrid::Init() &&           // Op for pulling selection onto the grid
00422 
00423 PORTNOTE("other","Removed OLEPrefs usage")
00424 #ifndef EXCLUDE_FROM_XARALX
00425             OLEPrefs::Init() &&                 // Initialise any OLE related prefs
00426 #endif
00427 
00428 PORTNOTE("other","Removed various bevel usage")
00429 #ifdef BUILDSHADOWS
00430 #ifndef EXCLUDE_FROM_XARALX
00431             OpBevel::Init() &&                  // bevelling operator
00432 #endif
00433             OpCreateBevel::Declare() && 
00434             OpRemoveBevel::Declare() &&
00435             OpChangeBevelLightAngle::Declare() &&
00436             OpSelectBevel::Declare() &&
00437             OpApplyAttribForShadows::Init() &&
00438 #endif 
00439             // Contouring ops
00440             OpCreateContour::Declare() &&
00441             OpRemoveContour::Declare() &&
00442             OpChangeContourWidth::Declare() &&
00443 
00444 #ifdef ARROWHEADS
00445             OpChangeStartArrowExtendsDesc::Declare()) && // makes arrows sit on the line instead
00446                                                    // of extending the line
00447             OpChangeEndArrowExtendsDesc::Declare()) &&
00448 #endif
00449 
00450 #ifndef STANDALONE
00451             OpNodePathEditBlob::Init() &&       // Node path editing itself operation
00452             OpNodePathEditControlBlob::Init() &&    // Node path editing its control points operation
00453             OpFitTextToCurve::Init() &&         // Fit text line to path
00454             OpTextKern::Init() &&               // Apply kern op
00455             OpTextAutoKern::Init() &&           // Apply kern op
00456             OpJoinShapes::Init() &&             // Join shapes operation
00457             OpBreakShapes::Init() &&            // Break shapes operation
00458             OpNodePathAddEndpoint::Init() &&    // op to add a curve or line at the end of a path
00459             OpCloseNodePaths::Init() &&         // op to auto-close paths
00460             OpReshapeOrAddPoint::Init() &&      // op to reform or add a point to a path
00461             OpNewPath::Init() &&                // Adds a new path and starts editing it
00462             OpEditRegularShape::Init() &&       // Changing a regular shape
00463             OpDragRegularShape::Init() &&       // Changing a regular shape via dragging
00464             OpReformShapeEdge::Init() &&        // Reforming the edges of a regular shape
00465             OpToggleSmooth::Init() &&           // Toggles between smooth and cusp point
00466             OpMakeSegmentsCurves::Init() &&     // Make path segments curved
00467             OpMakeSegmentsLines::Init() &&      // Make path segments lines
00468             OpReversePath::Init() &&            // Reverse the path(s)
00469             OpMovePathPoint::Init() &&          // Move a path point operation
00470 //          OpEditEllipse::Init() &&            // Editing of a (old style) node ellipse
00471             OpEditRectangle::Init() &&          // Editing of a (old style) node rectangle
00472 //          DialogBarOp::Init() &&              // init the DialogBarOp descriptors
00473 //#endif
00474             OpDragBox::Init() &&                // drag operation base-class
00475             OpQuality::Init() &&                // init the OpQuality operations
00476             BmpDlg::Init() &&                   // Register Bitmap Properties Dialog
00477             GIFAnimationPropertyTabsDlg::Init() &&  // Register the GIF animation tabs dialog
00478             AnimExOptns::Init() &&                  // Register the Animation Export Options tabs dialog    
00479             OpConvertPathToShapes::Declare() &&     // convert path to shapes operation
00480             OpChangeBrushDefinition::Declare() &&
00481 #ifndef EXCLUDE_FROM_XARALX
00482 // WEBSTER-ranbirr-13/11/96
00483 #ifndef WEBSTER
00484             SepsDlg::Init() &&                  // Init the separation properties dialog
00485             OpShowPrintBorders::Init() &&       // init the Show Print Borders operation
00486 #endif  //webster
00487 
00488 // Neville 2/10/97 remove Stroking code
00489 #ifdef VECTOR_STROKING
00490             OpTogglePressure::Init() &&         // Register the pen pressure On/Off operation
00491 #endif // VECTOR_STROKING
00492 
00493             XaraCMS::InitPrefs() &&             // Init Xara CMS Colour manager settings
00494 #endif
00495 #else
00496 #ifndef EXCLUDE_FROM_XARALX
00497             OpDragBox::Init() &&                // drag operation base-class
00498 #endif
00499             OpQuality::Init() &&                // init the OpQuality operations
00500 #endif
00501             CBiasGainDlg::Init() &&
00502             CBrushEditDlg::Init () &&
00503             OpSelectBrush::Declare() &&
00504             CNameBrushDlg::Init() &&
00505             CInitBrushNameDlg::Init() &&
00506             OpDeactivateBrush::Declare() &&
00507 
00508             OpZoomIn::Init() &&
00509             OpZoomOut::Init() &&
00510 #ifndef EXCLUDE_FROM_XARALX
00511             OpLiveEffect::Init() &&             // Register the liveeffects ops (now done by LiveEffecttool)
00512             && NodeBitmapEffect::Init() &&
00513 #endif
00514             InitUserHelp() &&
00515             TRUE;
00516 }

BOOL InitPostTools2  ) 
 

Definition at line 176 of file main3.cpp.

00177 {
00178     return (
00179             SelectAllOp::Init() &&              // Init the SelectAll op
00180             SelectNoneOp::Init() &&             // Init the SelectNone op
00181 #ifndef EXCLUDE_FROM_XARALX
00182 PORTNOTE("other","Removed a large amount of initialization")
00183             XPEEditOp::Init() &&                // Init the XPE Edit operation
00184             EditSelectionOp::Init() &&          // Init the "Edit Selection" op
00185             KeyPress::Init() &&                 // Init the key press system
00186 #endif
00187             FileInfo::Init() &&                 // Init the document info dialogue
00188 
00189             ArrangeAlignment::Init() &&         // Init the arrange alignment dialogue
00190             OpAlign::Init() &&                  // Init the align op
00191 #ifndef EXCLUDE_FROM_XARALX
00192             BmpPrefsDlg::Init() &&              // Init the export bitmap options dialog
00193 #endif
00194             TraceDlg::Init() &&                 // Init the trace dialog
00195 #ifndef EXCLUDE_FROM_XARALX
00196             WebAddressDlg::Init() &&
00197             PhotoCDDlg::Init() &&               // Init the import PhotoCD options dialog
00198 #endif
00199             RenderDemoDlg::Init() &&            // Init the Render Demo Dialog
00200             AppPrefsDlg::Init() &&              // Init the application preference/options dialog
00201 #ifndef EXCLUDE_FROM_XARALX
00202             TemplateDialog::Init() &&
00203             DocPrefsDlg::Init() &&              // Init the document preference/options dialog
00204 #endif
00205             StandardUnit::Init() &&             // create some standard scale units (scunit.h)
00206             ColourEditDlg::Init() &&            // Init the colour editor dialogue
00207 #ifndef EXCLUDE_FROM_XARALX
00208             OpConvertToBitmap::Init() &&
00209 #endif
00210             OpNudge::Init() &&                  // Init the nudge ops
00211             OpCombineShapes::Init() &&          // init the shape combining ops
00212 
00213             OpMenuSelectPathPoints::Init() &&
00214             OpCreateNodeBitmap::Init() &&
00215 
00216             ColourListComponentClass::Init() && // Init & register the colour list component
00217             BitmapListComponentClass::Init() && // Init & register the bitmap list component
00218             UnitListComponentClass::Init()   && // Init & register the units component
00219             DocInfoComponentClass::Init()    && // Init & register the document information component
00220             WizOpStyleComponentClass::Init() && // Init & register the styles component
00221 
00222             PrintComponentClass::Init()      && // Init & register the print component
00223             PrintMarkComponentClass::Init()  && // Init & register the print marks component
00224             ViewComponentClass::Init()       && // Init & register the view component
00225             FontComponentClass::Init()       && // Init & register the font component
00226 
00227 // Neville 5/8/97 remove Stroking code
00228 #ifdef VECTOR_STROKING
00229             StrokeComponentClass::Init()     && // Init & register the stroke component
00230 #endif // VECTOR_STROKING
00231 
00232             BrushComponentClass::Init()      && // Init & register the brush component
00233             RenderRegion::InitPrefs() &&        // Get the render region prefs from the .INI
00234             OSRenderRegion::Init() &&           // init GDI preferences
00235             SimpleCCObject::Init() &&           // Init the Memory tracking preferences
00236             ClickModifiers::DeclarePrefs() &&
00237             DocView::DeclarePreferences() &&    // Deals with DocViews preferences
00238             Document::ReadPrefs() &&            // read in class Document's preferences
00239             Convert::Init() &&                  // Read number of decimal places, decimal point
00240                                                 // and thousands seperator characters from
00241                                                 // operating system .
00242             ColourDragInformation::Init() &&
00243             ColourPickerDragInformation::Init() &&
00244             BitmapDragInformation::Init() &&
00245 PORTNOTE("other","Removed more initialization")
00246 #ifndef EXCLUDE_FROM_XARALX
00247             InitDiagnosticPrefs() &&            // Get the diagnostic preferences
00248 #endif          
00249             CCamView::ReadViewPrefs() &&
00250             PrintMonitor::InitPrefs() &&
00251             PrintProgressDlg::Init() &&
00252 
00253 #ifndef EXCLUDE_FROM_XARALX
00254             BaseBar::DeclarePreferences() &&
00255 
00256             TransOperation::DeclarePrefs() &&
00257 #endif
00258             AttributeManager::InitDefaults() &&
00259 PORTNOTE("other","Removed yet more initialization")
00260 #ifndef EXCLUDE_FROM_XARALX
00261             ControlHelper::Init() &&
00262             DialogControlHelper::Init() &&
00263             FontFactory::Init() &&
00264 
00265             // The next three inits must be performed in this order
00266 #endif
00267             Unit::Init() &&                     // init the unit class and default units
00268             DocUnitList::Init() &&              // Init the doc unit list system
00269             DimScale::Init()  &&                    // Init the dimension scaling system
00270             OpToolSelect::Init() &&             // Register Tool Selection operation
00271 
00272 
00273 PORTNOTE("other","Removed even more initialization")
00274 #ifndef EXCLUDE_FROM_XARALX
00275             // Must always be initialised after all the tools have been
00276             ToolBarOp::Init() &&                // Make the bar of tool bitmaps
00277 #endif
00278             HotKey::Init() &&                   // Init hotkey system AFTER the tool op descs have been registered
00279 PORTNOTE("other","Removed even more initialization")
00280 #ifndef EXCLUDE_FROM_XARALX
00281             InitHotKeySystem() &&               // Initialise Hot Key system
00282             InitButtonBar() &&                  // Initialise ButtonBar
00283 #endif
00284             Progress::Init() &&                 // Initialise progress cursor/bar displays
00285 
00286             InternalClipboard::Initialise() &&  // Create the application's internal clipboard cache
00287                                                 // (this is a DOCUMENT, so must be left until fairly late)
00288 
00289             InitMenuSystem() &&                 // Initialise Menu system (keep very last)
00290                                                 // (esp. after all Register'ing has been done)
00291 
00292             AttrFillGeometry::Init() &&         // Initialise the fill editing operations
00293 
00294             EPSFilter::InitPrefs() &&           // Initialise default font mappings and
00295                                                 // EPS export prefs
00296 #ifndef DISABLE_TEXT_RENDERING
00297             FontCache::Init() &&
00298 #endif
00299             TunedMemory::Init() &&              // declare prefs for the memory manager
00300 
00301             OILRuler::Init() &&                 // set the ruler widths depending on .ini font settings
00302 
00303 #ifndef EXCLUDE_FROM_XARALX
00304             InitRegistry() &&                   // register us with the shell etc
00305             InitAppState()  &&                  // get workspace prefs
00306 #endif
00307             SelMediaDlg::Init() &&
00308             TRUE
00309             );
00310 }

BOOL InitPreTools  ) 
 

Definition at line 137 of file main1.cpp.

00138 {
00139     return
00140     (
00141            InitMaths()                  // Init Maths class
00142         && InitHandles()                // Init Handles Manager
00143         && InitMemory()                 // Init Memory Manager
00144         && CursorStack::Init()          // Must come before tool initialisation.
00145 PORTNOTE("other","Removed BFX")
00146 #if !defined(EXCLUDE_BFX)
00147         && BitmapEffectBase::Init()     // must be before anything using this subsystem
00148 #endif
00149         && Module::InitModules()
00150         && Layer::Init()                // Init the layer system
00151         && Operation::Initialise()      // Init the operations system
00152 PORTNOTE("other","Removed PluginOILFilter, various Op initializers, Layer system, operation system, dibutils, namingsystem usage")
00153 #ifndef STANDALONE
00154         && OpDeletePoints::Init()       // Deletes selected points
00155         && OpBreakAtPoints::Init()      // Init the break at points operator
00156         && OpSmoothSelection::Init()    // Init the smooth selection operator
00157         && OpDragOrigin::Init()         // Init the ability to drag origin blobs
00158 #endif
00159 #ifndef EXCLUDE_FROM_XARALX
00160 #ifndef STANDALONE
00161         && DIBUtil::Init()              // Init the dibutil stuff (here as needs prefs set up)
00162         && InitNamingSystem()           // must be before tool info-bars are loaded
00163 #endif
00164         && PluginOILFilter::AutoRegisterFilters()
00165 #endif
00166         && StringVar::Init()
00167     );
00168 }


Generated on Sat Nov 10 03:49:14 2007 for Camelot by  doxygen 1.4.4