OOFILE  1.9
Public Member Functions | List of all members

Cross-platform specification of text style. More...

#include <oofrep.h>

Inheritance diagram for oofRepTextStyle:
Inheritance graph
[legend]

Public Member Functions

oofColSizer::colAlignT alignment () const
 
void alignment (oofColSizer::colAlignT)
 
virtual oofRepTextStyleclone () const
 
const oofColorcolor () const
 
void color (const oofColor &)
 
void extract (std::ostream &) const
 
void finishConstruction ()
 public so delayed init can be performed by other classes More...
 
unsigned long fixedHeight ()
 
const oofStringfontName () const
 
void fontName (const oofString &)
 
unsigned short fontSize () const
 
void fontSize (unsigned short)
 
unsigned char fontStyle () const
 
void fontStyle (unsigned char)
 
bool invariant () const
 true after full initialisation More...
 
short leading () const
 
void leading (short)
 
 oofRepTextStyle ()
 mainly used by subclasses for delayed init, must set fontname & size before valid More...
 
 oofRepTextStyle (const char *fontName, unsigned short fontSize, unsigned char styleNum=0, short leading=0, oofColor color=oofColor::Black, oofColSizer::colAlignT Alin=oofColSizer::alignLeft)
 
 oofRepTextStyle (const char *fontName, unsigned short fontSize, oofColSizer::colAlignT Alin, unsigned char styleNum=0, short leading=0, oofColor color=oofColor::Black)
 
bool operator== (const oofRepTextStyle &) const
 
virtual ~oofRepTextStyle ()
 

Detailed Description

Cross-platform specification of text style.

Attributes specified that identify OS font are fontName, size & style. Macintosh style constants are used, OOF_MacStyleEnumT on Windows. Rendering is further controlled by alignment, leading & color. Uses two-stage init via finishConstruction().

Definition at line 732 of file oofrep.h.

Constructor & Destructor Documentation

oofRepTextStyle::oofRepTextStyle ( )

mainly used by subclasses for delayed init, must set fontname & size before valid

Definition at line 1665 of file oofrep1.cpp.

Referenced by clone().

oofRepTextStyle::oofRepTextStyle ( const char *  fontName,
unsigned short  fontSize,
unsigned char  styleNum = 0,
short  leading = 0,
oofColor  color = oofColor::Black,
oofColSizer::colAlignT  Alin = oofColSizer::alignLeft 
)

Definition at line 1678 of file oofrep1.cpp.

References finishConstruction().

oofRepTextStyle::oofRepTextStyle ( const char *  fontName,
unsigned short  fontSize,
oofColSizer::colAlignT  Alin,
unsigned char  styleNum = 0,
short  leading = 0,
oofColor  color = oofColor::Black 
)

Definition at line 1702 of file oofrep1.cpp.

References finishConstruction().

virtual oofRepTextStyle::~oofRepTextStyle ( )
inlinevirtual

Definition at line 738 of file oofrep.h.

Member Function Documentation

oofColSizer::colAlignT oofRepTextStyle::alignment ( ) const
inline
void oofRepTextStyle::alignment ( oofColSizer::colAlignT  inAlignment)
inline

Definition at line 2618 of file oofrep.h.

oofRepTextStyle * oofRepTextStyle::clone ( ) const
virtual
const oofColor & oofRepTextStyle::color ( ) const
inline
void oofRepTextStyle::color ( const oofColor inColor)
inline

Definition at line 2612 of file oofrep.h.

void oofRepTextStyle::extract ( std::ostream &  ) const

Definition at line 1765 of file oofrep1.cpp.

Referenced by oofRepSettings::describe(), and operator<<().

void oofRepTextStyle::finishConstruction ( )

public so delayed init can be performed by other classes

Definition at line 1715 of file oofrep1.cpp.

References invariant().

Referenced by oofRepTextStyle(), and oofCSS2RepTextStyle::parseStyleText().

unsigned long oofRepTextStyle::fixedHeight ( )
const oofString & oofRepTextStyle::fontName ( ) const
inline
void oofRepTextStyle::fontName ( const oofString inName)
inline

Definition at line 2584 of file oofrep.h.

unsigned short oofRepTextStyle::fontSize ( ) const
inline
void oofRepTextStyle::fontSize ( unsigned short  inSize)
inline

Definition at line 2591 of file oofrep.h.

unsigned char oofRepTextStyle::fontStyle ( ) const
inline
void oofRepTextStyle::fontStyle ( unsigned char  inStyle)
inline

Definition at line 2598 of file oofrep.h.

bool oofRepTextStyle::invariant ( ) const
inline

true after full initialisation

Definition at line 2633 of file oofrep.h.

References _Windows, and oofString::isEmpty().

Referenced by finishConstruction(), fontName(), fontSize(), and OOF_repXMLstyleCleanupVisitor::VisitDrawable().

short oofRepTextStyle::leading ( ) const
inline
void oofRepTextStyle::leading ( short  inLeading)
inline

Definition at line 2605 of file oofrep.h.

bool oofRepTextStyle::operator== ( const oofRepTextStyle rhs) const

Definition at line 1740 of file oofrep1.cpp.


The documentation for this class was generated from the following files: