#include <txtattr.h>
Inheritance diagram for AttrTxtBaseLine:
Public Member Functions | |
AttrTxtBaseLine () | |
Default constructor for AttrTxtBaseLine class. | |
AttrTxtBaseLine (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
Creates a AttrTxtBaseLine 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 baseline attribute to the new file format filter. | |
virtual BOOL | WritePreChildrenNative (BaseCamelotFilter *pFilter) |
Public Attributes | |
TxtBaseLineAttribute | Value |
Private Member Functions | |
void | CopyNodeContents (AttrTxtBaseLine *NodeCopy) |
This method copies the node's contents to the node pointed to by NodeCopy. |
Definition at line 1360 of file txtattr.h.
|
Default constructor for AttrTxtBaseLine class.
Definition at line 6456 of file txtattr.cpp.
|
|
Creates a AttrTxtBaseLine Attribute.
Definition at line 6431 of file txtattr.cpp. 06437 : AttrTxtBase(ContextNode, Direction, Locked, Mangled, Marked, Selected) 06438 { 06439 }
|
|
Transform the attribute using the baseline relative scale and aspect.
Reimplemented from AttrTxtBase. Definition at line 6664 of file txtattr.cpp. 06665 { 06666 TxtBaseLineAttribute* pBaseLineAttrVal=(TxtBaseLineAttribute*)GetAttributeValue(); 06667 pBaseLineAttrVal->Value = XLONG(pBaseLineAttrVal->Value) * Scale; 06668 }
|
|
This method copies the node's contents to the node pointed to by NodeCopy.
Definition at line 6578 of file txtattr.cpp. 06579 { 06580 // Let the base class do its bit 06581 NodeAttribute::CopyNodeContents( NodeCopy ); 06582 06583 //Copy contents specific to derived class here 06584 NodeCopy->Value.Value = Value.Value; 06585 }
|
|
Reimplemented from NodeAttribute. Definition at line 1382 of file txtattr.h. 01382 { return ATTR_TXTBASELINE; }
|
|
Reimplemented from NodeAttribute. Definition at line 1390 of file txtattr.h. 01390 { return &Value; }
|
|
Returns back a string resource ID describing the attribute.
Reimplemented from NodeAttribute. Definition at line 6554 of file txtattr.cpp. 06555 { 06556 return (_R(IDS_BASELINE)); 06557 }
|
|
Used for debugging purposes during developement. Override in your own class and output suitable debugging details.
Reimplemented from NodeRenderable. Definition at line 6644 of file txtattr.cpp. 06645 { 06646 NodeAttribute::GetDebugDetails( Str ); 06647 06648 String_256 TempStr; 06649 TempStr._MakeMsg( TEXT("\r\nRise=#1%ld\r\n"), Value.Value); 06650 (*Str) += TempStr; 06651 }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 6626 of file txtattr.cpp. 06627 { 06628 return (sizeof(AttrTxtBaseLine)); 06629 }
|
|
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.
Reimplemented from NodeAttribute. Definition at line 6529 of file txtattr.cpp. 06530 { 06531 ENSURE(Attrib.IsKindOf(CC_RUNTIME_CLASS(AttrTxtBaseLine)), 06532 "Trying to compare two objects with different types"); 06533 AttrTxtBaseLine* Attr = (AttrTxtBaseLine*) &Attrib; 06534 return (Attr->Value.Value == Value.Value); 06535 }
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from NodeRenderable. Definition at line 6600 of file txtattr.cpp. 06601 { 06602 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 06603 ENSURE(IS_A(pNodeCopy, AttrTxtBaseLine), "PolyCopyNodeContents given wrong dest node type"); 06604 06605 if (IS_A(pNodeCopy, AttrTxtBaseLine)) 06606 CopyNodeContents((AttrTxtBaseLine*)pNodeCopy); 06607 }
|
|
'Renders' a Line Width attribute.
Reimplemented from NodeAttribute. Definition at line 6476 of file txtattr.cpp. 06477 { 06478 pRegion->SetTxtBaseLine(&Value, FALSE); 06479 }
|
|
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 6502 of file txtattr.cpp. 06503 { 06504 AttrTxtBaseLine* NodeCopy = new AttrTxtBaseLine(); 06505 ERRORIF(NodeCopy == NULL, _R(IDE_NOMORE_MEMORY), NULL); 06506 CopyNodeContents(NodeCopy); 06507 return NodeCopy; 06508 }
|
|
Reimplemented from Node. Definition at line 6695 of file txtattr.cpp. 06696 { 06697 #ifdef DO_EXPORT 06698 ERROR2IF(pFilter==NULL, FALSE, "Parameter pFilter == NULL."); 06699 06700 return CXaraFileTxtBaseLine::WritePreChildrenNative(pFilter, this); 06701 #else 06702 return FALSE; 06703 #endif 06704 }
|
|
Saves the text baseline attribute to the new file format filter.
Reimplemented from Node. Definition at line 6684 of file txtattr.cpp. 06685 { 06686 #ifdef DO_EXPORT 06687 ERROR2IF(pFilter==NULL, FALSE, "Parameter pFilter == NULL."); 06688 06689 return CXaraFileTxtBaseLine::WritePreChildrenWeb(pFilter, this); 06690 #else 06691 return FALSE; 06692 #endif 06693 }
|
|
|