XPFCLayer Class Reference

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

#include <xpfcaps.h>

Inheritance diagram for XPFCLayer:

XPFCComplexClass XPFCapability List of all members.

Public Member Functions

 XPFCLayer (XPFConvertType ConvertType, XPFBOOL bVisible, XPFBOOL bLocked, XPFBOOL bPrintable, XPFBOOL bActive, XPFBOOL bBackground, XPFBOOL bGuide, XPFProp ContentOnly)
virtual ~XPFCLayer ()

Protected Member Functions

virtual BOOL DoesNodeMatch (Node *pNode)

Protected Attributes

XPFBOOL m_bVisible
XPFBOOL m_bLocked
XPFBOOL m_bPrintable
XPFBOOL m_bActive
XPFBOOL m_bBackground
XPFBOOL m_bGuide
XPFProp m_ContentOnly

Private Member Functions

 CC_DECLARE_MEMDUMP (XPFCLayer)

Detailed Description

This is the class for layer capabilities.

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

Definition at line 310 of file xpfcaps.h.


Constructor & Destructor Documentation

XPFCLayer::XPFCLayer XPFConvertType  ConvertType,
XPFBOOL  bVisible,
XPFBOOL  bLocked,
XPFBOOL  bPrintable,
XPFBOOL  bActive,
XPFBOOL  bBackground,
XPFBOOL  bGuide,
XPFProp  ContentOnly
[inline]
 

Definition at line 316 of file xpfcaps.h.

00324         : XPFCComplexClass(CC_RUNTIME_CLASS(Layer), ConvertType)
00325     {
00326         m_bVisible = bVisible;
00327         m_bLocked = bLocked;
00328         m_bPrintable = bPrintable;
00329         m_bActive = bActive;
00330         m_bBackground = bBackground;
00331         m_bGuide = bGuide;
00332         m_ContentOnly = ContentOnly;
00333     }

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

Definition at line 334 of file xpfcaps.h.

00335     {
00336     }


Member Function Documentation

XPFCLayer::CC_DECLARE_MEMDUMP XPFCLayer   )  [private]
 

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

Reimplemented from XPFCComplexClass.

Definition at line 347 of file xpfcaps.cpp.

00348 {
00349     // If we aren't the correct type of node then return
00350     if (!XPFCComplexClass::DoesNodeMatch(pNode))
00351         return(FALSE);
00352 
00353     Layer* pLayer = (Layer*)pNode;
00354 
00355     // Now test the property attributes
00356     if (m_bVisible != XPFB_UNKNOWN && pLayer->IsVisible() != m_bVisible)
00357         return(FALSE);
00358 
00359     if (m_bLocked != XPFB_UNKNOWN && pLayer->IsLocked() != m_bLocked)
00360         return(FALSE);
00361 
00362     if (m_bPrintable != XPFB_UNKNOWN && pLayer->IsPrintable() != m_bPrintable)
00363         return(FALSE);
00364     
00365     if (m_bActive != XPFB_UNKNOWN && pLayer->IsActive() != m_bActive)
00366         return(FALSE);
00367 
00368     if (m_bBackground != XPFB_UNKNOWN && pLayer->IsBackground() != m_bBackground)
00369         return(FALSE);
00370 
00371     if (m_bGuide != XPFB_UNKNOWN && pLayer->IsGuide() != m_bGuide)
00372         return(FALSE);
00373 
00374     if (m_ContentOnly != XPFP_UNKNOWN)
00375     {
00376         // Currently we only support text and plaintext
00377         // Loop through subtree checking all objects
00378         // If not a text story then return false
00379         // If doing plaintext then if not plain return false
00380 
00381         if (!AreAllChildrenText(pNode, (m_ContentOnly == XPFP_CONTENTONLY_PLAINTEXT)))
00382             return(FALSE);
00383     }
00384 
00385     return(TRUE);
00386 }


Member Data Documentation

XPFBOOL XPFCLayer::m_bActive [protected]
 

Definition at line 345 of file xpfcaps.h.

XPFBOOL XPFCLayer::m_bBackground [protected]
 

Definition at line 346 of file xpfcaps.h.

XPFBOOL XPFCLayer::m_bGuide [protected]
 

Definition at line 347 of file xpfcaps.h.

XPFBOOL XPFCLayer::m_bLocked [protected]
 

Definition at line 343 of file xpfcaps.h.

XPFBOOL XPFCLayer::m_bPrintable [protected]
 

Definition at line 344 of file xpfcaps.h.

XPFBOOL XPFCLayer::m_bVisible [protected]
 

Definition at line 342 of file xpfcaps.h.

XPFProp XPFCLayer::m_ContentOnly [protected]
 

Definition at line 348 of file xpfcaps.h.


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