BevelAttributeValueIndent Class Reference

Sets the indent attribute. More...

#include <attrbev.h>

Inheritance diagram for BevelAttributeValueIndent:

AttributeValue CCObject SimpleCCObject List of all members.

Public Member Functions

 BevelAttributeValueIndent ()
 BevelAttributeValueIndent (INT32 val)
virtual void Restore (RenderRegion *, BOOL)
 Restores the line width attribute for the given render region. i.e. all lines drawn will now be drawn with this line width.
virtual void Render (RenderRegion *, BOOL Temp=FALSE)
 Sets the line width attribute for the given render region. i.e. all lines drawn will now be drawn with this line width.
virtual NodeAttributeMakeNode ()
 Make a AttrbValue node from this line width attribute.
BOOL IsDifferent (AttributeValue *pAttr)
 See base class version.
virtual void SimpleCopy (AttributeValue *)
 See AttributeValue::SimpleCopy.

Static Public Member Functions

static BOOL Init ()
 Registers line width attribute, and provides a default attribute to give 0.25pt lines.

Public Attributes

INT32 m_Indent

Detailed Description

Sets the indent attribute.

Author:
David_McClarnon (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/98
See also:

Definition at line 124 of file attrbev.h.


Constructor & Destructor Documentation

BevelAttributeValueIndent::BevelAttributeValueIndent  ) 
 

Definition at line 576 of file attrbev.cpp.

00577 {
00578 //  m_Indent = -3000;
00579     m_Indent = 0;
00580 }

BevelAttributeValueIndent::BevelAttributeValueIndent INT32  val  )  [inline]
 

Definition at line 129 of file attrbev.h.

00129 { m_Indent = val; }


Member Function Documentation

BOOL BevelAttributeValueIndent::Init void   )  [static]
 

Registers line width attribute, and provides a default attribute to give 0.25pt lines.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/04/94
Returns:
TRUE - initialised ok; FALSE if not.

Errors: Out of memory.

See also:
AttributeManager

Reimplemented from SimpleCCObject.

Definition at line 655 of file attrbev.cpp.

00656 {
00657     BevelAttributeValueIndent *pAttr = new BevelAttributeValueIndent;
00658     if (pAttr == NULL)
00659         return FALSE;
00660 
00661     UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(NodeRenderableInk), 
00662                                                          pAttr);
00663     if (ID == ATTR_BAD_ID)
00664         return FALSE;
00665     ENSURE(ID == ATTR_BEVELINDENT, "Incorrect ID for attribute!");
00666     return TRUE;
00667 }

BOOL BevelAttributeValueIndent::IsDifferent AttributeValue pAttr  )  [virtual]
 

See base class version.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/04/94
Returns:
Errors: The two attributes are not of the same type.
See also:
AttributeValue::IsDifferent

Reimplemented from AttributeValue.

Definition at line 706 of file attrbev.cpp.

00707 {
00708     ENSURE(GetRuntimeClass() == pAttr->GetRuntimeClass(), 
00709            "Different attribute types in AttributeValue::IsDifferent()");
00710     return ((BevelAttributeValueIndent *) pAttr)->m_Indent != m_Indent;
00711 }

NodeAttribute * BevelAttributeValueIndent::MakeNode  )  [virtual]
 

Make a AttrbValue node from this line width attribute.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/04/94
Returns:
Pointer to the new node, or NULL if out of memory.

Errors: Out of memory

See also:
AttributeValue::MakeNode

Reimplemented from AttributeValue.

Definition at line 682 of file attrbev.cpp.

00683 {
00684     // Create new attribute node
00685     AttrBevelIndent *pAttr = new AttrBevelIndent();
00686 
00687     // Copy attribute value into the new node.
00688     pAttr->Value.SimpleCopy(this);
00689 
00690     // Return the new node
00691     return pAttr;
00692 }

void BevelAttributeValueIndent::Render RenderRegion pRegion,
BOOL  Temp = FALSE
[virtual]
 

Sets the line width attribute for the given render region. i.e. all lines drawn will now be drawn with this line width.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
03/02/94
Parameters:
pRegion - the render region to render this attribute into. [INPUTS]
See also:
BevelAttributeValueIndent; RenderStack; AttributeValue; NodeAttribute; BevelAttributeValueIndent::Restore; BevelAttributeValueIndent::SimpleCopy; AttributeValue::Render; AttributeValue::Restore; AttributeValue::SimpleCopy

Implements AttributeValue.

Definition at line 597 of file attrbev.cpp.

00598 {
00599 }

void BevelAttributeValueIndent::Restore RenderRegion pRegion,
BOOL  Temp
[virtual]
 

Restores the line width attribute for the given render region. i.e. all lines drawn will now be drawn with this line width.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
03/02/94
Parameters:
pRegion - the render region to restore the attribute into. [INPUTS] Temp - TRUE if this is a temporary attribute, FALSE if it is permanent (e.g. it's in a document tree).
See also:
BevelAttributeValueIndent; RenderStack; AttributeValue; NodeAttribute; BevelAttributeValueIndent::Render; BevelAttributeValueIndent::SimpleCopy; AttributeValue::Render; AttributeValue::Restore; AttributeValue::SimpleCopy

Implements AttributeValue.

Definition at line 618 of file attrbev.cpp.

00619 {
00620 }

void BevelAttributeValueIndent::SimpleCopy AttributeValue pValue  )  [virtual]
 

See AttributeValue::SimpleCopy.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
03/02/94
Parameters:
pAttr - pointer to the AttributeValue to copy. [INPUTS]
See also:
BevelAttributeValueIndent; RenderStack; AttributeValue; NodeAttribute; BevelAttributeValueIndent::Render; BevelAttributeValueIndent::Restore; AttributeValue::Render; AttributeValue::Restore; AttributeValue::SimpleCopy

Implements AttributeValue.

Definition at line 636 of file attrbev.cpp.

00637 {
00638     m_Indent = ((BevelAttributeValueIndent *) pValue)->m_Indent;
00639 }


Member Data Documentation

INT32 BevelAttributeValueIndent::m_Indent
 

Definition at line 140 of file attrbev.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:51:00 2007 for Camelot by  doxygen 1.4.4