LibreOffice Module canvas (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
vclcanvas::TextLayout Class Reference

#include <textlayout.hxx>

Inheritance diagram for vclcanvas::TextLayout:
Collaboration diagram for vclcanvas::TextLayout:

Public Member Functions

 TextLayout (const TextLayout &)=delete
 make noncopyable More...
const TextLayoutoperator= (const TextLayout &)=delete
 TextLayout (const css::rendering::StringContext &aText, sal_Int8 nDirection, const CanvasFont::Reference &rFont, const css::uno::Reference< css::rendering::XGraphicDevice > &xDevice, const OutDevProviderSharedPtr &rOutDev)
virtual void SAL_CALL disposing () override
 Dispose all internal references. More...
virtual css::uno::Sequence< css::uno::Reference< css::rendering::XPolyPolygon2D > > SAL_CALL queryTextShapes () override
virtual css::uno::Sequence< css::geometry::RealRectangle2D > SAL_CALL queryInkMeasures () override
virtual css::uno::Sequence< css::geometry::RealRectangle2D > SAL_CALL queryMeasures () override
virtual css::uno::Sequence< double > SAL_CALL queryLogicalAdvancements () override
virtual void SAL_CALL applyLogicalAdvancements (const css::uno::Sequence< double > &aAdvancements) override
virtual css::geometry::RealRectangle2D SAL_CALL queryTextBounds () override
virtual double SAL_CALL justify (double nSize) override
virtual double SAL_CALL combinedJustify (const css::uno::Sequence< css::uno::Reference< css::rendering::XTextLayout > > &aNextLayouts, double nSize) override
virtual css::rendering::TextHit SAL_CALL getTextHit (const css::geometry::RealPoint2D &aHitPoint) override
virtual css::rendering::Caret SAL_CALL getCaret (sal_Int32 nInsertionIndex, sal_Bool bExcludeLigatures) override
virtual sal_Int32 SAL_CALL getNextInsertionIndex (sal_Int32 nStartIndex, sal_Int32 nCaretAdvancement, sal_Bool bExcludeLigatures) override
virtual css::uno::Reference< css::rendering::XPolyPolygon2D > SAL_CALL queryVisualHighlighting (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
virtual css::uno::Reference< css::rendering::XPolyPolygon2D > SAL_CALL queryLogicalHighlighting (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
virtual double SAL_CALL getBaselineOffset () override
virtual sal_Int8 SAL_CALL getMainTextDirection () override
virtual css::uno::Reference< css::rendering::XCanvasFont > SAL_CALL getFont () override
virtual css::rendering::StringContext SAL_CALL getText () override
virtual OUString SAL_CALL getImplementationName () override
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
void draw (OutputDevice &rOutDev, const Point &rOutpos, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) const

Private Member Functions

void setupTextOffsets (::tools::Long *outputOffsets, const css::uno::Sequence< double > &inputOffsets, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) const

Private Attributes

css::rendering::StringContext maText
css::uno::Sequence< double > maLogicalAdvancements
CanvasFont::Reference mpFont
css::uno::Reference< css::rendering::XGraphicDevice > mxDevice
OutDevProviderSharedPtr mpOutDevProvider
sal_Int8 mnTextDirection

Additional Inherited Members

- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex

Detailed Description

Definition at line 40 of file textlayout.hxx.

Constructor & Destructor Documentation

vclcanvas::TextLayout::TextLayout ( const TextLayout )

make noncopyable

vclcanvas::TextLayout::TextLayout ( const css::rendering::StringContext &  aText,
sal_Int8  nDirection,
const CanvasFont::Reference rFont,
const css::uno::Reference< css::rendering::XGraphicDevice > &  xDevice,
const OutDevProviderSharedPtr rOutDev 

Member Function Documentation

virtual void SAL_CALL vclcanvas::TextLayout::applyLogicalAdvancements ( const css::uno::Sequence< double > &  aAdvancements)
virtual double SAL_CALL vclcanvas::TextLayout::combinedJustify ( const css::uno::Sequence< css::uno::Reference< css::rendering::XTextLayout > > &  aNextLayouts,
double  nSize 
void SAL_CALL vclcanvas::TextLayout::disposing ( )

Dispose all internal references.

Definition at line 91 of file textlayout.cxx.

References mpFont.

void vclcanvas::TextLayout::draw ( OutputDevice rOutDev,
const Point &  rOutpos,
const css::rendering::ViewState viewState,
const css::rendering::RenderState &  renderState 
) const
double SAL_CALL vclcanvas::TextLayout::getBaselineOffset ( )

Definition at line 299 of file textlayout.cxx.

rendering::Caret SAL_CALL vclcanvas::TextLayout::getCaret ( sal_Int32  nInsertionIndex,
sal_Bool  bExcludeLigatures 

Definition at line 275 of file textlayout.cxx.

uno::Reference< rendering::XCanvasFont > SAL_CALL vclcanvas::TextLayout::getFont ( )

Definition at line 312 of file textlayout.cxx.

References mpFont.

OUString SAL_CALL vclcanvas::TextLayout::getImplementationName ( )

Definition at line 412 of file textlayout.cxx.

sal_Int8 SAL_CALL vclcanvas::TextLayout::getMainTextDirection ( )

Definition at line 305 of file textlayout.cxx.

sal_Int32 SAL_CALL vclcanvas::TextLayout::getNextInsertionIndex ( sal_Int32  nStartIndex,
sal_Int32  nCaretAdvancement,
sal_Bool  bExcludeLigatures 

Definition at line 281 of file textlayout.cxx.

uno::Sequence< OUString > SAL_CALL vclcanvas::TextLayout::getSupportedServiceNames ( )

Definition at line 422 of file textlayout.cxx.

rendering::StringContext SAL_CALL vclcanvas::TextLayout::getText ( )

Definition at line 319 of file textlayout.cxx.

References maText.

virtual css::rendering::TextHit SAL_CALL vclcanvas::TextLayout::getTextHit ( const css::geometry::RealPoint2D &  aHitPoint)
double SAL_CALL vclcanvas::TextLayout::justify ( double  nSize)

Definition at line 256 of file textlayout.cxx.

const TextLayout& vclcanvas::TextLayout::operator= ( const TextLayout )
uno::Sequence< geometry::RealRectangle2D > SAL_CALL vclcanvas::TextLayout::queryInkMeasures ( )

Definition at line 148 of file textlayout.cxx.

References maText, mpFont, nIndex, and Point.

uno::Sequence< double > SAL_CALL vclcanvas::TextLayout::queryLogicalAdvancements ( )

Definition at line 201 of file textlayout.cxx.

uno::Reference< rendering::XPolyPolygon2D > SAL_CALL vclcanvas::TextLayout::queryLogicalHighlighting ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 

Definition at line 293 of file textlayout.cxx.

uno::Sequence< geometry::RealRectangle2D > SAL_CALL vclcanvas::TextLayout::queryMeasures ( )

Definition at line 195 of file textlayout.cxx.

geometry::RealRectangle2D SAL_CALL vclcanvas::TextLayout::queryTextBounds ( )

Definition at line 218 of file textlayout.cxx.

References maText, and mpFont.

uno::Sequence< uno::Reference< rendering::XPolyPolygon2D > > SAL_CALL vclcanvas::TextLayout::queryTextShapes ( )

Definition at line 101 of file textlayout.cxx.

References comphelper::containerToSequence(), maText, mpFont, and nIndex.

uno::Reference< rendering::XPolyPolygon2D > SAL_CALL vclcanvas::TextLayout::queryVisualHighlighting ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 

Definition at line 287 of file textlayout.cxx.

void vclcanvas::TextLayout::setupTextOffsets ( ::tools::Long outputOffsets,
const css::uno::Sequence< double > &  inputOffsets,
const css::rendering::ViewState viewState,
const css::rendering::RenderState &  renderState 
) const
sal_Bool SAL_CALL vclcanvas::TextLayout::supportsService ( const OUString &  ServiceName)

Definition at line 417 of file textlayout.cxx.

References cppu::supportsService().

Member Data Documentation

css::uno::Sequence< double > vclcanvas::TextLayout::maLogicalAdvancements

Definition at line 94 of file textlayout.hxx.

css::rendering::StringContext vclcanvas::TextLayout::maText

Definition at line 93 of file textlayout.hxx.

sal_Int8 vclcanvas::TextLayout::mnTextDirection

Definition at line 98 of file textlayout.hxx.

CanvasFont::Reference vclcanvas::TextLayout::mpFont

Definition at line 95 of file textlayout.hxx.

OutDevProviderSharedPtr vclcanvas::TextLayout::mpOutDevProvider

Definition at line 97 of file textlayout.hxx.

css::uno::Reference< css::rendering::XGraphicDevice> vclcanvas::TextLayout::mxDevice

Definition at line 96 of file textlayout.hxx.

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