LibreOffice Module framework (master) 1
Functions
framework::MenuBarMerger Namespace Reference

Functions

bool IsCorrectContext (std::u16string_view aContext, std::u16string_view aModuleIdentifier)
 Check whether a module identifier is part of a context defined by a colon separated list of module identifier. More...
 
void RetrieveReferencePath (std::u16string_view, std::vector< OUString > &aReferencePath)
 
ReferencePathInfo FindReferencePath (const std::vector< OUString > &aReferencePath, Menu *pMenu)
 
sal_uInt16 FindMenuItem (std::u16string_view rCmd, Menu const *pMenu)
 
void GetMenuEntry (const css::uno::Sequence< css::beans::PropertyValue > &rAddonMenuEntry, AddonMenuItem &aAddonMenu)
 
void GetSubMenu (const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > &rSubMenuEntries, AddonMenuContainer &rSubMenu)
 
bool ProcessMergeOperation (Menu *pMenu, sal_uInt16 nPos, sal_uInt16 &rItemId, std::u16string_view rMergeCommand, std::u16string_view rMergeCommandParameter, const OUString &rModuleIdentifier, const AddonMenuContainer &rAddonMenuItems)
 
bool ProcessFallbackOperation (const ReferencePathInfo &aRefPathInfo, sal_uInt16 &rItemId, std::u16string_view rMergeCommand, std::u16string_view rMergeFallback, const ::std::vector< OUString > &rReferencePath, std::u16string_view rModuleIdentifier, const AddonMenuContainer &rAddonMenuItems)
 
bool MergeMenuItems (Menu *pMenu, sal_uInt16 nPos, sal_uInt16 nModIndex, sal_uInt16 &rItemId, const OUString &rModuleIdentifier, const AddonMenuContainer &rAddonMenuItems)
 
bool ReplaceMenuItem (Menu *pMenu, sal_uInt16 nPos, sal_uInt16 &rItemId, const OUString &rModuleIdentifier, const AddonMenuContainer &rAddonMenuItems)
 
bool RemoveMenuItems (Menu *pMenu, sal_uInt16 nPos, std::u16string_view rMergeCommandParameter)
 
bool CreateSubMenu (Menu *pSubMenu, sal_uInt16 &nItemId, const OUString &rModuleIdentifier, const AddonMenuContainer &rAddonSubMenu)
 

Function Documentation

◆ CreateSubMenu()

bool framework::MenuBarMerger::CreateSubMenu ( Menu pSubMenu,
sal_uInt16 &  nItemId,
const OUString &  rModuleIdentifier,
const AddonMenuContainer rAddonSubMenu 
)

◆ FindMenuItem()

sal_uInt16 framework::MenuBarMerger::FindMenuItem ( std::u16string_view  rCmd,
Menu const *  pMenu 
)

◆ FindReferencePath()

ReferencePathInfo framework::MenuBarMerger::FindReferencePath ( const std::vector< OUString > &  aReferencePath,
Menu pMenu 
)

◆ GetMenuEntry()

void framework::MenuBarMerger::GetMenuEntry ( const css::uno::Sequence< css::beans::PropertyValue > &  rAddonMenuEntry,
AddonMenuItem aAddonMenu 
)

◆ GetSubMenu()

void framework::MenuBarMerger::GetSubMenu ( const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > &  rSubMenuEntries,
AddonMenuContainer rSubMenu 
)

◆ IsCorrectContext()

bool framework::MenuBarMerger::IsCorrectContext ( std::u16string_view  rContext,
std::u16string_view  rModuleIdentifier 
)

Check whether a module identifier is part of a context defined by a colon separated list of module identifier.

Parameters
rContext

Describes a context string list where all contexts are delimited by a colon. For more information about the module identifier used as context strings see the IDL description of css::frame::XModuleManager

Parameters
rModuleIdentifier

A string describing a module identifier. See IDL description of css::frame::XModuleManager.

Definition at line 59 of file menubarmerger.cxx.

Referenced by framework::AddonMenuManager::BuildMenu(), CreateSubMenu(), framework::ToolBarManager::FillAddonToolbar(), framework::ToolBarManager::FillToolbarFromContainer(), framework::MenuBarManager::MergeAddonMenus(), framework::AddonMenuManager::MergeAddonPopupMenus(), MergeMenuItems(), and ProcessFallbackOperation().

◆ MergeMenuItems()

bool framework::MenuBarMerger::MergeMenuItems ( Menu pMenu,
sal_uInt16  nPos,
sal_uInt16  nModIndex,
sal_uInt16 &  rItemId,
const OUString &  rModuleIdentifier,
const AddonMenuContainer rAddonMenuItems 
)

◆ ProcessFallbackOperation()

bool framework::MenuBarMerger::ProcessFallbackOperation ( const ReferencePathInfo aRefPathInfo,
sal_uInt16 &  rItemId,
std::u16string_view  rMergeCommand,
std::u16string_view  rMergeFallback,
const ::std::vector< OUString > &  rReferencePath,
std::u16string_view  rModuleIdentifier,
const AddonMenuContainer rAddonMenuItems 
)

◆ ProcessMergeOperation()

bool framework::MenuBarMerger::ProcessMergeOperation ( Menu pMenu,
sal_uInt16  nPos,
sal_uInt16 &  rItemId,
std::u16string_view  rMergeCommand,
std::u16string_view  rMergeCommandParameter,
const OUString &  rModuleIdentifier,
const AddonMenuContainer rAddonMenuItems 
)

◆ RemoveMenuItems()

bool framework::MenuBarMerger::RemoveMenuItems ( Menu pMenu,
sal_uInt16  nPos,
std::u16string_view  rMergeCommandParameter 
)

Definition at line 257 of file menubarmerger.cxx.

References i, nCount, nPos, Menu::RemoveItem(), and o3tl::toInt32().

Referenced by ProcessMergeOperation().

◆ ReplaceMenuItem()

bool framework::MenuBarMerger::ReplaceMenuItem ( Menu pMenu,
sal_uInt16  nPos,
sal_uInt16 &  rItemId,
const OUString &  rModuleIdentifier,
const AddonMenuContainer rAddonMenuItems 
)

Definition at line 243 of file menubarmerger.cxx.

References MergeMenuItems(), nPos, and Menu::RemoveItem().

Referenced by ProcessMergeOperation().

◆ RetrieveReferencePath()

void framework::MenuBarMerger::RetrieveReferencePath ( std::u16string_view  ,
std::vector< OUString > &  aReferencePath 
)