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

#include <cfg.hxx>

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

Public Member Functions

 ToolbarSaveInData (const css::uno::Reference< css::ui::XUIConfigurationManager > &, const css::uno::Reference< css::ui::XUIConfigurationManager > &, const OUString &aModuleId, bool docConfig)
 
virtual ~ToolbarSaveInData () override
 
void CreateToolbar (SvxConfigEntry *pToolbar)
 
void RestoreToolbar (SvxConfigEntry *pToolbar)
 
void RemoveToolbar (SvxConfigEntry *pToolbar)
 
void ApplyToolbar (SvxConfigEntry *pToolbar)
 
OUString GetSystemUIName (const OUString &rResourceURL)
 
sal_Int32 GetSystemStyle (const OUString &rResourceURL)
 
void SetSystemStyle (const OUString &rResourceURL, sal_Int32 nStyle)
 
void SetSystemStyle (const css::uno::Reference< css::frame::XFrame > &xFrame, const OUString &rResourceURL, sal_Int32 nStyle)
 
SvxEntriesGetEntries () override
 
void SetEntries (std::unique_ptr< SvxEntries >) override
 
bool HasSettings () override
 
bool HasURL (const OUString &rURL) 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 LoadToolbar (const css::uno::Reference< css::container::XIndexAccess > &xToolBarSettings, SvxConfigEntry const *pParentData)
 
void ApplyToolbar (css::uno::Reference< css::container::XIndexContainer > const &rNewToolbarBar, css::uno::Reference< css::lang::XSingleComponentFactory > &rFactory, SvxConfigEntry const *pToolbar)
 

Private Attributes

std::unique_ptr< SvxConfigEntrypRootEntry
 
OUString m_aDescriptorContainer
 
css::uno::Reference< css::container::XNameAccess > m_xPersistentWindowState
 

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 552 of file cfg.hxx.

Constructor & Destructor Documentation

◆ ToolbarSaveInData()

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

Definition at line 1967 of file cfg.cxx.

References m_xPersistentWindowState.

◆ ~ToolbarSaveInData()

ToolbarSaveInData::~ToolbarSaveInData ( )
overridevirtual

Definition at line 1985 of file cfg.cxx.

Member Function Documentation

◆ Apply()

bool ToolbarSaveInData::Apply ( )
overridevirtual

Implements SaveInData.

Definition at line 2405 of file cfg.cxx.

◆ ApplyToolbar() [1/2]

void ToolbarSaveInData::ApplyToolbar ( css::uno::Reference< css::container::XIndexContainer > const &  rNewToolbarBar,
css::uno::Reference< css::lang::XSingleComponentFactory > &  rFactory,
SvxConfigEntry const *  pToolbar 
)
private

◆ ApplyToolbar() [2/2]

void ToolbarSaveInData::ApplyToolbar ( SvxConfigEntry pToolbar)

◆ CreateToolbar()

void ToolbarSaveInData::CreateToolbar ( SvxConfigEntry pToolbar)

◆ GetEntries()

SvxEntries * ToolbarSaveInData::GetEntries ( )
overridevirtual

◆ GetSystemStyle()

sal_Int32 ToolbarSaveInData::GetSystemStyle ( const OUString &  rResourceURL)

Definition at line 1989 of file cfg.cxx.

References a, ITEM_DESCRIPTOR_STYLE, m_xPersistentWindowState, and result.

Referenced by GetEntries().

◆ GetSystemUIName()

OUString ToolbarSaveInData::GetSystemUIName ( const OUString &  rResourceURL)

◆ HasSettings()

bool ToolbarSaveInData::HasSettings ( )
overridevirtual

Implements SaveInData.

Definition at line 2363 of file cfg.cxx.

References GetEntries().

◆ HasURL()

bool ToolbarSaveInData::HasURL ( const OUString &  rURL)
overridevirtual

Implements SaveInData.

Definition at line 2351 of file cfg.cxx.

References GetEntries().

◆ LoadToolbar()

void ToolbarSaveInData::LoadToolbar ( const css::uno::Reference< css::container::XIndexAccess > &  xToolBarSettings,
SvxConfigEntry const *  pParentData 
)
private

◆ RemoveToolbar()

void ToolbarSaveInData::RemoveToolbar ( SvxConfigEntry pToolbar)

◆ Reset()

void ToolbarSaveInData::Reset ( void  )
overridevirtual

◆ RestoreToolbar()

void ToolbarSaveInData::RestoreToolbar ( SvxConfigEntry pToolbar)

◆ SetEntries()

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

Implements SaveInData.

Definition at line 2345 of file cfg.cxx.

References pRootEntry.

◆ SetSystemStyle() [1/2]

void ToolbarSaveInData::SetSystemStyle ( const css::uno::Reference< css::frame::XFrame > &  xFrame,
const OUString &  rResourceURL,
sal_Int32  nStyle 
)

◆ SetSystemStyle() [2/2]

void ToolbarSaveInData::SetSystemStyle ( const OUString &  rResourceURL,
sal_Int32  nStyle 
)

Definition at line 2077 of file cfg.cxx.

References a, ITEM_DESCRIPTOR_STYLE, m_xPersistentWindowState, and TOOLS_WARN_EXCEPTION.

Referenced by IMPL_LINK().

Member Data Documentation

◆ m_aDescriptorContainer

OUString ToolbarSaveInData::m_aDescriptorContainer
private

Definition at line 557 of file cfg.hxx.

◆ m_xPersistentWindowState

css::uno::Reference< css::container::XNameAccess > ToolbarSaveInData::m_xPersistentWindowState
private

◆ pRootEntry

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

Definition at line 556 of file cfg.hxx.

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


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