CamelotRecordHandler Class Reference

This is the class that encapsulates a camelot-specific record handler in the new v2 format. More...

#include <cxfrech.h>

Inheritance diagram for CamelotRecordHandler:

CXaraFileRecordHandler ListItem CCObject SimpleCCObject BevelRecordHandler BitmapPropertiesRecordHandler BitmapRecordHandler BitmapSmoothingRecordHandler BlendRecordHandler BrushAttrRecordHandler ClipViewRecordHandler ColourRecordHandler CompressionRecordHandler ContourRecordHandler DocInfoRecordHandler DocumentRecordHandler ExportHintRecordHandler FeatherRecordHandler FillAttrRecordHandler FontDefRecordHandler GeneralAttrRecordHandler GeneralRecordHandler GroupRecordHandler ImagesettingAttrRecordHandler LineAttrRecordHandler LiveEffectRecordHandler MouldRecordHandler PathFlagsRecordHandler PathRecordHandler PrintingRecordHandler RegularShapeRecordHandler ShadowRecordHandler StandardDefaultRecordHandler StripSubTreeRecordHandler StrokeAttrRecordHandler TemplateAttrRecordHandler TextAttrRecordHandler TextObjRecordHandler UnitsRecordHandler ViewRecordHandler WizOpStyleRecordHandler WizOpStyleRefRecordHandler List of all members.

Public Member Functions

 CamelotRecordHandler ()
 This is the base tag description function. Record handler writers may as well update this func for new tags, but the func is virtual, so if you want to override it, feel free. This is the base class record description generator. Adds the Tag & Size items to the string, so derived classes should call the base class version first. Gathers basic information about the record, tag number, record number and record size and writes it to pStr.This reads data from the record, assuming that the record contains a standard path definition.This reads data from the record, assuming that the record contains a standard path definition in relative coord form.Creates a camelot record handler object. These are used by CXaraFile for reading the file. Handlers handle records as they are read from a file.
 ~CamelotRecordHandler ()
 Default destructor.
virtual BOOL IsCamelotHandler ()
virtual BOOL Init (BaseCamelotFilter *pBaseCamelotFilter)
 Initialises the handler.
BOOL GetDocColour (INT32 ColourRef, DocColour *pDocColour)
 This dereferences a colour ref value, and creates a DocColour from it. The resultant DocColour is put into pDocColour.
KernelBitmapGetReadBitmapReference (INT32 BitmapRef)
 This dereferences a bitmap ref value, and returns a pointer to a KernelBitmap from it. The resultant KernelBitmap can then be used by the caller e.g. in fills.
ColourListComponentGetColourDocComponent ()
BitmapListComponentGetBitmapDocComponent ()
UnitListComponentGetUnitDocComponent ()
DocInfoComponentGetDocInfoComponent ()
PrintComponentGetPrintComponent ()
FontComponentGetFontComponent ()
BOOL IsImporting ()
BOOL IsImportingAtPosition ()
BOOL InsertNode (Node *pNode)
BOOL IncInsertLevel ()
BOOL DecInsertLevel ()
NodeGetInsertContextNode ()
void SetInsertContextNode (Node *pNode)
void InsertNextNodeAsChild ()
void InsertNextNodeAsSibling ()
InsertTreeContextGetInsertContext (void)
void RestoreInsertContext (InsertTreeContext *pOldState)
DocumentGetLastDocumentInserted ()
ChapterGetLastChapterInserted ()
SpreadGetLastSpreadInserted ()
LayerGetLastLayerInserted ()
NodePathGetLastNodePathInserted ()
void SetLastDocumentInserted (Document *pNode)
void SetLastChapterInserted (Chapter *pNode)
void SetLastSpreadInserted (Spread *pNode)
void SetLastLayerInserted (Layer *pNode)
void SetLastNodePathInserted (NodePath *pNodePath)
LayerGetFirstImportedLayer ()
void SetFirstImportedLayer (Layer *pLayer)
UINT32 GetDocumentInsertedCount ()
UINT32 GetChapterInsertedCount ()
UINT32 GetSpreadInsertedCount ()
UINT32 GetLayerInsertedCount ()
UINT32 GetSetSentinelInsertedCount ()
void IncDocumentInsertedCount ()
void IncChapterInsertedCount ()
void IncSpreadInsertedCount ()
void IncLayerInsertedCount ()
void IncSetSentinelInsertedCount ()
BOOL AddTagDescription (TagDescriptionListItem *pItem)
TagDescriptionListItemGetTagDescription (UINT32 Tag)
BOOL UnrecognisedTag (UINT32 Tag)
BOOL SetDocumentNudgeSize (UINT32 newVal)
void AddAtomicTag (AtomicTagListItem *pItem)
void AddEssentialTag (EssentialTagListItem *pItem)
BOOL IsTagInAtomicList (UINT32 Tag)
BOOL IsTagInEssentialList (UINT32 Tag)
void AddPathRecordRefToList (NodePath *pNodePath, UINT32 RecordNumber)
UINT32 FindPathRecordRefRecordNumber (NodePath *pNodePath)
NodePathFindPathRecordRefPath (UINT32 RecordNumber)
DocumentGetDocument ()
SpreadGetSpread ()
void SetCoordOrigin (const DocCoord &Origin)
DocCoord GetCoordOrigin ()
void EndOfFile ()
void SetTotalNumBytesToRead (UINT32 s)
void IncProgressBarCount (UINT32 n)
void SetTotalProgressBarCount (UINT32 n)
BaseCamelotFilterGetBaseCamelotFilter ()
virtual BOOL SetPreCompression (UINT32 Flags)
virtual UINT32 GetPreCompression ()
virtual BOOL SetCompression (BOOL NewState)
 Function to turn Compression on or off on the underlying CCFile.
