LibreOffice Module vcl (master)  1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
PhysicalFontCollection Class Referencefinal

#include <PhysicalFontCollection.hxx>

Collaboration diagram for PhysicalFontCollection:
[legend]

Public Member Functions

 PhysicalFontCollection ()
 
 ~PhysicalFontCollection ()
 
void Add (PhysicalFontFace *)
 
void Clear ()
 
int Count () const
 
PhysicalFontFamilyFindFontFamily (const OUString &rFontName) const
 
PhysicalFontFamilyFindOrCreateFontFamily (const OUString &rFamilyName)
 
PhysicalFontFamilyFindFontFamily (FontSelectPattern &) const
 
PhysicalFontFamilyFindFontFamilyByTokenNames (const OUString &rTokenStr) const
 
PhysicalFontFamilyFindFontFamilyByAttributes (ImplFontAttrs nSearchType, FontWeight, FontWidth, FontItalic, const OUString &rSearchFamily) const
 
PhysicalFontFamilyGetGlyphFallbackFont (FontSelectPattern &, LogicalFontInstance *pLogicalFont, OUString &rMissingCodes, int nFallbackLevel) const
 
void SetPreMatchHook (ImplPreMatchFontSubstitution *)
 
void SetFallbackHook (ImplGlyphFallbackFontSubstitution *)
 
std::shared_ptr< PhysicalFontCollectionClone () const
 
std::unique_ptr< ImplDeviceFontListGetDeviceFontList () const
 
std::unique_ptr< ImplDeviceFontSizeListGetDeviceFontSizeList (const OUString &rFontName) const
 

Private Types

typedef std::unordered_map< OUString, std::unique_ptr< PhysicalFontFamily > > PhysicalFontFamilies
 

Private Member Functions

void ImplInitMatchData () const
 
void ImplInitGenericGlyphFallback () const
 
PhysicalFontFamilyImplFindFontFamilyBySearchName (const OUString &) const
 
PhysicalFontFamilyImplFindFontFamilyBySubstFontAttr (const utl::FontNameAttr &) const
 
PhysicalFontFamilyImplFindFontFamilyOfDefaultFont () const
 

Private Attributes

bool mbMatchData
 
PhysicalFontFamilies maPhysicalFontFamilies
 
ImplPreMatchFontSubstitutionmpPreMatchHook
 
ImplGlyphFallbackFontSubstitutionmpFallbackHook
 
std::unique_ptr< std::array< PhysicalFontFamily *, MAX_GLYPHFALLBACK > > mpFallbackList
 
int mnFallbackCount
 

Detailed Description

Definition at line 39 of file PhysicalFontCollection.hxx.

Member Typedef Documentation

typedef std::unordered_map<OUString, std::unique_ptr<PhysicalFontFamily> > PhysicalFontCollection::PhysicalFontFamilies
private

Definition at line 75 of file PhysicalFontCollection.hxx.

Constructor & Destructor Documentation

PhysicalFontCollection::PhysicalFontCollection ( )
explicit

Definition at line 64 of file PhysicalFontCollection.cxx.

PhysicalFontCollection::~PhysicalFontCollection ( )

Definition at line 71 of file PhysicalFontCollection.cxx.

References Clear().

Member Function Documentation

void PhysicalFontCollection::Add ( PhysicalFontFace pNewData)
void PhysicalFontCollection::Clear ( )
std::shared_ptr< PhysicalFontCollection > PhysicalFontCollection::Clone ( ) const
int PhysicalFontCollection::Count ( ) const
inline

Definition at line 48 of file PhysicalFontCollection.hxx.

Referenced by FindFontFamily().

PhysicalFontFamily * PhysicalFontCollection::FindFontFamily ( const OUString &  rFontName) const
PhysicalFontFamily * PhysicalFontCollection::FindFontFamily ( FontSelectPattern rFSD) const
PhysicalFontFamily * PhysicalFontCollection::FindFontFamilyByAttributes ( ImplFontAttrs  nSearchType,
FontWeight  eSearchWeight,
FontWidth  eSearchWidth,
FontItalic  eSearchItalic,
const OUString &  rSearchFamily 
) const
PhysicalFontFamily * PhysicalFontCollection::FindFontFamilyByTokenNames ( const OUString &  rTokenStr) const
PhysicalFontFamily * PhysicalFontCollection::FindOrCreateFontFamily ( const OUString &  rFamilyName)

Definition at line 304 of file PhysicalFontCollection.cxx.

References maPhysicalFontFamilies.

Referenced by Add(), and PhysicalFontFamily::UpdateCloneFontList().

std::unique_ptr< ImplDeviceFontList > PhysicalFontCollection::GetDeviceFontList ( ) const
std::unique_ptr< ImplDeviceFontSizeList > PhysicalFontCollection::GetDeviceFontSizeList ( const OUString &  rFontName) const
PhysicalFontFamily * PhysicalFontCollection::GetGlyphFallbackFont ( FontSelectPattern rFontSelData,
LogicalFontInstance pLogicalFont,
OUString &  rMissingCodes,
int  nFallbackLevel 
) const
PhysicalFontFamily * PhysicalFontCollection::ImplFindFontFamilyBySearchName ( const OUString &  rSearchName) const
private

Definition at line 286 of file PhysicalFontCollection.cxx.

References GetEnglishSearchFontName(), and maPhysicalFontFamilies.

Referenced by FindFontFamily().

PhysicalFontFamily * PhysicalFontCollection::ImplFindFontFamilyBySubstFontAttr ( const utl::FontNameAttr rFontAttr) const
private
PhysicalFontFamily * PhysicalFontCollection::ImplFindFontFamilyOfDefaultFont ( ) const
private
void PhysicalFontCollection::ImplInitGenericGlyphFallback ( ) const
private
void PhysicalFontCollection::ImplInitMatchData ( ) const
private
void PhysicalFontCollection::SetFallbackHook ( ImplGlyphFallbackFontSubstitution pHook)

Definition at line 81 of file PhysicalFontCollection.cxx.

References mpFallbackHook.

void PhysicalFontCollection::SetPreMatchHook ( ImplPreMatchFontSubstitution pHook)

Definition at line 76 of file PhysicalFontCollection.cxx.

References mpPreMatchHook.

Member Data Documentation

PhysicalFontFamilies PhysicalFontCollection::maPhysicalFontFamilies
private
bool PhysicalFontCollection::mbMatchData
mutableprivate

Definition at line 73 of file PhysicalFontCollection.hxx.

Referenced by Clear(), and ImplInitMatchData().

int PhysicalFontCollection::mnFallbackCount
mutableprivate
ImplGlyphFallbackFontSubstitution* PhysicalFontCollection::mpFallbackHook
private

Definition at line 79 of file PhysicalFontCollection.hxx.

Referenced by Clone(), GetGlyphFallbackFont(), and SetFallbackHook().

std::unique_ptr<std::array<PhysicalFontFamily*,MAX_GLYPHFALLBACK> > PhysicalFontCollection::mpFallbackList
mutableprivate

Definition at line 81 of file PhysicalFontCollection.hxx.

Referenced by Clear(), and ImplInitGenericGlyphFallback().

ImplPreMatchFontSubstitution* PhysicalFontCollection::mpPreMatchHook
private

Definition at line 78 of file PhysicalFontCollection.hxx.

Referenced by Clone(), FindFontFamily(), and SetPreMatchHook().


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