#include <txtattr.h>
Inheritance diagram for TxtFirstIndentAttribute:
Public Member Functions | |
TxtFirstIndentAttribute () | |
Default Constuctor for TxtLeftMarginAttribute. | |
TxtFirstIndentAttribute (MILLIPOINT value) | |
TxtFirstIndentAttribute constructor. | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the TxtFirstIndentAttribute attribute for the given render region. | |
virtual void | Render (RenderRegion *pRegion, BOOL Temp=FALSE) |
Sets the TxtFirstIndentAttribute 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 TxtFirstIndentAttribute & | operator= (TxtFirstIndentAttribute &Attrib) |
Make the Attribute the same as the other. | |
INT32 | operator== (const TxtFirstIndentAttribute &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 765 of file txtattr.h.
|
Default Constuctor for TxtLeftMarginAttribute.
Definition at line 2829 of file txtattr.cpp. 02830 { 02831 Value = 0; 02832 }
|
|
TxtFirstIndentAttribute constructor.
Definition at line 2846 of file txtattr.cpp. 02847 { 02848 Value = value; 02849 }
|
|
Registers default attribute.
Reimplemented from SimpleCCObject. Definition at line 2980 of file txtattr.cpp. 02981 { 02982 TxtFirstIndentAttribute *pAttr = new TxtFirstIndentAttribute; 02983 if (pAttr==NULL) 02984 // error message has already been set by new 02985 return FALSE; 02986 02987 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(BaseTextClass), 02988 pAttr); 02989 02990 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising TxtFirstIndentAttribute"); 02991 02992 return TRUE; 02993 }
|
|
See base class version.
Reimplemented from AttributeValue. Definition at line 2957 of file txtattr.cpp. 02958 { 02959 // This must be at least a FillGeometryAttribute... 02960 ERROR3IF(!pAttr->IsKindOf(CC_RUNTIME_CLASS(TxtFirstIndentAttribute)), 02961 "Different attribute types in TxtFirstIndentAttribute::IsDifferent()"); 02962 02963 // Check they are NOT the same. 02964 return ( !(*((TxtFirstIndentAttribute *)pAttr) == *this) ); 02965 }
|
|
Make a AttrTxtTracking node, see base class.
Reimplemented from AttributeValue. Definition at line 3008 of file txtattr.cpp. 03009 { 03010 // Create new attribute node 03011 AttrTxtFirstIndent* pAttr = new AttrTxtFirstIndent(); 03012 if (pAttr==NULL) 03013 // error message has already been set by new 03014 return NULL; 03015 03016 // Copy attribute value into the new node. 03017 pAttr->Value.SimpleCopy(this); 03018 03019 // Return the new node 03020 return pAttr; 03021 }
|
|
Make the Attribute the same as the other.
Definition at line 2900 of file txtattr.cpp.
|
|
Comparison operator. See NodeAttribute::operator== for a description of why it's required.
Definition at line 2920 of file txtattr.cpp.
|
|
Sets the TxtFirstIndentAttribute attribute for the given render region.
Implements AttributeValue. Definition at line 2863 of file txtattr.cpp. 02864 { 02865 pRegion->SetTxtFirstIndent(this, Temp); 02866 }
|
|
Restores the TxtFirstIndentAttribute attribute for the given render region.
Implements TxtBaseClassAttribute. Definition at line 2882 of file txtattr.cpp. 02883 { 02884 pRegion->RestoreTxtFirstIndent(this, Temp); 02885 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 2936 of file txtattr.cpp. 02937 { 02938 ERROR3IF(!IS_A(pValue, TxtFirstIndentAttribute), 02939 "Invalid Attribute value passed to TxtFirstIndentAttribute::SimpleCopy"); 02940 // We may as well just use our assignment operator. 02941 *this = *((TxtFirstIndentAttribute*)pValue); 02942 }
|
|
|