ExportBitmapList Class Reference

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

#include <expbmp.h>

Inheritance diagram for ExportBitmapList:

List CCObject SimpleCCObject List of all members.

Public Member Functions

 ~ExportBitmapList ()
 Destroy the list of exported Bitmaps.
ExportBitmapAddBitmap (KernelBitmap *pBmp, INT32 RecordNumber)
 Add a new Bitmap to the list of exported Bitmaps.

Detailed Description

Holds a list of Bitmaps 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:
11/6/96
See also:
ExportBitmap;

Definition at line 152 of file expbmp.h.


Constructor & Destructor Documentation

ExportBitmapList::~ExportBitmapList  ) 
 

Destroy the list of exported Bitmaps.

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

Definition at line 154 of file expbmp.cpp.

00155 {
00156     // Destroy the list of Bitmaps which we may have
00157     //ExportBitmap* pExportedBitmap = (ExportBitmap *)GetHead();
00158     //while (pExportedBitmap)
00159     //{
00160     //  delete pExportedBitmap;
00161 
00162         // Try the next Bitmap in the list
00163 //      pExportedBitmap = (ExportBitmap *)Bitmaps.GetNext(pExportedBitmap);
00164 //  }
00165     
00166     DeleteAll();
00167 }


Member Function Documentation

ExportBitmap * ExportBitmapList::AddBitmap KernelBitmap pBmp,
INT32  NewRecordNumber
 

Add a new Bitmap to the list of exported Bitmaps.

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

Errors: Out of memory => ERROR1

See also:
ExportBitmap

Definition at line 186 of file expbmp.cpp.

00187 {
00188     ERROR2IF(pBmp->HasBeenDeleted(), NULL, "Trying to add a deleted bitmap to the export list");
00189 
00190     ExportBitmap *pNewBmp = new ExportBitmap(pBmp, NewRecordNumber);
00191 
00192     // Check for out of memory
00193     if (pNewBmp == NULL)
00194         return NULL;
00195 
00196     // Add to the list and return success
00197     AddTail(pNewBmp);
00198     return pNewBmp;
00199 }


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