MarkPosition Class Reference

An instance of a mark lives in a particular region and not only this, contains a format and a transform. More...

#include <prnmks.h>

Inheritance diagram for MarkPosition:

ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 MarkPosition ()
 Construct a mark position object.
void Initialise ()
 Initialise all the local variables in this mark position.
void SetRegion (MarkRegion region)
void SetFormat (MarkFormat format)
MarkFormat GetFormat () const
MarkRegion GetRegion () const
BOOL IsEqualTo (const MarkPosition *pOther) const
 Check whether another mark position is identical to this one.

Private Member Functions

 CC_DECLARE_DYNCREATE (MarkPosition)

Private Attributes

MarkRegion Region
MarkFormat Format

Detailed Description

An instance of a mark lives in a particular region and not only this, contains a format and a transform.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/07/96

Definition at line 247 of file prnmks.h.


Constructor & Destructor Documentation

MarkPosition::MarkPosition  ) 
 

Construct a mark position object.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/07/96

Definition at line 266 of file prnmks.cpp.

00267 {
00268     Initialise();
00269 }


Member Function Documentation

MarkPosition::CC_DECLARE_DYNCREATE MarkPosition   )  [private]
 

MarkFormat MarkPosition::GetFormat  )  const [inline]
 

Definition at line 259 of file prnmks.h.

00259 { return Format; }

MarkRegion MarkPosition::GetRegion  )  const [inline]
 

Definition at line 260 of file prnmks.h.

00260 { return Region; }

void MarkPosition::Initialise  ) 
 

Initialise all the local variables in this mark position.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/07/96

Definition at line 282 of file prnmks.cpp.

00283 {
00284     Region = MarkRegion_TopLeft;
00285 }

BOOL MarkPosition::IsEqualTo const MarkPosition pOther  )  const
 

Check whether another mark position is identical to this one.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/07/96
Parameters:
pOther = a pointer to a mark position to match [INPUTS]
Returns:
TRUE if pOther is identical to this mark FALSE if not

Definition at line 301 of file prnmks.cpp.

00302 {
00303     ERROR2IF(pOther==NULL, FALSE, "NULL pointer passed to MarkPosition::IsEqualTo");
00304     return ( (Region == pOther->Region) &&
00305              (Format == pOther->Format)
00306            );
00307 }

void MarkPosition::SetFormat MarkFormat  format  )  [inline]
 

Definition at line 257 of file prnmks.h.

00257 { Format = format; }

void MarkPosition::SetRegion MarkRegion  region  )  [inline]
 

Definition at line 256 of file prnmks.h.

00256 { Region = region; }


Member Data Documentation

MarkFormat MarkPosition::Format [private]
 

Definition at line 266 of file prnmks.h.

MarkRegion MarkPosition::Region [private]
 

Definition at line 265 of file prnmks.h.


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