LibreOffice Module vcl (master) 1
|
#include <sallayout.hxx>
Public Member Functions | |
void | DrawText (SalGraphics &) const override |
sal_Int32 | GetTextBreak (double nMaxWidth, double nCharExtra, int nFactor) const override |
double | GetTextWidth () const final override |
double | FillDXArray (std::vector< double > *pDXArray, const OUString &rStr) const override |
void | GetCaretPositions (std::vector< double > &rCaretPositions, const OUString &rStr) const override |
bool | GetNextGlyph (const GlyphItem **pGlyph, basegfx::B2DPoint &rPos, int &nStart, const LogicalFontInstance **ppGlyphFont=nullptr) const override |
bool | GetOutline (basegfx::B2DPolyPolygonVector &) const override |
bool | IsKashidaPosValid (int nCharPos, int nNextCharPos) const override |
SalLayoutGlyphs | GetGlyphs () const final override |
MultiSalLayout (std::unique_ptr< SalLayout > pBaseLayout) | |
void | AddFallback (std::unique_ptr< SalLayout > pFallbackLayout, ImplLayoutRuns const &) |
std::unique_ptr< SalLayout > | ReleaseBaseLayout () |
bool | LayoutText (vcl::text::ImplLayoutArgs &, const SalLayoutGlyphsImpl *) override |
void | AdjustLayout (vcl::text::ImplLayoutArgs &) override |
void | InitFont () const override |
void | SetIncomplete (bool bIncomplete) |
void | ImplAdjustMultiLayout (vcl::text::ImplLayoutArgs &rArgs, vcl::text::ImplLayoutArgs &rMultiArgs, const double *pMultiDXArray) |
virtual | ~MultiSalLayout () override |
Public Member Functions inherited from SalLayout | |
virtual | ~SalLayout () |
basegfx::B2DPoint & | DrawBase () |
const basegfx::B2DPoint & | DrawBase () const |
Point & | DrawOffset () |
const Point & | DrawOffset () 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 |
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 | |
Protected Member Functions inherited from SalLayout | |
SalLayout () | |
Protected Attributes inherited from SalLayout | |
int | mnMinCharPos |
int | mnEndCharPos |
LanguageTag | maLanguageTag |
Degree10 | mnOrientation |
Point | maDrawOffset |
basegfx::B2DPoint | maDrawBase |
bool | mbSubpixelPositioning |
Definition at line 60 of file sallayout.hxx.
|
explicit |
Definition at line 612 of file sallayout.cxx.
|
overridevirtual |
Definition at line 632 of file sallayout.cxx.
|
privatedelete |
void MultiSalLayout::AddFallback | ( | std::unique_ptr< SalLayout > | pFallbackLayout, |
ImplLayoutRuns const & | rFallbackRuns | ||
) |
Definition at line 636 of file sallayout.cxx.
References maFallbackRuns, MAX_FALLBACK, mnLevel, and mpLayouts.
|
overridevirtual |
Reimplemented from SalLayout.
Definition at line 657 of file sallayout.cxx.
References SalLayout::AdjustLayout(), FillDXArray(), vcl::text::ImplLayoutArgs::HasDXArray(), i, ImplAdjustMultiLayout(), vcl::text::ImplLayoutArgs::mnEndCharPos, vcl::text::ImplLayoutArgs::mnLayoutWidth, mnLevel, vcl::text::ImplLayoutArgs::mnMinCharPos, vcl::text::ImplLayoutArgs::mpDXArray, mpLayouts, and n.
|
overridevirtual |
Implements SalLayout.
Definition at line 984 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 1048 of file sallayout.cxx.
References GetTextWidth(), i, SalLayout::mnEndCharPos, mnLevel, SalLayout::mnMinCharPos, mpLayouts, and n.
Referenced by AdjustLayout().
|
overridevirtual |
Implements SalLayout.
Definition at line 1081 of file sallayout.cxx.
References i, SalLayout::mnEndCharPos, mnLevel, SalLayout::mnMinCharPos, mpLayouts, and n.
|
finaloverridevirtual |
Reimplemented from SalLayout.
Definition at line 1174 of file sallayout.cxx.
References SalLayoutGlyphs::AppendImpl(), mnLevel, mpLayouts, and n.
|
overridevirtual |
Implements SalLayout.
Definition at line 1107 of file sallayout.cxx.
References basegfx::Tuple2D< typename TYPE >::adjustX(), basegfx::Tuple2D< typename TYPE >::adjustY(), GenericSalLayout::GetNextGlyph(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), GF_FONTSHIFT, SalLayout::InitFont(), SalLayout::maDrawBase, SalLayout::maDrawOffset, mnLevel, mpLayouts, Point::X(), and Point::Y().
Referenced by GetTextWidth().
|
overridevirtual |
Reimplemented from SalLayout.
Definition at line 1133 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 999 of file sallayout.cxx.
References SalLayout::FillDXArray(), i, SalLayout::mnEndCharPos, mnLevel, SalLayout::mnMinCharPos, mpLayouts, and n.
|
finaloverridevirtual |
Reimplemented from SalLayout.
Definition at line 1032 of file sallayout.cxx.
References GetNextGlyph(), and GlyphItem::newWidth().
Referenced by FillDXArray().
void MultiSalLayout::ImplAdjustMultiLayout | ( | vcl::text::ImplLayoutArgs & | rArgs, |
vcl::text::ImplLayoutArgs & | rMultiArgs, | ||
const double * | pMultiDXArray | ||
) |
Definition at line 718 of file sallayout.cxx.
References GlyphItem::charPos(), ForFallback, vcl::text::ImplLayoutArgs::GetNextRun(), i, maFallbackRuns, vcl::text::ImplLayoutArgs::maRuns, MAX_FALLBACK, mbIncomplete, SalLayout::mnEndCharPos, vcl::text::ImplLayoutArgs::mnEndCharPos, vcl::text::ImplLayoutArgs::mnFlags, mnLevel, SalLayout::mnMinCharPos, vcl::text::ImplLayoutArgs::mnMinCharPos, mpLayouts, n, GlyphItem::newWidth(), ImplLayoutRuns::NextRun(), ImplLayoutRuns::PosIsInAnyRun(), ImplLayoutRuns::PosIsInRun(), and vcl::text::ImplLayoutArgs::ResetPos().
Referenced by AdjustLayout().
|
overridevirtual |
Reimplemented from SalLayout.
Definition at line 978 of file sallayout.cxx.
Implements SalLayout.
Definition at line 1150 of file sallayout.cxx.
References i, maFallbackRuns, mnLevel, and mpLayouts.
|
overridevirtual |
Implements SalLayout.
Definition at line 648 of file sallayout.cxx.
References maFallbackRuns, vcl::text::ImplLayoutArgs::maRuns, mbIncomplete, and mnLevel.
|
privatedelete |
std::unique_ptr< SalLayout > MultiSalLayout::ReleaseBaseLayout | ( | ) |
Definition at line 621 of file sallayout.cxx.
References mpLayouts.
void MultiSalLayout::SetIncomplete | ( | bool | bIncomplete | ) |
Definition at line 626 of file sallayout.cxx.
References maFallbackRuns, mbIncomplete, and mnLevel.
|
private |
Definition at line 96 of file sallayout.hxx.
Referenced by AddFallback(), ImplAdjustMultiLayout(), IsKashidaPosValid(), LayoutText(), and SetIncomplete().
|
private |
Definition at line 98 of file sallayout.hxx.
Referenced by ImplAdjustMultiLayout(), LayoutText(), and SetIncomplete().
|
private |
Definition at line 97 of file sallayout.hxx.
Referenced by AddFallback(), AdjustLayout(), DrawText(), FillDXArray(), GetCaretPositions(), GetGlyphs(), GetNextGlyph(), GetOutline(), GetTextBreak(), ImplAdjustMultiLayout(), InitFont(), IsKashidaPosValid(), LayoutText(), and SetIncomplete().
|
private |
Definition at line 95 of file sallayout.hxx.
Referenced by AddFallback(), AdjustLayout(), DrawText(), FillDXArray(), GetCaretPositions(), GetGlyphs(), GetNextGlyph(), GetOutline(), GetTextBreak(), ImplAdjustMultiLayout(), InitFont(), IsKashidaPosValid(), MultiSalLayout(), and ReleaseBaseLayout().