virtual BOOL IsStreamed (UINT32 Tag)
 Function to find out if the record is streamed or not.
virtual void SetImportFileType (char *pFileType)
virtual BOOL IsOpeningMinimalWebFormat ()

Protected Attributes

BaseCamelotFilterpBaseCamelotFilter

Private Member Functions

 CC_DECLARE_DYNAMIC (CamelotRecordHandler)

Detailed Description

This is the class that encapsulates a camelot-specific record handler in the new v2 format.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
29/5/96
It's main purpose is to make it easy for record handlers to access BaseCamelotFilter functions by providing mirror functions into the filter.

It also hides the fact that there is an underlying filter.

Definition at line 200 of file cxfrech.h.


Constructor & Destructor Documentation

CamelotRecordHandler::CamelotRecordHandler  ) 
 

This is the base tag description function. Record handler writers may as well update this func for new tags, but the func is virtual, so if you want to override it, feel free. This is the base class record description generator. Adds the Tag & Size items to the string, so derived classes should call the base class version first. Gathers basic information about the record, tag number, record number and record size and writes it to pStr.This reads data from the record, assuming that the record contains a standard path definition.This reads data from the record, assuming that the record contains a standard path definition in relative coord form.Creates a camelot record handler object. These are used by CXaraFile for reading the file. Handlers handle records as they are read from a file.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/5/96
Parameters:
- [INPUTS]
This is a special varient that contains Camelot-specific functionality

Returns:
Errors: -
See also:
Init()

Definition at line 917 of file cxfrech.cpp.

00918 {
00919 #if !defined(EXCLUDE_FROM_XARLIB)
00920     pBaseCamelotFilter = NULL;
00921 #else
00922     m_pCXFile = NULL;
00923 #endif
00924 }

CamelotRecordHandler::~CamelotRecordHandler  ) 
 

Default destructor.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/5/96
Returns:
Errors: -
See also:
-

Definition at line 938 of file cxfrech.cpp.

00939 {
00940 }


Member Function Documentation

void CamelotRecordHandler::AddAtomicTag AtomicTagListItem pItem  ) 
 

Definition at line 1479 of file cxfrech.cpp.

01480 {
01481 #if !defined(EXCLUDE_FROM_XARLIB)
01482     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01483     if (pBaseCamelotFilter != NULL)
01484         pBaseCamelotFilter->AddAtomicTag(pItem);
01485 #else
01486     ERROR3IF(m_pCXFile == NULL,"m_pCXFile is NULL");
01487     if (m_pCXFile != NULL)
01488         m_pCXFile->AddAtomicTag(pItem);
01489 #endif
01490 }

void CamelotRecordHandler::AddEssentialTag EssentialTagListItem pItem  ) 
 

Definition at line 1492 of file cxfrech.cpp.

01493 {
01494 #if !defined(EXCLUDE_FROM_XARLIB)
01495     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01496     if (pBaseCamelotFilter != NULL)
01497         pBaseCamelotFilter->AddEssentialTag(pItem);
01498 #else
01499     ERROR3IF(m_pCXFile == NULL,"m_pCXFile is NULL");
01500     if (m_pCXFile != NULL)
01501         m_pCXFile->AddEssentialTag(pItem);
01502 #endif
01503 }

