GenericFilter Class Reference

A filter for all file types. This is the default filter that the user can import with. More...

#include <filters.h>

Inheritance diagram for GenericFilter:

FilterFamily Filter ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 GenericFilter ()
 Sets up the generic filter object to interface to all the installed filters.
BOOL Init ()
 Set up a generic filter object. This creates the associated OILFilter object, and sets up the filter ID number and strings.

Private Member Functions

 CC_DECLARE_DYNAMIC (GenericFilter)

Detailed Description

A filter for all file types. This is the default filter that the user can import with.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/07/94
See also:
FilterFamily

Definition at line 1051 of file filters.h.


Constructor & Destructor Documentation

GenericFilter::GenericFilter  ) 
 

Sets up the generic filter object to interface to all the installed filters.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/07/94

Definition at line 5188 of file filters.cpp.

05189 {
05190     // This is the generic filter, so we want *all* filters in it.
05191     pFilterType = CC_RUNTIME_CLASS(Filter);
05192 }


Member Function Documentation

GenericFilter::CC_DECLARE_DYNAMIC GenericFilter   )  [private]
 

BOOL GenericFilter::Init void   )  [virtual]
 

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

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/03/94
Returns:
TRUE if initalised ok; FALSE if error occurred.

Errors: Out of memory.

See also:
FilterFamily; OILFilter

Implements Filter.

Definition at line 5208 of file filters.cpp.

05209 {
05210     // Get the OILFilter object
05211     pOILFilter = new OILFilterFamily(this, _R(IDT_FILTERNAME_GENERIC));
05212     if (pOILFilter == NULL)
05213         return FALSE;
05214 
05215     // Load the description strings
05216     FilterName.Load(_R(IDT_GENERIC_FILTERNAME));
05217     FilterInfo.Load(_R(IDT_GENERIC_FILTERINFO));
05218     FilterID = FILTERID_GENERIC;
05219 
05220     // All ok
05221     return TRUE;
05222 }


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