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 voidoperator new (std::size_t nSize)
 
static voidoperator 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 ( SvXMLExport rExport,
bool  tryToEmbedFonts = false 
)

Definition at line 151 of file XMLFontAutoStylePool.cxx.

XMLFontAutoStylePool::~XMLFontAutoStylePool ( )
overridevirtual

Definition at line 162 of file XMLFontAutoStylePool.cxx.

Member Function Documentation

OUString XMLFontAutoStylePool::Add ( const OUString &  rFamilyName,
const OUString &  rStyleName,
FontFamily  nFamily,
FontPitch  nPitch,
rtl_TextEncoding  eEnc 
)
OUString XMLFontAutoStylePool::embedFontFile ( OUString const &  rFileUrl,
OUString const &  rFamilyName 
)
private
void XMLFontAutoStylePool::exportXML ( )
OUString XMLFontAutoStylePool::Find ( const OUString &  rFamilyName,
const OUString &  rStyleName,
FontFamily  nFamily,
FontPitch  nPitch,
rtl_TextEncoding  eEnc 
) const

Definition at line 219 of file XMLFontAutoStylePool.cxx.

References m_pFontAutoStylePool, and sName.

SvXMLExport& XMLFontAutoStylePool::GetExport ( )
inlineprotected

Definition at line 56 of file XMLFontAutoStylePool.hxx.

References XMLImageStyle::rExport.

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

std::unordered_set< OUString > XMLFontAutoStylePool::getUsedFontList ( )
private
void XMLFontAutoStylePool::setEmbedFontScripts ( bool  bEmbedLatinScript,
bool  bEmbedAsianScript,
bool  bEmbedComplexScript 
)
inline

Definition at line 82 of file XMLFontAutoStylePool.hxx.

Referenced by SdXMLExport::CreateFontAutoStylePool().

void XMLFontAutoStylePool::setEmbedOnlyUsedFonts ( bool  bEmbedUsedOnly)
inline

Definition at line 78 of file XMLFontAutoStylePool.hxx.

Referenced by SdXMLExport::CreateFontAutoStylePool().

Member Data Documentation

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

Definition at line 44 of file XMLFontAutoStylePool.hxx.

Referenced by embedFontFile().

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

Definition at line 42 of file XMLFontAutoStylePool.hxx.

Referenced by Add().

bool XMLFontAutoStylePool::m_bEmbedAsianScript
protected

Definition at line 53 of file XMLFontAutoStylePool.hxx.

Referenced by getUsedFontList().

bool XMLFontAutoStylePool::m_bEmbedComplexScript
protected

Definition at line 54 of file XMLFontAutoStylePool.hxx.

Referenced by getUsedFontList().

bool XMLFontAutoStylePool::m_bEmbedLatinScript
protected

Definition at line 52 of file XMLFontAutoStylePool.hxx.

Referenced by getUsedFontList().

bool XMLFontAutoStylePool::m_bEmbedUsedOnly
protected

Definition at line 51 of file XMLFontAutoStylePool.hxx.

Referenced by exportXML().

bool XMLFontAutoStylePool::m_bTryToEmbedFonts
private

Definition at line 43 of file XMLFontAutoStylePool.hxx.

Referenced by exportXML().

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

Definition at line 41 of file XMLFontAutoStylePool.hxx.

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

SvXMLExport& XMLFontAutoStylePool::rExport
private

Definition at line 39 of file XMLFontAutoStylePool.hxx.


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