22#include <com/sun/star/frame/XModuleManager2.hpp>
31 static OUString
replaceSaveInName(
const OUString& rMessage, std::u16string_view rSaveInName);
33 static OUString
replaceSixteen(
const OUString& str, sal_Int32 nReplacement);
37 static css::uno::Reference<css::graphic::XGraphic>
38 GetGraphic(
const css::uno::Reference<css::ui::XImageManager>& xImageManager,
39 const OUString& rCommandURL);
42 sal_Int32 suffix = 1);
55 const css::uno::Reference<css::frame::XModuleManager2>& rModuleManager);
58 GetMenuItemData(
const css::uno::Reference<css::container::XIndexAccess>& rItemContainer,
59 sal_Int32
nIndex, OUString& rCommandURL, OUString& rLabel, sal_uInt16& rType,
60 sal_Int32& rStyle, css::uno::Reference<css::container::XIndexAccess>& rSubMenu);
62 GetToolbarItemData(
const css::uno::Reference<css::container::XIndexAccess>& rItemContainer,
63 sal_Int32
nIndex, OUString& rCommandURL, OUString& rLabel, sal_uInt16& rType,
64 bool& rIsVisible, sal_Int32& rStyle);
66 static css::uno::Sequence<css::beans::PropertyValue>
68 static css::uno::Sequence<css::beans::PropertyValue>
std::vector< SvxConfigEntry * > SvxEntries
static void InitImageType()
static sal_uInt32 generateRandomValue()
static sal_Int16 GetImageType()
static OUString GetModuleName(std::u16string_view aModuleId)
static OUString generateCustomURL(SvxEntries *entries)
Generates a custom resource URL for a new toolbar.
static OUString generateCustomMenuURL(SvxEntries *entries, sal_Int32 suffix=1)
static OUString replaceSaveInName(const OUString &rMessage, std::u16string_view rSaveInName)
static OUString GetUIModuleName(const OUString &aModuleId, const css::uno::Reference< css::frame::XModuleManager2 > &rModuleManager)
static bool GetMenuItemData(const css::uno::Reference< css::container::XIndexAccess > &rItemContainer, sal_Int32 nIndex, OUString &rCommandURL, OUString &rLabel, sal_uInt16 &rType, sal_Int32 &rStyle, css::uno::Reference< css::container::XIndexAccess > &rSubMenu)
static css::uno::Sequence< css::beans::PropertyValue > ConvertSvxConfigEntry(const SvxConfigEntry *pEntry)
static OUString stripHotKey(const OUString &str)
static OUString generateCustomName(const OUString &prefix, SvxEntries *entries, sal_Int32 suffix=1)
static bool GetToolbarItemData(const css::uno::Reference< css::container::XIndexAccess > &rItemContainer, sal_Int32 nIndex, OUString &rCommandURL, OUString &rLabel, sal_uInt16 &rType, bool &rIsVisible, sal_Int32 &rStyle)
static void RemoveEntry(SvxEntries *pEntries, SvxConfigEntry const *pChildEntry)
static bool SvxConfigEntryModified(SvxConfigEntry const *pEntry)
static css::uno::Reference< css::graphic::XGraphic > GetGraphic(const css::uno::Reference< css::ui::XImageManager > &xImageManager, const OUString &rCommandURL)
static OUString replaceSixteen(const OUString &str, sal_Int32 nReplacement)
static css::uno::Sequence< css::beans::PropertyValue > ConvertToolbarEntry(const SvxConfigEntry *pEntry)
static bool EntrySort(SvxConfigEntry const *a, SvxConfigEntry const *b)