CamelotNULLNativeFilter Class Reference

This is a dummy filter that is used to calculate the size of the file that will be exported. More...

#include <native.h>

Inheritance diagram for CamelotNULLNativeFilter:

CamelotNativeFilter BaseCamelotFilter VectorFilter Filter ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 CamelotNULLNativeFilter (BaseCamelotFilter *pParentFilter, Document *pDocument)
 The default constructor.
virtual void AddNodeGroupRefToList (Node *pNode, NodeGroup *pGroup)
 Adds a text story group reference to the listFinds the group associated with the text storyFinds the text story associated with the groupAdds a node/group reference to the list.
virtual NodeGroupFindGroupForThisNode (Node *pNode)
 Finds the group associated with the node.
virtual void AddTagDescription (UINT32 Tag, UINT32 ID)
 Adds the description for the given tag export.

Protected Member Functions

CXaraFileCreateCXaraFile ()
 This version creates a NULLXaraFile object that doesn't actually import or export any bytes.

Private Member Functions

 CC_DECLARE_DYNAMIC (CamelotNULLNativeFilter)

Private Attributes

BaseCamelotFilterpParentFilter

Detailed Description

This is a dummy filter that is used to calculate the size of the file that will be exported.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
4/6/96
It's like a NULL byte sink, where no bytes are actually outputted anywhere

Definition at line 193 of file native.h.


Constructor & Destructor Documentation

CamelotNULLNativeFilter::CamelotNULLNativeFilter BaseCamelotFilter pThisParentFilter,
Document pDoc
 

The default constructor.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
24/7/96
Parameters:
pThisParentFilter = ptr to the filter that created this NULL filter [INPUTS] pDoc = ptr to the source doc

Definition at line 532 of file native.cpp.

00533 {
00534     pParentFilter = pThisParentFilter;
00535 
00536     TheDocument = pDoc;
00537     pTheSpread = GetFirstSpread(pDoc);
00538     ERROR3IF(pTheSpread == NULL, "BaseCamelotFilter::DoExport no spread to export");
00539 }


Member Function Documentation

void CamelotNULLNativeFilter::AddNodeGroupRefToList Node pNode,
NodeGroup pGroup
[virtual]
 

Adds a text story group reference to the listFinds the group associated with the text storyFinds the text story associated with the groupAdds a node/group reference to the list.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
29/1/97
Parameters:
pNode = ptr to a node in the tree [INPUTS] pGroup = ptr to a group of paths that represent the node, which is not linked into the tree
Returns:
-
WEBSTER - markn 29/1/97 Part of the general form of the system used to convert text to outlines in v1.5

See also:
BaseCamelotFilter::PrepareToImport; BaseCamelotFilter::DoImport Scope: Protected

Reimplemented from BaseCamelotFilter.

Definition at line 591 of file native.cpp.

00592 {
00593     if (pParentFilter != NULL)
00594         pParentFilter->AddNodeGroupRefToList(pNode,pGroup);
00595 }

void CamelotNULLNativeFilter::AddTagDescription UINT32  Tag,
UINT32  ID
[virtual]
 

Adds the description for the given tag export.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/2/97
Parameters:
Tag = tag of the record you're describing [INPUTS] ID = string ID of the resourced description text
Returns:
-
WEBSTER - markn 11/2/97

See also:
BaseCamelotFilter::PrepareToImport; BaseCamelotFilter::DoImport Scope: Protected

Reimplemented from BaseCamelotFilter.

Definition at line 608 of file native.cpp.

00609 {
00610     if (pParentFilter != NULL)
00611         pParentFilter->AddTagDescription(Tag,ID);
00612 }

CamelotNULLNativeFilter::CC_DECLARE_DYNAMIC CamelotNULLNativeFilter   )  [private]
 

CXaraFile * CamelotNULLNativeFilter::CreateCXaraFile  )  [protected, virtual]
 

This version creates a NULLXaraFile object that doesn't actually import or export any bytes.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
4/6/96
Parameters:
- [INPUTS]
Returns:
ptr to a CXaraFile object that can be used for import or export NULL if there's an error

Reimplemented from BaseCamelotFilter.

Definition at line 555 of file native.cpp.

00556 {
00557     CXaraFile* pCXaraFile = new NULLXaraFile;
00558 
00559     return pCXaraFile;
00560 }

NodeGroup * CamelotNULLNativeFilter::FindGroupForThisNode Node pNode  )  [virtual]
 

Finds the group associated with the node.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
29/1/97
Parameters:
pNode = ptr to a node [INPUTS]
Returns:
ptr to a group that's associated with the node NULL is returned if the group could not be found
WEBSTER - markn 29/1/97 Part of the general form of the system used to convert text to outlines in v1.5

See also:
BaseCamelotFilter::PrepareToImport; BaseCamelotFilter::DoImport Scope: Protected

Reimplemented from BaseCamelotFilter.

Definition at line 598 of file native.cpp.

00599 {
00600     if (pParentFilter != NULL)
00601         return pParentFilter->FindGroupForThisNode(pNode);
00602 
00603     return NULL;
00604 }


Member Data Documentation

BaseCamelotFilter* CamelotNULLNativeFilter::pParentFilter [private]
 

Definition at line 222 of file native.h.


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