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 OString &rIdent) |
void | InsertSeparator (const OString &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 () |
Private Attributes | |
::std::vector< std::unique_ptr< MenuItemData > > | maItemList |
Definition at line 102 of file menuitemlist.hxx.
|
inline |
Definition at line 108 of file menuitemlist.hxx.
MenuItemList::~MenuItemList | ( | ) |
Definition at line 65 of file menuitemlist.cxx.
void MenuItemList::Clear | ( | ) |
Definition at line 149 of file menuitemlist.cxx.
MenuItemData * MenuItemList::GetData | ( | sal_uInt16 | nSVId, |
size_t & | rPos | ||
) | const |
Definition at line 154 of file menuitemlist.cxx.
Referenced by MenuFloatingWindow::EndExecute(), GetData(), ImplCopyItem(), MenuBarWindow::ImplCreatePopup(), Menu::ImplSelect(), MenuBarWindow::KillActivePopup(), and PopupMenu::SelectItem().
|
inline |
Definition at line 125 of file menuitemlist.hxx.
References GetData().
|
inline |
Definition at line 130 of file menuitemlist.hxx.
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 263 of file menuitemlist.cxx.
References MenuItemData::aText, MenuItemData::bEnabled, Application::GetSettings(), AllSettings::GetUILocaleI18nHelper(), vcl::I18nHelper::MatchMnemonic(), nPos, and pData.
size_t MenuItemList::GetItemCount | ( | vcl::KeyCode | aKeyCode | ) | const |
Definition at line 279 of file menuitemlist.cxx.
References ascii, MenuItemData::aText, MenuItemData::bEnabled, vcl::KeyCode::GetCode(), LanguageTag::getLanguageType(), Application::GetSettings(), AllSettings::GetUILanguageTag(), AllSettings::GetUILocaleI18nHelper(), ImplGetDefaultWindow(), vcl::Window::ImplGetFrame(), KEY_A, KEY_Z, 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 OString & | rIdent | ||
) |
Definition at line 69 of file menuitemlist.cxx.
References SalItemParams::aText, MenuItemData::bChecked, MenuItemData::bEnabled, MenuItemData::bIsTemporary, MenuItemData::bVisible, SalInstance::CreateMenuItem(), MenuItemData::eType, SalItemParams::eType, ImplGetSVData(), ImplSVData::mpDefInst, MenuItemData::nBits, SalItemParams::nBits, MenuItemData::nId, SalItemParams::nId, MenuItemData::nUserValue, pData, SalItemParams::pMenu, MenuItemData::pSalMenuItem, MenuItemData::pSubMenu, and MenuItemData::sIdent.
void MenuItemList::InsertSeparator | ( | const OString & | rIdent, |
size_t | nPos | ||
) |
Definition at line 109 of file menuitemlist.cxx.
References SalItemParams::aImage, SalItemParams::aText, MenuItemData::bChecked, MenuItemData::bEnabled, MenuItemData::bIsTemporary, MenuItemData::bVisible, SalInstance::CreateMenuItem(), MenuItemData::eType, SalItemParams::eType, ImplGetSVData(), ImplSVData::mpDefInst, MenuItemData::nBits, SalItemParams::nBits, MenuItemData::nId, SalItemParams::nId, NONE, MenuItemData::nUserValue, pData, SalItemParams::pMenu, MenuItemData::pSalMenuItem, MenuItemData::pSubMenu, SEPARATOR, and MenuItemData::sIdent.
void MenuItemList::Remove | ( | size_t | nPos | ) |
Definition at line 141 of file menuitemlist.cxx.
MenuItemData * MenuItemList::SearchItem | ( | sal_Unicode | cSelectChar, |
vcl::KeyCode | aKeyCode, | ||
size_t & | rPos, | ||
size_t & | nDuplicates, | ||
size_t | nCurrentPos | ||
) | const |
Definition at line 167 of file menuitemlist.cxx.
References ascii, MenuItemData::aText, MenuItemData::bEnabled, vcl::KeyCode::GetCode(), Application::GetSettings(), AllSettings::GetUILocaleI18nHelper(), ImplGetDefaultWindow(), vcl::Window::ImplGetFrame(), KEY_A, KEY_Z, SalFrame::MapUnicodeToKeyCode(), vcl::I18nHelper::MatchMnemonic(), n, and pData.
Referenced by MenuBarWindow::HandleKeyEvent(), and MenuFloatingWindow::KeyInput().
|
inline |
Definition at line 144 of file menuitemlist.hxx.
Referenced by PopupMenu::SelectItem().
|
private |
Definition at line 105 of file menuitemlist.hxx.