PNGExportOptions Class Reference

Base class for storing information about the bitmap we're exporting. More...

#include <pngfiltr.h>

Inheritance diagram for PNGExportOptions:

MaskedFilterExportOptions BitmapExportOptions OpParam CCObject SimpleCCObject List of all members.

Public Member Functions

 PNGExportOptions (const FilterType FilterID, const StringBase *pFilterName)
 Default constructor for a PNGExportOptions object to provide PNG export options.
 PNGExportOptions ()
virtual BOOL GetSupportsImageMap ()
virtual BOOL RetrieveDefaults ()
 See BitmapExportOptions for interface details Notes: Gets GIF specific preferences.
virtual BOOL SetAsDefaults () const
 Provides additional implementation to set PNG specific options as defaults See Also: BitmapExportOptions::SetAsDefaults().
virtual UINT32 GetFilterNameStrID ()

Static Public Member Functions

static BOOL Declare ()
 To declare preferences associated with these export options.

Static Protected Attributes

static UINT32 g_CompactedFlagsForDefaults = 0

Detailed Description

Base class for storing information about the bitmap we're exporting.

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

Definition at line 120 of file pngfiltr.h.


Constructor & Destructor Documentation

PNGExportOptions::PNGExportOptions const FilterType  FilterID,
const StringBase pFilterName
 

Default constructor for a PNGExportOptions object to provide PNG export options.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
29/10/96

Definition at line 170 of file pngfiltr.cpp.

00170                                                                                            :
00171                         MaskedFilterExportOptions(_R(IDD_EXPORTBMPOPTS), FilterID, pFilterName)
00172 {
00173     // just us rats in here
00174 }

PNGExportOptions::PNGExportOptions  )  [inline]
 

Definition at line 128 of file pngfiltr.h.

00128 {};


Member Function Documentation

BOOL PNGExportOptions::Declare  )  [static]
 

To declare preferences associated with these export options.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com> (from Neville)
Date:
29/10/96
Returns:
TRUE if successfully declared preferences FALSE otherwise

Reimplemented from MaskedFilterExportOptions.

Definition at line 151 of file pngfiltr.cpp.

00152 {
00153     if (Camelot.DeclareSection(_T("Filters"), 10))
00154         Camelot.DeclarePref( NULL, _T("ExportPNGtype"), &g_CompactedFlagsForDefaults, 0, 3 );
00155 
00156     // All ok
00157     return TRUE;
00158 }

virtual UINT32 PNGExportOptions::GetFilterNameStrID  )  [inline, virtual]
 

Reimplemented from BitmapExportOptions.

Definition at line 135 of file pngfiltr.h.

00135 { return _R(IDS_FILTERNAME_PNG);}

virtual BOOL PNGExportOptions::GetSupportsImageMap  )  [inline, virtual]
 

Reimplemented from BitmapExportOptions.

Definition at line 130 of file pngfiltr.h.

00130 { return TRUE; }

BOOL PNGExportOptions::RetrieveDefaults  )  [virtual]
 

See BitmapExportOptions for interface details Notes: Gets GIF specific preferences.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
29/10/96

Reimplemented from MaskedFilterExportOptions.

Definition at line 186 of file pngfiltr.cpp.

00187 {
00188     if (!MaskedFilterExportOptions::RetrieveDefaults())
00189         return FALSE;
00190 
00191     SetMakeInterlaced(g_CompactedFlagsForDefaults & 1);
00192     return TRUE;
00193 }

BOOL PNGExportOptions::SetAsDefaults  )  const [virtual]
 

Provides additional implementation to set PNG specific options as defaults See Also: BitmapExportOptions::SetAsDefaults().

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
29/10/96

Reimplemented from MaskedFilterExportOptions.

Definition at line 205 of file pngfiltr.cpp.

00206 {
00207     if (!MaskedFilterExportOptions::SetAsDefaults())
00208         return FALSE;
00209 
00210     g_CompactedFlagsForDefaults = WantTransparent() ? 2 : 0;
00211     g_CompactedFlagsForDefaults |= WantInterlaced() ? 1 : 0;
00212 
00213     return TRUE;
00214 }


Member Data Documentation

UINT32 PNGExportOptions::g_CompactedFlagsForDefaults = 0 [static, protected]
 

Definition at line 140 of file pngfiltr.h.


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