LibreOffice Module xmloff (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
XMLFontAutoStylePool Class Reference

#include <XMLFontAutoStylePool.hxx>

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

Public Member Functions

 XMLFontAutoStylePool (SvXMLExport &rExport, bool tryToEmbedFonts=false)
 
virtual ~XMLFontAutoStylePool () override
 
OUString Add (const OUString &rFamilyName, const OUString &rStyleName, FontFamily nFamily, FontPitch nPitch, rtl_TextEncoding eEnc)
 
OUString Find (const OUString &rFamilyName, const OUString &rStyleName, FontFamily nFamily, FontPitch nPitch, rtl_TextEncoding eEnc) const
 
void exportXML ()
 
void setEmbedOnlyUsedFonts (bool bEmbedUsedOnly)
 
void setEmbedFontScripts (bool bEmbedLatinScript, bool bEmbedAsianScript, bool bEmbedComplexScript)
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Protected Member Functions

SvXMLExportGetExport ()
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 

Protected Attributes

bool m_bEmbedUsedOnly
 
bool m_bEmbedLatinScript
 
bool m_bEmbedAsianScript
 
bool m_bEmbedComplexScript
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Private Member Functions

OUString embedFontFile (OUString const &rFileUrl, OUString const &rFamilyName)
 
std::unordered_set< OUString > getUsedFontList ()
 

Private Attributes

SvXMLExportrExport
 
std::unique_ptr< XMLFontAutoStylePool_Implm_pFontAutoStylePool
 
std::set< OUString > m_aNames
 
bool m_bTryToEmbedFonts
 
std::unordered_map< OString, OUString > m_aEmbeddedFontFiles
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 

Detailed Description

Definition at line 36 of file XMLFontAutoStylePool.hxx.

Constructor & Destructor Documentation

◆ XMLFontAutoStylePool()

XMLFontAutoStylePool::XMLFontAutoStylePool ( SvXMLExport rExport,
bool  tryToEmbedFonts = false 
)

Definition at line 152 of file XMLFontAutoStylePool.cxx.

◆ ~XMLFontAutoStylePool()

XMLFontAutoStylePool::~XMLFontAutoStylePool ( )
overridevirtual

Definition at line 163 of file XMLFontAutoStylePool.cxx.

Member Function Documentation

◆ Add()

OUString XMLFontAutoStylePool::Add ( const OUString &  rFamilyName,
const OUString &  rStyleName,
FontFamily  nFamily,
FontPitch  nPitch,
rtl_TextEncoding  eEnc 
)

◆ embedFontFile()

OUString XMLFontAutoStylePool::embedFontFile ( OUString const &  rFileUrl,
OUString const &  rFamilyName 
)
private

◆ exportXML()

void XMLFontAutoStylePool::exportXML ( )

◆ Find()

OUString XMLFontAutoStylePool::Find ( const OUString &  rFamilyName,
const OUString &  rStyleName,
FontFamily  nFamily,
FontPitch  nPitch,
rtl_TextEncoding  eEnc 
) const

Definition at line 220 of file XMLFontAutoStylePool.cxx.

References m_pFontAutoStylePool, and sName.

◆ GetExport()

SvXMLExport & XMLFontAutoStylePool::GetExport ( )
inlineprotected

Definition at line 56 of file XMLFontAutoStylePool.hxx.

Referenced by embedFontFile(), exportXML(), and getUsedFontList().

◆ getUsedFontList()

std::unordered_set< OUString > XMLFontAutoStylePool::getUsedFontList ( )
private

◆ setEmbedFontScripts()

void XMLFontAutoStylePool::setEmbedFontScripts ( bool  bEmbedLatinScript,
bool  bEmbedAsianScript,
bool  bEmbedComplexScript 
)
inline

Definition at line 82 of file XMLFontAutoStylePool.hxx.

Referenced by SdXMLExport::CreateFontAutoStylePool().

◆ setEmbedOnlyUsedFonts()

void XMLFontAutoStylePool::setEmbedOnlyUsedFonts ( bool  bEmbedUsedOnly)
inline

Definition at line 78 of file XMLFontAutoStylePool.hxx.

Referenced by SdXMLExport::CreateFontAutoStylePool().

Member Data Documentation

◆ m_aEmbeddedFontFiles

std::unordered_map<OString, OUString> XMLFontAutoStylePool::m_aEmbeddedFontFiles
private

Definition at line 44 of file XMLFontAutoStylePool.hxx.

Referenced by embedFontFile().

◆ m_aNames

std::set<OUString> XMLFontAutoStylePool::m_aNames
private

Definition at line 42 of file XMLFontAutoStylePool.hxx.

Referenced by Add().

◆ m_bEmbedAsianScript

bool XMLFontAutoStylePool::m_bEmbedAsianScript
protected

Definition at line 53 of file XMLFontAutoStylePool.hxx.

Referenced by getUsedFontList().

◆ m_bEmbedComplexScript

bool XMLFontAutoStylePool::m_bEmbedComplexScript
protected

Definition at line 54 of file XMLFontAutoStylePool.hxx.

Referenced by getUsedFontList().

◆ m_bEmbedLatinScript

bool XMLFontAutoStylePool::m_bEmbedLatinScript
protected

Definition at line 52 of file XMLFontAutoStylePool.hxx.

Referenced by getUsedFontList().

◆ m_bEmbedUsedOnly

bool XMLFontAutoStylePool::m_bEmbedUsedOnly
protected

Definition at line 51 of file XMLFontAutoStylePool.hxx.

Referenced by exportXML().

◆ m_bTryToEmbedFonts

bool XMLFontAutoStylePool::m_bTryToEmbedFonts
private

Definition at line 43 of file XMLFontAutoStylePool.hxx.

Referenced by exportXML().

◆ m_pFontAutoStylePool

std::unique_ptr<XMLFontAutoStylePool_Impl> XMLFontAutoStylePool::m_pFontAutoStylePool
private

Definition at line 41 of file XMLFontAutoStylePool.hxx.

Referenced by Add(), exportXML(), and Find().

◆ rExport

SvXMLExport& XMLFontAutoStylePool::rExport
private

Definition at line 39 of file XMLFontAutoStylePool.hxx.


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