XPFCBitmap Class Reference

This is the class for Bitmap capabilities. More...

#include <xpfcaps.h>

Inheritance diagram for XPFCBitmap:

XPFCComplexClass XPFCapability List of all members.

Public Member Functions

 XPFCBitmap (XPFConvertType ConvertType, XPFBOOL bComplex, XPFBOOL bContone)
virtual ~XPFCBitmap ()

Protected Member Functions

virtual BOOL DoesNodeMatch (Node *pNode)

Protected Attributes

XPFBOOL m_bComplex
XPFBOOL m_bContone

Private Member Functions

 CC_DECLARE_MEMDUMP (XPFCBitmap)

Detailed Description

This is the class for Bitmap capabilities.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/01/05

Definition at line 649 of file xpfcaps.h.


Constructor & Destructor Documentation

XPFCBitmap::XPFCBitmap XPFConvertType  ConvertType,
XPFBOOL  bComplex,
XPFBOOL  bContone
[inline]
 

Definition at line 655 of file xpfcaps.h.

00656         : XPFCComplexClass(CC_RUNTIME_CLASS(NodeBitmap), ConvertType)
00657     {
00658         m_bComplex = bComplex;
00659         m_bContone = bContone;
00660     }

virtual XPFCBitmap::~XPFCBitmap  )  [inline, virtual]
 

Definition at line 661 of file xpfcaps.h.

00662     {
00663     }


Member Function Documentation

XPFCBitmap::CC_DECLARE_MEMDUMP XPFCBitmap   )  [private]
 

BOOL XPFCBitmap::DoesNodeMatch Node pNode  )  [protected, virtual]
 

Reimplemented from XPFCComplexClass.

Definition at line 612 of file xpfcaps.cpp.

00613 {
00614     // If we aren't the correct type of node then return
00615     if (!XPFCComplexClass::DoesNodeMatch(pNode))
00616         return(FALSE);
00617 
00618     NodeBitmap* pBitmap = (NodeBitmap*)pNode;
00619 
00620     // Now test the property attributes
00621     if (m_bComplex != XPFB_UNKNOWN)
00622     {
00623 //      if (CXaraFileRegularShape::IsSimple(pBitmap) == m_bComplex)
00624             return(FALSE);
00625     }
00626 
00627     if (m_bContone != XPFB_UNKNOWN)
00628     {
00629         BOOL bContone = (pBitmap->GetStartColour() != NULL) || (pBitmap->GetEndColour() != NULL);
00630         if (m_bContone != bContone)
00631             return(FALSE);
00632     }
00633 
00634     return(TRUE);
00635 }


Member Data Documentation

XPFBOOL XPFCBitmap::m_bComplex [protected]
 

Definition at line 669 of file xpfcaps.h.

XPFBOOL XPFCBitmap::m_bContone [protected]
 

Definition at line 670 of file xpfcaps.h.


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