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

@descr container object for styles. More...

#include <xfstylecont.hxx>

Inheritance diagram for XFStyleContainer:
[legend]

Public Member Functions

 XFStyleContainer ()
 
 XFStyleContainer (OUString strStyleNamePrefix)
 
 XFStyleContainer (const XFStyleContainer &other)=delete
 
XFStyleContaineroperator= (const XFStyleContainer &other)=delete
 
virtual ~XFStyleContainer ()
 
IXFStyleRet AddStyle (std::unique_ptr< IXFStyle > pStyle)
 @descr Add style to container. More...
 
IXFStyleFindSameStyle (IXFStyle *pStyle)
 @descr Find the same style. More...
 
IXFStyleFindStyle (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 IXFStyleItem (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)
 

Detailed Description

@descr container object for styles.

All styles can be placed into a style container.

Definition at line 84 of file xfstylecont.hxx.

Constructor & Destructor Documentation

◆ XFStyleContainer() [1/3]

XFStyleContainer::XFStyleContainer ( )
inline

Definition at line 87 of file xfstylecont.hxx.

◆ XFStyleContainer() [2/3]

XFStyleContainer::XFStyleContainer ( OUString  strStyleNamePrefix)
explicit

Definition at line 69 of file xfstylecont.cxx.

◆ XFStyleContainer() [3/3]

XFStyleContainer::XFStyleContainer ( const XFStyleContainer other)
delete

◆ ~XFStyleContainer()

XFStyleContainer::~XFStyleContainer ( )
virtual

Definition at line 74 of file xfstylecont.cxx.

Member Function Documentation

◆ AddStyle()

IXFStyleRet XFStyleContainer::AddStyle ( std::unique_ptr< IXFStyle pStyle)

◆ FindSameStyle()

IXFStyle * XFStyleContainer::FindSameStyle ( IXFStyle pStyle)

@descr Find the same style.

Definition at line 129 of file xfstylecont.cxx.

References m_aStyles.

Referenced by AddStyle().

◆ FindStyle()

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().

◆ GetCount()

size_t XFStyleContainer::GetCount ( ) const
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().

◆ Item()

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().

◆ ManageStyleFont()

void XFStyleContainer::ManageStyleFont ( IXFStyle pStyle)
staticprivate

◆ operator=()

XFStyleContainer & XFStyleContainer::operator= ( const XFStyleContainer other)
delete

◆ Reset()

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().

◆ ToXml()

void XFStyleContainer::ToXml ( IXFStream pStrm)
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().

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( XFStyleContainer b1,
XFStyleContainer b2 
)
friend

Definition at line 247 of file xfstylecont.cxx.

◆ operator==

bool operator== ( XFStyleContainer b1,
XFStyleContainer b2 
)
friend

Definition at line 220 of file xfstylecont.cxx.

Member Data Documentation

◆ m_aStyles

std::vector<std::unique_ptr<IXFStyle> > XFStyleContainer::m_aStyles
private

Definition at line 141 of file xfstylecont.hxx.

Referenced by AddStyle(), FindSameStyle(), FindStyle(), GetCount(), Item(), Reset(), and ToXml().

◆ m_strStyleNamePrefix

OUString XFStyleContainer::m_strStyleNamePrefix
private

Definition at line 142 of file xfstylecont.hxx.

Referenced by AddStyle().


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