#include <txtattr.h>
Inheritance diagram for TxtLeftMarginAttribute:
Public Member Functions | |
TxtLeftMarginAttribute () | |
Default Constuctor for TxtLeftMarginAttribute. | |
TxtLeftMarginAttribute (MILLIPOINT value) | |
TxtLeftMarginAttribute constructor. | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the TxtLeftMarginAttribute attribute for the given render region. | |
virtual void | Render (RenderRegion *pRegion, BOOL Temp=FALSE) |
Sets the TxtLeftMarginAttribute 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 TxtLeftMarginAttribute & | operator= (TxtLeftMarginAttribute &Attrib) |
Make the Attribute the same as the other. | |
INT32 | operator== (const TxtLeftMarginAttribute &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 695 of file txtattr.h.
|
Default Constuctor for TxtLeftMarginAttribute.
Definition at line 2416 of file txtattr.cpp. 02417 { 02418 Value = 0; 02419 }
|
|
TxtLeftMarginAttribute constructor.
Definition at line 2433 of file txtattr.cpp. 02434 { 02435 Value = value; 02436 }
|
|
Registers default attribute.
Reimplemented from SimpleCCObject. Definition at line 2566 of file txtattr.cpp. 02567 { 02568 TxtLeftMarginAttribute *pAttr = new TxtLeftMarginAttribute; 02569 if (pAttr==NULL) 02570 // error message has already been set by new 02571 return FALSE; 02572 02573 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(BaseTextClass), 02574 pAttr); 02575 02576 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising TxtLeftMarginAttribute"); 02577 02578 return TRUE; 02579 }
|
|
See base class version.
Reimplemented from AttributeValue. Definition at line 2543 of file txtattr.cpp. 02544 { 02545 // This must be at least a FillGeometryAttribute... 02546 ERROR3IF(!pAttr->IsKindOf(CC_RUNTIME_CLASS(TxtLeftMarginAttribute)), 02547 "Different attribute types in TxtLeftMarginAttribute::IsDifferent()"); 02548 02549 // Check they are NOT the same. 02550 return ( !(*((TxtLeftMarginAttribute *)pAttr) == *this) ); 02551 }
|
|
Make a AttrTxtTracking node, see base class.
Reimplemented from AttributeValue. Definition at line 2594 of file txtattr.cpp. 02595 { 02596 // Create new attribute node 02597 AttrTxtLeftMargin* pAttr = new AttrTxtLeftMargin(); 02598 if (pAttr==NULL) 02599 // error message has already been set by new 02600 return NULL; 02601 02602 // Copy attribute value into the new node. 02603 pAttr->Value.SimpleCopy(this); 02604 02605 // Return the new node 02606 return pAttr; 02607 }
|
|
Make the Attribute the same as the other.
Definition at line 2486 of file txtattr.cpp.
|
|
Comparison operator. See NodeAttribute::operator== for a description of why it's required.
Definition at line 2506 of file txtattr.cpp.
|
|
Sets the TxtLeftMarginAttribute attribute for the given render region.
Implements AttributeValue. Definition at line 2449 of file txtattr.cpp. 02450 { 02451 pRegion->SetTxtLeftMargin(this, Temp); 02452 }
|
|
Restores the TxtLeftMarginAttribute attribute for the given render region.
Implements TxtBaseClassAttribute. Definition at line 2468 of file txtattr.cpp. 02469 { 02470 pRegion->RestoreTxtLeftMargin(this, Temp); 02471 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 2522 of file txtattr.cpp. 02523 { 02524 ERROR3IF(!IS_A(pValue, TxtLeftMarginAttribute), 02525 "Invalid Attribute value passed to TxtLeftMarginAttribute::SimpleCopy"); 02526 // We may as well just use our assignment operator. 02527 *this = *((TxtLeftMarginAttribute*)pValue); 02528 }
|
|
|