#include <txtattr.h>
Inheritance diagram for AttrTxtJustification:
Public Member Functions | |
AttrTxtJustification () | |
Default constructor for AttrTxtJustification class. | |
AttrTxtJustification (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
Creates a AttrTxtJustification Attribute. | |
void | Render (RenderRegion *pRender) |
'Renders' a Line Width attribute. | |
Node * | SimpleCopy () |
This method returns a shallow copy of the node with all Node pointers NULL. The function is virtual, and must be defined for all derived classes. | |
virtual INT32 | operator== (const NodeAttribute &NodeAttrib) |
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required. | |
virtual UINT32 | GetAttrNameID (void) |
Returns back a string resource ID describing the attribute. | |
void | GetDebugDetails (StringBase *Str) |
Used for debugging purposes during developement. Override in your own class and output suitable debugging details. | |
virtual UINT32 | GetNodeSize () const |
For finding the size of the node. | |
virtual AttributeValue * | GetAttributeValue () |
virtual AttrIndex | GetAttributeIndex () |
virtual BOOL | IsALineLevelAttrib () |
virtual void | PolyCopyNodeContents (NodeRenderable *pNodeCopy) |
Polymorphically copies the contents of this node to another. | |
virtual BOOL | WritePreChildrenWeb (BaseCamelotFilter *pFilter) |
Saves the text justification attribute to the new file format filter. | |
virtual BOOL | WritePreChildrenNative (BaseCamelotFilter *pFilter) |
Public Attributes | |
TxtJustificationAttribute | Value |
Private Member Functions | |
void | CopyNodeContents (AttrTxtJustification *NodeCopy) |
This method copies the node's contents to the node pointed to by NodeCopy. |
Definition at line 1128 of file txtattr.h.
|
Default constructor for AttrTxtJustification class.
Definition at line 5583 of file txtattr.cpp.
|
|
Creates a AttrTxtJustification Attribute.
Definition at line 5558 of file txtattr.cpp. 05564 : AttrTxtBase(ContextNode, Direction, Locked, Mangled, Marked, Selected) 05565 { 05566 }
|
|
This method copies the node's contents to the node pointed to by NodeCopy.
Definition at line 5705 of file txtattr.cpp. 05706 { 05707 // Let the base class do its bit 05708 AttrTxtBase::CopyNodeContents( NodeCopy ); 05709 05710 //Copy contents specific to derived class here 05711 NodeCopy->Value.justification = Value.justification; 05712 }
|
|
Reimplemented from NodeAttribute. Definition at line 1158 of file txtattr.h. 01158 { return ATTR_TXTJUSTIFICATION; }
|
|
Reimplemented from NodeAttribute. Definition at line 1157 of file txtattr.h. 01157 { return &Value; }
|
|
Returns back a string resource ID describing the attribute.
Reimplemented from NodeAttribute. Definition at line 5681 of file txtattr.cpp. 05682 { 05683 return (_R(IDS_JUSTIFICATION)); 05684 }
|
|
Used for debugging purposes during developement. Override in your own class and output suitable debugging details.
Reimplemented from NodeRenderable. Definition at line 5771 of file txtattr.cpp. 05772 { 05773 NodeAttribute::GetDebugDetails( Str ); 05774 05775 String_256 TempStr; 05776 char* p; 05777 05778 switch (Value.justification) 05779 { 05780 case JLEFT: 05781 p="Left"; 05782 break; 05783 case JRIGHT: 05784 p="Right"; 05785 break; 05786 case JCENTRE: 05787 p="Centre"; 05788 break; 05789 case JFULL: 05790 p="Fully"; 05791 break; 05792 default: 05793 p="(Unknown)"; 05794 break; 05795 } 05796 05797 TempStr._MakeMsg(TEXT("\r\nJustification=#1%s"), p); 05798 (*Str) += TempStr; 05799 TempStr._MakeMsg(TEXT(" justified\r\n")); 05800 (*Str) += TempStr; 05801 }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 5753 of file txtattr.cpp. 05754 { 05755 return (sizeof(AttrTxtJustification)); 05756 }
|
|
Reimplemented from NodeAttribute. Definition at line 1160 of file txtattr.h. 01160 {return TRUE;};
|
|
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.
Reimplemented from NodeAttribute. Definition at line 5656 of file txtattr.cpp. 05657 { 05658 ENSURE(Attrib.IsKindOf(CC_RUNTIME_CLASS(AttrTxtJustification)), 05659 "Trying to compare two objects with different types"); 05660 AttrTxtJustification* Attr = (AttrTxtJustification*) &Attrib; 05661 return (Attr->Value.justification == Value.justification); 05662 }
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from NodeRenderable. Definition at line 5727 of file txtattr.cpp. 05728 { 05729 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 05730 ENSURE(IS_A(pNodeCopy, AttrTxtJustification), "PolyCopyNodeContents given wrong dest node type"); 05731 05732 if (IS_A(pNodeCopy, AttrTxtJustification)) 05733 CopyNodeContents((AttrTxtJustification*)pNodeCopy); 05734 }
|
|
'Renders' a Line Width attribute.
Reimplemented from NodeAttribute. Definition at line 5603 of file txtattr.cpp. 05604 { 05605 pRegion->SetTxtJustification(&Value, FALSE); 05606 }
|
|
This method returns a shallow copy of the node with all Node pointers NULL. The function is virtual, and must be defined for all derived classes.
Reimplemented from NodeAttribute. Definition at line 5629 of file txtattr.cpp. 05630 { 05631 AttrTxtJustification* NodeCopy = new AttrTxtJustification(); 05632 ERRORIF(NodeCopy == NULL, _R(IDE_NOMORE_MEMORY), NULL); 05633 CopyNodeContents(NodeCopy); 05634 return NodeCopy; 05635 }
|
|
Reimplemented from Node. Definition at line 5827 of file txtattr.cpp. 05828 { 05829 #ifdef DO_EXPORT 05830 ERROR2IF(pFilter==NULL, FALSE, "Parameter pFilter == NULL."); 05831 05832 return CXaraFileTxtJustification::WritePreChildrenNative(pFilter, this); 05833 #else 05834 return FALSE; 05835 #endif 05836 }
|
|
Saves the text justification attribute to the new file format filter.
Reimplemented from Node. Definition at line 5816 of file txtattr.cpp. 05817 { 05818 #ifdef DO_EXPORT 05819 ERROR2IF(pFilter==NULL, FALSE, "Parameter pFilter == NULL."); 05820 05821 return CXaraFileTxtJustification::WritePreChildrenWeb(pFilter, this); 05822 #else 05823 return FALSE; 05824 #endif 05825 }
|
|
|