|
LibreOffice Module cui (master) 1
|
#include <SvxToolbarConfigPage.hxx>
Public Member Functions | |
| SvxToolbarConfigPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rItemSet) | |
| virtual | ~SvxToolbarConfigPage () override |
| void | AddFunction (int nTarget=-1) |
| void | MoveEntry (bool bMoveUp) override |
| SaveInData * | CreateSaveInData (const css::uno::Reference< css::ui::XUIConfigurationManager > &, const css::uno::Reference< css::ui::XUIConfigurationManager > &, const OUString &aModuleId, bool docConfig) override |
Public Member Functions inherited from SvxConfigPage | |
| virtual | ~SvxConfigPage () override |
| SaveInData * | GetSaveInData () |
| const OUString & | GetAppName () const |
| const OUString & | GetFileName () const |
| int | AddFunction (int nTarget, bool bAllowDuplicates) |
| virtual void | MoveEntry (bool bMoveUp) |
| bool | MoveEntryData (int SourceEntry, int nTargetEntry) |
| bool | FillItemSet (SfxItemSet *) override |
| void | Reset (const SfxItemSet *) override |
| virtual void | DeleteSelectedContent ()=0 |
| virtual void | DeleteSelectedTopLevel ()=0 |
| virtual void | ListModified () |
| SvxConfigEntry * | GetTopLevelSelection () |
| OUString | GetScriptURL () const |
| OUString | GetSelectedDisplayName () const |
Public Member Functions inherited from SfxTabPage | |
| void | SetDialogController (SfxOkDialogController *pDialog) |
| virtual | ~SfxTabPage () override |
| void | set_visible (bool bVisible) |
| const SfxItemSet & | GetItemSet () const |
| virtual bool | FillItemSet (SfxItemSet *) |
| virtual void | Reset (const SfxItemSet *) |
| virtual bool | DeferResetToFirstActivation () |
| bool | HasExchangeSupport () const |
| void | SetExchangeSupport () |
| virtual void | ActivatePage (const SfxItemSet &) |
| virtual DeactivateRC | DeactivatePage (SfxItemSet *pSet) |
| void | SetUserData (const OUString &rString) |
| const OUString & | GetUserData () const |
| virtual void | FillUserData () |
| virtual bool | IsReadOnly () const |
| virtual void | PageCreated (const SfxAllItemSet &aSet) |
| virtual void | ChangesApplied () |
| void | SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame) |
| css::uno::Reference< css::frame::XFrame > | GetFrame () const |
| const SfxItemSet * | GetDialogExampleSet () const |
| OUString | GetHelpId () const |
| OUString | GetConfigId () const |
| bool | IsVisible () const |
| weld::Window * | GetFrameWeld () const |
| std::unordered_map< OUString, css::uno::Any > & | getAdditionalProperties () |
Private Member Functions | |
| DECL_LINK (SelectToolbarEntry, weld::TreeView &, void) | |
| DECL_LINK (MoveHdl, weld::Button &, void) | |
| DECL_LINK (GearHdl, const OUString &, void) | |
| DECL_LINK (SelectCategory, weld::ComboBox &, void) | |
| DECL_LINK (ContentContextMenuHdl, const CommandEvent &, bool) | |
| DECL_LINK (FunctionContextMenuHdl, const CommandEvent &, bool) | |
| DECL_LINK (AddCommandHdl, weld::Button &, void) | |
| DECL_LINK (RemoveCommandHdl, weld::Button &, void) | |
| DECL_LINK (InsertHdl, const OUString &, void) | |
| DECL_LINK (ModifyItemHdl, const OUString &, void) | |
| DECL_LINK (ResetToolbarHdl, weld::Button &, void) | |
| virtual void | ListModified () override |
| void | UpdateButtonStates () override |
| short | QueryReset () override |
| void | Init () override |
| void | DeleteSelectedContent () override |
| void | DeleteSelectedTopLevel () override |
| virtual void | SelectElement () override |
Additional Inherited Members | |
Static Public Member Functions inherited from SvxConfigPage | |
| static bool | CanConfig (std::u16string_view rModuleId) |
| static OUString | GetFrameWithDefaultAndIdentify (css::uno::Reference< css::frame::XFrame > &_inout_rxFrame) |
| identifies the module in the given frame. More... | |
Static Public Member Functions inherited from SfxTabPage | |
| static const SfxPoolItem * | GetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
| static const T * | GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
Protected Member Functions inherited from SvxConfigPage | |
| SvxConfigPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &) | |
| DECL_LINK (MoveHdl, weld::Button &, void) | |
| DECL_LINK (SelectFunctionHdl, weld::TreeView &, void) | |
| DECL_LINK (FunctionDoubleClickHdl, weld::TreeView &, bool) | |
| DECL_LINK (SelectSaveInLocation, weld::ComboBox &, void) | |
| DECL_LINK (SelectElementHdl, weld::ComboBox &, void) | |
| DECL_LINK (ImplUpdateDataHdl, Timer *, void) | |
| DECL_LINK (FocusOut_Impl, weld::Widget &, void) | |
| virtual SaveInData * | CreateSaveInData (const css::uno::Reference< css::ui::XUIConfigurationManager > &, const css::uno::Reference< css::ui::XUIConfigurationManager > &, const OUString &aModuleId, bool docConfig)=0 |
| virtual void | Init ()=0 |
| virtual void | UpdateButtonStates ()=0 |
| virtual short | QueryReset ()=0 |
| virtual void | SelectElement ()=0 |
| int | AppendEntry (SvxConfigEntry *pNewEntryData, int nTarget) |
| void | AddSubMenusToUI (std::u16string_view rBaseTitle, SvxConfigEntry const *pParentData) |
| void | InsertEntryIntoUI (SvxConfigEntry *pNewEntryData, weld::TreeView &rTreeView, int nPos, bool bMenu=false) |
| void | InsertEntryIntoUI (SvxConfigEntry *pNewEntryData, weld::TreeView &rTreeView, weld::TreeIter &rIter, bool bMenu=false) |
| void | InsertEntryIntoNotebookbarTabUI (std::u16string_view sClassId, const OUString &sUIItemId, const OUString &sUIItemCommand, weld::TreeView &rTreeView, const weld::TreeIter &rIter) |
| SvxEntries * | FindParentForChild (SvxEntries *pParentEntries, SvxConfigEntry *pChildData) |
| void | ReloadTopLevelListBox (SvxConfigEntry const *pSelection=nullptr) |
| SvxConfigEntry * | CreateCommandFromSelection (const OUString &aURL) |
Protected Member Functions inherited from SfxTabPage | |
| SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *rAttrSet) | |
| sal_uInt16 | GetWhich (sal_uInt16 nSlot, bool bDeep=true) const |
| TypedWhichId< T > | GetWhich (TypedWhichId< T > nSlot, bool bDeep=true) const |
| const SfxPoolItem * | GetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
| const T * | GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
| SfxOkDialogController * | GetDialogController () const |
Static Protected Member Functions inherited from SvxConfigPage | |
| static bool | IsCommandInMenuList (const SvxConfigEntry *pEntryData, const SvxEntries *pEntries) |
Protected Attributes inherited from SvxConfigPage | |
| OUString | m_aURLToSelect |
| the ResourceURL to select when opening the dialog More... | |
| css::uno::Reference< css::frame::XFrame > | m_xFrame |
| OUString | m_aModuleId |
| std::unique_ptr< CommandCategoryListBox > | m_xCommandCategoryListBox |
| std::unique_ptr< CuiConfigFunctionListBox > | m_xFunctions |
| std::unique_ptr< weld::Label > | m_xCategoryLabel |
| std::unique_ptr< weld::Label > | m_xDescriptionFieldLb |
| std::unique_ptr< weld::TextView > | m_xDescriptionField |
| std::unique_ptr< weld::Label > | m_xLeftFunctionLabel |
| std::unique_ptr< weld::Entry > | m_xSearchEdit |
| std::unique_ptr< weld::Label > | m_xSearchLabel |
| std::unique_ptr< weld::Label > | m_xCustomizeLabel |
| std::unique_ptr< weld::ComboBox > | m_xTopLevelListBox |
| std::unique_ptr< weld::MenuButton > | m_xGearBtn |
| std::unique_ptr< SvxMenuEntriesListBox > | m_xContentsListBox |
| std::unique_ptr< SvxConfigPageFunctionDropTarget > | m_xDropTargetHelper |
| std::unique_ptr< weld::Button > | m_xMoveUpButton |
| std::unique_ptr< weld::Button > | m_xMoveDownButton |
| std::unique_ptr< weld::ComboBox > | m_xSaveInListBox |
| std::unique_ptr< weld::Widget > | m_xCustomizeBox |
| std::unique_ptr< weld::MenuButton > | m_xInsertBtn |
| std::unique_ptr< weld::MenuButton > | m_xModifyBtn |
| std::unique_ptr< weld::Button > | m_xResetBtn |
| std::unique_ptr< weld::Widget > | m_xCommandButtons |
| std::unique_ptr< weld::Button > | m_xAddCommandButton |
| std::unique_ptr< weld::Button > | m_xRemoveCommandButton |
| OUString | m_sAppName |
| OUString | m_sFileName |
Definition at line 29 of file SvxToolbarConfigPage.hxx.
| SvxToolbarConfigPage::SvxToolbarConfigPage | ( | weld::Container * | pPage, |
| weld::DialogController * | pController, | ||
| const SfxItemSet & | rItemSet | ||
| ) |
Definition at line 44 of file SvxToolbarConfigPage.cxx.
References weld::TreeView::connect_changed(), weld::TreeView::connect_popup_menu(), SfxItemSet::GetItem(), GetValue(), Size::Height(), HID_SVX_CONFIG_TOOLBAR, HID_SVX_CONFIG_TOOLBAR_CONTENTS, HID_SVX_DESCFIELD, HID_SVX_DOWN_TOOLBAR_ITEM, HID_SVX_SAVE_IN, HID_SVX_TOPLEVELLISTBOX, HID_SVX_UP_TOOLBAR_ITEM, ITEM_TOOLBAR_URL, LINK, SvxConfigPage::m_aURLToSelect, SvxConfigPage::m_xAddCommandButton, SvxConfigPage::m_xCommandCategoryListBox, m_xContainer, SvxConfigPage::m_xContentsListBox, SvxConfigPage::m_xDescriptionField, SvxConfigPage::m_xDropTargetHelper, SvxConfigPage::m_xFunctions, SvxConfigPage::m_xGearBtn, SvxConfigPage::m_xInsertBtn, SvxConfigPage::m_xModifyBtn, SvxConfigPage::m_xMoveDownButton, SvxConfigPage::m_xMoveUpButton, SvxConfigPage::m_xRemoveCommandButton, SvxConfigPage::m_xResetBtn, SvxConfigPage::m_xSaveInListBox, SvxConfigPage::m_xTopLevelListBox, rSet, weld::Widget::set_help_id(), weld::Widget::set_hexpand(), weld::Widget::set_size_request(), weld::Widget::set_vexpand(), weld::Widget::show(), text(), and Size::Width().
|
overridevirtual |
Definition at line 137 of file SvxToolbarConfigPage.cxx.
References i, SvxConfigPage::m_xSaveInListBox, nCount, and pData.
| void SvxToolbarConfigPage::AddFunction | ( | int | nTarget = -1 | ) |
Definition at line 761 of file SvxToolbarConfigPage.cxx.
References SvxConfigPage::AddFunction(), SvxConfigPage::GetSaveInData(), SvxConfigPage::GetTopLevelSelection(), SvxConfigPage::InsertEntryIntoUI(), SvxConfigEntry::IsBinding(), SvxConfigPage::m_xContentsListBox, SvxConfigEntry::SetVisible(), and TRISTATE_TRUE.
|
overridevirtual |
Implements SvxConfigPage.
Definition at line 275 of file SvxToolbarConfigPage.cxx.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overrideprivatevirtual |
Implements SvxConfigPage.
Definition at line 178 of file SvxToolbarConfigPage.cxx.
References Application::CreateMessageDialog(), CuiResId(), DeleteSelectedTopLevel(), SvxConfigEntry::GetEntries(), SfxTabPage::GetFrameWeld(), SvxConfigPage::GetSaveInData(), SvxConfigPage::GetTopLevelSelection(), SvxConfigPage::m_xContentsListBox, SvxConfigPageHelper::RemoveEntry(), RET_YES, and UpdateButtonStates().
|
overrideprivatevirtual |
Implements SvxConfigPage.
Definition at line 147 of file SvxToolbarConfigPage.cxx.
References SvxConfigPage::GetSaveInData(), SvxConfigPage::GetTopLevelSelection(), SvxConfigPage::m_xTopLevelListBox, nCount, SvxConfigPage::ReloadTopLevelListBox(), ToolbarSaveInData::RemoveToolbar(), and SelectElement().
Referenced by DeleteSelectedContent().
|
overrideprivatevirtual |
Implements SvxConfigPage.
Definition at line 237 of file SvxToolbarConfigPage.cxx.
References comphelper::getProcessComponentContext(), SvxConfigPage::GetSaveInData(), i, ITEM_TOOLBAR_URL, SvxConfigPage::m_aModuleId, SvxConfigPage::m_aURLToSelect, SvxConfigPage::m_xCommandCategoryListBox, SvxConfigPage::m_xContentsListBox, SvxConfigPage::m_xFrame, SvxConfigPage::m_xFunctions, SvxConfigPage::m_xTopLevelListBox, nCount, nPos, pData, SvxConfigPage::ReloadTopLevelListBox(), and SelectElement().
|
overrideprivatevirtual |
Reimplemented from SvxConfigPage.
Definition at line 120 of file SvxToolbarConfigPage.cxx.
References SvxConfigEntry::GetEntries(), SvxConfigPage::GetSaveInData(), SvxConfigPage::GetTopLevelSelection(), i, SvxConfigPage::m_xContentsListBox, SaveInData::SetModified(), and SvxConfigEntry::SetModified().
|
overridevirtual |
Reimplemented from SvxConfigPage.
Definition at line 222 of file SvxToolbarConfigPage.cxx.
References SvxConfigPage::GetSaveInData(), SvxConfigPage::GetTopLevelSelection(), SvxConfigPage::MoveEntry(), SAL_WARN, and UpdateButtonStates().
|
overrideprivatevirtual |
Implements SvxConfigPage.
Definition at line 693 of file SvxToolbarConfigPage.cxx.
References Application::CreateMessageDialog(), CuiResId(), SfxTabPage::GetFrameWeld(), label(), SvxConfigPage::m_xSaveInListBox, and SvxConfigPageHelper::replaceSaveInName().
|
overrideprivatevirtual |
Implements SvxConfigPage.
Definition at line 706 of file SvxToolbarConfigPage.cxx.
References SvxConfigEntry::GetEntries(), SvxConfigEntry::GetStyle(), SvxConfigPage::GetTopLevelSelection(), i, SvxConfigPage::InsertEntryIntoUI(), SvxConfigPage::m_xContentsListBox, SvxConfigPage::m_xGearBtn, SvxConfigPage::m_xInsertBtn, SvxConfigPage::m_xResetBtn, sId, weld::toId(), TRISTATE_FALSE, TRISTATE_TRUE, and UpdateButtonStates().
Referenced by DeleteSelectedTopLevel(), and Init().
|
overrideprivatevirtual |
Implements SvxConfigPage.
Definition at line 670 of file SvxToolbarConfigPage.cxx.
References SvxConfigPage::GetTopLevelSelection(), SvxConfigEntry::IsDeletable(), SvxConfigEntry::IsRenamable(), SvxConfigPage::m_xContentsListBox, SvxConfigPage::m_xGearBtn, SvxConfigPage::m_xModifyBtn, SvxConfigPage::m_xMoveDownButton, SvxConfigPage::m_xMoveUpButton, and SvxConfigPage::m_xRemoveCommandButton.
Referenced by DeleteSelectedContent(), MoveEntry(), and SelectElement().