LibreOffice Module lotuswordpro (master) 1
|
@descr container object for styles. More...
#include <xfstylecont.hxx>
Public Member Functions | |
XFStyleContainer () | |
XFStyleContainer (OUString strStyleNamePrefix) | |
XFStyleContainer (const XFStyleContainer &other)=delete | |
XFStyleContainer & | operator= (const XFStyleContainer &other)=delete |
virtual | ~XFStyleContainer () |
IXFStyleRet | AddStyle (std::unique_ptr< IXFStyle > pStyle) |
@descr Add style to container. More... | |
IXFStyle * | FindSameStyle (IXFStyle *pStyle) |
@descr Find the same style. More... | |
IXFStyle * | FindStyle (std::u16string_view name) |
@descr get style by name. More... | |
void | Reset () |
@descr clear container. More... | |
size_t | GetCount () const |
@descr get count of styles in the container. More... | |
const IXFStyle * | Item (size_t index) const |
@descr get style by index. More... | |
virtual void | ToXml (IXFStream *pStrm) |
@descr Output all style. More... | |
Static Private Member Functions | |
static void | ManageStyleFont (IXFStyle *pStyle) |
Private Attributes | |
std::vector< std::unique_ptr< IXFStyle > > | m_aStyles |
OUString | m_strStyleNamePrefix |
Friends | |
bool | operator== (XFStyleContainer &b1, XFStyleContainer &b2) |
bool | operator!= (XFStyleContainer &b1, XFStyleContainer &b2) |
@descr container object for styles.
All styles can be placed into a style container.
Definition at line 84 of file xfstylecont.hxx.
|
inline |
Definition at line 87 of file xfstylecont.hxx.
|
explicit |
Definition at line 69 of file xfstylecont.cxx.
|
delete |
|
virtual |
Definition at line 74 of file xfstylecont.cxx.
IXFStyleRet XFStyleContainer::AddStyle | ( | std::unique_ptr< IXFStyle > | pStyle | ) |
@descr Add style to container.
If the same style has exist, then pStyle will be deleted, and the same style will be return.
Definition at line 83 of file xfstylecont.cxx.
References FindSameStyle(), FindStyle(), m_aStyles, IXFStyleRet::m_bOrigDeleted, IXFStyleRet::m_pStyle, m_strStyleNamePrefix, ManageStyleFont(), and name.
Referenced by XFDateStyle::AddAmPm(), XFDateStyle::AddEra(), XFDateStyle::AddHour(), XFDateStyle::AddMinute(), XFDateStyle::AddMonth(), XFDateStyle::AddMonthDay(), XFDateStyle::AddSecond(), XFStyleManager::AddStyle(), XFParaStyle::AddTabStyle(), XFDateStyle::AddText(), XFDateStyle::AddWeekDay(), XFDateStyle::AddYear(), XFParaStyle::operator=(), XFConfigManager::ToXml(), and XFParaStyle::XFParaStyle().
@descr Find the same style.
Definition at line 129 of file xfstylecont.cxx.
References m_aStyles.
Referenced by AddStyle().
IXFStyle * XFStyleContainer::FindStyle | ( | std::u16string_view | name | ) |
@descr get style by name.
Definition at line 141 of file xfstylecont.cxx.
References m_aStyles, and name.
Referenced by AddStyle(), XFStyleManager::FindParaStyle(), XFStyleManager::FindStyle(), and XFStyleManager::FindTextStyle().
|
inline |
@descr get count of styles in the container.
Definition at line 145 of file xfstylecont.hxx.
References m_aStyles.
Referenced by XFParaStyle::operator=(), XFParaStyle::ToXml(), and XFParaStyle::XFParaStyle().
const IXFStyle * XFStyleContainer::Item | ( | size_t | index | ) | const |
@descr get style by index.
Definition at line 153 of file xfstylecont.cxx.
References index, and m_aStyles.
Referenced by XFParaStyle::operator=(), and XFParaStyle::XFParaStyle().
|
staticprivate |
Definition at line 172 of file xfstylecont.cxx.
References XFFontFactory::AddFont(), enumXFStylePara, enumXFStyleText, XFFontFactory::FindSameFont(), XFParaStyle::GetFont(), XFTextStyle::GetFont(), LwpGlobalMgr::GetInstance(), IXFStyle::GetStyleFamily(), LwpGlobalMgr::GetXFFontFactory(), XFParaStyle::SetFont(), and XFTextStyle::SetFont().
Referenced by AddStyle().
|
delete |
void XFStyleContainer::Reset | ( | void | ) |
@descr clear container.
Definition at line 78 of file xfstylecont.cxx.
References m_aStyles.
Referenced by XFParaStyle::ClearTabStyles(), XFParaStyle::operator=(), XFStyleManager::Reset(), and XFConfigManager::ToXml().
|
virtual |
@descr Output all style.
Reimplemented in XFConfigManager.
Definition at line 163 of file xfstylecont.cxx.
References m_aStyles.
Referenced by XFConfigManager::ToXml(), XFDateStyle::ToXml(), XFStyleManager::ToXml(), and XFParaStyle::ToXml().
|
friend |
Definition at line 247 of file xfstylecont.cxx.
|
friend |
Definition at line 220 of file xfstylecont.cxx.
|
private |
Definition at line 141 of file xfstylecont.hxx.
Referenced by AddStyle(), FindSameStyle(), FindStyle(), GetCount(), Item(), Reset(), and ToXml().
|
private |
Definition at line 142 of file xfstylecont.hxx.
Referenced by AddStyle().