LibreOffice Module cui (master) 1
Static Public Member Functions | List of all members
SvxConfigPageHelper Class Reference

#include <SvxConfigPageHelper.hxx>

Static Public Member Functions

static void RemoveEntry (SvxEntries *pEntries, SvxConfigEntry const *pChildEntry)
 
static OUString replaceSaveInName (const OUString &rMessage, std::u16string_view rSaveInName)
 
static OUString stripHotKey (const OUString &str)
 
static OUString replaceSixteen (const OUString &str, sal_Int32 nReplacement)
 
static sal_Int16 GetImageType ()
 
static void InitImageType ()
 
static css::uno::Reference< css::graphic::XGraphic > GetGraphic (const css::uno::Reference< css::ui::XImageManager > &xImageManager, const OUString &rCommandURL)
 
static OUString generateCustomName (const OUString &prefix, SvxEntries *entries, sal_Int32 suffix=1)
 
static OUString generateCustomMenuURL (SvxEntries *entries, sal_Int32 suffix=1)
 
static sal_uInt32 generateRandomValue ()
 
static OUString generateCustomURL (SvxEntries *entries)
 Generates a custom resource URL for a new toolbar. More...
 
static OUString GetModuleName (std::u16string_view aModuleId)
 
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 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 css::uno::Sequence< css::beans::PropertyValue > ConvertSvxConfigEntry (const SvxConfigEntry *pEntry)
 
static css::uno::Sequence< css::beans::PropertyValue > ConvertToolbarEntry (const SvxConfigEntry *pEntry)
 
static bool EntrySort (SvxConfigEntry const *a, SvxConfigEntry const *b)
 
static bool SvxConfigEntryModified (SvxConfigEntry const *pEntry)
 

Detailed Description

Definition at line 26 of file SvxConfigPageHelper.hxx.

Member Function Documentation

◆ ConvertSvxConfigEntry()

css::uno::Sequence< css::beans::PropertyValue > SvxConfigPageHelper::ConvertSvxConfigEntry ( const SvxConfigEntry pEntry)
static

◆ ConvertToolbarEntry()

css::uno::Sequence< css::beans::PropertyValue > SvxConfigPageHelper::ConvertToolbarEntry ( const SvxConfigEntry pEntry)
static

◆ EntrySort()

bool SvxConfigPageHelper::EntrySort ( SvxConfigEntry const *  a,
SvxConfigEntry const *  b 
)
static

◆ generateCustomMenuURL()

OUString SvxConfigPageHelper::generateCustomMenuURL ( SvxEntries entries,
sal_Int32  suffix = 1 
)
static

◆ generateCustomName()

OUString SvxConfigPageHelper::generateCustomName ( const OUString &  prefix,
SvxEntries entries,
sal_Int32  suffix = 1 
)
static

◆ generateCustomURL()

OUString SvxConfigPageHelper::generateCustomURL ( SvxEntries entries)
static

Generates a custom resource URL for a new toolbar.

Typically something like: private:resource/toolbar/custom_toolbar_######## The last 8 letters are randomly generated alphanumeric characters.

Definition at line 179 of file SvxConfigPageHelper.cxx.

References CUSTOM_TOOLBAR_STR, generateCustomURL(), generateRandomValue(), and ITEM_TOOLBAR_URL.

Referenced by generateCustomURL(), and IMPL_LINK().

◆ generateRandomValue()

sal_uInt32 SvxConfigPageHelper::generateRandomValue ( )
static

Definition at line 174 of file SvxConfigPageHelper.cxx.

References comphelper::rng::uniform_uint_distribution().

Referenced by generateCustomURL().

◆ GetGraphic()

css::uno::Reference< css::graphic::XGraphic > SvxConfigPageHelper::GetGraphic ( const css::uno::Reference< css::ui::XImageManager > &  xImageManager,
const OUString &  rCommandURL 
)
static

Definition at line 80 of file SvxConfigPageHelper.cxx.

References GetImageType(), and result.

Referenced by SaveInData::GetImage(), and IMPL_LINK().

◆ GetImageType()

sal_Int16 SvxConfigPageHelper::GetImageType ( )
static

◆ GetMenuItemData()

bool SvxConfigPageHelper::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

◆ GetModuleName()

OUString SvxConfigPageHelper::GetModuleName ( std::u16string_view  aModuleId)
static

Definition at line 205 of file SvxConfigPageHelper.cxx.

References u.

Referenced by GetUIModuleName().

◆ GetToolbarItemData()

bool SvxConfigPageHelper::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

◆ GetUIModuleName()

OUString SvxConfigPageHelper::GetUIModuleName ( const OUString &  aModuleId,
const css::uno::Reference< css::frame::XModuleManager2 > &  rModuleManager 
)
static

Definition at line 236 of file SvxConfigPageHelper.cxx.

References a, aSeq, and GetModuleName().

Referenced by SvxConfigPage::Reset().

◆ InitImageType()

void SvxConfigPageHelper::InitImageType ( )
static

◆ RemoveEntry()

void SvxConfigPageHelper::RemoveEntry ( SvxEntries pEntries,
SvxConfigEntry const *  pChildEntry 
)
static

◆ replaceSaveInName()

OUString SvxConfigPageHelper::replaceSaveInName ( const OUString &  rMessage,
std::u16string_view  rSaveInName 
)
static

◆ replaceSixteen()

OUString SvxConfigPageHelper::replaceSixteen ( const OUString &  str,
sal_Int32  nReplacement 
)
static

◆ stripHotKey()

OUString SvxConfigPageHelper::stripHotKey ( const OUString &  str)
static

◆ SvxConfigEntryModified()

bool SvxConfigPageHelper::SvxConfigEntryModified ( SvxConfigEntry const *  pEntry)
static

The documentation for this class was generated from the following files: