ImportBitmapList 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 <impbmp.h>

Inheritance diagram for ImportBitmapList:

List CCObject SimpleCCObject List of all members.

Public Member Functions

 ~ImportBitmapList ()
 Destroy the list of exported Bitmaps.
ImportBitmapAddBitmap (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:
ImportBitmap;

Definition at line 152 of file impbmp.h.


Constructor & Destructor Documentation

ImportBitmapList::~ImportBitmapList  ) 
 

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:
ImportedBitmaps

Definition at line 153 of file impbmp.cpp.

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


Member Function Documentation

ImportBitmap * ImportBitmapList::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:
ImportBitmap

Definition at line 185 of file impbmp.cpp.

00186 {
00187     ImportBitmap *pNewBmp = new ImportBitmap(pBmp, NewRecordNumber);
00188 
00189     // Check for out of memory
00190     if (pNewBmp == NULL)
00191         return NULL;
00192 
00193     // Add to the list and return success
00194     AddTail(pNewBmp);
00195     return pNewBmp;
00196 }


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