LibreOffice Module vcl (master) 1
|
#include <menuitemlist.hxx>
Public Member Functions | |
MenuItemList () | |
~MenuItemList () | |
MenuItemData * | Insert (sal_uInt16 nId, MenuItemType eType, MenuItemBits nBits, const OUString &rStr, Menu *pMenu, size_t nPos, const OUString &rIdent) |
void | InsertSeparator (const OUString &rIdent, size_t nPos) |
void | Remove (size_t nPos) |
void | Clear () |
MenuItemData * | GetData (sal_uInt16 nSVId, size_t &rPos) const |
MenuItemData * | GetData (sal_uInt16 nSVId) const |
MenuItemData * | GetDataFromPos (size_t nPos) const |
MenuItemData * | SearchItem (sal_Unicode cSelectChar, vcl::KeyCode aKeyCode, size_t &rPos, size_t &nDuplicates, size_t nCurrentPos) const |
size_t | GetItemCount (sal_Unicode cSelectChar) const |
size_t | GetItemCount (vcl::KeyCode aKeyCode) const |
size_t | size () const |
Private Attributes | |
::std::vector< std::unique_ptr< MenuItemData > > | maItemList |
Definition at line 103 of file menuitemlist.hxx.
|
inline |
Definition at line 109 of file menuitemlist.hxx.
MenuItemList::~MenuItemList | ( | ) |
Definition at line 63 of file menuitemlist.cxx.
void MenuItemList::Clear | ( | ) |
Definition at line 147 of file menuitemlist.cxx.
References maItemList.
|
inline |
Definition at line 126 of file menuitemlist.hxx.
References GetData().
MenuItemData * MenuItemList::GetData | ( | sal_uInt16 | nSVId, |
size_t & | rPos | ||
) | const |
Definition at line 152 of file menuitemlist.cxx.
References i, maItemList, n, and nId.
Referenced by MenuFloatingWindow::EndExecute(), GetData(), ImplCopyItem(), MenuBarWindow::ImplCreatePopup(), Menu::ImplSelect(), MenuBarWindow::KillActivePopup(), and PopupMenu::SelectItem().
|
inline |
Definition at line 131 of file menuitemlist.hxx.
References maItemList, and nPos.
Referenced by MenuFloatingWindow::EndExecute(), MenuBarWindow::HandleKeyEvent(), MenuBarWindow::ImplCreatePopup(), MenuFloatingWindow::ImplCursorUpDown(), Menu::ImplFindMenu(), Menu::ImplFindSelectMenu(), MenuFloatingWindow::ImplGetStartY(), MenuWindow::ImplHandleHelpEvent(), MenuFloatingWindow::ImplScroll(), MenuFloatingWindow::KeyInput(), MenuFloatingWindow::MouseButtonUp(), MenuBarWindow::Paint(), and PopupMenu::SelectItem().
size_t MenuItemList::GetItemCount | ( | sal_Unicode | cSelectChar | ) | const |
Definition at line 261 of file menuitemlist.cxx.
References Application::GetSettings(), AllSettings::GetUILocaleI18nHelper(), maItemList, vcl::I18nHelper::MatchMnemonic(), nPos, and pData.
Referenced by SearchItem().
size_t MenuItemList::GetItemCount | ( | vcl::KeyCode | aKeyCode | ) | const |
Definition at line 277 of file menuitemlist.cxx.
References vcl::KeyCode::GetCode(), LanguageTag::getLanguageType(), Application::GetSettings(), AllSettings::GetUILanguageTag(), AllSettings::GetUILocaleI18nHelper(), ImplGetDefaultWindow(), vcl::Window::ImplGetFrame(), KEY_A, KEY_Z, maItemList, SalFrame::MapUnicodeToKeyCode(), vcl::I18nHelper::MatchMnemonic(), n, nPos, and pData.
MenuItemData * MenuItemList::Insert | ( | sal_uInt16 | nId, |
MenuItemType | eType, | ||
MenuItemBits | nBits, | ||
const OUString & | rStr, | ||
Menu * | pMenu, | ||
size_t | nPos, | ||
const OUString & | rIdent | ||
) |
Definition at line 67 of file menuitemlist.cxx.
References SalItemParams::aText, SalInstance::CreateMenuItem(), eType, SalItemParams::eType, ImplGetSVData(), maItemList, ImplSVData::mpDefInst, SalItemParams::nBits, nId, SalItemParams::nId, nPos, pData, and SalItemParams::pMenu.
void MenuItemList::InsertSeparator | ( | const OUString & | rIdent, |
size_t | nPos | ||
) |
Definition at line 107 of file menuitemlist.cxx.
References SalItemParams::aImage, SalItemParams::aText, SalInstance::CreateMenuItem(), SalItemParams::eType, ImplGetSVData(), maItemList, ImplSVData::mpDefInst, SalItemParams::nBits, SalItemParams::nId, NONE, nPos, pData, SalItemParams::pMenu, and SEPARATOR.
void MenuItemList::Remove | ( | size_t | nPos | ) |
Definition at line 139 of file menuitemlist.cxx.
References maItemList, and nPos.
MenuItemData * MenuItemList::SearchItem | ( | sal_Unicode | cSelectChar, |
vcl::KeyCode | aKeyCode, | ||
size_t & | rPos, | ||
size_t & | nDuplicates, | ||
size_t | nCurrentPos | ||
) | const |
Definition at line 165 of file menuitemlist.cxx.
References vcl::KeyCode::GetCode(), GetItemCount(), LanguageTag::getLanguageType(), Application::GetSettings(), AllSettings::GetUILanguageTag(), AllSettings::GetUILocaleI18nHelper(), ImplGetDefaultWindow(), vcl::Window::ImplGetFrame(), KEY_A, KEY_Z, maItemList, SalFrame::MapUnicodeToKeyCode(), vcl::I18nHelper::MatchMnemonic(), n, and pData.
Referenced by MenuBarWindow::HandleKeyEvent(), and MenuFloatingWindow::KeyInput().
|
inline |
Definition at line 145 of file menuitemlist.hxx.
References maItemList.
Referenced by PopupMenu::SelectItem().
|
private |
Definition at line 106 of file menuitemlist.hxx.
Referenced by Clear(), GetData(), GetDataFromPos(), GetItemCount(), Insert(), InsertSeparator(), Remove(), SearchItem(), and size().