GRAPHICLAYOUT::TEXTBLOCK Class Reference

#include <mi32/grlayout.h>

List of all members.

Public Member Functions

 TEXTBLOCK (const TEXTBLOCK &rhs)
 TEXTBLOCK (const MIUNICODE *str)
 TEXTBLOCK ()
 ~TEXTBLOCK ()
void ClearSizeKnown ()
const DPOINT2DComputeSize (const NAMEDTEXTSTYLE *style, DOUBLE XStart=0.0)
void Draw (MGD::CONTEXT *, const DPOINT2D &basepoint, TEXTBASEORIGIN baseorigin, const NAMEDTEXTSTYLE *style, double XOffset=0.0)
const DPOINT2DGetSize () const
const MISTRINGGetString () const
bool IsSizeKnown () const
void SetString (const MISTRING &str)
const DPOINT2DWordWrap (DOUBLE width, const NAMEDTEXTSTYLE *style, DOUBLE xoffset=0.0)

Static Public Member Functions

static const SERIALIZERITEMGetSerialItemDef ()

Private Member Functions

void FillInBlock (MGD::TEXTBLOCK &block, const NAMEDTEXTSTYLE *style=0, double XOffset=0.0)
void SetupTabStops (MISTRING &str, const NAMEDTEXTSTYLE &style, double XOffset=0.0)

Private Attributes

bool m_bDoWordWrap
bool m_bSizeKnown
MISTRING m_formatted
DPOINT2D m_size
MISTRING m_str
double m_WrapWidth

Constructor & Destructor Documentation

GRAPHICLAYOUT::TEXTBLOCK::TEXTBLOCK (  ) 
GRAPHICLAYOUT::TEXTBLOCK::TEXTBLOCK ( const MIUNICODE str  ) 
GRAPHICLAYOUT::TEXTBLOCK::TEXTBLOCK ( const TEXTBLOCK rhs  ) 
GRAPHICLAYOUT::TEXTBLOCK::~TEXTBLOCK (  )  [inline]

Member Function Documentation

void GRAPHICLAYOUT::TEXTBLOCK::ClearSizeKnown (  )  [inline]
const DPOINT2D& GRAPHICLAYOUT::TEXTBLOCK::ComputeSize ( const NAMEDTEXTSTYLE style,
DOUBLE  XStart = 0.0 
)
Parameters:
XStart Starting location relative to left guide (for tabs)
void GRAPHICLAYOUT::TEXTBLOCK::Draw ( MGD::CONTEXT ,
const DPOINT2D basepoint,
TEXTBASEORIGIN  baseorigin,
const NAMEDTEXTSTYLE style,
double  XOffset = 0.0 
)
Parameters:
XOffset Left margin relateive to base point
void GRAPHICLAYOUT::TEXTBLOCK::FillInBlock ( MGD::TEXTBLOCK block,
const NAMEDTEXTSTYLE style = 0,
double  XOffset = 0.0 
) [private]
static const SERIALIZERITEM* GRAPHICLAYOUT::TEXTBLOCK::GetSerialItemDef (  )  [static]
const DPOINT2D& GRAPHICLAYOUT::TEXTBLOCK::GetSize (  )  const [inline]

Get the size of the block.

Must have called ComputeSize() or WordWrap() first.

const MISTRING& GRAPHICLAYOUT::TEXTBLOCK::GetString (  )  const [inline]
bool GRAPHICLAYOUT::TEXTBLOCK::IsSizeKnown (  )  const [inline]
void GRAPHICLAYOUT::TEXTBLOCK::SetString ( const MISTRING str  ) 
void GRAPHICLAYOUT::TEXTBLOCK::SetupTabStops ( MISTRING str,
const NAMEDTEXTSTYLE style,
double  XOffset = 0.0 
) [private]

Sets the given string to the codes needed to set tabstops for a given text style.

const DPOINT2D& GRAPHICLAYOUT::TEXTBLOCK::WordWrap ( DOUBLE  width,
const NAMEDTEXTSTYLE style,
DOUBLE  xoffset = 0.0 
)
Parameters:
xoffset offset into tabs

Member Data Documentation

Temp string. tab setting codes + (m_str or m_wrapped).

Raw string, not word-wrapped.


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

Generated on Sun Oct 7 21:33:28 2012 for TNTsdk 2012 by  doxygen 1.6.1