txtattr.h File Reference

(r1785/r1535)

#include "node.h"
#include "attrval.h"
#include "nodeattr.h"
#include "trans2d.h"
#include "fixed16.h"
#include <list>

Go to the source code of this file.

Classes

class  TxtBaseClassAttribute
 The base class from which all text attributes are derived. More...
class  TxtFontTypefaceAttribute
 Specifies a FontTypeface. Note that only a handle to the Typeface is stored in the attribute, not the full string description. More...
class  TxtFontSizeAttribute
 Specifies the size of a font. More...
class  TxtBoldAttribute
 This text attribute specifies the BOLD state (on/off). More...
class  TxtItalicAttribute
 This text attribute specifies the ITALIC state (on/off). More...
class  TxtUnderlineAttribute
 This text attribute specifies if text is underlined or not. More...
class  TxtJustificationAttribute
 This text attribute specifies the current text justification. More...
class  TxtTrackingAttribute
 This text attribute specifies a spacing between characters, it can be positive or negative. More...
class  TxtAspectRatioAttribute
 This text attribute specifies the aspect ratio of characters. More...
class  TxtScriptAttribute
 This text attribute specifies the superscript/subscript value of a char. More...
class  TxtBaseLineAttribute
 This text attribute specifies the aspect ratio of characters. More...
class  TxtLineSpaceAttribute
 This text attribute specifies the aspect ratio of characters. More...
class  TxtTabStop
 This type represents a tab stop (part of a ruler attribute). More...
class  TxtRulerAttribute
 This text attribute specifies the ruler (i.e., tab stops) Conceptually, a ruler is just a pointer to a sorted list of tab stops. More...
class  TxtLeftMarginAttribute
 This text attribute specifies the left margin. More...
class  TxtRightMarginAttribute
 This text attribute specifies the right margin. More...
class  TxtFirstIndentAttribute
 This text attribute specifies the first line indent. More...
class  AttrTxtBase
 AttrTxtBase is the base class from which all text attribute nodes are derived. More...
class  AttrTxtFontTypeface
 AttrTxtFontTypeface specifies a font typeface. More...
class  AttrTxtBold
 AttrTxtBold specifies if text is bold or not. More...
class  AttrTxtItalic
 AttrTxtFontTypeface specifies if text is italic or not. More...
class  AttrTxtUnderline
 AttrTxtUnderline specifies if text is underlined or not. More...
class  AttrTxtAspectRatio
 AttrTxtAspectRatio specifies the aspect ratio of text. More...
class  AttrTxtJustification
 AttrTxtJustification specifies how text is justified. More...
class  AttrTxtTracking
 AttrTxtTracking specifies text tracking. More...
class  AttrTxtFontSize
 AttrTxtFontSize: specifies the size of a font (height). More...
class  AttrTxtScript
 AttrTxtScript: Specifies sub/super script. More...
class  AttrTxtBaseLine
 AttrTxtBaseLine: specifies an absolute offset from the base-line. More...
class  AttrTxtLeftMargin
 AttrTxtLeftMargin: specifies the left margin. More...
class  AttrTxtRightMargin
 AttrTxtRightMargin: specifies the right margin. More...
class  AttrTxtFirstIndent
 AttrTxtFirstIndent: specifies the first line indent. More...
class  AttrTxtRuler
 AttrTxtRuler: specifies the ruler. More...
class  AttrTxtLineSpace
 AttrTxtLineSpace: specifies the size of a font (height). More...
class  CharDescription
 The CharDescription structure is used to identify a character within the FontCache. To extract the CharCode from a CharDescription To extract the Typeface Handle from a CharDescription To extract the Bold state from a CharDescription To extract the italic state from a CharDescription. More...

Typedefs

typedef list< TxtTabStopTxtRuler
typedef list< TxtTabStop
>::iterator 
TxtTabStopIterator
typedef list< TxtTabStop
>::const_iterator 
const_TxtTabStopIterator

Enumerations

enum  Justification { JLEFT, JRIGHT, JCENTRE, JFULL }
enum  TxtTabType { LeftTab, RightTab, CentreTab, DecimalTab }

Functions

BOOL operator== (const TxtTabStop &t1, const TxtTabStop &t2)
 Comparison operator.
BOOL operator!= (const TxtTabStop &t1, const TxtTabStop &t2)
 Comparison operator.


Typedef Documentation

typedef list<TxtTabStop>::const_iterator const_TxtTabStopIterator
 

Definition at line 628 of file txtattr.h.

typedef list<TxtTabStop> TxtRuler
 

Definition at line 624 of file txtattr.h.

typedef list<TxtTabStop>::iterator TxtTabStopIterator
 

Definition at line 627 of file txtattr.h.


Enumeration Type Documentation

enum Justification
 

Enumerator:
JLEFT 
JRIGHT 
JCENTRE 
JFULL 

Definition at line 142 of file txtattr.h.

00142 { JLEFT, JRIGHT, JCENTRE, JFULL }; 

enum TxtTabType
 

Enumerator:
LeftTab 
RightTab 
CentreTab 
DecimalTab 

Definition at line 143 of file txtattr.h.


Function Documentation

BOOL operator!= const TxtTabStop t1,
const TxtTabStop t2
 

Comparison operator.

Author:
Martin Wuerthner <xara@mw-software.com>
Date:
14/6/06
Parameters:
t1,t2 - the two tab stops to be compared [INPUTS]
Returns:
Usual semantics for inequality.

Definition at line 3356 of file txtattr.cpp.

03357 {
03358     return !(t1 == t2);
03359 }

BOOL operator== const TxtTabStop t1,
const TxtTabStop t2
 

Comparison operator.

Author:
Martin Wuerthner <xara@mw-software.com>
Date:
14/6/06
Parameters:
t1,t2 - the two tab stops to be compared [INPUTS]
Returns:
Usual semantics for equality.

Definition at line 3337 of file txtattr.cpp.

03338 {
03339     return t1.GetType() == t2.GetType() && t1.GetPosition() == t2.GetPosition()
03340         && t1.GetDecimalPointChar() == t2.GetDecimalPointChar()
03341         && t1.GetTabFillerChar() == t2.GetTabFillerChar();
03342 }


Generated on Sat Nov 10 03:49:22 2007 for Camelot by  doxygen 1.4.4