LibreOffice Module vcl (master) 1
Public Member Functions | Private Attributes | List of all members
MenuItemList Class Reference

#include <menuitemlist.hxx>

Public Member Functions

 MenuItemList ()
 ~MenuItemList ()
MenuItemDataInsert (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 ()
MenuItemDataGetData (sal_uInt16 nSVId, size_t &rPos) const
MenuItemDataGetData (sal_uInt16 nSVId) const
MenuItemDataGetDataFromPos (size_t nPos) const
MenuItemDataSearchItem (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

Detailed Description

Definition at line 103 of file menuitemlist.hxx.

Constructor & Destructor Documentation

◆ MenuItemList()

MenuItemList::MenuItemList ( )

Definition at line 109 of file menuitemlist.hxx.

◆ ~MenuItemList()

MenuItemList::~MenuItemList ( )

Definition at line 63 of file menuitemlist.cxx.

Member Function Documentation

◆ Clear()

void MenuItemList::Clear ( )

Definition at line 147 of file menuitemlist.cxx.

References maItemList.

◆ GetData() [1/2]

MenuItemData * MenuItemList::GetData ( sal_uInt16  nSVId) const

Definition at line 126 of file menuitemlist.hxx.

References GetData().

◆ GetData() [2/2]

MenuItemData * MenuItemList::GetData ( sal_uInt16  nSVId,
size_t &  rPos 
) const

◆ GetDataFromPos()

MenuItemData * MenuItemList::GetDataFromPos ( size_t  nPos) const

◆ GetItemCount() [1/2]

size_t MenuItemList::GetItemCount ( sal_Unicode  cSelectChar) const

◆ GetItemCount() [2/2]

size_t MenuItemList::GetItemCount ( vcl::KeyCode  aKeyCode) const

◆ Insert()

MenuItemData * MenuItemList::Insert ( sal_uInt16  nId,
MenuItemType  eType,
MenuItemBits  nBits,
const OUString &  rStr,
Menu pMenu,
size_t  nPos,
const OUString &  rIdent 

◆ InsertSeparator()

void MenuItemList::InsertSeparator ( const OUString &  rIdent,
size_t  nPos 

◆ Remove()

void MenuItemList::Remove ( size_t  nPos)

Definition at line 139 of file menuitemlist.cxx.

References maItemList, and nPos.

◆ SearchItem()

MenuItemData * MenuItemList::SearchItem ( sal_Unicode  cSelectChar,
vcl::KeyCode  aKeyCode,
size_t &  rPos,
size_t &  nDuplicates,
size_t  nCurrentPos 
) const

◆ size()

size_t MenuItemList::size ( ) const

Definition at line 145 of file menuitemlist.hxx.

References maItemList.

Referenced by PopupMenu::SelectItem().

Member Data Documentation

◆ maItemList

::std::vector< std::unique_ptr<MenuItemData> > MenuItemList::maItemList

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