LibreOffice Module cui (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
MenuSaveInData Class Reference

#include <cfg.hxx>

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

Public Member Functions

 MenuSaveInData (const css::uno::Reference< css::ui::XUIConfigurationManager > &, const css::uno::Reference< css::ui::XUIConfigurationManager > &, const OUString &aModuleId, bool docConfig)
 
virtual ~MenuSaveInData () override
 
SvxEntriesGetEntries () override
 methods inherited from SaveInData More...
 
void SetEntries (std::unique_ptr< SvxEntries >) override
 
bool HasURL (const OUString &) override
 
bool HasSettings () override
 
void Reset () override
 
bool Apply () override
 
- Public Member Functions inherited from SaveInData
 SaveInData (css::uno::Reference< css::ui::XUIConfigurationManager > xCfgMgr, css::uno::Reference< css::ui::XUIConfigurationManager > xParentCfgMgr, const OUString &aModuleId, bool docConfig)
 
virtual ~SaveInData ()
 
bool PersistChanges (const css::uno::Reference< css::uno::XInterface > &xManager)
 
void SetModified (bool bValue=true)
 
bool IsModified () const
 
bool IsReadOnly () const
 
bool IsDocConfig () const
 
const css::uno::Reference< css::ui::XUIConfigurationManager > & GetConfigManager () const
 
const css::uno::Reference< css::ui::XUIConfigurationManager > & GetParentConfigManager () const
 
const css::uno::Reference< css::ui::XImageManager > & GetImageManager () const
 
const css::uno::Reference< css::ui::XImageManager > & GetParentImageManager () const
 
css::uno::Reference< css::graphic::XGraphic > GetImage (const OUString &rCommandURL)
 
virtual bool HasURL (const OUString &aURL)=0
 
virtual bool HasSettings ()=0
 
virtual SvxEntriesGetEntries ()=0
 
virtual void SetEntries (std::unique_ptr< SvxEntries >)=0
 
virtual void Reset ()=0
 
virtual bool Apply ()=0
 

Private Member Functions

void Apply (css::uno::Reference< css::container::XIndexContainer > const &rNewMenuBar, css::uno::Reference< css::lang::XSingleComponentFactory > &rFactory)
 

Static Private Member Functions

static void SetDefaultData (MenuSaveInData *pData)
 
static MenuSaveInDataGetDefaultData ()
 

Private Attributes

OUString m_aMenuResourceURL
 
OUString m_aDescriptorContainer
 
css::uno::Reference< css::container::XIndexAccess > m_xMenuSettings
 
std::unique_ptr< SvxConfigEntrypRootEntry
 

Static Private Attributes

static MenuSaveInDatapDefaultData = nullptr
 static holder of the default menu data More...
 

Additional Inherited Members

- Public Attributes inherited from SaveInData
css::uno::Reference< css::container::XNameAccess > m_xCommandToLabelMap
 
css::uno::Sequence< css::beans::PropertyValue > m_aSeparatorSeq
 
- Protected Member Functions inherited from SaveInData
void ApplyMenu (css::uno::Reference< css::container::XIndexContainer > const &rMenuBar, css::uno::Reference< css::lang::XSingleComponentFactory > &rFactory, SvxConfigEntry *pMenuData)
 
void LoadSubMenus (const css::uno::Reference< css::container::XIndexAccess > &xMenuSettings, const OUString &rBaseTitle, SvxConfigEntry const *pParentData, bool bContextMenu)
 

Detailed Description

Definition at line 167 of file cfg.hxx.

Constructor & Destructor Documentation

◆ MenuSaveInData()

MenuSaveInData::MenuSaveInData ( const css::uno::Reference< css::ui::XUIConfigurationManager > &  ,
const css::uno::Reference< css::ui::XUIConfigurationManager > &  ,
const OUString &  aModuleId,
bool  docConfig 
)

◆ ~MenuSaveInData()

MenuSaveInData::~MenuSaveInData ( )
overridevirtual

Definition at line 416 of file cfg.cxx.

Member Function Documentation

◆ Apply() [1/2]

bool MenuSaveInData::Apply ( )
overridevirtual

◆ Apply() [2/2]

void MenuSaveInData::Apply ( css::uno::Reference< css::container::XIndexContainer > const &  rNewMenuBar,
css::uno::Reference< css::lang::XSingleComponentFactory > &  rFactory 
)
private

◆ GetDefaultData()

static MenuSaveInData * MenuSaveInData::GetDefaultData ( )
inlinestaticprivate

Definition at line 183 of file cfg.hxx.

References pDefaultData.

Referenced by GetEntries().

◆ GetEntries()

SvxEntries * MenuSaveInData::GetEntries ( )
overridevirtual

methods inherited from SaveInData

Implements SaveInData.

Definition at line 421 of file cfg.cxx.

References GetDefaultData(), SaveInData::LoadSubMenus(), m_xMenuSettings, and pRootEntry.

◆ HasSettings()

bool MenuSaveInData::HasSettings ( )
inlineoverridevirtual

Implements SaveInData.

Definition at line 203 of file cfg.hxx.

References m_xMenuSettings.

◆ HasURL()

bool MenuSaveInData::HasURL ( const OUString &  )
inlineoverridevirtual

Implements SaveInData.

Definition at line 202 of file cfg.hxx.

◆ Reset()

void MenuSaveInData::Reset ( void  )
overridevirtual

◆ SetDefaultData()

static void MenuSaveInData::SetDefaultData ( MenuSaveInData pData)
inlinestaticprivate

Definition at line 182 of file cfg.hxx.

References pData, and pDefaultData.

Referenced by MenuSaveInData().

◆ SetEntries()

void MenuSaveInData::SetEntries ( std::unique_ptr< SvxEntries pNewEntries)
overridevirtual

Implements SaveInData.

Definition at line 442 of file cfg.cxx.

References pRootEntry.

Member Data Documentation

◆ m_aDescriptorContainer

OUString MenuSaveInData::m_aDescriptorContainer
private

Definition at line 172 of file cfg.hxx.

◆ m_aMenuResourceURL

OUString MenuSaveInData::m_aMenuResourceURL
private

Definition at line 171 of file cfg.hxx.

Referenced by Apply(), and Reset().

◆ m_xMenuSettings

css::uno::Reference< css::container::XIndexAccess > MenuSaveInData::m_xMenuSettings
private

Definition at line 175 of file cfg.hxx.

Referenced by Apply(), GetEntries(), HasSettings(), MenuSaveInData(), and Reset().

◆ pDefaultData

MenuSaveInData * MenuSaveInData::pDefaultData = nullptr
staticprivate

static holder of the default menu data

Definition at line 180 of file cfg.hxx.

Referenced by GetDefaultData(), and SetDefaultData().

◆ pRootEntry

std::unique_ptr<SvxConfigEntry> MenuSaveInData::pRootEntry
private

Definition at line 177 of file cfg.hxx.

Referenced by GetEntries(), Reset(), and SetEntries().


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