20 #ifndef INCLUDED_SW_SOURCE_CORE_INC_FNTCACHE_HXX
21 #define INCLUDED_SW_SOURCE_CORE_INC_FNTCACHE_HXX
47 , OString(RTL_CONSTASCII_STRINGPARAM(
"Global Font-Cache pFntCache"))
156 SwFntAccess(
const void*& rnFontCacheId, sal_uInt16 &rIndex,
const void *pOwner,
158 bool bCheck =
false );
OutputDevice * GetPrt() const
void SwClearFntCacheTextGlyphs()
Clears the pre-calculated text glyphs in all SwFntObj instances.
bool operator<(const SwTextGlyphsKey &l, const SwTextGlyphsKey &r)
void CreateScrFont(const SwViewShell &rSh, const OutputDevice &rOut)
virtual SwCacheObj * NewObj() override
Can be use in NewObj.
SwFntAccess(const void *&rnFontCacheId, sal_uInt16 &rIndex, const void *pOwner, SwViewShell const *pShell, bool bCheck=false)
std::map< SwTextGlyphsKey, SalLayoutGlyphs > m_aTextGlyphs
Cache of already calculated layout glyphs.
sal_uInt16 GetFontHeight(const SwViewShell *pSh, const OutputDevice &rOut)
static SwCacheObj * Next(SwCacheObj *pCacheObj)
TextFrameIndex GetModelPositionForViewPoint(SwDrawTextInfo &rInf)
sal_uInt16 GetFontAscent(const SwViewShell *pSh, const OutputDevice &rOut)
sal_uInt16 GetGuessedLeading() const
std::map< SwTextGlyphsKey, SalLayoutGlyphs > & GetTextGlyphs()
VclPtr< OutputDevice > m_pOutputDevice
sal_uInt16 GetZoom() const
VclPtr< OutputDevice > m_pPrinter
SwCacheObj * Get(bool isDuplicateOwnerAllowed)
static SwFntObj * Next(SwFntObj *pFntObj)
sal_uInt16 GetFontLeading(const SwViewShell *pSh, const OutputDevice &rOut)
Defines a substring on a given output device, to be used as an std::map<> key.
void CreatePrtFont(const OutputDevice &rOut)
void GuessLeading(const SwViewShell &rSh, const FontMetric &rMet)
SwViewShell const * m_pShell
sal_uInt16 GetPropWidth() const
void SetDevFont(const SwViewShell *pSh, OutputDevice &rOut)
virtual ~SwFntObj() override
The Cache object base class Users of the Cache must derive a class from the SwCacheObj and store thei...
SwFntObj(const SwSubFont &rFont, std::uintptr_t nFontCacheId, SwViewShell const *pSh)
void DrawText(SwDrawTextInfo &rInf)
Access class for the Cache.
sal_uInt16 m_nGuessedLeading
static tools::Long nPixWidth
sal_uInt16 GetExternalLeading() const
const vcl::Font & GetFont() const
Size GetTextSize(SwDrawTextInfo &rInf)
determine the TextSize (of the printer)