#include <txtattr.h>
Inheritance diagram for AttrTxtFontSize:
Public Member Functions | |
AttrTxtFontSize () | |
Default constructor for AttrTxtFontSize class. | |
AttrTxtFontSize (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
Creates a AttrTxtFontSize 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 | 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 font size attribute to the new file format filter. | |
virtual BOOL | WritePreChildrenNative (BaseCamelotFilter *pFilter) |
Public Attributes | |
TxtFontSizeAttribute | Value |
Private Member Functions | |
void | CopyNodeContents (AttrTxtFontSize *NodeCopy) |
This method copies the node's contents to the node pointed to by NodeCopy. |
Definition at line 1244 of file txtattr.h.
|
Default constructor for AttrTxtFontSize class.
Definition at line 4723 of file txtattr.cpp.
|
|
Creates a AttrTxtFontSize Attribute.
Definition at line 4698 of file txtattr.cpp. 04704 : AttrTxtBase(ContextNode, Direction, Locked, Mangled, Marked, Selected) 04705 { 04706 }
|
|
Transform the attribute using the baseline relative scale and aspect.
Reimplemented from AttrTxtBase. Definition at line 4931 of file txtattr.cpp. 04932 { 04933 TxtFontSizeAttribute* pFontSizeAttrVal=(TxtFontSizeAttribute*)GetAttributeValue(); 04934 pFontSizeAttrVal->FontSize = XLONG(pFontSizeAttrVal->FontSize) * Scale; 04935 }
|
|
This method copies the node's contents to the node pointed to by NodeCopy.
Definition at line 4845 of file txtattr.cpp. 04846 { 04847 // Let the base class do its bit 04848 AttrTxtBase::CopyNodeContents( NodeCopy ); 04849 04850 //Copy contents specific to derived class here 04851 NodeCopy->Value.FontSize = Value.FontSize; 04852 }
|
|
Reimplemented from NodeAttribute. Definition at line 1266 of file txtattr.h. 01266 { return ATTR_TXTFONTSIZE; }
|
|
Reimplemented from NodeAttribute. Definition at line 1274 of file txtattr.h. 01274 { return &Value; }
|
|
Returns back a string resource ID describing the attribute.
Reimplemented from NodeAttribute. Definition at line 4821 of file txtattr.cpp. 04822 { 04823 return (_R(IDS_FONTSIZE)); 04824 }
|
|
Used for debugging purposes during developement. Override in your own class and output suitable debugging details.
Reimplemented from NodeRenderable. Definition at line 4911 of file txtattr.cpp. 04912 { 04913 NodeAttribute::GetDebugDetails( Str ); 04914 04915 String_256 TempStr; 04916 TempStr._MakeMsg( TEXT("\r\nFontSize=#1%ld\r\n"), Value.FontSize); 04917 (*Str) += TempStr; 04918 }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 4893 of file txtattr.cpp. 04894 { 04895 return (sizeof(AttrTxtFontSize)); 04896 }
|
|
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.
Reimplemented from NodeAttribute. Definition at line 4796 of file txtattr.cpp. 04797 { 04798 ENSURE(Attrib.IsKindOf(CC_RUNTIME_CLASS(AttrTxtFontSize)), 04799 "Trying to compare two objects with different types"); 04800 AttrTxtFontSize* Attr = (AttrTxtFontSize*) &Attrib; 04801 return (Attr->Value.FontSize == Value.FontSize); 04802 }
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from NodeRenderable. Definition at line 4867 of file txtattr.cpp. 04868 { 04869 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 04870 ENSURE(IS_A(pNodeCopy, AttrTxtFontSize), "PolyCopyNodeContents given wrong dest node type"); 04871 04872 if (IS_A(pNodeCopy, AttrTxtFontSize)) 04873 CopyNodeContents((AttrTxtFontSize*)pNodeCopy); 04874 }
|
|
'Renders' a Line Width attribute.
Reimplemented from NodeAttribute. Definition at line 4743 of file txtattr.cpp. 04744 { 04745 pRegion->SetTxtFontSize(&Value, FALSE); 04746 }
|
|
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 4769 of file txtattr.cpp. 04770 { 04771 AttrTxtFontSize* NodeCopy = new AttrTxtFontSize(); 04772 ERRORIF(NodeCopy == NULL, _R(IDE_NOMORE_MEMORY), NULL); 04773 CopyNodeContents(NodeCopy); 04774 return NodeCopy; 04775 }
|
|
Reimplemented from Node. Definition at line 4961 of file txtattr.cpp. 04962 { 04963 #ifdef DO_EXPORT 04964 ERROR2IF(pFilter==NULL, FALSE, "Parameter pFilter == NULL."); 04965 04966 return CXaraFileTxtFontSize::WritePreChildrenNative(pFilter, this); 04967 #else 04968 return FALSE; 04969 #endif 04970 }
|
|
Saves the text font size attribute to the new file format filter.
Reimplemented from Node. Definition at line 4950 of file txtattr.cpp. 04951 { 04952 #ifdef DO_EXPORT 04953 ERROR2IF(pFilter==NULL, FALSE, "Parameter pFilter == NULL."); 04954 04955 return CXaraFileTxtFontSize::WritePreChildrenWeb(pFilter, this); 04956 #else 04957 return FALSE; 04958 #endif 04959 }
|
|
|