void CamelotRecordHandler::AddPathRecordRefToList NodePath pNodePath,
UINT32  RecordNumber
 

Definition at line 1572 of file cxfrech.cpp.

01573 {
01574     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01575     if (pBaseCamelotFilter != NULL)
01576         pBaseCamelotFilter->AddPathRecordRefToList(pNodePath,RecordNumber);
01577 }

BOOL CamelotRecordHandler::AddTagDescription TagDescriptionListItem pItem  ) 
 

Definition at line 1458 of file cxfrech.cpp.

01459 {
01460     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01461     if (pBaseCamelotFilter != NULL)
01462         return pBaseCamelotFilter->AddTagDescription(pItem);
01463 
01464     return FALSE;
01465 }

CamelotRecordHandler::CC_DECLARE_DYNAMIC CamelotRecordHandler   )  [private]
 

BOOL CamelotRecordHandler::DecInsertLevel  ) 
 

Definition at line 1191 of file cxfrech.cpp.

01192 {
01193     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01194     if (pBaseCamelotFilter != NULL)
01195         return pBaseCamelotFilter->DecInsertLevel();
01196 
01197     return FALSE;
01198 }

void CamelotRecordHandler::EndOfFile  ) 
 

Definition at line 1154 of file cxfrech.cpp.

01155 {
01156     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01157     if (pBaseCamelotFilter != NULL)
01158         pBaseCamelotFilter->EndOfFile();
01159 }

NodePath * CamelotRecordHandler::FindPathRecordRefPath UINT32  RecordNumber  ) 
 

Definition at line 1588 of file cxfrech.cpp.

01589 {
01590     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01591     if (pBaseCamelotFilter != NULL)
01592         return pBaseCamelotFilter->FindPathRecordRefPath(RecordNumber);
01593 
01594     return NULL;
01595 }

UINT32 CamelotRecordHandler::FindPathRecordRefRecordNumber NodePath pNodePath  ) 
 

Definition at line 1579 of file cxfrech.cpp.

01580 {
01581     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01582     if (pBaseCamelotFilter != NULL)
01583         return pBaseCamelotFilter->FindPathRecordRefRecordNumber(pNodePath);
01584 
01585     return 0;
01586 }

BaseCamelotFilter* CamelotRecordHandler::GetBaseCamelotFilter  )  [inline]
 

Definition at line 306 of file cxfrech.h.

00306 { return pBaseCamelotFilter; }

BitmapListComponent * CamelotRecordHandler::GetBitmapDocComponent  ) 
 

Definition at line 1106 of file cxfrech.cpp.

01107 {
01108     ERROR2IF(pBaseCamelotFilter == NULL,FALSE,"pBaseCamelotFilter is NULL");
01109     return (pBaseCamelotFilter->GetBitmapDocComponent());
01110 }

UINT32 CamelotRecordHandler::GetChapterInsertedCount  ) 
 

Definition at line 1370 of file cxfrech.cpp.

01371 {
01372     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01373     if (pBaseCamelotFilter != NULL)
01374         return pBaseCamelotFilter->GetChapterInsertedCount();
01375 
01376     return 0;
01377 }

ColourListComponent * CamelotRecordHandler::GetColourDocComponent  ) 
 

Definition at line 1100 of file cxfrech.cpp.

01101 {
01102     ERROR2IF(pBaseCamelotFilter == NULL,FALSE,"pBaseCamelotFilter is NULL");
01103     return (pBaseCamelotFilter->GetColourDocComponent());
01104 }

DocCoord CamelotRecordHandler::GetCoordOrigin  ) 
 

Definition at line 1449 of file cxfrech.cpp.

01450 {
01451     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01452     if (pBaseCamelotFilter != NULL)
01453         return pBaseCamelotFilter->GetCoordOrigin();
01454 
01455     return DocCoord(0,0);
01456 }

BOOL CamelotRecordHandler::GetDocColour INT32  ColourRef,
DocColour pDocColour
 

This dereferences a colour ref value, and creates a DocColour from it. The resultant DocColour is put into pDocColour.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
31/5/96
Parameters:
ColourRef = a reference to a colour defined earlier in the file [INPUTS] pDocColour = ptr to a DocColour object
Returns:
TRUE if ok FALSE otherwise
The ColourRef value is typically found in records that define a colour or colours. It references a colour defined earlier in the file.
Returns:
Errors: -
See also:
-

