#include <xpfcaps.h>
Inheritance diagram for XPFCLayer:
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) |
Definition at line 310 of file xpfcaps.h.
|
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 }
|
|
Definition at line 334 of file xpfcaps.h.
|
|
|
|
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 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|