20#ifndef INCLUDED_SW_SOURCE_CORE_INC_FNTCACHE_HXX
21#define INCLUDED_SW_SOURCE_CORE_INC_FNTCACHE_HXX
26#include <unordered_map>
28#include <vcl/font.hxx>
47 , OString(RTL_CONSTASCII_STRINGPARAM(
"Global Font-Cache pFntCache"))
138 SwFntAccess(
const void*& rnFontCacheId, sal_uInt16 &rIndex,
const void *pOwner,
140 bool bCheck =
false );
Access class for the Cache.
SwCacheObj * Get(bool isDuplicateOwnerAllowed)
The Cache object base class Users of the Cache must derive a class from the SwCacheObj and store thei...
static SwCacheObj * Next(SwCacheObj *pCacheObj)
SwFntAccess(const void *&rnFontCacheId, sal_uInt16 &rIndex, const void *pOwner, SwViewShell const *pShell, bool bCheck=false)
virtual SwCacheObj * NewObj() override
Can be use in NewObj.
SwViewShell const * m_pShell
static SwFntObj * Next(SwFntObj *pFntObj)
void GuessLeading(const SwViewShell &rSh, const FontMetric &rMet)
sal_uInt16 GetFontHeight(const SwViewShell *pSh, const OutputDevice &rOut)
void CreateScrFont(const SwViewShell &rSh, const OutputDevice &rOut)
sal_uInt16 GetZoom() const
OutputDevice * GetPrt() const
void SetDevFont(const SwViewShell *pSh, OutputDevice &rOut)
TextFrameIndex GetModelPositionForViewPoint(SwDrawTextInfo &rInf)
void CreatePrtFont(const OutputDevice &rOut)
sal_uInt16 GetExternalLeading() const
sal_uInt16 GetFontAscent(const SwViewShell *pSh, const OutputDevice &rOut)
sal_uInt16 GetFontLeading(const SwViewShell *pSh, const OutputDevice &rOut)
virtual ~SwFntObj() override
void DrawText(SwDrawTextInfo &rInf)
VclPtr< OutputDevice > m_pPrinter
sal_uInt16 GetGuessedLeading() const
sal_uInt16 GetPropWidth() const
sal_uInt16 GetFontHangingBaseline(const SwViewShell *pSh, const OutputDevice &rOut)
static MapMode * s_pPixMap
const vcl::Font & GetFont() const
sal_uInt16 m_nScrHangingBaseline
sal_uInt16 m_nPrtHangingBaseline
SwFntObj(const SwSubFont &rFont, std::uintptr_t nFontCacheId, SwViewShell const *pSh)
Size GetTextSize(SwDrawTextInfo &rInf)
determine the TextSize (of the printer)
static tools::Long s_nPixWidth
sal_uInt16 m_nGuessedLeading