#include <txtattr.h>
Inheritance diagram for AttrTxtItalic:
Public Member Functions | |
AttrTxtItalic () | |
Default constructor for AttrTxtItalic class. | |
AttrTxtItalic (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
Creates a AttrTxtItalic 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 font italic attribute to the new file format filter. | |
virtual BOOL | WritePreChildrenNative (BaseCamelotFilter *pFilter) |
Public Attributes | |
TxtItalicAttribute | Value |
Private Member Functions | |
void | CopyNodeContents (AttrTxtItalic *NodeCopy) |
This method copies the node's contents to the node pointed to by NodeCopy. |
Definition at line 956 of file txtattr.h.
|
Default constructor for AttrTxtItalic class.
Definition at line 4437 of file txtattr.cpp.
|
|
Creates a AttrTxtItalic Attribute.
Definition at line 4412 of file txtattr.cpp. 04418 : AttrTxtBase(ContextNode, Direction, Locked, Mangled, Marked, Selected) 04419 { 04420 }
|
|
This method copies the node's contents to the node pointed to by NodeCopy.
Definition at line 4559 of file txtattr.cpp. 04560 { 04561 // Let the base class do its bit 04562 AttrTxtBase::CopyNodeContents( NodeCopy ); 04563 04564 //Copy contents specific to derived class here 04565 NodeCopy->Value.ItalicOn = Value.ItalicOn; 04566 }
|
|
Reimplemented from NodeAttribute. Definition at line 978 of file txtattr.h. 00978 { return ATTR_TXTITALIC; }
|
|
Reimplemented from NodeAttribute. Definition at line 986 of file txtattr.h. 00986 { return &Value; }
|
|
Returns back a string resource ID describing the attribute.
Reimplemented from NodeAttribute. Definition at line 4535 of file txtattr.cpp. 04536 { 04537 return (_R(IDS_ITALIC)); 04538 }
|
|
Used for debugging purposes during developement. Override in your own class and output suitable debugging details.
Reimplemented from NodeRenderable. Definition at line 4625 of file txtattr.cpp. 04626 { 04627 NodeAttribute::GetDebugDetails( Str ); 04628 04629 String_256 TempStr; 04630 TCHAR* p; 04631 04632 (Value.ItalicOn) ? (p = _T("TRUE")) : (p = _T("FALSE")); 04633 TempStr._MakeMsg( TEXT("\r\nItalic=#1%s\r\n"), p); 04634 (*Str) += TempStr; 04635 }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 4607 of file txtattr.cpp. 04608 { 04609 return (sizeof(AttrTxtItalic)); 04610 }
|
|
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.
Reimplemented from NodeAttribute. Definition at line 4510 of file txtattr.cpp. 04511 { 04512 ENSURE(Attrib.IsKindOf(CC_RUNTIME_CLASS(AttrTxtItalic)), 04513 "Trying to compare two objects with different types"); 04514 AttrTxtItalic* Attr = (AttrTxtItalic*) &Attrib; 04515 return (Attr->Value.ItalicOn == Value.ItalicOn); 04516 }
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from NodeRenderable. Definition at line 4581 of file txtattr.cpp. 04582 { 04583 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 04584 ENSURE(IS_A(pNodeCopy, AttrTxtItalic), "PolyCopyNodeContents given wrong dest node type"); 04585 04586 if (IS_A(pNodeCopy, AttrTxtItalic)) 04587 CopyNodeContents((AttrTxtItalic*)pNodeCopy); 04588 }
|
|
'Renders' a Line Width attribute.
Reimplemented from NodeAttribute. Definition at line 4457 of file txtattr.cpp. 04458 { 04459 pRegion->SetTxtItalic(&Value, FALSE); 04460 }
|
|
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 4483 of file txtattr.cpp. 04484 { 04485 AttrTxtItalic* NodeCopy = new AttrTxtItalic(); 04486 ERRORIF(NodeCopy == NULL, _R(IDE_NOMORE_MEMORY), NULL); 04487 CopyNodeContents(NodeCopy); 04488 return NodeCopy; 04489 }
|
|
Reimplemented from Node. Definition at line 4661 of file txtattr.cpp. 04662 { 04663 #ifdef DO_EXPORT 04664 ERROR2IF(pFilter==NULL, FALSE, "Parameter pFilter == NULL."); 04665 04666 return CXaraFileTxtItalic::WritePreChildrenNative(pFilter, this); 04667 #else 04668 return FALSE; 04669 #endif 04670 }
|
|
Saves the text font italic attribute to the new file format filter.
Reimplemented from Node. Definition at line 4650 of file txtattr.cpp. 04651 { 04652 #ifdef DO_EXPORT 04653 ERROR2IF(pFilter==NULL, FALSE, "Parameter pFilter == NULL."); 04654 04655 return CXaraFileTxtItalic::WritePreChildrenWeb(pFilter, this); 04656 #else 04657 return FALSE; 04658 #endif 04659 }
|
|
|