#include <nodetext.h>
Inheritance diagram for HorizontalTab:
Public Member Functions | |
HorizontalTab () | |
HorizontalTab (Node *ContextNode, AttachNodeDirection Direction) | |
The main HorizontalTab constructor. | |
virtual BOOL | ExportRender (RenderRegion *pRegion) |
This function is called when the render function passes through this node It outputs the Text Object start and end tokens See also: KernCode::ExportRender, on which this routine is based. | |
virtual UINT32 | GetNodeSize () const |
For finding the size of the node. | |
void | PolyCopyNodeContents (NodeRenderable *pNodeCopy) |
Polymorphically copies the contents of this node to another. | |
virtual BOOL | WritePreChildrenWeb (BaseCamelotFilter *pFilter) |
Writes a tab record to the new file format filter. | |
virtual BOOL | WritePreChildrenNative (BaseCamelotFilter *pFIlter) |
Protected Member Functions | |
virtual Node * | SimpleCopy () |
Because this is an abstract class, the SimpleCopy method simply causes an ERROR3 to go off. |
Definition at line 387 of file nodetext.h.
|
Definition at line 392 of file nodetext.h.
|
|
The main HorizontalTab constructor.
Specifies the direction in which the node is to be attached to the ContextNode. The values this variable can take are as follows: PREV : Attach node as a previous sibling of the context node NEXT : Attach node as a next sibling of the context node FIRSTCHILD: Attach node as the first child of the context node LASTCHILD : Attach node as a last child of the context node Definition at line 3800 of file nodetext.cpp. 03801 :AbstractTextChar(ContextNode, Direction) 03802 { 03803 }
|
|
This function is called when the render function passes through this node It outputs the Text Object start and end tokens See also: KernCode::ExportRender, on which this routine is based.
Reimplemented from NodeRenderableInk. Definition at line 3882 of file nodetext.cpp. 03883 { 03884 // a tab is exported as a horizontal kern code 03885 #if EXPORT_TEXT 03886 if (pRegion->IsKindOf(CC_RUNTIME_CLASS(EPSRenderRegion))) 03887 { 03888 // Output any valid text attributes necessary 03889 ((EPSRenderRegion*)pRegion)->GetValidPathAttributes(); 03890 ((EPSRenderRegion*)pRegion)->GetValidTextAttributes(); 03891 03892 EPSExportDC *pDC=(EPSExportDC*)pRegion->GetRenderDC(); 03893 03894 // Use illustrator 3.0 compatible token. 03895 INT32 autokern = 0; 03896 pDC->OutputValue(autokern); 03897 pDC->OutputValue(GetCharWidth()); 03898 pDC->OutputToken(_T("Tk")); 03899 pDC->OutputNewLine(); 03900 return TRUE; 03901 } 03902 #endif 03903 return FALSE; 03904 }
|
|
For finding the size of the node.
Reimplemented from AbstractTextChar. Definition at line 3845 of file nodetext.cpp. 03846 { 03847 return (sizeof(HorizontalTab)); 03848 }
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from AbstractTextChar. Definition at line 3850 of file nodetext.cpp. 03851 { 03852 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 03853 ENSURE(IS_A(pNodeCopy, HorizontalTab), "PolyCopyNodeContents given wrong dest node type"); 03854 03855 if (IS_A(pNodeCopy, HorizontalTab)) 03856 CopyNodeContents((HorizontalTab*)pNodeCopy); 03857 }
|
|
Because this is an abstract class, the SimpleCopy method simply causes an ERROR3 to go off.
Reimplemented from AbstractTextChar. Definition at line 3859 of file nodetext.cpp. 03860 { 03861 // Make a new HorizontalTab and then copy things into it 03862 HorizontalTab* NodeCopy = new HorizontalTab(); 03863 03864 ERROR1IF(NodeCopy == NULL, NULL, _R(IDE_NOMORE_MEMORY)); 03865 03866 if (NodeCopy) CopyNodeContents( NodeCopy ); 03867 03868 return NodeCopy; 03869 }
|
|
Reimplemented from Node. Definition at line 3827 of file nodetext.cpp. 03828 { 03829 #ifdef DO_EXPORT 03830 return CXaraFileTxtTab::WritePreChildrenNative(pFilter, this); 03831 #else 03832 return FALSE; 03833 #endif 03834 }
|
|
Writes a tab record to the new file format filter.
Reimplemented from Node. Definition at line 3818 of file nodetext.cpp. 03819 { 03820 #ifdef DO_EXPORT 03821 return CXaraFileTxtTab::WritePreChildrenWeb(pFilter, this); 03822 #else 03823 return FALSE; 03824 #endif 03825 }
|