#include <txtattr.h>
Inheritance diagram for AttrTxtScript:
Public Member Functions | |
AttrTxtScript () | |
Default constructor for AttrTxtScript class. | |
AttrTxtScript (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
Creates a AttrTxtScript 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 script attribute to the new file format filter. | |
virtual BOOL | WritePreChildrenNative (BaseCamelotFilter *pFilter) |
Public Attributes | |
TxtScriptAttribute | Value |
Private Member Functions | |
void | CopyNodeContents (AttrTxtScript *NodeCopy) |
This method copies the node's contents to the node pointed to by NodeCopy. |
Definition at line 1303 of file txtattr.h.
|
Default constructor for AttrTxtScript class.
Definition at line 6171 of file txtattr.cpp.
|
|
Creates a AttrTxtScript Attribute.
Definition at line 6146 of file txtattr.cpp. 06152 : AttrTxtBase(ContextNode, Direction, Locked, Mangled, Marked, Selected) 06153 { 06154 }
|
|
This method copies the node's contents to the node pointed to by NodeCopy.
Definition at line 6293 of file txtattr.cpp. 06294 { 06295 // Let the base class do its bit 06296 NodeAttribute::CopyNodeContents( NodeCopy ); 06297 06298 //Copy contents specific to derived class here 06299 NodeCopy->Value.Size = Value.Size; 06300 NodeCopy->Value.Offset = Value.Offset; 06301 }
|
|
Reimplemented from NodeAttribute. Definition at line 1325 of file txtattr.h. 01325 { return ATTR_TXTSCRIPT; }
|
|
Reimplemented from NodeAttribute. Definition at line 1333 of file txtattr.h. 01333 { return &Value; }
|
|
Returns back a string resource ID describing the attribute.
Reimplemented from NodeAttribute. Definition at line 6269 of file txtattr.cpp. 06270 { 06271 return (_R(IDS_SCRIPT)); 06272 }
|
|
Used for debugging purposes during developement. Override in your own class and output suitable debugging details.
Reimplemented from NodeRenderable. Definition at line 6360 of file txtattr.cpp. 06361 { 06362 NodeAttribute::GetDebugDetails( Str ); 06363 06364 String_256 TempStr; 06365 TempStr._MakeMsg( TEXT("\r\nSize=#1%ld\r\n"), Value.Size.GetRawLong() ); 06366 (*Str) += TempStr; 06367 TempStr._MakeMsg( TEXT("Offset=#1%ld\r\n"), Value.Offset.GetRawLong() ); 06368 (*Str) += TempStr; 06369 }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 6342 of file txtattr.cpp. 06343 { 06344 return (sizeof(AttrTxtScript)); 06345 }
|
|
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.
Reimplemented from NodeAttribute. Definition at line 6244 of file txtattr.cpp. 06245 { 06246 ENSURE(Attrib.IsKindOf(CC_RUNTIME_CLASS(AttrTxtScript)), 06247 "Trying to compare two objects with different types"); 06248 AttrTxtScript* Attr = (AttrTxtScript*) &Attrib; 06249 return ((Attr->Value.Size == Value.Size) && (Attr->Value.Offset == Value.Offset)); 06250 }
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from NodeRenderable. Definition at line 6316 of file txtattr.cpp. 06317 { 06318 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 06319 ENSURE(IS_A(pNodeCopy, AttrTxtScript), "PolyCopyNodeContents given wrong dest node type"); 06320 06321 if (IS_A(pNodeCopy, AttrTxtScript)) 06322 CopyNodeContents((AttrTxtScript*)pNodeCopy); 06323 }
|
|
'Renders' a Line Width attribute.
Reimplemented from NodeAttribute. Definition at line 6191 of file txtattr.cpp. 06192 { 06193 pRegion->SetTxtScript(&Value, FALSE); 06194 }
|
|
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 6217 of file txtattr.cpp. 06218 { 06219 AttrTxtScript* NodeCopy = new AttrTxtScript(); 06220 ERRORIF(NodeCopy == NULL, _R(IDE_NOMORE_MEMORY), NULL); 06221 CopyNodeContents(NodeCopy); 06222 return NodeCopy; 06223 }
|
|
Reimplemented from Node. Definition at line 6395 of file txtattr.cpp. 06396 { 06397 #ifdef DO_EXPORT 06398 ERROR2IF(pFilter==NULL, FALSE, "Parameter pFilter == NULL."); 06399 06400 return CXaraFileTxtScript::WritePreChildrenNative(pFilter, this); 06401 #else 06402 return FALSE; 06403 #endif 06404 }
|
|
Saves the text script attribute to the new file format filter.
Reimplemented from Node. Definition at line 6384 of file txtattr.cpp. 06385 { 06386 #ifdef DO_EXPORT 06387 ERROR2IF(pFilter==NULL, FALSE, "Parameter pFilter == NULL."); 06388 06389 return CXaraFileTxtScript::WritePreChildrenWeb(pFilter, this); 06390 #else 06391 return FALSE; 06392 #endif 06393 }
|
|
|