LibreOffice Module cui (master) 1
|
#include <cfg.hxx>
Public Member Functions | |
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 |
Public Attributes | |
css::uno::Reference< css::container::XNameAccess > | m_xCommandToLabelMap |
css::uno::Sequence< css::beans::PropertyValue > | m_aSeparatorSeq |
Protected Member Functions | |
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) |
Private Attributes | |
bool | bModified |
bool | bDocConfig |
bool | bReadOnly |
css::uno::Reference< css::ui::XUIConfigurationManager > | m_xCfgMgr |
css::uno::Reference< css::ui::XUIConfigurationManager > | m_xParentCfgMgr |
css::uno::Reference< css::ui::XImageManager > | m_xImgMgr |
css::uno::Reference< css::ui::XImageManager > | m_xParentImgMgr |
Static Private Attributes | |
static css::uno::Reference< css::ui::XImageManager > * | xDefaultImgMgr = nullptr |
SaveInData::SaveInData | ( | css::uno::Reference< css::ui::XUIConfigurationManager > | xCfgMgr, |
css::uno::Reference< css::ui::XUIConfigurationManager > | xParentCfgMgr, | ||
const OUString & | aModuleId, | ||
bool | docConfig | ||
) |
Definition at line 283 of file cfg.cxx.
References bDocConfig, bReadOnly, bReadOnly, GetConfigManager(), IsDocConfig(), m_xCommandToLabelMap, m_xImgMgr, m_xParentCfgMgr, m_xParentImgMgr, makePropertyValue(), and xDefaultImgMgr.
|
pure virtual |
Implemented in MenuSaveInData, ContextMenuSaveInData, and ToolbarSaveInData.
|
protected |
Definition at line 628 of file cfg.cxx.
References ApplyMenu(), SvxConfigPageHelper::ConvertSvxConfigEntry(), SvxConfigEntry::GetEntries(), ITEM_DESCRIPTOR_CONTAINER, m_aSeparatorSeq, nIndex, and SvxConfigEntry::SetModified().
Referenced by ContextMenuSaveInData::Apply(), and ApplyMenu().
|
inline |
Definition at line 137 of file cfg.hxx.
References m_xCfgMgr.
Referenced by MenuSaveInData::Apply(), ContextMenuSaveInData::Apply(), ToolbarSaveInData::ApplyToolbar(), ToolbarSaveInData::CreateToolbar(), ContextMenuSaveInData::GetEntries(), ToolbarSaveInData::GetEntries(), MenuSaveInData::MenuSaveInData(), ToolbarSaveInData::RemoveToolbar(), MenuSaveInData::Reset(), ContextMenuSaveInData::Reset(), ToolbarSaveInData::Reset(), ContextMenuSaveInData::ResetContextMenu(), ToolbarSaveInData::RestoreToolbar(), and SaveInData().
|
pure virtual |
Implemented in MenuSaveInData, ContextMenuSaveInData, and ToolbarSaveInData.
uno::Reference< graphic::XGraphic > SaveInData::GetImage | ( | const OUString & | rCommandURL | ) |
Definition at line 336 of file cfg.cxx.
References SvxConfigPageHelper::GetGraphic(), m_xImgMgr, and xDefaultImgMgr.
Referenced by CommandCategoryListBox::addChildren(), CommandCategoryListBox::FillFunctionsList(), and SvxConfigPage::InsertEntryIntoNotebookbarTabUI().
|
inline |
Definition at line 145 of file cfg.hxx.
References m_xImgMgr.
Referenced by ToolbarSaveInData::Reset(), and ToolbarSaveInData::RestoreToolbar().
|
inline |
Definition at line 141 of file cfg.hxx.
References m_xParentCfgMgr.
Referenced by ContextMenuSaveInData::GetEntries(), ToolbarSaveInData::GetEntries(), and ToolbarSaveInData::RestoreToolbar().
|
inline |
Definition at line 149 of file cfg.hxx.
References m_xParentImgMgr.
|
pure virtual |
Implemented in MenuSaveInData, ContextMenuSaveInData, and ToolbarSaveInData.
Referenced by SvxConfigPage::Reset().
|
pure virtual |
Implemented in MenuSaveInData, ContextMenuSaveInData, and ToolbarSaveInData.
Referenced by SvxConfigPage::Reset().
|
inline |
Definition at line 133 of file cfg.hxx.
References bDocConfig.
Referenced by MenuSaveInData::MenuSaveInData(), ToolbarSaveInData::RestoreToolbar(), and SaveInData().
|
inline |
Definition at line 130 of file cfg.hxx.
References bModified.
Referenced by MenuSaveInData::Apply(), and ContextMenuSaveInData::Apply().
|
inline |
Definition at line 132 of file cfg.hxx.
References bReadOnly.
Referenced by PersistChanges(), and SvxConfigPage::Reset().
|
protected |
Definition at line 447 of file cfg.cxx.
References a, aLabel, aMenuSeparatorStr, SvxConfigEntry::GetEntries(), SvxConfigPageHelper::GetMenuItemData(), LoadSubMenus(), m_xCommandToLabelMap, nIndex, nType, SvxConfigEntry::SetMain(), SvxConfigEntry::SetName(), SvxConfigEntry::SetStyle(), SvxConfigEntry::SetUserDefined(), and SvxConfigPageHelper::stripHotKey().
Referenced by MenuSaveInData::GetEntries(), ContextMenuSaveInData::GetEntries(), and LoadSubMenus().
bool SaveInData::PersistChanges | ( | const css::uno::Reference< css::uno::XInterface > & | xManager | ) |
Definition at line 349 of file cfg.cxx.
References IsReadOnly(), and result.
Referenced by MenuSaveInData::Apply(), ContextMenuSaveInData::Apply(), ToolbarSaveInData::ApplyToolbar(), ToolbarSaveInData::CreateToolbar(), ToolbarSaveInData::RemoveToolbar(), MenuSaveInData::Reset(), ContextMenuSaveInData::Reset(), ToolbarSaveInData::Reset(), ContextMenuSaveInData::ResetContextMenu(), and ToolbarSaveInData::RestoreToolbar().
|
pure virtual |
Implemented in MenuSaveInData, ContextMenuSaveInData, and ToolbarSaveInData.
Referenced by SvxConfigPage::Reset().
|
pure virtual |
Implemented in ContextMenuSaveInData, MenuSaveInData, and ToolbarSaveInData.
|
inline |
Definition at line 129 of file cfg.hxx.
References bModified.
Referenced by SvxConfigPage::AppendEntry(), MenuSaveInData::Apply(), ContextMenuSaveInData::Apply(), SvxMenuConfigPage::DeleteSelectedContent(), SvxMenuConfigPage::DeleteSelectedTopLevel(), SvxMenuConfigPage::ListModified(), SvxToolbarConfigPage::ListModified(), and SvxConfigPage::MoveEntryData().
|
private |
Definition at line 87 of file cfg.hxx.
Referenced by IsDocConfig(), and SaveInData().
|
private |
Definition at line 85 of file cfg.hxx.
Referenced by IsModified(), and SetModified().
|
private |
Definition at line 88 of file cfg.hxx.
Referenced by IsReadOnly(), and SaveInData().
css::uno::Sequence< css::beans::PropertyValue > SaveInData::m_aSeparatorSeq |
Definition at line 155 of file cfg.hxx.
Referenced by ApplyMenu().
|
private |
Definition at line 91 of file cfg.hxx.
Referenced by GetConfigManager().
css::uno::Reference< css::container::XNameAccess > SaveInData::m_xCommandToLabelMap |
Definition at line 152 of file cfg.hxx.
Referenced by ToolbarSaveInData::GetSystemUIName(), LoadSubMenus(), ToolbarSaveInData::LoadToolbar(), and SaveInData().
|
private |
Definition at line 97 of file cfg.hxx.
Referenced by GetImage(), GetImageManager(), and SaveInData().
|
private |
Definition at line 94 of file cfg.hxx.
Referenced by GetParentConfigManager(), and SaveInData().
|
private |
Definition at line 100 of file cfg.hxx.
Referenced by GetParentImageManager(), and SaveInData().
|
staticprivate |
Definition at line 103 of file cfg.hxx.
Referenced by GetImage(), and SaveInData().