LibreOffice Module cui (master) 1
|
#include <cfg.hxx>
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) |
SvxEntries * | GetEntries () 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 SvxEntries * | GetEntries ()=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< SvxConfigEntry > | pRootEntry |
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) |
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.
|
overridevirtual |
Implements SaveInData.
|
private |
Referenced by ApplyToolbar(), SvxToolbarEntriesListBox::ChangedVisibility(), and IMPL_LINK().
void ToolbarSaveInData::ApplyToolbar | ( | SvxConfigEntry * | pToolbar | ) |
Definition at line 2455 of file cfg.cxx.
References ApplyToolbar(), SvxConfigEntry::GetCommand(), SaveInData::GetConfigManager(), SvxConfigEntry::GetName(), SvxConfigEntry::IsParentData(), SvxConfigEntry::IsUserDefined(), ITEM_DESCRIPTOR_UINAME, SaveInData::PersistChanges(), SvxConfigEntry::SetParentData(), TOOLS_WARN_EXCEPTION, and xFactory.
void ToolbarSaveInData::CreateToolbar | ( | SvxConfigEntry * | pToolbar | ) |
Definition at line 2502 of file cfg.cxx.
References SvxConfigEntry::GetCommand(), SaveInData::GetConfigManager(), GetEntries(), SvxConfigEntry::GetName(), ITEM_DESCRIPTOR_UINAME, SaveInData::PersistChanges(), and TOOLS_WARN_EXCEPTION.
|
overridevirtual |
Implements SaveInData.
Definition at line 2176 of file cfg.cxx.
References begin, CUSTOM_TOOLBAR_STR, end, SvxConfigPageHelper::EntrySort(), SaveInData::GetConfigManager(), GetEntries(), SaveInData::GetParentConfigManager(), GetSystemStyle(), GetSystemUIName(), ITEM_DESCRIPTOR_RESOURCEURL, ITEM_DESCRIPTOR_UINAME, LoadToolbar(), pRootEntry, props, SvxConfigEntry::SetMain(), SvxConfigEntry::SetStyle(), and SvxConfigEntry::SetUserDefined().
Referenced by CreateToolbar(), GetEntries(), HasSettings(), HasURL(), RemoveToolbar(), and Reset().
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().
OUString ToolbarSaveInData::GetSystemUIName | ( | const OUString & | rResourceURL | ) |
Definition at line 2116 of file cfg.cxx.
References a, ITEM_DESCRIPTOR_LABEL, ITEM_DESCRIPTOR_UINAME, SaveInData::m_xCommandToLabelMap, m_xPersistentWindowState, and result.
Referenced by GetEntries(), and IMPL_LINK().
|
overridevirtual |
|
overridevirtual |
|
private |
Definition at line 2616 of file cfg.cxx.
References a, aLabel, SvxConfigEntry::GetEntries(), SvxConfigPageHelper::GetToolbarItemData(), SaveInData::m_xCommandToLabelMap, nIndex, nType, SvxConfigEntry::SetName(), SvxConfigEntry::SetStyle(), SvxConfigEntry::SetUserDefined(), and SvxConfigEntry::SetVisible().
Referenced by GetEntries(), and RestoreToolbar().
void ToolbarSaveInData::RemoveToolbar | ( | SvxConfigEntry * | pToolbar | ) |
Definition at line 2529 of file cfg.cxx.
References SvxConfigEntry::GetCommand(), SaveInData::GetConfigManager(), GetEntries(), m_xPersistentWindowState, SaveInData::PersistChanges(), and SvxConfigPageHelper::RemoveEntry().
Referenced by SvxToolbarConfigPage::DeleteSelectedTopLevel().
|
overridevirtual |
Implements SaveInData.
Definition at line 2369 of file cfg.cxx.
References SaveInData::GetConfigManager(), GetEntries(), SaveInData::GetImageManager(), SaveInData::PersistChanges(), pRootEntry, and SAL_WARN.
void ToolbarSaveInData::RestoreToolbar | ( | SvxConfigEntry * | pToolbar | ) |
Definition at line 2552 of file cfg.cxx.
References SvxConfigEntry::GetCommand(), SaveInData::GetConfigManager(), SvxConfigEntry::GetEntries(), SaveInData::GetImageManager(), SvxConfigPageHelper::GetImageType(), SaveInData::GetParentConfigManager(), SaveInData::IsDocConfig(), SvxConfigEntry::IsParentData(), LoadToolbar(), SaveInData::PersistChanges(), SAL_WARN, and SvxConfigEntry::SetParentData().
Referenced by IMPL_LINK_NOARG().
|
overridevirtual |
void ToolbarSaveInData::SetSystemStyle | ( | const css::uno::Reference< css::frame::XFrame > & | xFrame, |
const OUString & | rResourceURL, | ||
sal_Int32 | nStyle | ||
) |
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().
|
private |
Definition at line 560 of file cfg.hxx.
Referenced by GetSystemStyle(), GetSystemUIName(), RemoveToolbar(), SetSystemStyle(), and ToolbarSaveInData().
|
private |
Definition at line 556 of file cfg.hxx.
Referenced by GetEntries(), Reset(), and SetEntries().