AvailablePropertiesList Class Reference

Provides a visible list of template handlers. More...

Inheritance diagram for AvailablePropertiesList:

VisibleListWithEditableEntries VisibleList UserInterface Notifier List of all members.

Public Member Functions

BOOL AddFromTemplateHandler (const WizOp &Handler)
 Adds a template handler to the list (which is shown in the dialog as "Available Properties".
BOOL AddStyle (const WizOpStyle &NewStyle)
 Adds a WizOpStyle to this list (which is shown in the dialog as "Available Properties".
BOOL AddTemplateHandlers (const WizOps &Handlers)
 Adds a template handler to the list (which is shown in the dialog as "Available Properties".
BOOL AddStyles (const WizOpStyles &Styles)
 Adds the given WizOpStyles to this list. Hence, we can build our list of "Available Properties" to include the WizOpStyle's in the selected document.

Private Member Functions

 CC_DECLARE_MEMDUMP (AvailablePropertiesList)

Detailed Description

Provides a visible list of template handlers.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/10/96

Definition at line 330 of file tmpltdlg.cpp.


Member Function Documentation

BOOL AvailablePropertiesList::AddFromTemplateHandler const WizOp Handler  ) 
 

Adds a template handler to the list (which is shown in the dialog as "Available Properties".

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97

Definition at line 1166 of file tmpltdlg.cpp.

01167 {
01168     BOOL Success = TRUE;
01169 
01170     VisibleTemplateHandler* pNewEntry = new VisibleTemplateHandler(Handler);
01171     Success = (pNewEntry != NULL);
01172 
01173     if (Success)
01174     {
01175         Success = InsertEntry(*pNewEntry);
01176     }
01177 
01178     if (!Success)
01179     {
01180         delete pNewEntry;
01181         pNewEntry = NULL;
01182     }
01183 
01184     return Success;
01185 }

BOOL AvailablePropertiesList::AddStyle const WizOpStyle NewStyle  ) 
 

Adds a WizOpStyle to this list (which is shown in the dialog as "Available Properties".

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97

Definition at line 1226 of file tmpltdlg.cpp.

01227 {
01228     BOOL Ok = TRUE;
01229 
01230     VisibleWizOpStyle* pNewEntry = new VisibleWizOpStyle(NewStyle);
01231     Ok = (pNewEntry != NULL);
01232 
01233     if (Ok)
01234     {
01235         Ok = InsertEntry(*pNewEntry);
01236     }
01237 
01238     if (!Ok)
01239     {
01240         delete pNewEntry;
01241         pNewEntry = NULL;
01242     }
01243 
01244     return Ok;
01245 }

BOOL AvailablePropertiesList::AddStyles const WizOpStyles Styles  ) 
 

Adds the given WizOpStyles to this list. Hence, we can build our list of "Available Properties" to include the WizOpStyle's in the selected document.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97

Definition at line 1260 of file tmpltdlg.cpp.

01261 {
01262     BOOL Ok = TRUE;
01263 
01264     StyleIterator Iterator = Styles.Begin();
01265     while (Iterator != Styles.End() && Ok)
01266     {
01267         Ok = AddStyle((WizOpStyle&)*Iterator);
01268 
01269         ++Iterator;
01270     }
01271 
01272     return Ok;
01273 }

BOOL AvailablePropertiesList::AddTemplateHandlers const WizOps Handlers  ) 
 

Adds a template handler to the list (which is shown in the dialog as "Available Properties".

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97

Definition at line 1199 of file tmpltdlg.cpp.

01200 {
01201     BOOL Success = TRUE;
01202 
01203     WizOp* pHandler = Handlers.GetFirstWizOp();
01204     while (pHandler != NULL && Success)
01205     {
01206         Success = AddFromTemplateHandler(*pHandler);
01207 
01208         pHandler = Handlers.GetNextWizOp(pHandler);
01209     }
01210 
01211     return Success;
01212 }

AvailablePropertiesList::CC_DECLARE_MEMDUMP AvailablePropertiesList   )  [private]
 


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 03:50:46 2007 for Camelot by  doxygen 1.4.4