#include <txtattr.h>
Inheritance diagram for AttrTxtRightMargin:
Public Member Functions | |
AttrTxtRightMargin () | |
AttrTxtRightMargin (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
Creates a AttrTxtRightMargin Attribute. | |
void | Render (RenderRegion *pRender) |
'Renders' a right margin 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. | |
virtual AttrIndex | GetAttributeIndex () |
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 BOOL | IsALineLevelAttrib () |
virtual void | BaseLineRelativeTransform (FIXED16 Scale, FIXED16 Aspect) |
Transform the attribute using the baseline relative scale and aspect. | |
virtual void | PolyCopyNodeContents (NodeRenderable *pNodeCopy) |
Polymorphically copies the contents of this node to another. | |
virtual BOOL | WritePreChildrenWeb (BaseCamelotFilter *pFilter) |
Saves the text baseline attribute to the new file format filter. | |
virtual BOOL | WritePreChildrenNative (BaseCamelotFilter *pFilter) |
Public Attributes | |
TxtRightMarginAttribute | Value |
Private Member Functions | |
void | CopyNodeContents (AttrTxtRightMargin *NodeCopy) |
This method copies the node's contents to the node pointed to by NodeCopy. |
Definition at line 1474 of file txtattr.h.
|
Definition at line 1480 of file txtattr.h.
|
|
Creates a AttrTxtRightMargin Attribute.
Definition at line 6995 of file txtattr.cpp. 07001 : AttrTxtBase(ContextNode, Direction, Locked, Mangled, Marked, Selected) 07002 { 07003 }
|
|
Transform the attribute using the baseline relative scale and aspect.
Reimplemented from AttrTxtBase. Definition at line 7200 of file txtattr.cpp. 07201 { 07202 TxtRightMarginAttribute* pRightMarginAttrVal=(TxtRightMarginAttribute*)GetAttributeValue(); 07203 pRightMarginAttrVal->Value = XLONG(pRightMarginAttrVal->Value) * Scale; 07204 }
|
|
This method copies the node's contents to the node pointed to by NodeCopy.
Definition at line 7116 of file txtattr.cpp. 07117 { 07118 // Let the base class do its bit 07119 NodeAttribute::CopyNodeContents( NodeCopy ); 07120 07121 //Copy contents specific to derived class here 07122 NodeCopy->Value.Value = Value.Value; 07123 }
|
|
Reimplemented from NodeAttribute. Definition at line 1495 of file txtattr.h. 01495 { return ATTR_TXTRIGHTMARGIN; }
|
|
Reimplemented from NodeAttribute. Definition at line 1501 of file txtattr.h. 01501 { return &Value; }
|
|
Returns back a string resource ID describing the attribute.
Reimplemented from NodeAttribute. Definition at line 7092 of file txtattr.cpp. 07093 { 07094 return (_R(IDS_RIGHTMARGIN)); 07095 }
|
|
Used for debugging purposes during developement. Override in your own class and output suitable debugging details.
Reimplemented from NodeRenderable. Definition at line 7180 of file txtattr.cpp. 07181 { 07182 NodeAttribute::GetDebugDetails( Str ); 07183 07184 String_256 TempStr; 07185 TempStr._MakeMsg( TEXT("\r\nRight margin=#1%ld\r\n"), Value.Value); 07186 (*Str) += TempStr; 07187 }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 7162 of file txtattr.cpp. 07163 { 07164 return (sizeof(AttrTxtRightMargin)); 07165 }
|
|
Reimplemented from NodeAttribute. Definition at line 1502 of file txtattr.h. 01502 { return TRUE; }
|
|
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.
Reimplemented from NodeAttribute. Definition at line 7067 of file txtattr.cpp. 07068 { 07069 ENSURE(Attrib.IsKindOf(CC_RUNTIME_CLASS(AttrTxtRightMargin)), 07070 "Trying to compare two objects with different types"); 07071 AttrTxtRightMargin* Attr = (AttrTxtRightMargin*) &Attrib; 07072 return (Attr->Value.Value == Value.Value); 07073 }
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from NodeRenderable. Definition at line 7138 of file txtattr.cpp. 07139 { 07140 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 07141 ENSURE(IS_A(pNodeCopy, AttrTxtRightMargin), "PolyCopyNodeContents given wrong dest node type"); 07142 07143 if (IS_A(pNodeCopy, AttrTxtRightMargin)) 07144 CopyNodeContents((AttrTxtRightMargin*)pNodeCopy); 07145 }
|
|
'Renders' a right margin attribute
Reimplemented from NodeAttribute. Definition at line 7016 of file txtattr.cpp. 07017 { 07018 pRegion->SetTxtRightMargin(&Value, FALSE); 07019 }
|
|
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 7040 of file txtattr.cpp. 07041 { 07042 AttrTxtRightMargin* NodeCopy = new AttrTxtRightMargin(); 07043 ERRORIF(NodeCopy == NULL, _R(IDE_NOMORE_MEMORY), NULL); 07044 CopyNodeContents(NodeCopy); 07045 return NodeCopy; 07046 }
|
|
Reimplemented from Node. Definition at line 7231 of file txtattr.cpp. 07232 { 07233 #ifdef DO_EXPORT 07234 ERROR2IF(pFilter==NULL, FALSE, "Parameter pFilter == NULL."); 07235 07236 return CXaraFileTxtRightMargin::WritePreChildrenNative(pFilter, this); 07237 #else 07238 return FALSE; 07239 #endif 07240 }
|
|
Saves the text baseline attribute to the new file format filter.
Reimplemented from Node. Definition at line 7220 of file txtattr.cpp. 07221 { 07222 #ifdef DO_EXPORT 07223 ERROR2IF(pFilter==NULL, FALSE, "Parameter pFilter == NULL."); 07224 07225 return CXaraFileTxtRightMargin::WritePreChildrenWeb(pFilter, this); 07226 #else 07227 return FALSE; 07228 #endif 07229 }
|
|
|