LibreOffice Module vcl (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
SalLayout Class Referenceabstract

#include <vcllayout.hxx>

Inheritance diagram for SalLayout:
[legend]
Collaboration diagram for SalLayout:
[legend]

Public Member Functions

virtual ~SalLayout ()
 
basegfx::B2DPointDrawBase ()
 
const basegfx::B2DPointDrawBase () const
 
PointDrawOffset ()
 
const PointDrawOffset () const
 
basegfx::B2DPoint GetDrawPosition (const basegfx::B2DPoint &rRelative=basegfx::B2DPoint(0, 0)) const
 
virtual bool LayoutText (vcl::text::ImplLayoutArgs &, const SalLayoutGlyphsImpl *)=0
 
virtual void AdjustLayout (vcl::text::ImplLayoutArgs &)
 
virtual void InitFont () const
 
virtual void DrawText (SalGraphics &) const =0
 
Degree10 GetOrientation () const
 
void SetSubpixelPositioning (bool bSubpixelPositioning)
 
bool GetSubpixelPositioning () const
 
virtual sal_Int32 GetTextBreak (double nMaxWidth, double nCharExtra, int nFactor) const =0
 
virtual double FillDXArray (std::vector< double > *pDXArray, const OUString &rStr) const =0
 
virtual double GetTextWidth () const
 
virtual void GetCaretPositions (std::vector< double > &rCaretPositions, const OUString &rStr) const =0
 
virtual bool IsKashidaPosValid (int, int) const =0
 
virtual bool GetNextGlyph (const GlyphItem **pGlyph, basegfx::B2DPoint &rPos, int &nStart, const LogicalFontInstance **ppGlyphFont=nullptr) const =0
 
virtual bool GetOutline (basegfx::B2DPolyPolygonVector &) const
 
bool GetBoundRect (tools::Rectangle &) const
 
virtual SalLayoutGlyphs GetGlyphs () const
 

Protected Member Functions

 SalLayout ()
 

Protected Attributes

int mnMinCharPos
 
int mnEndCharPos
 
LanguageTag maLanguageTag
 
Degree10 mnOrientation
 
Point maDrawOffset
 
basegfx::B2DPoint maDrawBase
 
bool mbSubpixelPositioning
 

Private Member Functions

 SalLayout (const SalLayout &)=delete
 
SalLayoutoperator= (const SalLayout &)=delete
 

Detailed Description

Definition at line 67 of file vcllayout.hxx.

Constructor & Destructor Documentation

◆ ~SalLayout()

SalLayout::~SalLayout ( )
virtual

Definition at line 133 of file sallayout.cxx.

◆ SalLayout() [1/2]

SalLayout::SalLayout ( )
protected

Definition at line 124 of file sallayout.cxx.

References LANGUAGE_DONTKNOW, and maLanguageTag.

◆ SalLayout() [2/2]

SalLayout::SalLayout ( const SalLayout )
privatedelete

Member Function Documentation

◆ AdjustLayout()

void SalLayout::AdjustLayout ( vcl::text::ImplLayoutArgs rArgs)
virtual

◆ DrawBase() [1/2]

basegfx::B2DPoint & SalLayout::DrawBase ( )
inline

◆ DrawBase() [2/2]

const basegfx::B2DPoint & SalLayout::DrawBase ( ) const
inline

Definition at line 73 of file vcllayout.hxx.

◆ DrawOffset() [1/2]

Point & SalLayout::DrawOffset ( )
inline

◆ DrawOffset() [2/2]

const Point & SalLayout::DrawOffset ( ) const
inline

Definition at line 75 of file vcllayout.hxx.

◆ DrawText()

virtual void SalLayout::DrawText ( SalGraphics ) const
pure virtual

◆ FillDXArray()

virtual double SalLayout::FillDXArray ( std::vector< double > *  pDXArray,
const OUString &  rStr 
) const
pure virtual

Implemented in GenericSalLayout, and MultiSalLayout.

Referenced by MultiSalLayout::GetTextBreak().

◆ GetBoundRect()

bool SalLayout::GetBoundRect ( tools::Rectangle rRect) const

◆ GetCaretPositions()

virtual void SalLayout::GetCaretPositions ( std::vector< double > &  rCaretPositions,
const OUString &  rStr 
) const
pure virtual

Implemented in MultiSalLayout, and GenericSalLayout.

◆ GetDrawPosition()

basegfx::B2DPoint SalLayout::GetDrawPosition ( const basegfx::B2DPoint rRelative = basegfx::B2DPoint(0,0)) const

◆ GetGlyphs()

SalLayoutGlyphs SalLayout::GetGlyphs ( ) const
virtual

Reimplemented in MultiSalLayout, and GenericSalLayout.

Definition at line 253 of file sallayout.cxx.

Referenced by TrackFontMappingUse().

◆ GetNextGlyph()

virtual bool SalLayout::GetNextGlyph ( const GlyphItem **  pGlyph,
basegfx::B2DPoint rPos,
int nStart,
const LogicalFontInstance **  ppGlyphFont = nullptr 
) const
pure virtual

◆ GetOrientation()

Degree10 SalLayout::GetOrientation ( ) const
inline

Definition at line 83 of file vcllayout.hxx.

◆ GetOutline()

bool SalLayout::GetOutline ( basegfx::B2DPolyPolygonVector rVector) const
virtual

◆ GetSubpixelPositioning()

bool SalLayout::GetSubpixelPositioning ( ) const
inline

Definition at line 90 of file vcllayout.hxx.

Referenced by GenericSalLayout::ApplyDXArray(), and GenericSalLayout::LayoutText().

◆ GetTextBreak()

virtual sal_Int32 SalLayout::GetTextBreak ( double  nMaxWidth,
double  nCharExtra,
int  nFactor 
) const
pure virtual

Implemented in GenericSalLayout, and MultiSalLayout.

◆ GetTextWidth()

virtual double SalLayout::GetTextWidth ( ) const
inlinevirtual

◆ InitFont()

virtual void SalLayout::InitFont ( ) const
inlinevirtual

◆ IsKashidaPosValid()

virtual bool SalLayout::IsKashidaPosValid ( int  ,
int   
) const
pure virtual

Implemented in GenericSalLayout, and MultiSalLayout.

◆ LayoutText()

virtual bool SalLayout::LayoutText ( vcl::text::ImplLayoutArgs ,
const SalLayoutGlyphsImpl  
)
pure virtual

Implemented in GenericSalLayout, and MultiSalLayout.

◆ operator=()

SalLayout & SalLayout::operator= ( const SalLayout )
privatedelete

◆ SetSubpixelPositioning()

void SalLayout::SetSubpixelPositioning ( bool  bSubpixelPositioning)
inline

Definition at line 85 of file vcllayout.hxx.

Member Data Documentation

◆ maDrawBase

basegfx::B2DPoint SalLayout::maDrawBase
protected

◆ maDrawOffset

Point SalLayout::maDrawOffset
mutableprotected

◆ maLanguageTag

LanguageTag SalLayout::maLanguageTag
protected

Definition at line 121 of file vcllayout.hxx.

Referenced by AdjustLayout(), and GenericSalLayout::GetCharWidths().

◆ mbSubpixelPositioning

bool SalLayout::mbSubpixelPositioning
protected

Definition at line 128 of file vcllayout.hxx.

Referenced by GetDrawPosition().

◆ mnEndCharPos

int SalLayout::mnEndCharPos
protected

◆ mnMinCharPos

int SalLayout::mnMinCharPos
protected

◆ mnOrientation

Degree10 SalLayout::mnOrientation
protected

Definition at line 123 of file vcllayout.hxx.

Referenced by AdjustLayout(), and GetDrawPosition().


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