27#include <com/sun/star/container/XIndexContainer.hpp>
28#include <com/sun/star/container/XNameAccess.hpp>
29#include <com/sun/star/ui/XUIConfigurationManager.hpp>
30#include <com/sun/star/ui/XImageManager.hpp>
31#include <com/sun/star/graphic/XGraphicProvider.hpp>
32#include <com/sun/star/frame/XFrame.hpp>
33#include <com/sun/star/lang/XSingleComponentFactory.hpp>
70 css::uno::Reference< css::frame::XFrame >
m_xFrame;
72 virtual void ActivatePage(
const OUString& rPage)
override;
78 void SetFrame(
const css::uno::Reference< css::frame::XFrame >& xFrame);
102 static css::uno::Reference
108 css::uno::Reference< css::container::XIndexContainer >
const & rMenuBar,
109 css::uno::Reference< css::lang::XSingleComponentFactory >& rFactory,
113 const css::uno::Reference< css::container::XIndexAccess >& xMenuSettings,
114 const OUString& rBaseTitle,
SvxConfigEntry const * pParentData,
bool bContextMenu );
119 css::uno::Reference < css::ui::XUIConfigurationManager > xCfgMgr,
120 css::uno::Reference < css::ui::XUIConfigurationManager > xParentCfgMgr,
121 const OUString& aModuleId,
127 const css::uno::Reference< css::uno::XInterface >& xManager );
135 const css::uno::Reference
136 < css::ui::XUIConfigurationManager >&
139 const css::uno::Reference
140 < css::ui::XUIConfigurationManager >&
143 const css::uno::Reference
144 < css::ui::XImageManager >&
147 const css::uno::Reference
148 < css::ui::XImageManager >&
157 css::uno::Reference<css::graphic::XGraphic>
GetImage(
const OUString& rCommandURL);
159 virtual bool HasURL(
const OUString& aURL ) = 0;
186 css::uno::Reference< css::container::XIndexContainer >
const & rNewMenuBar,
187 css::uno::Reference< css::lang::XSingleComponentFactory >& rFactory );
192 const css::uno::Reference< css::ui::XUIConfigurationManager >&,
193 const css::uno::Reference< css::ui::XUIConfigurationManager >&,
194 const OUString& aModuleId,
201 void SetEntries( std::unique_ptr<SvxEntries> )
override;
202 bool HasURL(
const OUString& )
override {
return false; }
204 void Reset()
override;
205 bool Apply()
override;
213 OUString
GetUIName(
const OUString& rResourceURL );
217 const css::uno::Reference< css::ui::XUIConfigurationManager >& xCfgMgr,
218 const css::uno::Reference< css::ui::XUIConfigurationManager >& xParentCfgMgr,
219 const OUString& aModuleId,
bool bIsDocConfig );
223 void SetEntries( std::unique_ptr<SvxEntries> pNewEntries )
override;
225 bool HasURL(
const OUString& rURL )
override;
226 void Reset()
override;
227 bool Apply()
override;
260 OUString aCommandURL,
347 void insert(
int pos,
const OUString& rId)
350 nullptr,
nullptr,
false,
nullptr);
385 css::uno::Reference< css::frame::XFrame >
m_xFrame;
440 const css::uno::Reference< css::ui::XUIConfigurationManager >&,
441 const css::uno::Reference< css::ui::XUIConfigurationManager >&,
442 const OUString& aModuleId,
443 bool docConfig ) = 0;
465 const OUString& sUIItemCommand,
482 static bool CanConfig( std::u16string_view rModuleId );
489 bool bAllowDuplicates);
563 const css::uno::Reference< css::container::XIndexAccess >& xToolBarSettings,
567 css::uno::Reference< css::container::XIndexContainer >
const & rNewToolbarBar,
568 css::uno::Reference< css::lang::XSingleComponentFactory >& rFactory,
574 const css::uno::Reference< css::ui::XUIConfigurationManager >&,
575 const css::uno::Reference< css::ui::XUIConfigurationManager >&,
576 const OUString& aModuleId,
590 void SetSystemStyle(
const OUString& rResourceURL, sal_Int32 nStyle );
593 const css::uno::Reference< css::frame::XFrame >& xFrame,
594 const OUString& rResourceURL, sal_Int32 nStyle );
597 void SetEntries( std::unique_ptr<SvxEntries> )
override;
599 bool HasURL(
const OUString& rURL )
override;
600 void Reset()
override;
601 bool Apply()
override;
637 std::vector<css::uno::Reference<css::graphic::XGraphic>>
m_aGraphics;
649 void ImportGraphics(
const css::uno::Sequence< OUString >& aURLs );
655 css::uno::Reference< css::ui::XImageManager > xImageManager,
656 css::uno::Reference< css::ui::XImageManager > xParentImageManager);
660 css::uno::Reference< css::graphic::XGraphic >
constexpr OUStringLiteral ITEM_DESCRIPTOR_ISVISIBLE
constexpr OUStringLiteral CUSTOM_TOOLBAR_STR
constexpr OUStringLiteral ITEM_TOOLBAR_URL
constexpr OUStringLiteral ITEM_DESCRIPTOR_STYLE
constexpr OUStringLiteral ITEM_DESCRIPTOR_COMMANDURL
constexpr OUStringLiteral ITEM_DESCRIPTOR_TYPE
constexpr OUStringLiteral ITEM_DESCRIPTOR_RESOURCEURL
constexpr OUStringLiteral ITEM_DESCRIPTOR_UINAME
constexpr OUStringLiteral aMenuSeparatorStr
std::vector< SvxConfigEntry * > SvxEntries
constexpr OUStringLiteral notebookbarTabScope
constexpr OUStringLiteral ITEM_DESCRIPTOR_LABEL
constexpr OUStringLiteral ITEM_MENUBAR_URL
constexpr OUStringLiteral ITEM_EVENT_URL
constexpr OUStringLiteral ITEM_DESCRIPTOR_CONTAINER
css::uno::Reference< css::ui::XUIConfigurationManager > m_xCfgMgr
css::uno::Reference< css::graphic::XGraphic > GetImage(const OUString &rCommandURL)
void LoadSubMenus(const css::uno::Reference< css::container::XIndexAccess > &xMenuSettings, const OUString &rBaseTitle, SvxConfigEntry const *pParentData, bool bContextMenu)
css::uno::Reference< css::ui::XImageManager > m_xParentImgMgr
virtual SvxEntries * GetEntries()=0
virtual bool HasSettings()=0
const css::uno::Reference< css::ui::XImageManager > & GetImageManager() const
virtual void SetEntries(std::unique_ptr< SvxEntries >)=0
css::uno::Reference< css::container::XNameAccess > m_xCommandToLabelMap
const css::uno::Reference< css::ui::XUIConfigurationManager > & GetConfigManager() const
css::uno::Sequence< css::beans::PropertyValue > m_aSeparatorSeq
virtual bool HasURL(const OUString &aURL)=0
void ApplyMenu(css::uno::Reference< css::container::XIndexContainer > const &rMenuBar, css::uno::Reference< css::lang::XSingleComponentFactory > &rFactory, SvxConfigEntry *pMenuData)
void SetModified(bool bValue=true)
css::uno::Reference< css::ui::XUIConfigurationManager > m_xParentCfgMgr
static css::uno::Reference< css::ui::XImageManager > * xDefaultImgMgr
const css::uno::Reference< css::ui::XImageManager > & GetParentImageManager() const
SaveInData(css::uno::Reference< css::ui::XUIConfigurationManager > xCfgMgr, css::uno::Reference< css::ui::XUIConfigurationManager > xParentCfgMgr, const OUString &aModuleId, bool docConfig)
css::uno::Reference< css::ui::XImageManager > m_xImgMgr
bool PersistChanges(const css::uno::Reference< css::uno::XInterface > &xManager)
const css::uno::Reference< css::ui::XUIConfigurationManager > & GetParentConfigManager() const
virtual void PageCreated(const OUString &rId, SfxTabPage &rPage) override
css::uno::Reference< css::frame::XFrame > m_xFrame
void SetFrame(const css::uno::Reference< css::frame::XFrame > &xFrame)
virtual void ActivatePage(const OUString &rPage) override
SvxConfigDialog(weld::Window *, const SfxItemSet *)
sal_Int32 GetStyle() const
const OUString & GetCommand() const
void SetStyle(sal_Int32 style)
bool IsParentData() const
void SetParentData(bool bValue=true)
void SetEntries(std::unique_ptr< SvxEntries > entries)
SvxEntries * GetEntries() const
std::unique_ptr< SvxEntries > mpEntries
css::uno::Reference< css::graphic::XGraphic > xBackupGraphic
bool bIsVisible
toolbar specific properties
const css::uno::Reference< css::graphic::XGraphic > & GetBackupGraphic() const
void SetBackupGraphic(css::uno::Reference< css::graphic::XGraphic > const &graphic)
void SetName(const OUString &rStr)
void SetModified(bool bValue=true)
bool IsUserDefined() const
void SetUserDefined(bool bOn=true)
const OUString & GetName() const
bool HasChangedName() const
sal_uInt16 nId
common properties
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
SvxConfigPageFunctionDropTarget(SvxConfigPage &rPage, weld::TreeView &rTreeView)
void ReloadTopLevelListBox(SvxConfigEntry const *pSelection=nullptr)
void InsertEntryIntoNotebookbarTabUI(std::u16string_view sClassId, const OUString &sUIItemId, const OUString &sUIItemCommand, weld::TreeView &rTreeView, const weld::TreeIter &rIter)
void InsertEntryIntoUI(SvxConfigEntry *pNewEntryData, weld::TreeView &rTreeView, int nPos, bool bMenu=false)
OUString GetScriptURL() const
std::unique_ptr< weld::Button > m_xMoveUpButton
std::unique_ptr< weld::ComboBox > m_xTopLevelListBox
static bool CanConfig(std::u16string_view rModuleId)
std::unique_ptr< weld::Label > m_xDescriptionFieldLb
virtual void ListModified()
virtual ~SvxConfigPage() override
void Reset(const SfxItemSet *) override
DECL_LINK(SearchUpdateHdl, weld::Entry &, void)
std::unique_ptr< weld::MenuButton > m_xGearBtn
std::unique_ptr< SvxConfigPageFunctionDropTarget > m_xDropTargetHelper
std::unique_ptr< weld::Widget > m_xCommandButtons
SvxConfigEntry * GetTopLevelSelection()
int AppendEntry(SvxConfigEntry *pNewEntryData, int nTarget)
static OUString GetFrameWithDefaultAndIdentify(css::uno::Reference< css::frame::XFrame > &_inout_rxFrame)
identifies the module in the given frame.
std::unique_ptr< weld::Label > m_xCategoryLabel
virtual void SelectElement()=0
std::unique_ptr< CuiConfigFunctionListBox > m_xFunctions
DECL_LINK(SelectSaveInLocation, weld::ComboBox &, void)
DECL_LINK(ImplUpdateDataHdl, Timer *, void)
virtual void UpdateButtonStates()=0
DECL_LINK(MoveHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xRemoveCommandButton
DECL_LINK(SelectElementHdl, weld::ComboBox &, void)
std::unique_ptr< CommandCategoryListBox > m_xCommandCategoryListBox
std::unique_ptr< weld::Widget > m_xCustomizeBox
virtual SaveInData * CreateSaveInData(const css::uno::Reference< css::ui::XUIConfigurationManager > &, const css::uno::Reference< css::ui::XUIConfigurationManager > &, const OUString &aModuleId, bool docConfig)=0
std::unique_ptr< weld::Entry > m_xSearchEdit
int AddFunction(int nTarget, bool bAllowDuplicates)
const OUString & GetFileName() const
virtual void DeleteSelectedContent()=0
OUString m_aURLToSelect
the ResourceURL to select when opening the dialog
void AddSubMenusToUI(std::u16string_view rBaseTitle, SvxConfigEntry const *pParentData)
DECL_LINK(FocusOut_Impl, weld::Widget &, void)
std::unique_ptr< weld::Button > m_xResetBtn
static bool IsCommandInMenuList(const SvxConfigEntry *pEntryData, const SvxEntries *pEntries)
virtual void DeleteSelectedTopLevel()=0
std::unique_ptr< weld::TextView > m_xDescriptionField
OUString GetSelectedDisplayName() const
std::unique_ptr< weld::MenuButton > m_xInsertBtn
SvxConfigEntry * CreateCommandFromSelection(const OUString &aURL)
std::unique_ptr< weld::Label > m_xLeftFunctionLabel
std::unique_ptr< weld::Button > m_xMoveDownButton
DECL_LINK(SelectFunctionHdl, weld::TreeView &, void)
css::uno::Reference< css::frame::XFrame > m_xFrame
DECL_LINK(FunctionDoubleClickHdl, weld::TreeView &, bool)
bool MoveEntryData(int SourceEntry, int nTargetEntry)
std::unique_ptr< weld::MenuButton > m_xModifyBtn
bool FillItemSet(SfxItemSet *) override
std::unique_ptr< weld::Label > m_xSearchLabel
virtual void MoveEntry(bool bMoveUp)
std::unique_ptr< weld::Button > m_xAddCommandButton
std::unique_ptr< weld::Label > m_xCustomizeLabel
std::unique_ptr< weld::ComboBox > m_xSaveInListBox
const OUString & GetAppName() const
SaveInData * GetSaveInData()
SaveInData * pCurrentSaveInData
SvxConfigPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &)
SvxEntries * FindParentForChild(SvxEntries *pParentEntries, SvxConfigEntry *pChildData)
virtual short QueryReset()=0
std::unique_ptr< SvxMenuEntriesListBox > m_xContentsListBox
std::unique_ptr< weld::TextView > m_xLineEditDescription
SvxIconChangeDialog(weld::Window *pWindow, const OUString &rMessage)
void ImportGraphics(const css::uno::Sequence< OUString > &aURLs)
bool ReplaceGraphicItem(const OUString &aURL)
std::unique_ptr< weld::Button > m_xBtnImport
DECL_LINK(ImportHdl, weld::Button &, void)
std::unique_ptr< weld::Label > m_xFtNote
std::unique_ptr< weld::Button > m_xBtnDelete
SvxIconSelectorDialog(weld::Window *pWindow, css::uno::Reference< css::ui::XImageManager > xImageManager, css::uno::Reference< css::ui::XImageManager > xParentImageManager)
virtual ~SvxIconSelectorDialog() override
std::vector< css::uno::Reference< css::graphic::XGraphic > > m_aGraphics
sal_Int32 m_nExpectedSize
std::unique_ptr< weld::CustomWeld > m_xTbSymbolWin
css::uno::Reference< css::graphic::XGraphic > GetSelectedIcon()
DECL_LINK(DeleteHdl, weld::Button &, void)
bool ImportGraphic(const OUString &aURL)
std::unique_ptr< ValueSet > m_xTbSymbol
css::uno::Reference< css::ui::XImageManager > m_xImportedImageManager
DECL_LINK(SelectHdl, ValueSet *, void)
css::uno::Reference< css::ui::XImageManager > m_xParentImageManager
css::uno::Reference< css::graphic::XGraphicProvider > m_xGraphProvider
css::uno::Reference< css::ui::XImageManager > m_xImageManager
DECL_LINK(ModifyHdl, weld::Entry &, void)
std::unique_ptr< SvxEntries > ReleaseEntries()
OUString m_sNewMenuEntryId
void UpdateButtonStates()
SvxMainMenuOrganizerDialog(weld::Window *, SvxEntries *, SvxConfigEntry const *, bool bCreateMenu)
virtual ~SvxMainMenuOrganizerDialog() override
DECL_LINK(MoveHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xMoveUpButton
SvxConfigEntry * GetSelectedEntry()
std::unique_ptr< weld::Widget > m_xMenuBox
std::unique_ptr< weld::TreeView > m_xMenuListBox
std::unique_ptr< weld::Entry > m_xMenuNameEdit
std::unique_ptr< weld::Button > m_xMoveDownButton
std::unique_ptr< SvxEntries > mpEntries
DECL_LINK(SelectHdl, weld::TreeView &, void)
std::unique_ptr< sal_Int32[]> pData
RttiCompleteObjectLocator col