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

#include <cairotextrender.hxx>

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

Public Member Functions

 CairoTextRender ()
 
virtual void SetTextColor (Color nColor) override
 
virtual void SetFont (LogicalFontInstance *, int nFallbackLevel) override
 
virtual void GetFontMetric (ImplFontMetricDataRef &, int nFallbackLevel) override
 
virtual FontCharMapRef GetFontCharMap () const override
 
virtual bool GetFontCapabilities (vcl::FontCapabilities &rFontCapabilities) const override
 
virtual void GetDevFontList (PhysicalFontCollection *) override
 
virtual void ClearDevFontCache () override
 
virtual bool AddTempDevFont (PhysicalFontCollection *, const OUString &rFileURL, const OUString &rFontName) override
 
virtual bool CreateFontSubset (const OUString &rToFile, const PhysicalFontFace *, const sal_GlyphId *pGlyphIDs, const sal_uInt8 *pEncoding, sal_Int32 *pWidths, int nGlyphs, FontSubsetInfo &rInfo) override
 
virtual const voidGetEmbedFontData (const PhysicalFontFace *, long *pDataLen) override
 
virtual void FreeEmbedFontData (const void *pData, long nDataLen) override
 
virtual void GetGlyphWidths (const PhysicalFontFace *, bool bVertical, std::vector< sal_Int32 > &rWidths, Ucs2UIntMap &rUnicodeEnc) override
 
virtual std::unique_ptr< GenericSalLayoutGetTextLayout (int nFallbackLevel) override
 
virtual void DrawTextLayout (const GenericSalLayout &, const SalGraphics &) override
 
- Public Member Functions inherited from TextRenderImpl
virtual ~TextRenderImpl ()
 

Protected Member Functions

virtual GlyphCachegetPlatformGlyphCache ()=0
 
virtual cairo_tgetCairoContext ()=0
 
virtual void getSurfaceOffset (double &nDX, double &nDY)=0
 
virtual void releaseCairoContext (cairo_t *cr)=0
 
void setFont (LogicalFontInstance *pEntry, int nFallbackLevel)
 
virtual void clipRegion (cairo_t *cr)=0
 

Private Attributes

FreetypeFontmpFreetypeFont [MAX_FALLBACK]
 
Color mnTextColor
 

Detailed Description

Definition at line 29 of file cairotextrender.hxx.

Constructor & Destructor Documentation

CairoTextRender::CairoTextRender ( )

Member Function Documentation

virtual bool CairoTextRender::AddTempDevFont ( PhysicalFontCollection ,
const OUString &  rFileURL,
const OUString &  rFontName 
)
overridevirtual

Implements TextRenderImpl.

virtual void CairoTextRender::ClearDevFontCache ( )
overridevirtual

Implements TextRenderImpl.

virtual void CairoTextRender::clipRegion ( cairo_t cr)
protectedpure virtual

Implemented in SvpCairoTextRender.

virtual bool CairoTextRender::CreateFontSubset ( const OUString &  rToFile,
const PhysicalFontFace ,
const sal_GlyphId pGlyphIDs,
const sal_uInt8 pEncoding,
sal_Int32 *  pWidths,
int  nGlyphs,
FontSubsetInfo rInfo 
)
overridevirtual

Implements TextRenderImpl.

virtual void CairoTextRender::DrawTextLayout ( const GenericSalLayout ,
const SalGraphics  
)
overridevirtual

Implements TextRenderImpl.

virtual void CairoTextRender::FreeEmbedFontData ( const void pData,
long  nDataLen 
)
overridevirtual

Implements TextRenderImpl.

virtual cairo_t* CairoTextRender::getCairoContext ( )
protectedpure virtual

Implemented in SvpCairoTextRender.

virtual void CairoTextRender::GetDevFontList ( PhysicalFontCollection )
overridevirtual

Implements TextRenderImpl.

virtual const void* CairoTextRender::GetEmbedFontData ( const PhysicalFontFace ,
long *  pDataLen 
)
overridevirtual

Implements TextRenderImpl.

virtual bool CairoTextRender::GetFontCapabilities ( vcl::FontCapabilities rFontCapabilities) const
overridevirtual

Implements TextRenderImpl.

virtual FontCharMapRef CairoTextRender::GetFontCharMap ( ) const
overridevirtual

Implements TextRenderImpl.

virtual void CairoTextRender::GetFontMetric ( ImplFontMetricDataRef ,
int  nFallbackLevel 
)
overridevirtual

Implements TextRenderImpl.

virtual void CairoTextRender::GetGlyphWidths ( const PhysicalFontFace ,
bool  bVertical,
std::vector< sal_Int32 > &  rWidths,
Ucs2UIntMap rUnicodeEnc 
)
overridevirtual

Implements TextRenderImpl.

virtual GlyphCache& CairoTextRender::getPlatformGlyphCache ( )
protectedpure virtual

Implemented in SvpCairoTextRender.

virtual void CairoTextRender::getSurfaceOffset ( double &  nDX,
double &  nDY 
)
protectedpure virtual

Implemented in SvpCairoTextRender.

virtual std::unique_ptr<GenericSalLayout> CairoTextRender::GetTextLayout ( int  nFallbackLevel)
overridevirtual

Implements TextRenderImpl.

virtual void CairoTextRender::releaseCairoContext ( cairo_t cr)
protectedpure virtual

Implemented in SvpCairoTextRender.

void CairoTextRender::setFont ( LogicalFontInstance pEntry,
int  nFallbackLevel 
)
protected
virtual void CairoTextRender::SetFont ( LogicalFontInstance ,
int  nFallbackLevel 
)
overridevirtual

Implements TextRenderImpl.

virtual void CairoTextRender::SetTextColor ( Color  nColor)
overridevirtual

Implements TextRenderImpl.

Member Data Documentation

Color CairoTextRender::mnTextColor
private

Definition at line 33 of file cairotextrender.hxx.

FreetypeFont* CairoTextRender::mpFreetypeFont[MAX_FALLBACK]
private

Definition at line 31 of file cairotextrender.hxx.


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