LibreOffice Module vcl (master)
1
|
#include <sallayout.hxx>
Public Member Functions | |
void | DrawText (SalGraphics &) const override |
sal_Int32 | GetTextBreak (DeviceCoordinate nMaxWidth, DeviceCoordinate nCharExtra, int nFactor) const override |
DeviceCoordinate | FillDXArray (DeviceCoordinate *pDXArray) const override |
void | GetCaretPositions (int nArraySize, tools::Long *pCaretXArray) const override |
bool | GetNextGlyph (const GlyphItem **pGlyph, Point &rPos, int &nStart, const PhysicalFontFace **pFallbackFont=nullptr) const override |
bool | GetOutline (basegfx::B2DPolyPolygonVector &) const override |
bool | IsKashidaPosValid (int nCharPos) const override |
MultiSalLayout (std::unique_ptr< SalLayout > pBaseLayout) | |
void | AddFallback (std::unique_ptr< SalLayout > pFallbackLayout, ImplLayoutRuns const &) |
std::unique_ptr< SalLayout > | ReleaseBaseLayout () |
bool | LayoutText (ImplLayoutArgs &, const SalLayoutGlyphs *) override |
void | AdjustLayout (ImplLayoutArgs &) override |
void | InitFont () const override |
void | SetIncomplete (bool bIncomplete) |
virtual | ~MultiSalLayout () override |
![]() | |
virtual | ~SalLayout () |
Point & | DrawBase () |
const Point & | DrawBase () const |
Point & | DrawOffset () |
const Point & | DrawOffset () const |
Point | GetDrawPosition (const Point &rRelative=Point(0, 0)) const |
int | GetUnitsPerPixel () const |
Degree10 | GetOrientation () const |
virtual DeviceCoordinate | GetTextWidth () const |
bool | GetBoundRect (tools::Rectangle &) const |
virtual const SalLayoutGlyphs * | GetGlyphs () const |
Private Member Functions | |
MultiSalLayout (const MultiSalLayout &)=delete | |
MultiSalLayout & | operator= (const MultiSalLayout &)=delete |
Private Attributes | |
std::unique_ptr< GenericSalLayout > | mpLayouts [MAX_FALLBACK] |
ImplLayoutRuns | maFallbackRuns [MAX_FALLBACK] |
int | mnLevel |
bool | mbIncomplete |
Additional Inherited Members | |
![]() | |
SalLayout () | |
![]() | |
int | mnMinCharPos |
int | mnEndCharPos |
int | mnUnitsPerPixel |
Degree10 | mnOrientation |
Point | maDrawOffset |
Point | maDrawBase |
Definition at line 126 of file sallayout.hxx.
|
explicit |
Definition at line 988 of file sallayout.cxx.
References assert(), mnLevel, SalLayout::mnUnitsPerPixel, and mpLayouts.
|
overridevirtual |
Definition at line 1010 of file sallayout.cxx.
|
privatedelete |
void MultiSalLayout::AddFallback | ( | std::unique_ptr< SalLayout > | pFallbackLayout, |
ImplLayoutRuns const & | rFallbackRuns | ||
) |
Definition at line 1014 of file sallayout.cxx.
References assert(), maFallbackRuns, MAX_FALLBACK, mnLevel, and mpLayouts.
|
overridevirtual |
Reimplemented from SalLayout.
Definition at line 1035 of file sallayout.cxx.
References SalLayout::AdjustLayout(), assert(), GlyphItem::charPos(), FillDXArray(), ForFallback, ImplLayoutArgs::GetNextRun(), i, GlyphItem::m_nNewWidth, maFallbackRuns, ImplLayoutArgs::maRuns, MAX_FALLBACK, mbIncomplete, ImplLayoutArgs::mnEndCharPos, SalLayout::mnEndCharPos, ImplLayoutArgs::mnFlags, ImplLayoutArgs::mnLayoutWidth, mnLevel, ImplLayoutArgs::mnMinCharPos, SalLayout::mnMinCharPos, SalLayout::mnUnitsPerPixel, ImplLayoutArgs::mpDXArray, mpLayouts, n, ImplLayoutRuns::NextRun(), Point, ImplLayoutRuns::PosIsInRun(), and ImplLayoutArgs::ResetPos().
|
overridevirtual |
Implements SalLayout.
Definition at line 1384 of file sallayout.cxx.
References SalLayout::DrawBase(), SalLayout::DrawOffset(), SalLayout::DrawText(), i, SalLayout::InitFont(), SalLayout::maDrawBase, SalLayout::maDrawOffset, mnLevel, and mpLayouts.
|
overridevirtual |
Implements SalLayout.
Definition at line 1440 of file sallayout.cxx.
References i, SalLayout::mnEndCharPos, mnLevel, SalLayout::mnMinCharPos, SalLayout::mnUnitsPerPixel, mpLayouts, and n.
Referenced by AdjustLayout().
|
overridevirtual |
Implements SalLayout.
Definition at line 1486 of file sallayout.cxx.
References SalLayout::GetCaretPositions(), i, mnLevel, SalLayout::mnUnitsPerPixel, mpLayouts, n, and w.
|
overridevirtual |
Implements SalLayout.
Definition at line 1510 of file sallayout.cxx.
References GenericSalLayout::GetFont(), LogicalFontInstance::GetFontFace(), GenericSalLayout::GetNextGlyph(), GF_FONTMASK, GF_FONTSHIFT, SalLayout::InitFont(), SalLayout::maDrawBase, SalLayout::maDrawOffset, mnLevel, and mpLayouts.
|
overridevirtual |
Reimplemented from SalLayout.
Definition at line 1539 of file sallayout.cxx.
References SalLayout::DrawBase(), SalLayout::DrawOffset(), SalLayout::GetOutline(), i, SalLayout::InitFont(), SalLayout::maDrawBase, SalLayout::maDrawOffset, mnLevel, and mpLayouts.
|
overridevirtual |
Implements SalLayout.
Definition at line 1399 of file sallayout.cxx.
References SalLayout::FillDXArray(), SalLayout::GetUnitsPerPixel(), i, SalLayout::mnEndCharPos, mnLevel, SalLayout::mnMinCharPos, SalLayout::mnUnitsPerPixel, mpLayouts, n, and w.
|
overridevirtual |
Reimplemented from SalLayout.
Definition at line 1378 of file sallayout.cxx.
|
overridevirtual |
Reimplemented from SalLayout.
Definition at line 1556 of file sallayout.cxx.
References i, maFallbackRuns, mnLevel, and mpLayouts.
|
overridevirtual |
Implements SalLayout.
Definition at line 1026 of file sallayout.cxx.
References maFallbackRuns, ImplLayoutArgs::maRuns, mbIncomplete, and mnLevel.
|
privatedelete |
std::unique_ptr< SalLayout > MultiSalLayout::ReleaseBaseLayout | ( | ) |
Definition at line 999 of file sallayout.cxx.
References mpLayouts.
void MultiSalLayout::SetIncomplete | ( | bool | bIncomplete | ) |
Definition at line 1004 of file sallayout.cxx.
References maFallbackRuns, mbIncomplete, and mnLevel.
|
private |
Definition at line 157 of file sallayout.hxx.
Referenced by AddFallback(), AdjustLayout(), IsKashidaPosValid(), LayoutText(), and SetIncomplete().
|
private |
Definition at line 159 of file sallayout.hxx.
Referenced by AdjustLayout(), LayoutText(), and SetIncomplete().
|
private |
Definition at line 158 of file sallayout.hxx.
Referenced by AddFallback(), AdjustLayout(), DrawText(), FillDXArray(), GetCaretPositions(), GetNextGlyph(), GetOutline(), GetTextBreak(), InitFont(), IsKashidaPosValid(), LayoutText(), and SetIncomplete().
|
private |
Definition at line 156 of file sallayout.hxx.
Referenced by AddFallback(), AdjustLayout(), DrawText(), FillDXArray(), GetCaretPositions(), GetNextGlyph(), GetOutline(), GetTextBreak(), InitFont(), IsKashidaPosValid(), MultiSalLayout(), and ReleaseBaseLayout().