LibreOffice Module framework (master) 1
|
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) |
bool framework::MenuBarMerger::CreateSubMenu | ( | Menu * | pSubMenu, |
sal_uInt16 & | nItemId, | ||
const OUString & | rModuleIdentifier, | ||
const AddonMenuContainer & | rAddonSubMenu | ||
) |
Definition at line 163 of file menubarmerger.cxx.
References framework::AddonMenuItem::aContext, framework::AddonMenuItem::aSubMenu, framework::AddonMenuItem::aTitle, framework::AddonMenuItem::aURL, VclPtr< class reference_type >::Create(), CreateSubMenu(), i, Menu::InsertItem(), Menu::InsertSeparator(), IsCorrectContext(), SEPARATOR_STRING, Menu::SetItemCommand(), and Menu::SetPopupMenu().
Referenced by CreateSubMenu(), and MergeMenuItems().
sal_uInt16 framework::MenuBarMerger::FindMenuItem | ( | std::u16string_view | rCmd, |
Menu const * | pMenu | ||
) |
Definition at line 148 of file menubarmerger.cxx.
References Menu::GetItemCommand(), Menu::GetItemCount(), Menu::GetItemId(), i, and MENU_ITEM_NOTFOUND.
ReferencePathInfo framework::MenuBarMerger::FindReferencePath | ( | const std::vector< OUString > & | aReferencePath, |
Menu * | pMenu | ||
) |
Referenced by framework::MenuBarManager::MergeAddonMenus().
void framework::MenuBarMerger::GetMenuEntry | ( | const css::uno::Sequence< css::beans::PropertyValue > & | rAddonMenuEntry, |
AddonMenuItem & | aAddonMenu | ||
) |
void framework::MenuBarMerger::GetSubMenu | ( | const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > & | rSubMenuEntries, |
AddonMenuContainer & | rSubMenu | ||
) |
Referenced by framework::MenuBarManager::MergeAddonMenus().
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.
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
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().
bool framework::MenuBarMerger::MergeMenuItems | ( | Menu * | pMenu, |
sal_uInt16 | nPos, | ||
sal_uInt16 | nModIndex, | ||
sal_uInt16 & | rItemId, | ||
const OUString & | rModuleIdentifier, | ||
const AddonMenuContainer & | rAddonMenuItems | ||
) |
Definition at line 201 of file menubarmerger.cxx.
References framework::AddonMenuItem::aContext, framework::AddonMenuItem::aSubMenu, framework::AddonMenuItem::aTitle, framework::AddonMenuItem::aURL, VclPtr< class reference_type >::Create(), CreateSubMenu(), i, Menu::InsertItem(), Menu::InsertSeparator(), IsCorrectContext(), nIndex, nPos, SEPARATOR_STRING, Menu::SetItemCommand(), and Menu::SetPopupMenu().
Referenced by ProcessMergeOperation(), and ReplaceMenuItem().
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 | ||
) |
Definition at line 308 of file menubarmerger.cxx.
References framework::AddonMenuItem::aContext, framework::AddonMenuItem::aTitle, framework::AddonMenuItem::aURL, VclPtr< class reference_type >::Create(), framework::ReferencePathInfo::eResult, Menu::GetItemId(), i, Menu::InsertItem(), Menu::InsertSeparator(), IsCorrectContext(), framework::MERGECOMMAND_REMOVE, framework::MERGECOMMAND_REPLACE, MERGEFALLBACK_ADDPATH, framework::MERGEFALLBACK_IGNORE, nCount, framework::ReferencePathInfo::nLevel, framework::ReferencePathInfo::nPos, framework::ReferencePathInfo::pPopupMenu, framework::RP_MENUITEM_INSTEAD_OF_POPUPMENU_FOUND, SEPARATOR_STRING, Menu::SetItemCommand(), and Menu::SetPopupMenu().
Referenced by framework::MenuBarManager::MergeAddonMenus().
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 | ||
) |
Definition at line 275 of file menubarmerger.cxx.
References framework::MERGECOMMAND_ADDAFTER, framework::MERGECOMMAND_ADDBEFORE, framework::MERGECOMMAND_REMOVE, framework::MERGECOMMAND_REPLACE, MergeMenuItems(), nPos, RemoveMenuItems(), and ReplaceMenuItem().
Referenced by framework::MenuBarManager::MergeAddonMenus().
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().
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().
void framework::MenuBarMerger::RetrieveReferencePath | ( | std::u16string_view | , |
std::vector< OUString > & | aReferencePath | ||
) |
Referenced by framework::MenuBarManager::MergeAddonMenus().