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, const OUString &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 (const OUString &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 showKeyConfigTabPage (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
static bool EntrySort (SvxConfigEntry const *a, SvxConfigEntry const *b)
 
static bool SvxConfigEntryModified (SvxConfigEntry const *pEntry)
 

Detailed Description

Definition at line 27 of file SvxConfigPageHelper.hxx.

Member Function Documentation

css::uno::Sequence< css::beans::PropertyValue > SvxConfigPageHelper::ConvertSvxConfigEntry ( const SvxConfigEntry pEntry)
static
css::uno::Sequence< css::beans::PropertyValue > SvxConfigPageHelper::ConvertToolbarEntry ( const SvxConfigEntry pEntry)
static
bool SvxConfigPageHelper::EntrySort ( SvxConfigEntry const *  a,
SvxConfigEntry const *  b 
)
static
OUString SvxConfigPageHelper::generateCustomMenuURL ( SvxEntries entries,
sal_Int32  suffix = 1 
)
static
OUString SvxConfigPageHelper::generateCustomName ( const OUString &  prefix,
SvxEntries entries,
sal_Int32  suffix = 1 
)
static

Definition at line 119 of file SvxConfigPageHelper.cxx.

References name.

Referenced by IMPL_LINK(), and SvxMainMenuOrganizerDialog::SvxMainMenuOrganizerDialog().

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 192 of file SvxConfigPageHelper.cxx.

References CUSTOM_TOOLBAR_STR, generateRandomValue(), and ITEM_TOOLBAR_URL.

Referenced by IMPL_LINK().

sal_uInt32 SvxConfigPageHelper::generateRandomValue ( )
static

Definition at line 187 of file SvxConfigPageHelper.cxx.

References comphelper::rng::uniform_uint_distribution().

Referenced by generateCustomURL().

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

Definition at line 86 of file SvxConfigPageHelper.cxx.

References GetImageType(), and result.

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

sal_Int16 SvxConfigPageHelper::GetImageType ( )
static
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
OUString SvxConfigPageHelper::GetModuleName ( const OUString &  aModuleId)
static

Definition at line 220 of file SvxConfigPageHelper.cxx.

Referenced by GetUIModuleName().

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
OUString SvxConfigPageHelper::GetUIModuleName ( const OUString &  aModuleId,
const css::uno::Reference< css::frame::XModuleManager2 > &  rModuleManager 
)
static

Definition at line 251 of file SvxConfigPageHelper.cxx.

References GetModuleName(), i, and Name.

Referenced by SvxConfigPage::Reset(), and SvxConfigDialog::SetFrame().

void SvxConfigPageHelper::InitImageType ( )
static
void SvxConfigPageHelper::RemoveEntry ( SvxEntries pEntries,
SvxConfigEntry const *  pChildEntry 
)
static
OUString SvxConfigPageHelper::replaceSaveInName ( const OUString &  rMessage,
const OUString &  rSaveInName 
)
static
OUString SvxConfigPageHelper::replaceSixteen ( const OUString &  str,
sal_Int32  nReplacement 
)
static
bool SvxConfigPageHelper::showKeyConfigTabPage ( const css::uno::Reference< css::frame::XFrame > &  xFrame)
static
OUString SvxConfigPageHelper::stripHotKey ( const OUString &  str)
static
bool SvxConfigPageHelper::SvxConfigEntryModified ( SvxConfigEntry const *  pEntry)
static

Definition at line 469 of file SvxConfigPageHelper.cxx.

References SvxConfigEntry::GetEntries().

Referenced by ContextMenuSaveInData::Apply().


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