TxtTabStop Class Reference

This type represents a tab stop (part of a ruler attribute). More...

#include <txtattr.h>

List of all members.

Public Member Functions

 TxtTabStop (TxtTabType TheType, MILLIPOINT ThePosition)
 Constructor.
 TxtTabStop (TxtTabType TheType, MILLIPOINT ThePosition, WCHAR DecimalPointChar, WCHAR TabFillerChar)
 Alternative constructor (mainly for use by loader code).
TxtTabType GetType () const
void SetType (TxtTabType TheType)
 Constructor.
MILLIPOINT GetPosition () const
void SetPosition (MILLIPOINT ThePosition)
WCHAR GetDecimalPointChar () const
void SetDecimalPointChar (WCHAR DecimalPointChar)
WCHAR GetTabFillerChar () const
void SetTabFillerChar (WCHAR TheChar)

Private Attributes

TxtTabType mType
MILLIPOINT mPosition
WCHAR mDecimalPointChar
WCHAR mTabFillerChar


Detailed Description

This type represents a tab stop (part of a ruler attribute).

Author:
Martin Wuerthner <xara@mw-software.com>
Date:
13/6/06

Definition at line 595 of file txtattr.h.


Constructor & Destructor Documentation

TxtTabStop::TxtTabStop TxtTabType  TheType,
MILLIPOINT  ThePosition
 

Constructor.

Author:
Martin Wuerthner <xara@mw-software.com>
Date:
27/06/06
Parameters:
TheType - the type of the tab stop (left, right, centre, decimal) [INPUTS] Position - its position

Definition at line 3272 of file txtattr.cpp.

03272                                                                 :
03273     mType(TheType), mPosition(ThePosition), mTabFillerChar((WCHAR)0)
03274 {
03275     // The decimal point character is initialised by reading the character used in the conversion class
03276     if (TheType == DecimalTab)
03277         mDecimalPointChar = Convert::GetDecimalPointChar();
03278     else
03279         // not a decimal tab, so set to a well-defined value (to make equality comparisons easier)
03280         mDecimalPointChar = (WCHAR)0;
03281 }

TxtTabStop::TxtTabStop TxtTabType  Type,
MILLIPOINT  ThePosition,
WCHAR  DecimalPointChar,
WCHAR  TabFillerChar
 

Alternative constructor (mainly for use by loader code).

Author:
Martin Wuerthner <xara@mw-software.com>
Date:
27/06/06
Parameters:
Type - the type of the tab stop [INPUTS] Position - its position DecimalPointChar - the character to align to (in case of a decimal tab) TabFillerChar - the tab filler character (always 0 at the moment)

Definition at line 3297 of file txtattr.cpp.

03298     :mType(Type), mPosition(ThePosition), mDecimalPointChar(DecimalPointChar), mTabFillerChar(TabFillerChar)
03299 {
03300 }


Member Function Documentation

WCHAR TxtTabStop::GetDecimalPointChar  )  const [inline]
 

Definition at line 608 of file txtattr.h.

00608 { return mDecimalPointChar; }

MILLIPOINT TxtTabStop::GetPosition void   )  const [inline]
 

Definition at line 606 of file txtattr.h.

00606 { return mPosition; }

WCHAR TxtTabStop::GetTabFillerChar  )  const [inline]
 

Definition at line 610 of file txtattr.h.

00610 { return mTabFillerChar; }

TxtTabType TxtTabStop::GetType void   )  const [inline]
 

Definition at line 604 of file txtattr.h.

00604 { return mType; }

void TxtTabStop::SetDecimalPointChar WCHAR  DecimalPointChar  )  [inline]
 

Definition at line 609 of file txtattr.h.

00609 { mDecimalPointChar = DecimalPointChar; }

void TxtTabStop::SetPosition MILLIPOINT  ThePosition  )  [inline]
 

Definition at line 607 of file txtattr.h.

00607 { mPosition = ThePosition; }

void TxtTabStop::SetTabFillerChar WCHAR  TheChar  )  [inline]
 

Definition at line 611 of file txtattr.h.

00611 { mTabFillerChar = TheChar; }

void TxtTabStop::SetType TxtTabType  TheType  ) 
 

Constructor.

Author:
Martin Wuerthner <xara@mw-software.com>
Date:
27/06/06
Parameters:
TheType - the type of the tab stop (left, right, centre, decimal) [INPUTS] Position - its position

Definition at line 3314 of file txtattr.cpp.

03315 {
03316     // in addition to setting the type we also update the decimal point char to the
03317     // one valid in the current locale if the type is changed to decimal tab
03318      mType = TheType;
03319      if (TheType == DecimalTab)
03320         mDecimalPointChar = Convert::GetDecimalPointChar();
03321      else
03322         mDecimalPointChar = (WCHAR)0;
03323 }


Member Data Documentation

WCHAR TxtTabStop::mDecimalPointChar [private]
 

Definition at line 616 of file txtattr.h.

MILLIPOINT TxtTabStop::mPosition [private]
 

Definition at line 615 of file txtattr.h.

WCHAR TxtTabStop::mTabFillerChar [private]
 

Definition at line 617 of file txtattr.h.

TxtTabType TxtTabStop::mType [private]
 

Definition at line 614 of file txtattr.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:02:33 2007 for Camelot by  doxygen 1.4.4