TextLine Struct Reference

Helper object for printed text line. More...

#include <TextPart.h>

List of all members.

Public Member Functions

 TextLine ()
 Default constructor.
 TextLine (const TextLine &other)
 Copy constructor.
 TextLine (const std::wstring &s, const RECTL &rc, const PGLYPHPOS &arGlyphPos, const POINTQF *pWidths)
 Constructor: from a string of variable-width font.
 TextLine (const std::wstring &s, const RECTL &rc, int nCharWidth)
 Constructor: from a string of fixed-width font.
bool AddTextSameLine (const TextLine &other)
 This function checks if the received line of text is on the same line as this one, and if so, adds its data to this line.

Public Attributes

RECTL rcArea
 The line's area.

Protected Member Functions

void SetSides ()
 Updates the line's rectangle using the word locations.

Detailed Description

Helper object for printed text line.

Definition at line 134 of file TextPart.h.


Constructor & Destructor Documentation

TextLine::TextLine ( const TextLine other  )  [inline]

Copy constructor.

Parameters:
other The text line object to copy

Definition at line 145 of file TextPart.h.

References rcArea.

TextLine::TextLine ( const std::wstring &  s,
const RECTL &  rc,
const PGLYPHPOS &  arGlyphPos,
const POINTQF *  pWidths 
)

Constructor: from a string of variable-width font.

Parameters:
s The line's text
rc The line's printed location
arGlyphPos Array of glyph locations
pWidths Array of glyph widths

Definition at line 81 of file TextPart.cpp.

References SetSides().

TextLine::TextLine ( const std::wstring &  s,
const RECTL &  rc,
int  nCharWidth 
)

Constructor: from a string of fixed-width font.

Parameters:
s The line's text
rc The line's printed location
nCharWidth The width of each glyph (fixed font)

Definition at line 114 of file TextPart.cpp.

References SetSides().


Member Function Documentation

bool TextLine::AddTextSameLine ( const TextLine other  ) 

This function checks if the received line of text is on the same line as this one, and if so, adds its data to this line.

Parameters:
other The text line object to check
Returns:
true if the other line object's data was added to this one, false if not

Definition at line 158 of file TextPart.cpp.

References OnSameLine(), and rcArea.

Referenced by TextArea::AddLine().


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

Generated on Mon Jun 18 12:52:51 2012 for Excel to PDF Converter by doxygen 1.6.1