Definition at line 1052 of file cxfrech.cpp.

01053 {
01054     ERROR2IF(pBaseCamelotFilter == NULL,FALSE,"pBaseCamelotFilter is NULL");
01055     ERROR2IF(pDocColour == NULL,FALSE,"pDocColour param is NULL");
01056 
01057     ColourListComponent* pColComp = pBaseCamelotFilter->GetColourDocComponent();
01058 
01059     ERROR2IF(pColComp == NULL,FALSE,"No colour component when getting a colour");
01060 
01061     return (pColComp->GetDocColour(ColourRef,pDocColour));
01062 }

DocInfoComponent * CamelotRecordHandler::GetDocInfoComponent  ) 
 

Definition at line 1118 of file cxfrech.cpp.

01119 {
01120     ERROR2IF(pBaseCamelotFilter == NULL,FALSE,"pBaseCamelotFilter is NULL");
01121     return (pBaseCamelotFilter->GetDocInfoComponent());
01122 }

Document * CamelotRecordHandler::GetDocument  ) 
 

Definition at line 1248 of file cxfrech.cpp.

01249 {
01250     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01251     if (pBaseCamelotFilter != NULL)
01252         return pBaseCamelotFilter->GetDocument();
01253 
01254     return NULL;
01255 }

UINT32 CamelotRecordHandler::GetDocumentInsertedCount  ) 
 

Definition at line 1361 of file cxfrech.cpp.

01362 {
01363     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01364     if (pBaseCamelotFilter != NULL)
01365         return pBaseCamelotFilter->GetDocumentInsertedCount();
01366 
01367     return 0;
01368 }

Layer * CamelotRecordHandler::GetFirstImportedLayer  ) 
 

Definition at line 1346 of file cxfrech.cpp.

01347 {
01348     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01349     if (pBaseCamelotFilter != NULL)
01350         return pBaseCamelotFilter->GetFirstImportedLayer();
01351     return NULL;
01352 }

FontComponent * CamelotRecordHandler::GetFontComponent  ) 
 

Definition at line 1130 of file cxfrech.cpp.

01131 {
01132     ERROR2IF(pBaseCamelotFilter == NULL,FALSE,"pBaseCamelotFilter is NULL");
01133     return (pBaseCamelotFilter->GetFontComponent());
01134 }

InsertTreeContext * CamelotRecordHandler::GetInsertContext void   ) 
 

Definition at line 1231 of file cxfrech.cpp.

01232 {
01233     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01234     if (pBaseCamelotFilter != NULL)
01235         return(pBaseCamelotFilter->GetInsertContext());
01236 
01237     return(NULL);
01238 }

Node * CamelotRecordHandler::GetInsertContextNode  ) 
 

Definition at line 1200 of file cxfrech.cpp.

01201 {
01202     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01203     if (pBaseCamelotFilter != NULL)
01204         return pBaseCamelotFilter->GetInsertContextNode();
01205 
01206     return NULL;
01207 }

Chapter * CamelotRecordHandler::GetLastChapterInserted  ) 
 

Definition at line 1275 of file cxfrech.cpp.

01276 {
01277     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01278     if (pBaseCamelotFilter != NULL)
01279         return pBaseCamelotFilter->GetLastChapterInserted();
01280 
01281     return NULL;
01282 }

Document * CamelotRecordHandler::GetLastDocumentInserted  ) 
 

Definition at line 1266 of file cxfrech.cpp.

01267 {
01268     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01269     if (pBaseCamelotFilter != NULL)
01270         return pBaseCamelotFilter->GetLastDocumentInserted();
01271 
01272     return NULL;
01273 }

Layer * CamelotRecordHandler::GetLastLayerInserted  ) 
 

Definition at line 1293 of file cxfrech.cpp.

01294 {
01295     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01296     if (pBaseCamelotFilter != NULL)
01297         return pBaseCamelotFilter->GetLastLayerInserted();
01298 
01299     return NULL;
01300 }

NodePath * CamelotRecordHandler::GetLastNodePathInserted  ) 
 

Definition at line 1302 of file cxfrech.cpp.

01303 {
01304     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01305     if (pBaseCamelotFilter != NULL)
01306         return pBaseCamelotFilter->GetLastNodePathInserted();
01307 
01308     return NULL;
01309 }

Spread * CamelotRecordHandler::GetLastSpreadInserted  ) 
 

