ExportColourList Class Reference

Holds a list of colours that have been exported when we are saving a Version 2 Native Camelot document out to file. More...

#include <expcol.h>

Inheritance diagram for ExportColourList:

List CCObject SimpleCCObject List of all members.

Public Member Functions

 ~ExportColourList ()
 Destroy the list of exported colours.
ExportColourAddColour (IndexedColour *pCol, INT32 RecordNumber)
 Add a new colour to the list of exported colours.
ExportColourAddColour (PColourRGBT *pNewRGBCol, INT32 RecordNumber)
 Add a new colour to the list of exported colours.

Detailed Description

Holds a list of colours that have been exported when we are saving a Version 2 Native Camelot document out to file.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/5/96
See also:
ExportColour;

Definition at line 160 of file expcol.h.


Constructor & Destructor Documentation

ExportColourList::~ExportColourList  ) 
 

Destroy the list of exported colours.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/5/96
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-
See also:
ExportedColours

Definition at line 176 of file expcol.cpp.

00177 {
00178     // Destroy the list of colours which we may have
00179     //ExportColour* pExportedColour = (ExportColour *)GetHead();
00180     //while (pExportedColour)
00181     //{
00182     //  delete pExportedColour;
00183 
00184         // Try the next colour in the list
00185 //      pExportedColour = (ExportColour *)Colours.GetNext(pExportedColour);
00186 //  }
00187     
00188     DeleteAll();
00189 }


Member Function Documentation

ExportColour * ExportColourList::AddColour PColourRGBT pNewRGBCol,
INT32  NewRecordNumber
 

Add a new colour to the list of exported colours.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
3/6/96
Parameters:
pNewRGBCol - the simple RGB colour to put in the list. [INPUTS] RecordNumber - the number of the record that this colour definition has been saved in.
Returns:
Pointer to the newly added colour, or NULL if out of memory => ERROR1

Errors: Out of memory => ERROR1

See also:
ExportColour

Definition at line 238 of file expcol.cpp.

00239 {
00240     ExportColour *pNewCol = new ExportColour(pNewRGBCol, NewRecordNumber);
00241 
00242     // Check for out of memory
00243     if (pNewCol == NULL)
00244         return NULL;
00245 
00246     // Add to the list and return success
00247     AddTail(pNewCol);
00248     return pNewCol;
00249 }

ExportColour * ExportColourList::AddColour IndexedColour pCol,
INT32  NewRecordNumber
 

Add a new colour to the list of exported colours.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/5/96
Parameters:
pNewCol - the colour to put in the list. [INPUTS] RecordNumber - the number of the record that this colour definition has been saved in.
Returns:
Pointer to the newly added colour, or NULL if out of memory => ERROR1

Errors: Out of memory => ERROR1

See also:
ExportColour

Definition at line 208 of file expcol.cpp.

00209 {
00210     ExportColour *pNewCol = new ExportColour(pCol, NewRecordNumber);
00211 
00212     // Check for out of memory
00213     if (pNewCol == NULL)
00214         return NULL;
00215 
00216     // Add to the list and return success
00217     AddTail(pNewCol);
00218     return pNewCol;
00219 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:54:05 2007 for Camelot by  doxygen 1.4.4