PaletteFilterFamily Class Reference

A filter for all palette files. More...

#include <filters.h>

Inheritance diagram for PaletteFilterFamily:

FilterFamily Filter ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 PaletteFilterFamily ()
 Sets up the filter object to interface to all the installed filters that decode palette file formats.
BOOL Init ()
 Set up a filter object. This creates the associated OILFilter object, and sets up the filter ID number and strings.

Private Member Functions

 CC_DECLARE_DYNAMIC (PaletteFilterFamily)

Detailed Description

A filter for all palette files.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/4/96
See also:
FilterFamily

Definition at line 1169 of file filters.h.


Constructor & Destructor Documentation

PaletteFilterFamily::PaletteFilterFamily  ) 
 

Sets up the filter object to interface to all the installed filters that decode palette file formats.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/4/96

Definition at line 5422 of file filters.cpp.

05423 {
05424     PORTNOTETRACE("filter","PaletteFilterFamily::PaletteFilterFamily - do nothing");
05425 #ifndef EXCLUDE_FROM_XARALX
05426     pFilterType = CC_RUNTIME_CLASS(PaletteFilter);
05427 #endif
05428 
05429 }


Member Function Documentation

PaletteFilterFamily::CC_DECLARE_DYNAMIC PaletteFilterFamily   )  [private]
 

BOOL PaletteFilterFamily::Init void   )  [virtual]
 

Set up a filter object. This creates the associated OILFilter object, and sets up the filter ID number and strings.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/4/96
Returns:
TRUE if initalised ok; FALSE if error occurred.

Errors: Out of memory.

See also:
FilterFamily; OILFilter

Implements Filter.

Definition at line 5443 of file filters.cpp.

05444 {
05445 PORTNOTE("filter","Removed OILFilter usage")
05446 #ifndef EXCLUDE_FROM_XARALX
05447     // Get the OILFilter object
05448     pOILFilter = new OILFilterFamily(this, _R(IDT_FILTERNAME_PALETTE));
05449     if (pOILFilter == NULL)
05450         return FALSE;
05451 #endif
05452     // Load the description strings
05453     FilterName.Load(_R(IDT_FILTERNAME_PALETTE));
05454     FilterInfo.Load(_R(IDT_FILTERINFO_PALETTE));
05455     FilterID = FILTERID_PALETTE;
05456 
05457     // All ok
05458     return TRUE;
05459 }


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