LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
XFFontFactory Class Reference

Font factory. More...

#include <xffontfactory.hxx>

Public Member Functions

 XFFontFactory ()
 
 ~XFFontFactory ()
 
 XFFontFactory (const XFFontFactory &)=delete
 
XFFontFactoryoperator= (XFFontFactory const &)=delete
 

Private Member Functions

void AddFont (rtl::Reference< XFFont > const &pFont)
 @descr Add a font. More...
 
rtl::Reference< XFFontFindSameFont (rtl::Reference< XFFont > const &pFont)
 @descr Find whether same font object exists. More...
 

Private Attributes

std::vector< rtl::Reference< XFFont > > s_aFonts
 

Friends

class XFStyleContainer
 

Detailed Description

Font factory.

Because font object are so used so often, so make a factory to manager them. The fonts with same properties will only exist one instance.

Definition at line 76 of file xffontfactory.hxx.

Constructor & Destructor Documentation

◆ XFFontFactory() [1/2]

XFFontFactory::XFFontFactory ( )

Definition at line 62 of file xffontfactory.cxx.

◆ ~XFFontFactory()

XFFontFactory::~XFFontFactory ( )

Definition at line 64 of file xffontfactory.cxx.

◆ XFFontFactory() [2/2]

XFFontFactory::XFFontFactory ( const XFFontFactory )
delete

Member Function Documentation

◆ AddFont()

void XFFontFactory::AddFont ( rtl::Reference< XFFont > const &  pFont)
private

@descr Add a font.

if there exist a font with same properties with pFont, them the font object will not be added.

Definition at line 66 of file xffontfactory.cxx.

References s_aFonts.

Referenced by XFStyleContainer::ManageStyleFont().

◆ FindSameFont()

rtl::Reference< XFFont > XFFontFactory::FindSameFont ( rtl::Reference< XFFont > const &  pFont)
private

@descr Find whether same font object exists.

Definition at line 68 of file xffontfactory.cxx.

References s_aFonts.

Referenced by XFStyleContainer::ManageStyleFont().

◆ operator=()

XFFontFactory & XFFontFactory::operator= ( XFFontFactory const &  )
delete

Friends And Related Function Documentation

◆ XFStyleContainer

friend class XFStyleContainer
friend

Definition at line 96 of file xffontfactory.hxx.

Member Data Documentation

◆ s_aFonts

std::vector<rtl::Reference<XFFont> > XFFontFactory::s_aFonts
private

Definition at line 99 of file xffontfactory.hxx.

Referenced by AddFont(), and FindSameFont().


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