namespace com :: sun :: star :: i18n { class XBreakIterator; } namespace com :: sun :: star :: uno { template <typename > class Reference; }
class OutputDevice; namespace vcl { class Font; } class SvtScriptedTextHelper_Impl; class Size; class Point;
/** Thisclassprovidesdrawingtextwithdifferentscripttypesonanyoutputdevices.
*/ class SVT_DLLPUBLIC SvtScriptedTextHelper final
{ private:
std::unique_ptr<SvtScriptedTextHelper_Impl> mpImpl; /// Implementation of class functionality.
public: /** Constructor sets an output device and no fonts. @param_rOutDevice
A reference to an output device. */
SvtScriptedTextHelper( OutputDevice& _rOutDevice );
/** Sets new fonts and recalculates the text width. @param_pLatinFont Thefontforlatincharacters. @param_pAsianFont Thefontforasiancharacters. @param_pCmplxFont
The font for complex text layout. */ void SetFonts( vcl::Font const * _pLatinFont, vcl::Font const * _pAsianFont, vcl::Font const * _pCmplxFont );
/** Sets the default font of the current output device to all script types. */ void SetDefaultFont();
/** Sets a new text and calculates all script breaks and the text width. @param_rText Thenewtext. @param_xBreakIter
The break iterator for iterating through the script portions. */ void SetText( const OUString& _rText, const css::uno::Reference< css::i18n::XBreakIterator >& _xBreakIter );
/** Returns a size struct containing the width and height of the text in the current output device.
@return A size struct with the text dimensions. */ const Size& GetTextSize() const;
/** Draws the text in the current output device. @param_rPos
The position of the top left edge of the text. */ void DrawText( const Point& _rPos );
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.