Definition at line 1284 of file cxfrech.cpp.

01285 {
01286     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01287     if (pBaseCamelotFilter != NULL)
01288         return pBaseCamelotFilter->GetLastSpreadInserted();
01289 
01290     return NULL;
01291 }

UINT32 CamelotRecordHandler::GetLayerInsertedCount  ) 
 

Definition at line 1388 of file cxfrech.cpp.

01389 {
01390     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01391     if (pBaseCamelotFilter != NULL)
01392         return pBaseCamelotFilter->GetLayerInsertedCount();
01393 
01394     return 0;
01395 }

UINT32 CamelotRecordHandler::GetPreCompression  )  [virtual]
 

Definition at line 1563 of file cxfrech.cpp.

01564 {
01565     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01566     if (pBaseCamelotFilter != NULL)
01567         return pBaseCamelotFilter->GetPreCompression();
01568 
01569     return 0;
01570 }

PrintComponent * CamelotRecordHandler::GetPrintComponent  ) 
 

Definition at line 1124 of file cxfrech.cpp.

01125 {
01126     ERROR2IF(pBaseCamelotFilter == NULL,FALSE,"pBaseCamelotFilter is NULL");
01127     return (pBaseCamelotFilter->GetPrintComponent());
01128 }

KernelBitmap * CamelotRecordHandler::GetReadBitmapReference INT32  BitmapRef  ) 
 

This dereferences a bitmap ref value, and returns a pointer to a KernelBitmap from it. The resultant KernelBitmap can then be used by the caller e.g. in fills.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/6/96
Parameters:
BitmapRef = a reference to a colour defined earlier in the file [INPUTS]
- [OUTPUTS]
Returns:
pBitmap = ptr to a KernelBitmap object
The BitmapRef value is typically found in records that define a bitmap. It references a bitmap defined earlier in the file.
Returns:
Errors: -
See also:
-

Definition at line 1084 of file cxfrech.cpp.

01085 {
01086     ERROR2IF(pBaseCamelotFilter == NULL,FALSE,"pBaseCamelotFilter is NULL");
01087 
01088     BitmapListComponent* pBmpComp = pBaseCamelotFilter->GetBitmapDocComponent();
01089 
01090     ERROR2IF(pBmpComp == NULL,FALSE,"No bitmap component when getting a bitmap");
01091 
01092     return (pBmpComp->GetReadBitmapReference(BitmapRef));
01093 }

UINT32 CamelotRecordHandler::GetSetSentinelInsertedCount  ) 
 

Definition at line 1397 of file cxfrech.cpp.

01398 {
01399     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01400     if (pBaseCamelotFilter != NULL)
01401         return pBaseCamelotFilter->GetSetSentinelInsertedCount();
01402 
01403     return 0;
01404 }

Spread * CamelotRecordHandler::GetSpread  ) 
 

Definition at line 1257 of file cxfrech.cpp.

01258 {
01259     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01260     if (pBaseCamelotFilter != NULL)
01261         return pBaseCamelotFilter->GetSpread();
01262 
01263     return NULL;
01264 }

UINT32 CamelotRecordHandler::GetSpreadInsertedCount  ) 
 

Definition at line 1379 of file cxfrech.cpp.

01380 {
01381     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01382     if (pBaseCamelotFilter != NULL)
01383         return pBaseCamelotFilter->GetSpreadInsertedCount();
01384 
01385     return 0;
01386 }

TagDescriptionListItem * CamelotRecordHandler::GetTagDescription UINT32  Tag  ) 
 

Definition at line 1545 of file cxfrech.cpp.

01546 {
01547     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01548     if (pBaseCamelotFilter != NULL)
01549         return pBaseCamelotFilter->GetTagDescription(Tag);
01550 
01551     return NULL;
01552 }

UnitListComponent * CamelotRecordHandler::GetUnitDocComponent  ) 
 

Definition at line 1112 of file cxfrech.cpp.

01113 {
01114     ERROR2IF(pBaseCamelotFilter == NULL,FALSE,"pBaseCamelotFilter is NULL");
01115     return (pBaseCamelotFilter->GetUnitDocComponent());
01116 }

void CamelotRecordHandler::IncChapterInsertedCount  ) 
 

Definition at line 1414 of file cxfrech.cpp.

01415 {
01416     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01417     if (pBaseCamelotFilter != NULL)
01418         pBaseCamelotFilter->IncChapterInsertedCount();
01419 }

