HorizontalRuler Class Reference

Encapsulates horizontal ruler. More...

#include <rulers.h>

Inheritance diagram for HorizontalRuler:

RulerBase List of all members.

Public Member Functions

 HorizontalRuler ()
 Constructor for HorizontalRuler.
BOOL Init (RulerPair *pRulers, OILHorizontalRuler *pOILHRuler)
 Init a HorizontalRuler.
virtual MILLIPOINT GetOrd (const UserCoord &coord)
virtual UserCoord MakeCoord (const MILLIPOINT ord)
virtual BOOL IsHorizontal ()

Private Member Functions

 CC_DECLARE_MEMDUMP (HorizontalRuler)

Detailed Description

Encapsulates horizontal ruler.

Author:
Ed_Cornes (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/8/95

Definition at line 176 of file rulers.h.


Constructor & Destructor Documentation

HorizontalRuler::HorizontalRuler  ) 
 

Constructor for HorizontalRuler.

Author:
Ed_Cornes (Xara Group Ltd) <camelotdev@xara.com>
Date:
29/8/95

Definition at line 488 of file rulers.cpp.

00489 {
00490     pOILRuler  = NULL;
00491     pRulerPair = NULL;
00492 }


Member Function Documentation

HorizontalRuler::CC_DECLARE_MEMDUMP HorizontalRuler   )  [private]
 

virtual MILLIPOINT HorizontalRuler::GetOrd const UserCoord coord  )  [inline, virtual]
 

Implements RulerBase.

Definition at line 184 of file rulers.h.

00184 { return coord.x; }

BOOL HorizontalRuler::Init RulerPair pRulers,
OILHorizontalRuler pHOILRuler
 

Init a HorizontalRuler.

Author:
Ed_Cornes (Xara Group Ltd) <camelotdev@xara.com>
Date:
29/8/95
Parameters:
pRulers - pointer to parent RulerPair object [INPUTS] pOILRuler - pointer to the associated WinOil ruler class
Returns:
FALSE if fails

Definition at line 506 of file rulers.cpp.

00507 {
00508     ERROR2IF(pHOILRuler==NULL,FALSE,"HorizontalRuler::Init() - pVOILRuler==NULL");
00509     ERROR2IF(   pRulers==NULL,FALSE,"HorizontalRuler::Init() - pRulers==NULL");
00510 
00511     pOILRuler  = pHOILRuler;
00512     pRulerPair = pRulers;
00513 
00514     return TRUE;
00515 }

virtual BOOL HorizontalRuler::IsHorizontal  )  [inline, virtual]
 

Implements RulerBase.

Definition at line 186 of file rulers.h.

00186 { return TRUE; }

virtual UserCoord HorizontalRuler::MakeCoord const MILLIPOINT  ord  )  [inline, virtual]
 

Implements RulerBase.

Definition at line 185 of file rulers.h.

00185 { return UserCoord(ord,0); }


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