#include <doccomp.h>
Inheritance diagram for DocComponent:
Public Member Functions | |
virtual BOOL | StartImport (BaseCamelotFilter *pFilter) |
Add an instance of a document component to the specified document. This function should create a default instance of the relevant DocComponent object for this class, and add it to the document. The function should check to see if one already exists in this document, and either replace it, or leave it alone, depending on the nature of the component.Inform the document component that a Native or Web import is about to start. | |
virtual BOOL | EndImport (BaseCamelotFilter *pFilter, BOOL Success) |
Inform the document component that a Native or Web import has just finished. | |
virtual BOOL | StartExport (BaseCamelotFilter *pFilter) |
Inform the document component that a WEb or Native export is about to start. | |
virtual BOOL | StartExportBeforeComp (BaseCamelotFilter *pFilter) |
Inform the document component that a Web or Native export is about to start. | |
virtual BOOL | EndExport (BaseCamelotFilter *pFilter, BOOL Success) |
Inform the document component that a Web or Native export is just finishing. This gives the component a chance to write out any pending data, such as named colours that weren't referenced in the document, etc. | |
virtual void | CleanUpAfterExport (BOOL Success) |
Inform the document component that a Web or Native export has just finished. | |
virtual BOOL | EPSStartImport (EPSFilter *) |
Inform the document component that an EPS import is about to start. | |
virtual void | EPSEndImport (EPSFilter *, BOOL) |
Inform the document component that an EPS import has just finished. | |
virtual BOOL | EPSStartExport (EPSFilter *) |
Inform the document component that an EPS export is about to start. | |
virtual void | EPSEndExport (EPSFilter *) |
Inform the document component that an EPS export has just finished. | |
virtual BOOL | WriteEPSProlog (EPSFilter *) |
Write out the EPS prolog for this document component, using the EPS filter object supplied. (The base class does nothing). | |
virtual BOOL | WriteEPSSetup (EPSFilter *) |
Write out the EPS setup for this document component, using the EPS filter object supplied. (The base class does nothing). | |
virtual BOOL | WriteEPSComments (EPSFilter *) |
Write out any comments that need to be in the initial batch of EPS comments (i.e. before the %EndComments line), using the specified EPS Filter object. (The base class does nothing). | |
virtual BOOL | WriteScript (EPSFilter *) |
This is called after all the Comments, Prolog etc have been output so that DocComponents get a chance to do something right at the start of the real EPS data, but before the tree starts to be exported. (The base class does nothing). | |
virtual ProcessEPSResult | ProcessEPSComment (EPSFilter *, const TCHAR *) |
Process an EPS comment found in the file, if it 'belongs' to this document component. If it does not, then the document component should return EPSCommentUnknown, and the comment will be passed on to the next document component. If the function returns EPSCommentOK, and the next line in the file starts with "%%+", i.e. an EPS/PostScript continuation comment, then this will be passed to this document component immediately, without trying any of the other document components first. This allows items such a colour lists to be imported easily, as they are usually specified on multiple lines in the file, using "%%+" comments. (The base class does nothing - it returns EPSCommentUnknown). | |
virtual void | EndOfEPSComment (EPSFilter *) |
Informs the document component that the comment it has been decoding has now finished, and it should take whatever action required to act on the comment. This call is made even for single-line comments, because by the nature of DSC comments, it is not known until the next comment starts or a non-comment line is encountered that the comment is over and is not multi-line. | |
virtual INT32 | GetSizeOfExport (Filter *) |
Find out how many nodes will be exported when this document component is exported. The node can use the filter to find out how it will be exported, e.g. bitmap lists should return a value that reflects whether or not bitmap indirection is possible with this filter and so on. NB. This is virtual - the default implementation just returns 1 - only override if this is not accurate. | |
virtual BOOL | StartComponentCopy () |
This function is called prior to nodes being copied from some Source document to the document where this DocComponent lives. It gives the DocComponent a chance to make preperations for caching any possible updates. | |
virtual BOOL | EndComponentCopy () |
This function is called after a successful copy from another document. If changes have been made to the components data then now is the time to commit them. | |
virtual void | AbortComponentCopy () |
This function is called if a node copy has failed. If any changes have been made then they may need to be vaped at this point. Note this function could get called without a prior StartComponentCopy call. Also it could get called more than once. |
Definition at line 156 of file doccomp.h.
|
This function is called if a node copy has failed. If any changes have been made then they may need to be vaped at this point. Note this function could get called without a prior StartComponentCopy call. Also it could get called more than once.
Reimplemented in BitmapListComponent, ColourListComponent, and Styles. Definition at line 644 of file doccomp.cpp.
|
|
Inform the document component that a Web or Native export has just finished.
The base class implementation does nothing
Reimplemented in ColourListComponent. Definition at line 282 of file doccomp.cpp.
|
|
This function is called after a successful copy from another document. If changes have been made to the components data then now is the time to commit them.
Reimplemented in BitmapListComponent, ColourListComponent, and Styles. Definition at line 621 of file doccomp.cpp. 00621 { return TRUE; }
|
|
Inform the document component that a Web or Native export is just finishing. This gives the component a chance to write out any pending data, such as named colours that weren't referenced in the document, etc.
Reimplemented in BitmapListComponent, ColourListComponent, FontComponent, DocInfoComponent, LineComponent, PrintComponent, PrintMarksComponent, StrokeComponent, WizOpStyles, UnitListComponent, and ViewComponent. Definition at line 252 of file doccomp.cpp. 00253 { 00254 return TRUE; 00255 }
|
|
Inform the document component that a Native or Web import has just finished.
Reimplemented in BitmapListComponent, ColourListComponent, FontComponent, DocInfoComponent, LineComponent, PrintMarksComponent, StrokeComponent, WizOpStyles, UnitListComponent, and ViewComponent. Definition at line 177 of file doccomp.cpp. 00178 { 00179 return TRUE; 00180 }
|
|
Informs the document component that the comment it has been decoding has now finished, and it should take whatever action required to act on the comment. This call is made even for single-line comments, because by the nature of DSC comments, it is not known until the next comment starts or a non-comment line is encountered that the comment is over and is not multi-line.
Reimplemented in BitmapListComponent, and ColourListComponent. Definition at line 546 of file doccomp.cpp.
|
|
Inform the document component that an EPS export has just finished.
Reimplemented in BitmapListComponent. Definition at line 357 of file doccomp.cpp.
|
|
Inform the document component that an EPS import has just finished.
Reimplemented in BitmapListComponent, and ColourListComponent. Definition at line 322 of file doccomp.cpp.
|
|
Inform the document component that an EPS export is about to start.
Reimplemented in BitmapListComponent. Definition at line 340 of file doccomp.cpp. 00341 { 00342 return TRUE; 00343 }
|
|
Inform the document component that an EPS import is about to start.
Reimplemented in BitmapListComponent, and ColourListComponent. Definition at line 303 of file doccomp.cpp. 00304 { 00305 return TRUE; 00306 }
|
|
Find out how many nodes will be exported when this document component is exported. The node can use the filter to find out how it will be exported, e.g. bitmap lists should return a value that reflects whether or not bitmap indirection is possible with this filter and so on. NB. This is virtual - the default implementation just returns 1 - only override if this is not accurate.
Reimplemented in BitmapListComponent. Definition at line 571 of file doccomp.cpp.
|
|
Process an EPS comment found in the file, if it 'belongs' to this document component. If it does not, then the document component should return EPSCommentUnknown, and the comment will be passed on to the next document component. If the function returns EPSCommentOK, and the next line in the file starts with "%%+", i.e. an EPS/PostScript continuation comment, then this will be passed to this document component immediately, without trying any of the other document components first. This allows items such a colour lists to be imported easily, as they are usually specified on multiple lines in the file, using "%%+" comments. (The base class does nothing - it returns EPSCommentUnknown).
Reimplemented in BitmapListComponent, and PrintComponent. Definition at line 516 of file doccomp.cpp. 00518 { 00519 return EPSCommentUnknown; 00520 }
|
|
This function is called prior to nodes being copied from some Source document to the document where this DocComponent lives. It gives the DocComponent a chance to make preperations for caching any possible updates.
Reimplemented in BitmapListComponent, ColourListComponent, and Styles. Definition at line 599 of file doccomp.cpp. 00599 { return TRUE;}
|
|
Inform the document component that a WEb or Native export is about to start.
Reimplemented in BitmapListComponent, BrushComponent, ColourListComponent, FontComponent, DocInfoComponent, LineComponent, PrintMarksComponent, StrokeComponent, WizOpStyles, UnitListComponent, and ViewComponent. Definition at line 219 of file doccomp.cpp. 00220 { 00221 return TRUE; 00222 }
|
|
Inform the document component that a Web or Native export is about to start.
Reimplemented in DocInfoComponent. Definition at line 200 of file doccomp.cpp. 00201 { 00202 return TRUE; 00203 }
|
|
Add an instance of a document component to the specified document. This function should create a default instance of the relevant DocComponent object for this class, and add it to the document. The function should check to see if one already exists in this document, and either replace it, or leave it alone, depending on the nature of the component.Inform the document component that a Native or Web import is about to start.
Reimplemented in BitmapListComponent, ColourListComponent, FontComponent, DocInfoComponent, LineComponent, PrintMarksComponent, StrokeComponent, WizOpStyles, UnitListComponent, and ViewComponent. Definition at line 156 of file doccomp.cpp. 00157 { 00158 return TRUE; 00159 }
|
|
Write out any comments that need to be in the initial batch of EPS comments (i.e. before the %EndComments line), using the specified EPS Filter object. (The base class does nothing).
Reimplemented in BitmapListComponent, ColourListComponent, and PrintComponent. Definition at line 440 of file doccomp.cpp. 00441 { 00442 return TRUE; 00443 }
|
|
Write out the EPS prolog for this document component, using the EPS filter object supplied. (The base class does nothing).
Definition at line 383 of file doccomp.cpp. 00384 { 00385 return TRUE; 00386 }
|
|
Write out the EPS setup for this document component, using the EPS filter object supplied. (The base class does nothing).
Definition at line 410 of file doccomp.cpp. 00411 { 00412 return TRUE; 00413 }
|
|
This is called after all the Comments, Prolog etc have been output so that DocComponents get a chance to do something right at the start of the real EPS data, but before the tree starts to be exported. (The base class does nothing).
Reimplemented in BitmapListComponent. Definition at line 468 of file doccomp.cpp. 00469 { 00470 return TRUE; 00471 }
|