void CamelotRecordHandler::IncDocumentInsertedCount  ) 
 

Definition at line 1407 of file cxfrech.cpp.

01408 {
01409     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01410     if (pBaseCamelotFilter != NULL)
01411         pBaseCamelotFilter->IncDocumentInsertedCount();
01412 }

BOOL CamelotRecordHandler::IncInsertLevel  ) 
 

Definition at line 1182 of file cxfrech.cpp.

01183 {
01184     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01185     if (pBaseCamelotFilter != NULL)
01186         return pBaseCamelotFilter->IncInsertLevel();
01187 
01188     return FALSE;
01189 }

void CamelotRecordHandler::IncLayerInsertedCount  ) 
 

Definition at line 1428 of file cxfrech.cpp.

01429 {
01430     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01431     if (pBaseCamelotFilter != NULL)
01432         pBaseCamelotFilter->IncLayerInsertedCount();
01433 }

void CamelotRecordHandler::IncProgressBarCount UINT32  n  )  [virtual]
 

Implements CXaraFileRecordHandler.

Reimplemented in StandardDefaultRecordHandler, GeneralRecordHandler, StripSubTreeRecordHandler, and CompressionRecordHandler.

Definition at line 1168 of file cxfrech.cpp.

01169 {
01170     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01171     if (pBaseCamelotFilter != NULL)
01172         pBaseCamelotFilter->IncProgressBarCount(n);
01173 }

void CamelotRecordHandler::IncSetSentinelInsertedCount  ) 
 

Definition at line 1435 of file cxfrech.cpp.

01436 {
01437     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01438     if (pBaseCamelotFilter != NULL)
01439         pBaseCamelotFilter->IncSetSentinelInsertedCount();
01440 }

void CamelotRecordHandler::IncSpreadInsertedCount  ) 
 

Definition at line 1421 of file cxfrech.cpp.

01422 {
01423     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01424     if (pBaseCamelotFilter != NULL)
01425         pBaseCamelotFilter->IncSpreadInsertedCount();
01426 }

BOOL CamelotRecordHandler::Init BaseCamelotFilter pThisBaseCamelotFilter  )  [virtual]
 

Initialises the handler.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/5/96
Parameters:
pThisBaseCamelotFilter = ptr to the filter that will read the file. [INPUTS]
Returns:
TRUE if ok FALSE otherwise
The base class forms a link between the handler and the filter class

If you override this func, be sure to call the base class varient

Returns:
Errors: -
See also:
-

Reimplemented from CXaraFileRecordHandler.

Reimplemented in WizOpStyleRecordHandler, and WizOpStyleRefRecordHandler.

Definition at line 963 of file cxfrech.cpp.

00964 {
00965     ERROR2IF(pThisBaseCamelotFilter == NULL,FALSE,"pThisBaseCamelotFilter is NULL");
00966 
00967     pBaseCamelotFilter = pThisBaseCamelotFilter;
00968 
00969     return TRUE;
00970 }

void CamelotRecordHandler::InsertNextNodeAsChild  ) 
 

Definition at line 1216 of file cxfrech.cpp.

01217 {
01218     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01219     if (pBaseCamelotFilter != NULL)
01220         pBaseCamelotFilter->InsertNextNodeAsChild();
01221 }

void CamelotRecordHandler::InsertNextNodeAsSibling  ) 
 

Definition at line 1223 of file cxfrech.cpp.

01224 {
01225     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01226     if (pBaseCamelotFilter != NULL)
01227         pBaseCamelotFilter->InsertNextNodeAsSibling();
01228 }

BOOL CamelotRecordHandler::InsertNode Node pNode  ) 
 

Definition at line 1148 of file cxfrech.cpp.

01149 {
01150     ERROR2IF(pBaseCamelotFilter == NULL,FALSE,"pBaseCamelotFilter is NULL");
01151     return (pBaseCamelotFilter->InsertNode(pNode));
01152 }

virtual BOOL CamelotRecordHandler::IsCamelotHandler  )  [inline, virtual]
 

Definition at line 209 of file cxfrech.h.

00209 { return TRUE; }

BOOL CamelotRecordHandler::IsImporting  ) 
 

Definition at line 1142 of file cxfrech.cpp.

01143 {
01144     ERROR2IF(pBaseCamelotFilter == NULL,FALSE,"pBaseCamelotFilter is NULL");
01145     return (pBaseCamelotFilter->IsImporting());
01146 }

