#include <txtattr.h>
Inheritance diagram for AttrTxtUnderline:
Public Member Functions | |
AttrTxtUnderline () | |
Default constructor for AttrTxtUnderline class. | |
AttrTxtUnderline (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
Creates a AttrTxtUnderline 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. | |
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 void | PolyCopyNodeContents (NodeRenderable *pNodeCopy) |
Polymorphically copies the contents of this node to another. | |
virtual BOOL | WritePreChildrenWeb (BaseCamelotFilter *pFilter) |
Saves the text underline attribute to the new file format filter. | |
virtual BOOL | WritePreChildrenNative (BaseCamelotFilter *pFilter) |
Public Attributes | |
TxtUnderlineAttribute | Value |
Private Member Functions | |
void | CopyNodeContents (AttrTxtUnderline *NodeCopy) |
This method copies the node's contents to the node pointed to by NodeCopy. |
Definition at line 1013 of file txtattr.h.
|
Default constructor for AttrTxtUnderline class.
Definition at line 5022 of file txtattr.cpp.
|
|
Creates a AttrTxtUnderline Attribute.
Definition at line 4997 of file txtattr.cpp. 05003 : AttrTxtBase(ContextNode, Direction, Locked, Mangled, Marked, Selected) 05004 { 05005 }
|
|
This method copies the node's contents to the node pointed to by NodeCopy.
Definition at line 5144 of file txtattr.cpp. 05145 { 05146 // Let the base class do its bit 05147 AttrTxtBase::CopyNodeContents( NodeCopy ); 05148 05149 //Copy contents specific to derived class here 05150 NodeCopy->Value.Underlined = Value.Underlined; 05151 }
|
|
Reimplemented from NodeAttribute. Definition at line 1035 of file txtattr.h. 01035 { return ATTR_TXTUNDERLINE; }
|
|
Reimplemented from NodeAttribute. Definition at line 1043 of file txtattr.h. 01043 { return &Value; }
|
|
Returns back a string resource ID describing the attribute.
Reimplemented from NodeAttribute. Definition at line 5120 of file txtattr.cpp. 05121 { 05122 return (_R(IDS_UNDERLINE)); 05123 }
|
|
Used for debugging purposes during developement. Override in your own class and output suitable debugging details.
Reimplemented from NodeRenderable. Definition at line 5209 of file txtattr.cpp. 05210 { 05211 NodeAttribute::GetDebugDetails( Str ); 05212 05213 String_256 TempStr; 05214 TCHAR* p; 05215 (Value.Underlined) ? (p=_T("TRUE")) : (p=_T("FALSE")); 05216 TempStr._MakeMsg( TEXT("\r\nUnderline=#1%s\r\n"), p); 05217 (*Str) += TempStr; 05218 }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 5192 of file txtattr.cpp. 05193 { 05194 return (sizeof(AttrTxtUnderline)); 05195 }
|
|
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.
Reimplemented from NodeAttribute. Definition at line 5095 of file txtattr.cpp. 05096 { 05097 ENSURE(Attrib.IsKindOf(CC_RUNTIME_CLASS(AttrTxtUnderline)), 05098 "Trying to compare two objects with different types"); 05099 AttrTxtUnderline* Attr = (AttrTxtUnderline*) &Attrib; 05100 return (Attr->Value.Underlined == Value.Underlined); 05101 }
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from NodeRenderable. Definition at line 5166 of file txtattr.cpp. 05167 { 05168 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 05169 ENSURE(IS_A(pNodeCopy, AttrTxtUnderline), "PolyCopyNodeContents given wrong dest node type"); 05170 05171 if (IS_A(pNodeCopy, AttrTxtUnderline)) 05172 CopyNodeContents((AttrTxtUnderline*)pNodeCopy); 05173 }
|
|
'Renders' a Line Width attribute.
Reimplemented from NodeAttribute. Definition at line 5042 of file txtattr.cpp. 05043 { 05044 pRegion->SetTxtUnderline(&Value, FALSE); 05045 }
|
|
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 5068 of file txtattr.cpp. 05069 { 05070 AttrTxtUnderline* NodeCopy = new AttrTxtUnderline(); 05071 ERRORIF(NodeCopy == NULL, _R(IDE_NOMORE_MEMORY), NULL); 05072 CopyNodeContents(NodeCopy); 05073 return NodeCopy; 05074 }
|
|
Reimplemented from Node. Definition at line 5244 of file txtattr.cpp. 05245 { 05246 #ifdef DO_EXPORT 05247 ERROR2IF(pFilter==NULL, FALSE, "Parameter pFilter == NULL."); 05248 05249 return CXaraFileTxtUnderline::WritePreChildrenNative(pFilter, this); 05250 #else 05251 return FALSE; 05252 #endif 05253 }
|
|
Saves the text underline attribute to the new file format filter.
Reimplemented from Node. Definition at line 5233 of file txtattr.cpp. 05234 { 05235 #ifdef DO_EXPORT 05236 ERROR2IF(pFilter==NULL, FALSE, "Parameter pFilter == NULL."); 05237 05238 return CXaraFileTxtUnderline::WritePreChildrenWeb(pFilter, this); 05239 #else 05240 return FALSE; 05241 #endif 05242 }
|
|
|