LibreOffice Module lotuswordpro (master) 1
|
Font factory. More...
#include <xffontfactory.hxx>
Public Member Functions | |
XFFontFactory () | |
~XFFontFactory () | |
XFFontFactory (const XFFontFactory &)=delete | |
XFFontFactory & | operator= (XFFontFactory const &)=delete |
Private Member Functions | |
void | AddFont (rtl::Reference< XFFont > const &pFont) |
@descr Add a font. More... | |
rtl::Reference< XFFont > | FindSameFont (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 |
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.
XFFontFactory::XFFontFactory | ( | ) |
Definition at line 62 of file xffontfactory.cxx.
XFFontFactory::~XFFontFactory | ( | ) |
Definition at line 64 of file xffontfactory.cxx.
|
delete |
|
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().
|
private |
@descr Find whether same font object exists.
Definition at line 68 of file xffontfactory.cxx.
References s_aFonts.
Referenced by XFStyleContainer::ManageStyleFont().
|
delete |
|
friend |
Definition at line 96 of file xffontfactory.hxx.
|
private |
Definition at line 99 of file xffontfactory.hxx.
Referenced by AddFont(), and FindSameFont().