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

Config information for OOo document, ie, line count config, endnote and footnote config. More...

#include <xfconfigmanager.hxx>

Inheritance diagram for XFConfigManager:
[legend]
Collaboration diagram for XFConfigManager:
[legend]

Public Member Functions

 XFConfigManager ()
 
virtual ~XFConfigManager () override
 
void SetLineNumberConfig (XFLineNumberConfig *pLNConfig)
 @descr Set line number config. More...
 
void SetFootnoteConfig (XFFootnoteConfig *pFNConfig)
 @descr Set footnote config. More...
 
void SetEndnoteConfig (XFEndnoteConfig *pFNConfig)
 @descr Set endnote config. More...
 
virtual void ToXml (IXFStream *pStrm) override
 @descr Output config information. More...
 
- Public Member Functions inherited from XFStyleContainer
 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...
 

Private Attributes

std::unique_ptr< XFLineNumberConfigm_pLineNumberConfig
 
std::unique_ptr< XFFootnoteConfigm_pFootnoteConfig
 
std::unique_ptr< XFEndnoteConfigm_pEndnoteConfig
 

Detailed Description

Config information for OOo document, ie, line count config, endnote and footnote config.

This object should only exist one instance. Don't make this object a singleton because it's managed by XFStyleManager.

Definition at line 75 of file xfconfigmanager.hxx.

Constructor & Destructor Documentation

◆ XFConfigManager()

XFConfigManager::XFConfigManager ( )

Definition at line 62 of file xfconfigmanager.cxx.

◆ ~XFConfigManager()

XFConfigManager::~XFConfigManager ( )
overridevirtual

Definition at line 64 of file xfconfigmanager.cxx.

Member Function Documentation

◆ SetEndnoteConfig()

void XFConfigManager::SetEndnoteConfig ( XFEndnoteConfig pFNConfig)

@descr Set endnote config.

Definition at line 76 of file xfconfigmanager.cxx.

References m_pEndnoteConfig.

Referenced by XFStyleManager::SetEndnoteConfig().

◆ SetFootnoteConfig()

void XFConfigManager::SetFootnoteConfig ( XFFootnoteConfig pFNConfig)

@descr Set footnote config.

Definition at line 71 of file xfconfigmanager.cxx.

References m_pFootnoteConfig.

Referenced by XFStyleManager::SetFootnoteConfig().

◆ SetLineNumberConfig()

void XFConfigManager::SetLineNumberConfig ( XFLineNumberConfig pLNConfig)

@descr Set line number config.

Definition at line 66 of file xfconfigmanager.cxx.

References m_pLineNumberConfig.

Referenced by XFStyleManager::SetLineNumberConfig().

◆ ToXml()

void XFConfigManager::ToXml ( IXFStream pStrm)
overridevirtual

@descr Output config information.

Reimplemented from XFStyleContainer.

Definition at line 81 of file xfconfigmanager.cxx.

References XFStyleContainer::AddStyle(), m_pEndnoteConfig, m_pFootnoteConfig, m_pLineNumberConfig, XFStyleContainer::Reset(), and XFStyleContainer::ToXml().

Referenced by XFStyleManager::ToXml().

Member Data Documentation

◆ m_pEndnoteConfig

std::unique_ptr<XFEndnoteConfig> XFConfigManager::m_pEndnoteConfig
private

Definition at line 105 of file xfconfigmanager.hxx.

Referenced by SetEndnoteConfig(), and ToXml().

◆ m_pFootnoteConfig

std::unique_ptr<XFFootnoteConfig> XFConfigManager::m_pFootnoteConfig
private

Definition at line 104 of file xfconfigmanager.hxx.

Referenced by SetFootnoteConfig(), and ToXml().

◆ m_pLineNumberConfig

std::unique_ptr<XFLineNumberConfig> XFConfigManager::m_pLineNumberConfig
private

Definition at line 103 of file xfconfigmanager.hxx.

Referenced by SetLineNumberConfig(), and ToXml().


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