#include <txtattr.h>
Inheritance diagram for TxtRightMarginAttribute:
Public Member Functions | |
TxtRightMarginAttribute () | |
Default Constuctor for TxtLeftMarginAttribute. | |
TxtRightMarginAttribute (MILLIPOINT value) | |
TxtRightMarginAttribute constructor. | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the TxtRightMarginAttribute attribute for the given render region. | |
virtual void | Render (RenderRegion *pRegion, BOOL Temp=FALSE) |
Sets the TxtRightMarginAttribute attribute for the given render region. | |
virtual void | SimpleCopy (AttributeValue *) |
See AttributeValue::SimpleCopy. | |
virtual NodeAttribute * | MakeNode () |
Make a AttrTxtTracking node, see base class. | |
BOOL | IsDifferent (AttributeValue *pAttr) |
See base class version. | |
virtual TxtRightMarginAttribute & | operator= (TxtRightMarginAttribute &Attrib) |
Make the Attribute the same as the other. | |
INT32 | operator== (const TxtRightMarginAttribute &Attrib) |
Comparison operator. See NodeAttribute::operator== for a description of why it's required. | |
Static Public Member Functions | |
static BOOL | Init () |
Registers default attribute. | |
Public Attributes | |
MILLIPOINT | Value |
Definition at line 730 of file txtattr.h.
|
Default Constuctor for TxtLeftMarginAttribute.
Definition at line 2622 of file txtattr.cpp. 02623 { 02624 Value = 0; 02625 }
|
|
TxtRightMarginAttribute constructor.
Definition at line 2639 of file txtattr.cpp. 02640 { 02641 Value = value; 02642 }
|
|
Registers default attribute.
Reimplemented from SimpleCCObject. Definition at line 2773 of file txtattr.cpp. 02774 { 02775 TxtRightMarginAttribute *pAttr = new TxtRightMarginAttribute; 02776 if (pAttr==NULL) 02777 // error message has already been set by new 02778 return FALSE; 02779 02780 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(BaseTextClass), 02781 pAttr); 02782 02783 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising TxtRightMarginAttribute"); 02784 02785 return TRUE; 02786 }
|
|
See base class version.
Reimplemented from AttributeValue. Definition at line 2750 of file txtattr.cpp. 02751 { 02752 // This must be at least a FillGeometryAttribute... 02753 ERROR3IF(!pAttr->IsKindOf(CC_RUNTIME_CLASS(TxtRightMarginAttribute)), 02754 "Different attribute types in TxtRightMarginAttribute::IsDifferent()"); 02755 02756 // Check they are NOT the same. 02757 return ( !(*((TxtRightMarginAttribute *)pAttr) == *this) ); 02758 }
|
|
Make a AttrTxtTracking node, see base class.
Reimplemented from AttributeValue. Definition at line 2801 of file txtattr.cpp. 02802 { 02803 // Create new attribute node 02804 AttrTxtRightMargin* pAttr = new AttrTxtRightMargin(); 02805 if (pAttr==NULL) 02806 // error message has already been set by new 02807 return NULL; 02808 02809 // Copy attribute value into the new node. 02810 pAttr->Value.SimpleCopy(this); 02811 02812 // Return the new node 02813 return pAttr; 02814 }
|
|
Make the Attribute the same as the other.
Definition at line 2693 of file txtattr.cpp.
|
|
Comparison operator. See NodeAttribute::operator== for a description of why it's required.
Definition at line 2713 of file txtattr.cpp.
|
|
Sets the TxtRightMarginAttribute attribute for the given render region.
Implements AttributeValue. Definition at line 2656 of file txtattr.cpp. 02657 { 02658 pRegion->SetTxtRightMargin(this, Temp); 02659 }
|
|
Restores the TxtRightMarginAttribute attribute for the given render region.
Implements TxtBaseClassAttribute. Definition at line 2675 of file txtattr.cpp. 02676 { 02677 pRegion->RestoreTxtRightMargin(this, Temp); 02678 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 2729 of file txtattr.cpp. 02730 { 02731 ERROR3IF(!IS_A(pValue, TxtRightMarginAttribute), 02732 "Invalid Attribute value passed to TxtRightMarginAttribute::SimpleCopy"); 02733 // We may as well just use our assignment operator. 02734 *this = *((TxtRightMarginAttribute*)pValue); 02735 }
|
|
|