CamelotNULLWebFilter Class Reference

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

#include <webfiltr.h>

Inheritance diagram for CamelotNULLWebFilter:

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

Public Member Functions

 CamelotNULLWebFilter (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.
virtual BOOL ShouldExportHTMLTag ()
 Public access to the HTML to clipboard.
virtual void ExportHTMLTag ()

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 (CamelotNULLWebFilter)

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 186 of file webfiltr.h.


Constructor & Destructor Documentation

CamelotNULLWebFilter::CamelotNULLWebFilter 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 501 of file webfiltr.cpp.

00502 {
00503     pParentFilter = pThisParentFilter;
00504 
00505     TheDocument = pDoc;
00506     pTheSpread = GetFirstSpread(pDoc);
00507     ERROR3IF(pTheSpread == NULL,"BaseCamelotFilter::DoExport no spread to export");
00508 }


Member Function Documentation

void CamelotNULLWebFilter::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 531 of file webfiltr.cpp.

00532 {
00533     if (pParentFilter != NULL)
00534         pParentFilter->AddNodeGroupRefToList(pNode,pGroup);
00535 }

void CamelotNULLWebFilter::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 548 of file webfiltr.cpp.

00549 {
00550     if (pParentFilter != NULL)
00551         pParentFilter->AddTagDescription(Tag,ID);
00552 }

CamelotNULLWebFilter::CC_DECLARE_DYNAMIC CamelotNULLWebFilter   )  [private]
 

CXaraFile * CamelotNULLWebFilter::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 524 of file webfiltr.cpp.

00525 {
00526     CXaraFile* pCXaraFile = new NULLXaraFile;
00527 
00528     return pCXaraFile;
00529 }

virtual void CamelotNULLWebFilter::ExportHTMLTag  )  [inline, virtual]
 

Reimplemented from Filter.

Definition at line 211 of file webfiltr.h.

00212     {
00213     }

NodeGroup * CamelotNULLWebFilter::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 538 of file webfiltr.cpp.

00539 {
00540     if (pParentFilter != NULL)
00541         return pParentFilter->FindGroupForThisNode(pNode);
00542 
00543     return NULL;
00544 }

virtual BOOL CamelotNULLWebFilter::ShouldExportHTMLTag  )  [inline, virtual]
 

Public access to the HTML to clipboard.

Author:
Graham_Walmsley (Xara Group Ltd) <camelotdev@xara.com>
Date:
21/5/97
Parameters:
- [INPUTS]
Returns:
The current state of the HTMLToClipboard

Reimplemented from CamelotWebFilter.

Definition at line 206 of file webfiltr.h.

00207     {
00208         return FALSE;
00209     }


Member Data Documentation

BaseCamelotFilter* CamelotNULLWebFilter::pParentFilter [private]
 

Definition at line 219 of file webfiltr.h.


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