BOOL CamelotRecordHandler::IsImportingAtPosition  ) 
 

Definition at line 1136 of file cxfrech.cpp.

01137 {
01138     ERROR2IF(pBaseCamelotFilter == NULL,FALSE,"pBaseCamelotFilter is NULL");
01139     return (pBaseCamelotFilter->IsImportingAtPosition());
01140 }

BOOL CamelotRecordHandler::IsOpeningMinimalWebFormat  )  [virtual]
 

Definition at line 1604 of file cxfrech.cpp.

01605 {
01606     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01607     if (pBaseCamelotFilter != NULL)
01608         return pBaseCamelotFilter->IsOpeningMinimalWebFormat();
01609 
01610     return FALSE;
01611 }

BOOL CamelotRecordHandler::IsStreamed UINT32  Tag  )  [virtual]
 

Function to find out if the record is streamed or not.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/6/96
Parameters:
The tag of the record [INPUTS]
Returns:
TRUE if this is a streamed record FALSE otherwise

Errors: -

See also:
-

Implements CXaraFileRecordHandler.

Reimplemented in StandardDefaultRecordHandler, LiveEffectRecordHandler, BitmapRecordHandler, BitmapPropertiesRecordHandler, and CompressionRecordHandler.

Definition at line 997 of file cxfrech.cpp.

00998 {
00999     // Baseclass returns False, i.e. not streamed
01000     return FALSE;
01001 }

BOOL CamelotRecordHandler::IsTagInAtomicList UINT32  Tag  ) 
 

Definition at line 1505 of file cxfrech.cpp.

01506 {
01507 #if !defined(EXCLUDE_FROM_XARLIB)
01508     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01509     if (pBaseCamelotFilter != NULL)
01510         return pBaseCamelotFilter->IsTagInAtomicList(Tag);
01511 #else
01512     ERROR3IF(m_pCXFile == NULL,"m_pCXFile is NULL");
01513     if (m_pCXFile != NULL)
01514         m_pCXFile->IsTagInAtomicList(Tag);
01515 #endif
01516 
01517     return FALSE;
01518 }

BOOL CamelotRecordHandler::IsTagInEssentialList UINT32  Tag  ) 
 

Definition at line 1520 of file cxfrech.cpp.

01521 {
01522 #if !defined(EXCLUDE_FROM_XARLIB)
01523     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01524     if (pBaseCamelotFilter != NULL)
01525         return pBaseCamelotFilter->IsTagInEssentialList(Tag);
01526 #else
01527     ERROR3IF(m_pCXFile == NULL,"m_pCXFile is NULL");
01528     if (m_pCXFile != NULL)
01529         return m_pCXFile->IsTagInEssentialList(Tag);
01530 #endif
01531     return FALSE;
01532 }

void CamelotRecordHandler::RestoreInsertContext InsertTreeContext pOldState  ) 
 

Definition at line 1240 of file cxfrech.cpp.

01241 {
01242     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01243     if (pBaseCamelotFilter != NULL)
01244         pBaseCamelotFilter->RestoreInsertContext(pOldState);
01245 }

BOOL CamelotRecordHandler::SetCompression BOOL  NewState  )  [virtual]
 

Function to turn Compression on or off on the underlying CCFile.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
6/6/96
Parameters:
The new compression state required, True for on, False for off [INPUTS]
Returns:
TRUE if ok FALSE otherwise

Errors: -

See also:
-

Definition at line 1018 of file cxfrech.cpp.

01019 {
01020 #if !defined(EXCLUDE_FROM_XARLIB)
01021     ERROR2IF(pBaseCamelotFilter == NULL,FALSE,"CamelotRecordHandler::SetCompression pBaseCamelotFilter is NULL");
01022     
01023     return pBaseCamelotFilter->SetCompression(NewState);
01024 #else
01025     ERROR2IF(m_pCXFile == NULL,FALSE,"CamelotRecordHandler::SetCompression m_pCXFile is NULL");
01026     
01027     return m_pCXFile->SetCompression(NewState);
01028 #endif
01029 }

void CamelotRecordHandler::SetCoordOrigin const DocCoord Origin  ) 
 

Definition at line 1442 of file cxfrech.cpp.

01443 {
01444     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01445     if (pBaseCamelotFilter != NULL)
01446         pBaseCamelotFilter->SetCoordOrigin(Origin);
01447 }

BOOL CamelotRecordHandler::SetDocumentNudgeSize UINT32  newVal  ) 
 

Definition at line 1467 of file cxfrech.cpp.

01468 {
01469     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01470     if (pBaseCamelotFilter != NULL)
01471         return pBaseCamelotFilter->SetDocumentNudgeSize(newVal);
01472 
01473     return FALSE;
01474 }

void CamelotRecordHandler::SetFirstImportedLayer Layer pLayer  ) 
 

Definition at line 1354 of file cxfrech.cpp.

01355 {
01356     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01357     if (pBaseCamelotFilter != NULL)
01358         pBaseCamelotFilter->SetFirstImportedLayer(pNode);
01359 }

void CamelotRecordHandler::SetImportFileType char *  pFileType  )  [virtual]
 

Definition at line 1597 of file cxfrech.cpp.

01598 {
01599     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01600     if (pBaseCamelotFilter != NULL)
01601         pBaseCamelotFilter->SetImportFileType(pFileType);
01602 }

void CamelotRecordHandler::SetInsertContextNode Node pNode  ) 
 

Definition at line 1209 of file cxfrech.cpp.

01210 {
01211     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01212     if (pBaseCamelotFilter != NULL)
01213         pBaseCamelotFilter->SetInsertContextNode(pNode);
01214 }

void CamelotRecordHandler::SetLastChapterInserted Chapter pNode  ) 
 

Definition at line 1318 of file cxfrech.cpp.

01319 {
01320     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01321     if (pBaseCamelotFilter != NULL)
01322         pBaseCamelotFilter->SetLastChapterInserted(pNode);
01323 }

void CamelotRecordHandler::SetLastDocumentInserted Document pNode  ) 
 

Definition at line 1311 of file cxfrech.cpp.

01312 {
01313     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01314     if (pBaseCamelotFilter != NULL)
01315         pBaseCamelotFilter->SetLastDocumentInserted(pNode);
01316 }

void CamelotRecordHandler::SetLastLayerInserted Layer pNode  ) 
 

Definition at line 1332 of file cxfrech.cpp.

01333 {
01334     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01335     if (pBaseCamelotFilter != NULL)
01336         pBaseCamelotFilter->SetLastLayerInserted(pNode);
01337 }

void CamelotRecordHandler::SetLastNodePathInserted NodePath pNodePath  ) 
 

Definition at line 1339 of file cxfrech.cpp.

01340 {
01341     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01342     if (pBaseCamelotFilter != NULL)
01343         pBaseCamelotFilter->SetLastNodePathInserted(pNode);
01344 }

void CamelotRecordHandler::SetLastSpreadInserted Spread pNode  ) 
 

Definition at line 1325 of file cxfrech.cpp.

01326 {
01327     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01328     if (pBaseCamelotFilter != NULL)
01329         pBaseCamelotFilter->SetLastSpreadInserted(pNode);
01330 }

BOOL CamelotRecordHandler::SetPreCompression UINT32  Flags  )  [virtual]
 

Definition at line 1554 of file cxfrech.cpp.

01555 {
01556     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01557     if (pBaseCamelotFilter != NULL)
01558         return pBaseCamelotFilter->SetPreCompression(Flags);
01559 
01560     return FALSE;
01561 }

void CamelotRecordHandler::SetTotalNumBytesToRead UINT32  s  ) 
 

Definition at line 1161 of file cxfrech.cpp.

01162 {
01163     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01164     if (pBaseCamelotFilter != NULL)
01165         pBaseCamelotFilter->SetTotalNumBytesToRead(s);
01166 }

void CamelotRecordHandler::SetTotalProgressBarCount UINT32  n  ) 
 

Definition at line 1175 of file cxfrech.cpp.

01176 {
01177     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01178     if (pBaseCamelotFilter != NULL)
01179         pBaseCamelotFilter->SetTotalProgressBarCount(n);
01180 }

BOOL CamelotRecordHandler::UnrecognisedTag UINT32  Tag  ) 
 

Definition at line 1536 of file cxfrech.cpp.

01537 {
01538     ERROR3IF(pBaseCamelotFilter == NULL,"pBaseCamelotFilter is NULL");
01539     if (pBaseCamelotFilter != NULL)
01540         return pBaseCamelotFilter->UnrecognisedTag(Tag);
01541 
01542     return FALSE;
01543 }


Member Data Documentation

BaseCamelotFilter* CamelotRecordHandler::pBaseCamelotFilter [protected]
 

Definition at line 325 of file cxfrech.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