LibreOffice Module vcl (master) 1
|
#include <menu.hxx>
Public Member Functions | |
SAL_DLLPRIVATE void | ImplKillLayoutData () const |
SAL_DLLPRIVATE vcl::Window * | ImplGetWindow () const |
virtual | ~Menu () override |
virtual void | dispose () override |
void | Activate () |
void | Deactivate () |
void | Select () |
void | InsertItem (sal_uInt16 nItemId, const OUString &rStr, MenuItemBits nItemBits=MenuItemBits::NONE, const OUString &rIdent={}, sal_uInt16 nPos=MENU_APPEND) |
void | InsertItem (sal_uInt16 nItemId, const Image &rImage, MenuItemBits nItemBits=MenuItemBits::NONE, const OUString &rIdent={}, sal_uInt16 nPos=MENU_APPEND) |
void | InsertItem (sal_uInt16 nItemId, const OUString &rString, const Image &rImage, MenuItemBits nItemBits=MenuItemBits::NONE, const OUString &rIdent={}, sal_uInt16 nPos=MENU_APPEND) |
void | InsertSeparator (const OUString &rIdent={}, sal_uInt16 nPos=MENU_APPEND) |
void | RemoveItem (sal_uInt16 nPos) |
void | Clear () |
void | CreateAutoMnemonics () |
void | SetMenuFlags (MenuFlags nFlags) |
MenuFlags | GetMenuFlags () const |
bool | HasValidEntries (bool bCheckPopups) const |
sal_uInt16 | GetItemCount () const |
sal_uInt16 | GetItemId (sal_uInt16 nPos) const |
sal_uInt16 | GetItemId (std::u16string_view rIdent) const |
sal_uInt16 | GetItemPos (sal_uInt16 nItemId) const |
OUString | GetItemIdent (sal_uInt16 nItemId) const |
MenuItemType | GetItemType (sal_uInt16 nPos) const |
sal_uInt16 | GetCurItemId () const |
OUString const & | GetCurItemIdent () const |
void | SetItemBits (sal_uInt16 nItemId, MenuItemBits nBits) |
MenuItemBits | GetItemBits (sal_uInt16 nItemId) const |
void | SetUserValue (sal_uInt16 nItemId, void *nUserValue, MenuUserDataReleaseFunction aFunc=nullptr) |
void * | GetUserValue (sal_uInt16 nItemId) const |
void | SetPopupMenu (sal_uInt16 nItemId, PopupMenu *pMenu) |
PopupMenu * | GetPopupMenu (sal_uInt16 nItemId) const |
void | SetAccelKey (sal_uInt16 nItemId, const vcl::KeyCode &rKeyCode) |
vcl::KeyCode | GetAccelKey (sal_uInt16 nItemId) const |
void | CheckItem (sal_uInt16 nItemId, bool bCheck=true) |
void | CheckItem (std::u16string_view rIdent, bool bCheck=true) |
bool | IsItemChecked (sal_uInt16 nItemId) const |
virtual void | SelectItem (sal_uInt16 nItemId)=0 |
void | EnableItem (sal_uInt16 nItemId, bool bEnable=true) |
void | EnableItem (std::u16string_view rIdent, bool bEnable=true) |
bool | IsItemEnabled (sal_uInt16 nItemId) const |
void | ShowItem (sal_uInt16 nItemId, bool bVisible=true) |
void | HideItem (sal_uInt16 nItemId) |
bool | IsItemPosVisible (sal_uInt16 nItemPos) const |
bool | IsMenuVisible () const |
virtual bool | IsMenuBar () const =0 |
void | RemoveDisabledEntries (bool bRemoveEmptyPopups=false) |
void | UpdateNativeMenu () |
void | SetItemText (sal_uInt16 nItemId, const OUString &rStr) |
OUString | GetItemText (sal_uInt16 nItemId) const |
void | SetItemImage (sal_uInt16 nItemId, const Image &rImage) |
Image | GetItemImage (sal_uInt16 nItemId) const |
void | SetItemCommand (sal_uInt16 nItemId, const OUString &rCommand) |
OUString | GetItemCommand (sal_uInt16 nItemId) const |
void | SetHelpText (sal_uInt16 nItemId, const OUString &rString) |
OUString | GetHelpText (sal_uInt16 nItemId) const |
void | SetTipHelpText (sal_uInt16 nItemId, const OUString &rString) |
OUString | GetTipHelpText (sal_uInt16 nItemId) const |
void | SetHelpCommand (sal_uInt16 nItemId, const OUString &rString) |
OUString | GetHelpCommand (sal_uInt16 nItemId) const |
void | SetHelpId (sal_uInt16 nItemId, const OUString &rHelpId) |
OUString | GetHelpId (sal_uInt16 nItemId) const |
void | SetHelpId (const OUString &rHelpId) |
OUString | GetHelpId () const |
void | SetActivateHdl (const Link< Menu *, bool > &rLink) |
void | SetDeactivateHdl (const Link< Menu *, bool > &rLink) |
void | SetSelectHdl (const Link< Menu *, bool > &rLink) |
sal_uInt16 | GetTitleHeight () const |
void | AddEventListener (const Link< VclMenuEvent &, void > &rEventListener) |
void | RemoveEventListener (const Link< VclMenuEvent &, void > &rEventListener) |
Menu & | operator= (const Menu &rMenu) |
MenuItemList * | GetItemList () const |
void | GetSystemMenuData (SystemMenuData *pData) const |
tools::Rectangle | GetCharacterBounds (sal_uInt16 nItemId, tools::Long nIndex) const |
tools::Long | GetIndexForPoint (const Point &rPoint, sal_uInt16 &rItemID) const |
tools::Rectangle | GetBoundingRectangle (sal_uInt16 nItemPos) const |
css::uno::Reference< css::accessibility::XAccessible > | GetAccessible () |
void | SetAccessible (const css::uno::Reference< css::accessibility::XAccessible > &rxAccessible) |
KeyEvent | GetActivationKey (sal_uInt16 nItemId) const |
vcl::Window * | GetWindow () const |
void | SetAccessibleName (sal_uInt16 nItemId, const OUString &rStr) |
OUString | GetAccessibleName (sal_uInt16 nItemId) const |
void | SetAccessibleDescription (sal_uInt16 nItemId, const OUString &rStr) |
OUString | GetAccessibleDescription (sal_uInt16 nItemId) const |
bool | IsHighlighted (sal_uInt16 nItemPos) const |
void | HighlightItem (sal_uInt16 nItemPos) |
void | DeHighlight () |
bool | HandleMenuCommandEvent (Menu *pMenu, sal_uInt16 nEventId) const |
bool | HandleMenuActivateEvent (Menu *pMenu) const |
bool | HandleMenuDeActivateEvent (Menu *pMenu) const |
void | set_id (const OUString &rID) |
Sets an ID. More... | |
const OUString & | get_id () const |
Get the ID of the window. More... | |
Public Member Functions inherited from VclReferenceBase | |
void | acquire () const |
void | release () const |
sal_Int32 | getRefCount () const |
void | disposeOnce () |
bool | isDisposed () const |
Protected Member Functions | |
SAL_DLLPRIVATE Menu * | ImplGetStartMenu () |
SAL_DLLPRIVATE Menu * | ImplFindSelectMenu () |
SAL_DLLPRIVATE Menu * | ImplFindMenu (sal_uInt16 nId) |
SAL_DLLPRIVATE Size | ImplCalcSize (vcl::Window *pWin) |
SAL_DLLPRIVATE bool | ImplIsVisible (sal_uInt16 nPos) const |
SAL_DLLPRIVATE bool | ImplCurrentlyHiddenOnGUI (sal_uInt16 nPos) const |
SAL_DLLPRIVATE bool | ImplIsSelectable (sal_uInt16 nPos) const |
SAL_DLLPRIVATE sal_uInt16 | ImplGetVisibleItemCount () const |
SAL_DLLPRIVATE sal_uInt16 | ImplGetFirstVisible () const |
SAL_DLLPRIVATE sal_uInt16 | ImplGetPrevVisible (sal_uInt16 nPos) const |
SAL_DLLPRIVATE sal_uInt16 | ImplGetNextVisible (sal_uInt16 nPos) const |
SAL_DLLPRIVATE void | ImplPaint (vcl::RenderContext &rRenderContext, Size const &rSize, sal_uInt16 nBorder, tools::Long nOffY=0, MenuItemData const *pThisDataOnly=nullptr, bool bHighlighted=false, bool bLayout=false, bool bRollover=false) const |
SAL_DLLPRIVATE void | ImplPaintMenuTitle (vcl::RenderContext &, const tools::Rectangle &rRect) const |
SAL_DLLPRIVATE void | ImplSelect () |
SAL_DLLPRIVATE void | ImplCallHighlight (sal_uInt16 nHighlightItem) |
SAL_DLLPRIVATE void | ImplCallEventListeners (VclEventId nEvent, sal_uInt16 nPos) |
DECL_DLLPRIVATE_LINK (ImplCallSelect, void *, void) | |
SAL_DLLPRIVATE void | ImplFillLayoutData () const |
SAL_DLLPRIVATE SalMenu * | ImplGetSalMenu () |
SAL_DLLPRIVATE OUString | ImplGetHelpText (sal_uInt16 nItemId) const |
SAL_DLLPRIVATE Size | ImplGetNativeCheckAndRadioSize (vcl::RenderContext const &rRenderContext, tools::Long &rCheckHeight, tools::Long &rRadioHeight) const |
SAL_DLLPRIVATE void | ImplAddDel (ImplMenuDelData &rDel) |
SAL_DLLPRIVATE void | ImplRemoveDel (ImplMenuDelData &rDel) |
SAL_DLLPRIVATE MenuItemData * | NbcInsertItem (sal_uInt16 nId, MenuItemBits nBits, const OUString &rStr, Menu *pMenu, size_t nPos, const OUString &rIdent) |
virtual void | ClosePopup (Menu *pMenu)=0 |
Close the 'pStartedFrom' menu window. More... | |
virtual void | MenuBarKeyInput (const KeyEvent &rEvent) |
Forward the KeyInput call to the MenuBar. More... | |
Menu () | |
The Menu constructor is protected. More... | |
Protected Member Functions inherited from VclReferenceBase | |
VclReferenceBase () | |
virtual | ~VclReferenceBase () |
virtual void | dispose () |
Static Protected Member Functions | |
static SAL_DLLPRIVATE bool | ImplGetNativeSubmenuArrowSize (vcl::RenderContext const &rRenderContext, Size &rArrowSize, tools::Long &rArrowSpacing) |
Private Attributes | |
ImplMenuDelData * | mpFirstDel |
std::unique_ptr< MenuItemList > | pItemList |
VclPtr< Menu > | pStartedFrom |
VclPtr< vcl::Window > | pWindow |
Link< Menu *, bool > | aActivateHdl |
Link< Menu *, bool > | aDeactivateHdl |
Link< Menu *, bool > | aSelectHdl |
std::list< Link< VclMenuEvent &, void > > | maEventListeners |
OUString | maID |
OUString | aTitleText |
sal_uInt16 | nTitleHeight |
ImplSVEvent * | nEventId |
sal_uInt16 | mnHighlightedItemPos |
MenuFlags | nMenuFlags |
sal_uInt16 | nSelectedId |
OUString | sSelectedIdent |
sal_uInt16 | nImgOrChkPos |
sal_uInt16 | nTextPos |
bool | bCanceled: 1 |
Terminated during a callback. More... | |
bool | bInCallback: 1 |
In Activate/Deactivate. More... | |
bool | bKilled: 1 |
Killed. More... | |
css::uno::Reference< css::accessibility::XAccessible > | mxAccessible |
std::unique_ptr< vcl::MenuLayoutData > | mpLayoutData |
std::unique_ptr< SalMenu > | mpSalMenu |
OUString | m_sMenuHelpId |
Friends | |
class | MenuBar |
class | MenuBarWindow |
class | MenuButton |
class | MenuFloatingWindow |
class | PopupMenu |
class | SystemWindow |
struct | ImplMenuDelData |
|
protected |
|
overridevirtual |
Definition at line 176 of file menu.cxx.
References VclReferenceBase::disposeOnce().
void Menu::Activate | ( | ) |
Definition at line 256 of file menu.cxx.
References aActivateHdl, bInCallback, Link< typename Arg, typename Ret >::Call(), CreateAutoMnemonics(), ImplCallEventListeners(), ImplGetStartMenu(), ImplMenuDelData::isDeleted(), ITEMPOS_INVALID, MenuActivate, nMenuFlags, and NoAutoMnemonics.
Referenced by MenuBarWindow::ChangeHighlightItem(), HandleMenuActivateEvent(), and PopupMenu::PrepareRun().
void Menu::AddEventListener | ( | const Link< VclMenuEvent &, void > & | rEventListener | ) |
Definition at line 407 of file menu.cxx.
References maEventListeners.
Referenced by ToolBox::ExecuteCustomMenu().
void Menu::CheckItem | ( | sal_uInt16 | nItemId, |
bool | bCheck = true |
||
) |
Definition at line 838 of file menu.cxx.
References AUTOCHECK, CheckItem(), SalMenu::CheckItem(), GetItemCount(), ImplCallEventListeners(), ImplGetSalMenu(), IsItemChecked(), MenuItemChecked, MenuItemUnchecked, MenuItemData::nBits, MenuItemData::nId, nPos, pData, pItemList, and RADIOCHECK.
Referenced by CheckItem(), ImplCopyItem(), ImplSelect(), SalInstanceMenu::set_active(), SalInstanceMenuButton::set_item_active(), and ToolBox::UpdateCustomMenu().
void Menu::CheckItem | ( | std::u16string_view | rIdent, |
bool | bCheck = true |
||
) |
Definition at line 903 of file menu.cxx.
References CheckItem(), and GetItemId().
void Menu::Clear | ( | ) |
Definition at line 571 of file menu.cxx.
References GetItemCount(), i, and RemoveItem().
Referenced by SalInstanceMenu::clear(), SalInstanceMenuButton::clear(), operator=(), and ToolBox::UpdateCustomMenu().
|
protectedpure virtual |
void Menu::CreateAutoMnemonics | ( | ) |
Definition at line 238 of file menu.cxx.
References MnemonicGenerator::CreateMnemonic(), n, NOSELECT, pData, pItemList, and MnemonicGenerator::RegisterMnemonic().
Referenced by Activate().
void Menu::Deactivate | ( | ) |
Definition at line 287 of file menu.cxx.
References aDeactivateHdl, bInCallback, Link< typename Arg, typename Ret >::Call(), ImplCallEventListeners(), ImplGetSalMenu(), ImplGetStartMenu(), ImplMenuDelData::isDeleted(), ITEMPOS_INVALID, MenuDeactivate, n, pData, pItemList, and SalMenu::RemoveItem().
Referenced by MenuBarWindow::ChangeHighlightItem(), HandleMenuDeActivateEvent(), MenuBarWindow::KillActivePopup(), and MenuFloatingWindow::KillActivePopup().
|
protected |
|
overridevirtual |
Reimplemented from VclReferenceBase.
Reimplemented in MenuBar.
Definition at line 181 of file menu.cxx.
References bKilled, VclPtr< reference_type >::clear(), VclReferenceBase::dispose(), VclPtr< reference_type >::get(), ImplCallEventListeners(), ITEMPOS_INVALID, mpFirstDel, mpLayoutData, ImplMenuDelData::mpMenu, ImplMenuDelData::mpNext, mpSalMenu, mxAccessible, n, nEventId, ObjectDying, pItemList, MenuFloatingWindow::pMenu, pStartedFrom, pWindow, Application::RemoveUserEvent(), and vcl::Window::SetAccessible().
Referenced by MenuBar::dispose().
void Menu::EnableItem | ( | sal_uInt16 | nItemId, |
bool | bEnable = true |
||
) |
Definition at line 919 of file menu.cxx.
References MenuItemData::bEnabled, SalMenu::EnableItem(), ImplCallEventListeners(), ImplGetSalMenu(), ImplGetWindow(), vcl::Window::Invalidate(), IsMenuBar(), vcl::Window::IsVisible(), MenuDisable, MenuEnable, n, nCount, nPos, pData, pItemList, and SAL_WARN_IF.
Referenced by Edit::Command(), TextWindow::Command(), ImplCopyItem(), SalInstanceMenuButton::set_item_sensitive(), SalInstanceMenu::set_sensitive(), and ToolBox::UpdateCustomMenu().
|
inline |
|
inline |
Get the ID of the window.
Definition at line 403 of file menu.hxx.
Referenced by PopupMenu::PrepareRun().
KeyCode Menu::GetAccelKey | ( | sal_uInt16 | nItemId | ) | const |
css::uno::Reference< css::accessibility::XAccessible > Menu::GetAccessible | ( | ) |
Definition at line 1307 of file menu.cxx.
References UnoWrapperBase::CreateAccessible(), GetAccessible(), GetItemCount(), GetItemId(), GetPopupMenu(), UnoWrapperBase::GetUnoWrapper(), i, IsMenuBar(), mxAccessible, nCount, and pStartedFrom.
Referenced by MenuBarWindow::CreateAccessible(), MenuFloatingWindow::CreateAccessible(), and GetAccessible().
OUString Menu::GetAccessibleDescription | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 2326 of file menu.cxx.
References GetHelpText(), pData, and pItemList.
OUString Menu::GetAccessibleName | ( | sal_uInt16 | nItemId | ) | const |
KeyEvent Menu::GetActivationKey | ( | sal_uInt16 | nItemId | ) | const |
tools::Rectangle Menu::GetBoundingRectangle | ( | sal_uInt16 | nItemPos | ) | const |
Definition at line 2281 of file menu.cxx.
References ImplFillLayoutData(), mpLayoutData, and nPos.
tools::Rectangle Menu::GetCharacterBounds | ( | sal_uInt16 | nItemId, |
tools::Long | nIndex | ||
) | const |
Definition at line 2238 of file menu.cxx.
References i, ImplFillLayoutData(), mpLayoutData, nIndex, and nItemID.
|
inline |
Definition at line 262 of file menu.hxx.
Referenced by MenuButton::ExecuteMenu(), ImplCallHighlight(), Select(), and MenuButton::SetCurItemId().
|
inline |
Definition at line 263 of file menu.hxx.
Referenced by MenuButton::ExecuteMenu(), SalInstanceMenu::popup_at_rect(), and MenuButton::SetCurItemId().
OUString Menu::GetHelpCommand | ( | sal_uInt16 | nItemId | ) | const |
OUString Menu::GetHelpId | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 1156 of file menu.cxx.
References pData, and pItemList.
Referenced by MenuWindow::ImplHandleHelpEvent().
OUString Menu::GetHelpText | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 1125 of file menu.cxx.
References ImplGetHelpText().
Referenced by GetAccessibleDescription(), and MenuWindow::ImplHandleHelpEvent().
tools::Long Menu::GetIndexForPoint | ( | const Point & | rPoint, |
sal_uInt16 & | rItemID | ||
) | const |
Definition at line 2257 of file menu.cxx.
References i, ImplFillLayoutData(), mpLayoutData, and nIndex.
MenuItemBits Menu::GetItemBits | ( | sal_uInt16 | nItemId | ) | const |
OUString Menu::GetItemCommand | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 1063 of file menu.cxx.
References pData, and pItemList.
Referenced by MenuWindow::ImplHandleHelpEvent().
sal_uInt16 Menu::GetItemCount | ( | ) | const |
Definition at line 577 of file menu.cxx.
References pItemList.
Referenced by CheckItem(), Clear(), CollectMenuItemIds(), MenuButton::DumpAsPropertyTree(), GetAccessible(), MenuBarWindow::HandleKeyEvent(), HasValidEntries(), IMPL_LINK(), MenuBarWindow::ImplCreatePopup(), MenuFloatingWindow::ImplCursorUpDown(), VclBuilder::insertMenuObject(), MenuBarWindow::KillActivePopup(), SalInstanceMenu::n_children(), operator=(), PopupMenu::PrepareRun(), RemoveDisabledEntries(), RemoveItem(), PopupMenu::Run(), SalInstanceMenu::SalInstanceMenu(), and SalInstanceMenuButton::SalInstanceMenuButton().
sal_uInt16 Menu::GetItemId | ( | sal_uInt16 | nPos | ) | const |
Definition at line 641 of file menu.cxx.
References nPos, pData, and pItemList.
Referenced by CheckItem(), CollectMenuItemIds(), Edit::Command(), TextWindow::Command(), Edit::CreatePopupMenu(), MenuButton::DumpAsPropertyTree(), MenuButtonUIObject::execute(), SalInstanceMenu::get_active(), SalInstanceMenu::get_id(), SalInstanceMenuButton::get_item_label(), SalInstanceMenu::get_label(), SalInstanceMenu::get_sensitive(), GetAccessible(), ImplCopyItem(), MenuBarWindow::ImplCreatePopup(), MenuBarWindow::KillActivePopup(), SalInstanceMenu::remove(), SalInstanceMenuButton::remove_item(), SalInstanceMenu::SalInstanceMenu(), SalInstanceMenuButton::SalInstanceMenuButton(), SalInstanceMenu::set_item_help_id(), SalInstanceMenuButton::set_item_label(), SalInstanceMenuButton::set_item_visible(), SalInstanceMenu::set_label(), and SalInstanceMenu::set_visible().
sal_uInt16 Menu::GetItemId | ( | std::u16string_view | rIdent | ) | const |
OUString Menu::GetItemIdent | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 683 of file menu.cxx.
References nId, pData, and pItemList.
Referenced by Edit::Command(), TextWindow::Command(), MenuButton::DumpAsPropertyTree(), SalInstanceMenu::get_id(), HandleMenuCommandEvent(), MenuBar::HandleMenuHighlightEvent(), and PopupMenu::SetSelectedEntry().
Image Menu::GetItemImage | ( | sal_uInt16 | nItemId | ) | const |
|
inline |
Definition at line 350 of file menu.hxx.
Referenced by MenuFloatingWindow::EndExecute(), MenuBarWindow::HandleKeyEvent(), ImplCopyItem(), MenuBarWindow::ImplCreatePopup(), MenuFloatingWindow::ImplCursorUpDown(), ImplFindMenu(), ImplFindSelectMenu(), MenuFloatingWindow::ImplGetStartY(), MenuWindow::ImplHandleHelpEvent(), MenuFloatingWindow::ImplScroll(), ImplSelect(), MenuFloatingWindow::KeyInput(), MenuBarWindow::KillActivePopup(), MenuFloatingWindow::MouseButtonUp(), MenuBarWindow::Paint(), and PopupMenu::SelectItem().
sal_uInt16 Menu::GetItemPos | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 662 of file menu.cxx.
References MENU_ITEM_NOTFOUND, nPos, pData, and pItemList.
Referenced by MenuBar::HandleMenuHighlightEvent(), ImplCallHighlight(), ImplCopyItem(), InsertItem(), SalInstanceMenu::remove(), SalInstanceMenuButton::remove_item(), Select(), and MenuBar::SelectItem().
OUString Menu::GetItemText | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 1017 of file menu.cxx.
References nPos, pData, and pItemList.
Referenced by MenuButton::DumpAsPropertyTree(), SalInstanceMenuButton::get_item_label(), SalInstanceMenu::get_label(), and DebugEventInjector::InjectMenuEvent().
MenuItemType Menu::GetItemType | ( | sal_uInt16 | nPos | ) | const |
Definition at line 673 of file menu.cxx.
References DONTKNOW, nPos, pData, and pItemList.
Referenced by CollectMenuItemIds(), ImplCopyItem(), and RemoveDisabledEntries().
PopupMenu * Menu::GetPopupMenu | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 775 of file menu.cxx.
References pData, and pItemList.
Referenced by CollectMenuItemIds(), GetAccessible(), ImplCopyItem(), and MenuBarWindow::ImplCreatePopup().
void Menu::GetSystemMenuData | ( | SystemMenuData * | pData | ) | const |
Definition at line 2336 of file menu.cxx.
References SalMenu::GetSystemMenuData(), ImplGetSalMenu(), and pData.
OUString Menu::GetTipHelpText | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 1138 of file menu.cxx.
References pData, and pItemList.
Referenced by MenuWindow::ImplHandleHelpEvent().
|
inline |
Definition at line 339 of file menu.hxx.
Referenced by MenuFloatingWindow::ImplGetStartY().
void * Menu::GetUserValue | ( | sal_uInt16 | nItemId | ) | const |
|
inline |
Definition at line 377 of file menu.hxx.
Referenced by vcl::Window::GetAccessibleChildWindow(), vcl::Window::GetAccessibleChildWindowCount(), MenuBar::GetMenuBarHeight(), and ImplInvalidateMenubar().
bool Menu::HandleMenuActivateEvent | ( | Menu * | pMenu | ) | const |
Definition at line 2563 of file menu.cxx.
References Activate(), bInCallback, ImplMenuDelData::isDeleted(), and pStartedFrom.
Referenced by ImplHandleMenuEvent().
bool Menu::HandleMenuCommandEvent | ( | Menu * | pMenu, |
sal_uInt16 | nEventId | ||
) | const |
Definition at line 2619 of file menu.cxx.
References GetItemIdent(), ImplFindMenu(), ImplSelect(), nSelectedId, pStartedFrom, and sSelectedIdent.
Referenced by ImplHandleMenuEvent().
bool Menu::HandleMenuDeActivateEvent | ( | Menu * | pMenu | ) | const |
Definition at line 2579 of file menu.cxx.
References bInCallback, Deactivate(), ImplMenuDelData::isDeleted(), and pStartedFrom.
Referenced by ImplHandleMenuEvent().
bool Menu::HasValidEntries | ( | bool | bCheckPopups | ) | const |
Definition at line 582 of file menu.cxx.
References MenuItemData::bEnabled, MenuItemData::eType, GetItemCount(), HasValidEntries(), n, nCount, pItemList, MenuItemData::pSubMenu, and SEPARATOR.
Referenced by HasValidEntries().
|
inline |
Definition at line 290 of file menu.hxx.
Referenced by VclBuilder::insertMenuObject().
void Menu::HighlightItem | ( | sal_uInt16 | nItemPos | ) |
Definition at line 2360 of file menu.cxx.
References MenuBarWindow::ChangeHighlightItem(), VclPtr< reference_type >::get(), IsMenuBar(), pWindow, and MenuBarWindow::SetAutoPopup().
|
protected |
Definition at line 1401 of file menu.cxx.
References mpFirstDel, ImplMenuDelData::mpMenu, ImplMenuDelData::mpNext, and SAL_WARN_IF.
|
protected |
Definition at line 1431 of file menu.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), aName, aTitleText, ENABLED, Entire, EXTRAITEMHEIGHT, VclPtr< reference_type >::get(), OutputDevice::GetCtrlTextWidth(), vcl::Window::GetFont(), tools::Rectangle::GetHeight(), vcl::Window::GetNativeControlRegion(), vcl::Window::GetOutDev(), Application::GetScreenPosSizePixel(), vcl::Window::GetSettings(), tools::Rectangle::GetSize(), AllSettings::GetStyleSettings(), OutputDevice::GetTextBoundRect(), vcl::Window::GetTextHeight(), vcl::Window::GetTextWidth(), StyleSettings::GetUseImagesInMenus(), tools::Rectangle::GetWidth(), Size::Height(), i, IMAGE, ImplAccelDisabled(), ImplGetNativeCheckAndRadioSize(), ImplGetSVData(), vcl::Window::ImplGetWindowImpl(), ImplIsVisible(), IsMenuBar(), vcl::Window::IsNativeControlSupported(), SalFrame::maGeometry, ImplSVData::maNWFData, Menubar, ImplSVNWFData::mnMenuFormatBorderX, ImplSVNWFData::mnMenuFormatBorderY, WindowImpl::mpFrame, n, nImgOrChkPos, nTextPos, nTitleHeight, pData, pItemList, OutputDevice::Pop(), OutputDevice::Push(), pWindow, SalFrameGeometry::screen(), SEPARATOR, vcl::Window::SetFont(), Size::setHeight(), vcl::Font::SetWeight(), Size::setWidth(), SPACE_AROUND_TITLE, STRING, STRINGIMAGE, WEIGHT_BOLD, and Size::Width().
Referenced by MenuBar::ImplCreate(), InsertItem(), MenuBarWindow::LayoutChanged(), PopupMenu::PrepareRun(), RemoveItem(), and SetItemText().
|
protected |
Definition at line 383 of file menu.cxx.
References aEvent, Application::ImplCallEventListeners(), ImplMenuDelData::isDeleted(), maEventListeners, MenuHighlight, and nPos.
Referenced by Activate(), MenuBarWindow::ChangeHighlightItem(), MenuFloatingWindow::ChangeHighlightItem(), CheckItem(), Deactivate(), dispose(), MenuFloatingWindow::doShutdown(), EnableItem(), MenuBar::HandleMenuHighlightEvent(), ImplCallHighlight(), InsertItem(), InsertSeparator(), PopupMenu::PrepareRun(), RemoveItem(), PopupMenu::Run(), Select(), SetAccessibleName(), SetItemBits(), SetItemText(), SetPopupMenu(), and MenuFloatingWindow::StopExecute().
|
protected |
Definition at line 2111 of file menu.cxx.
References GetCurItemId(), GetItemPos(), ImplCallEventListeners(), ImplMenuDelData::isDeleted(), MenuHighlight, nSelectedId, pData, pItemList, and sSelectedIdent.
Referenced by MenuBarWindow::ChangeHighlightItem(), MenuFloatingWindow::ChangeHighlightItem(), MenuBar::HandleMenuHighlightEvent(), and MenuFloatingWindow::KeyInput().
|
protected |
Definition at line 1197 of file menu.cxx.
References MenuItemData::bHiddenOnGUI, nPos, pData, and pItemList.
Referenced by MenuBarWindow::HandleKeyEvent().
|
protected |
Definition at line 2220 of file menu.cxx.
References VclPtr< reference_type >::get(), vcl::Window::GetOutDev(), vcl::Window::GetOutputSizePixel(), MenuFloatingWindow::ImplGetStartY(), ImplPaint(), IsMenuBar(), vcl::Window::IsReallyVisible(), mpLayoutData, MenuFloatingWindow::nScrollerHeight, and pWindow.
Referenced by GetBoundingRectangle(), GetCharacterBounds(), and GetIndexForPoint().
|
protected |
Definition at line 2153 of file menu.cxx.
References MenuItemList::GetDataFromPos(), GetItemList(), n, pData, and size.
Referenced by HandleMenuCommandEvent(), and MenuBar::HandleMenuHighlightEvent().
|
protected |
Definition at line 2138 of file menu.cxx.
References MenuItemList::GetDataFromPos(), GetItemList(), n, nEventId, pData, and size.
Referenced by PopupMenu::ImplFlushPendingSelect().
|
protected |
Definition at line 611 of file menu.cxx.
References ImplIsVisible(), ITEMPOS_INVALID, n, and pItemList.
Referenced by PopupMenu::PrepareRun().
|
protected |
Definition at line 1099 of file menu.cxx.
References Application::GetHelp(), Help::GetHelpText(), pData, and pItemList.
Referenced by GetHelpText().
|
protected |
Definition at line 1344 of file menu.cxx.
References ENABLED, tools::Rectangle::GetHeight(), OutputDevice::GetNativeControlRegion(), tools::Rectangle::GetWidth(), IsMenuBar(), OutputDevice::IsNativeControlSupported(), MenuItemCheckMark, MenuItemRadioMark, and MenuPopup.
Referenced by ImplCalcSize(), and ImplPaint().
|
staticprotected |
Definition at line 1380 of file menu.cxx.
References ENABLED, tools::Rectangle::GetHeight(), OutputDevice::GetNativeControlRegion(), tools::Rectangle::GetWidth(), OutputDevice::IsNativeControlSupported(), MenuPopup, and SubmenuArrow.
Referenced by ImplPaint().
|
protected |
Definition at line 631 of file menu.cxx.
References ImplIsVisible(), ITEMPOS_INVALID, n, nPos, and pItemList.
Referenced by MenuFloatingWindow::ImplScroll().
|
protected |
Definition at line 621 of file menu.cxx.
References ImplIsVisible(), ITEMPOS_INVALID, n, and nPos.
Referenced by MenuFloatingWindow::ImplScroll().
|
inlineprotected |
Definition at line 184 of file menu.hxx.
Referenced by MenuBarWindow::ApplySettings(), MenuBarWindow::CanGetFocus(), CheckItem(), Deactivate(), EnableItem(), MenuBarWindow::GetFocus(), MenuBar::GetMenuBarHeight(), GetSystemMenuData(), MenuBarWindow::HandleKeyEvent(), MenuBar::ImplCreate(), MenuBar::ImplHandleKeyEvent(), InsertSeparator(), MenuBarWindow::LayoutChanged(), NbcInsertItem(), MenuBarWindow::Paint(), RemoveItem(), PopupMenu::Run(), SetAccelKey(), MenuBar::SetDisplayable(), SetItemBits(), SetItemImage(), SetItemText(), MenuBarWindow::SetMenu(), SetPopupMenu(), ShowItem(), and UpdateNativeMenu().
|
protected |
Definition at line 2103 of file menu.cxx.
References pStartedFrom.
Referenced by Activate(), Deactivate(), MenuFloatingWindow::EndExecute(), MenuFloatingWindow::KeyInput(), and Select().
|
protected |
Definition at line 600 of file menu.cxx.
References ImplIsVisible(), n, and pItemList.
Referenced by PopupMenu::PrepareRun().
|
inline |
Definition at line 211 of file menu.hxx.
Referenced by MenuBarWindow::ChangeHighlightItem(), MenuFloatingWindow::ChangeHighlightItem(), PopupMenu::ClosePopup(), MenuFloatingWindow::doShutdown(), EnableItem(), PopupMenu::EndExecute(), SystemWindow::GetTaskPaneList(), MenuBar::ImplDestroy(), PopupMenu::ImplGetFloatingWindow(), MenuBar::ImplHandleKeyEvent(), InsertItem(), MenuFloatingWindow::KeyInput(), MenuBarWindow::KillActivePopup(), MenuFloatingWindow::KillActivePopup(), PopupMenu::PrepareRun(), RemoveItem(), PopupMenu::SelectItem(), SetItemText(), SystemWindow::SetMenuBar(), and ShowItem().
|
protected |
Definition at line 1295 of file menu.cxx.
References NOSELECT, nPos, pData, and pItemList.
Referenced by MenuFloatingWindow::ImplCursorUpDown(), MenuFloatingWindow::ImplHighlightItem(), and PopupMenu::Run().
|
protected |
Definition at line 1211 of file menu.cxx.
References AlwaysShowDisabledEntries, bVisible, MenuItemData::bVisible, MenuItemData::eType, HideDisabledEntries, ImplIsVisible(), IsMenuBar(), n, nCount, nMenuFlags, nPos, pData, pItemList, and SEPARATOR.
Referenced by MenuBarWindow::ChangeHighlightItem(), MenuFloatingWindow::ChangeHighlightItem(), MenuBarWindow::HandleKeyEvent(), PopupMenu::ImplCalcHeight(), ImplCalcSize(), PopupMenu::ImplCalcVisEntries(), MenuFloatingWindow::ImplCursorUpDown(), MenuBarWindow::ImplFindEntry(), ImplGetFirstVisible(), MenuFloatingWindow::ImplGetItemRect(), ImplGetNextVisible(), ImplGetPrevVisible(), ImplGetVisibleItemCount(), MenuFloatingWindow::ImplHighlightItem(), ImplIsVisible(), ImplPaint(), IsItemPosVisible(), MenuFloatingWindow::RenderHighlightItem(), and PopupMenu::Run().
void Menu::ImplKillLayoutData | ( | ) | const |
Definition at line 2215 of file menu.cxx.
References mpLayoutData.
Referenced by MenuFloatingWindow::ImplScroll(), MenuBarWindow::LayoutChanged(), and MenuBarWindow::StateChanged().
|
protected |
Definition at line 1728 of file menu.cxx.
References Point::AdjustX(), Point::AdjustY(), CHECKMARK, Disable, OutputDevice::DrawCtrlText(), DecorationView::DrawFrame(), OutputDevice::DrawImage(), OutputDevice::DrawLine(), OutputDevice::DrawNativeControl(), DecorationView::DrawSymbol(), ENABLED, Entire, psp::eSymbol, tools::Rectangle::GetHeight(), StyleSettings::GetLightColor(), StyleSettings::GetMenuBarColor(), StyleSettings::GetMenuBarHighlightTextColor(), StyleSettings::GetMenuBarRolloverTextColor(), StyleSettings::GetMenuBarTextColor(), StyleSettings::GetMenuColor(), StyleSettings::GetMenuHighlightTextColor(), StyleSettings::GetMenuTextColor(), OutputDevice::GetSettings(), StyleSettings::GetShadowColor(), getShortenedString(), Image::GetSizePixel(), AllSettings::GetStyleSettings(), OutputDevice::GetTextColor(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), tools::Rectangle::GetWidth(), Group, GUTTERBORDER, Size::Height(), IMAGE, ImplAccelDisabled(), ImplGetNativeCheckAndRadioSize(), ImplGetNativeSubmenuArrowSize(), ImplGetSVData(), ImplIsVisible(), ImplPaintCheckBackground(), ImplPaintMenuTitle(), OutputDevice::IsBackground(), vcl::Window::IsEnabled(), IsMenuBar(), OutputDevice::IsNativeControlSupported(), tools::Rectangle::Left(), ImplSVData::maNWFData, MenuItemCheckMark, MenuItemRadioMark, MenuPopup, Mnemonic, ImplSVNWFData::mnMenuFormatBorderX, mpLayoutData, n, nBorder, nCount, nImgOrChkPos, NONE, nState, nTextPos, nTitleHeight, pData, pItemList, POPUPSELECT, PRESSED, pWindow, RADIOCHECK, RADIOCHECKMARK, SELECTED, SEPARATOR, Separator, OutputDevice::SetBackground(), OutputDevice::SetLineColor(), OutputDevice::SetTextColor(), Size::setWidth(), Point::setX(), Point::setY(), SPIN_RIGHT, STRING, STRINGIMAGE, SubmenuArrow, tools::Rectangle::Top(), tools::Rectangle::TopLeft(), Size::Width(), Point::X(), and Point::Y().
Referenced by MenuBarWindow::HighlightItem(), ImplFillLayoutData(), MenuBarWindow::Paint(), MenuFloatingWindow::Paint(), and MenuFloatingWindow::RenderHighlightItem().
|
protected |
Definition at line 1693 of file menu.cxx.
References Point::AdjustX(), Point::AdjustY(), aTitleText, OutputDevice::DrawRect(), OutputDevice::DrawText(), OutputDevice::GetBackground(), OutputDevice::GetFont(), tools::Rectangle::GetHeight(), StyleSettings::GetMenuBarColor(), tools::Rectangle::getOpenWidth(), OutputDevice::GetSettings(), tools::Rectangle::GetSize(), AllSettings::GetStyleSettings(), OutputDevice::GetTextBoundRect(), Size::Height(), ImplGetSVData(), ImplSVData::maNWFData, ImplSVNWFData::mnMenuFormatBorderX, tools::Rectangle::Move(), nTitleHeight, OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetBackground(), OutputDevice::SetFillColor(), OutputDevice::SetFont(), tools::Rectangle::setHeight(), vcl::Font::SetWeight(), tools::Rectangle::setWidth(), SPACE_AROUND_TITLE, tools::Rectangle::Top(), tools::Rectangle::TopLeft(), WEIGHT_BOLD, and Size::Width().
Referenced by ImplPaint().
|
protected |
Definition at line 1412 of file menu.cxx.
References mpFirstDel, ImplMenuDelData::mpMenu, ImplMenuDelData::mpNext, pData, and SAL_WARN_IF.
|
protected |
Definition at line 330 of file menu.cxx.
References AUTOCHECK, CheckItem(), MenuItemList::GetData(), GetItemList(), ImplGetSVData(), IsItemChecked(), LINK, ImplSVData::maAppData, ImplSVAppData::mpActivePopupMenu, nEventId, nSelectedId, pData, Application::PostUserEvent(), and RADIOCHECK.
Referenced by MenuFloatingWindow::EndExecute(), and HandleMenuCommandEvent().
void Menu::InsertItem | ( | sal_uInt16 | nItemId, |
const Image & | rImage, | ||
MenuItemBits | nItemBits = MenuItemBits::NONE , |
||
const OUString & | rIdent = {} , |
||
sal_uInt16 | nPos = MENU_APPEND |
||
) |
Definition at line 457 of file menu.cxx.
References InsertItem(), nPos, and SetItemImage().
void Menu::InsertItem | ( | sal_uInt16 | nItemId, |
const OUString & | rStr, | ||
MenuItemBits | nItemBits = MenuItemBits::NONE , |
||
const OUString & | rIdent = {} , |
||
sal_uInt16 | nPos = MENU_APPEND |
||
) |
Definition at line 432 of file menu.cxx.
References GetItemPos(), ImplCalcSize(), ImplCallEventListeners(), ImplGetWindow(), vcl::Window::Invalidate(), vcl::Window::IsVisible(), MENU_APPEND, MENU_ITEM_NOTFOUND, MenuInsertItem, mpLayoutData, NbcInsertItem(), nPos, pItemList, and SAL_WARN_IF.
Referenced by ImplCopyItem(), MenuBarWindow::ImplCreatePopup(), InsertItem(), VclBuilder::insertMenuObject(), NotebookBarAddonsMerger::MergeNotebookBarMenuAddons(), and ToolBox::UpdateCustomMenu().
void Menu::InsertItem | ( | sal_uInt16 | nItemId, |
const OUString & | rString, | ||
const Image & | rImage, | ||
MenuItemBits | nItemBits = MenuItemBits::NONE , |
||
const OUString & | rIdent = {} , |
||
sal_uInt16 | nPos = MENU_APPEND |
||
) |
Definition at line 464 of file menu.cxx.
References InsertItem(), nPos, and SetItemImage().
void Menu::InsertSeparator | ( | const OUString & | rIdent = {} , |
sal_uInt16 | nPos = MENU_APPEND |
||
) |
Definition at line 472 of file menu.cxx.
References ImplCallEventListeners(), ImplGetSalMenu(), SalMenu::InsertItem(), IsMenuBar(), MENU_APPEND, MenuInsertItem, mpLayoutData, nPos, pData, and pItemList.
Referenced by ImplCopyItem(), SalInstanceMenu::insert_separator(), VclBuilder::insertMenuObject(), NotebookBarAddonsMerger::MergeNotebookBarMenuAddons(), and ToolBox::UpdateCustomMenu().
bool Menu::IsHighlighted | ( | sal_uInt16 | nItemPos | ) | const |
Definition at line 2345 of file menu.cxx.
References VclPtr< reference_type >::get(), IsMenuBar(), and pWindow.
bool Menu::IsItemChecked | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 908 of file menu.cxx.
References nPos, pData, and pItemList.
Referenced by CheckItem(), SalInstanceMenu::get_active(), ImplCopyItem(), and ImplSelect().
bool Menu::IsItemEnabled | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 953 of file menu.cxx.
References nPos, pData, and pItemList.
Referenced by SalInstanceMenu::get_sensitive(), and ImplCopyItem().
bool Menu::IsItemPosVisible | ( | sal_uInt16 | nItemPos | ) | const |
Definition at line 1285 of file menu.cxx.
References ImplIsVisible(), and IsMenuVisible().
|
pure virtual |
Implemented in MenuBar, and PopupMenu.
References SetHelpId().
Referenced by MenuFloatingWindow::ChangeHighlightItem(), MenuFloatingWindow::doShutdown(), EnableItem(), MenuFloatingWindow::EndExecute(), GetAccessible(), HighlightItem(), ImplCalcSize(), ImplFillLayoutData(), ImplGetNativeCheckAndRadioSize(), ImplIsVisible(), ImplPaint(), InsertSeparator(), IsHighlighted(), MenuFloatingWindow::KeyInput(), PopupMenu::PrepareRun(), PopupMenu::Run(), SetItemText(), and ShowItem().
bool Menu::IsMenuVisible | ( | ) | const |
Definition at line 1290 of file menu.cxx.
References vcl::Window::IsReallyVisible(), and pWindow.
Referenced by IsItemPosVisible().
|
protectedvirtual |
Forward the KeyInput call to the MenuBar.
Reimplemented in MenuBar.
Definition at line 2211 of file menu.cxx.
Referenced by MenuFloatingWindow::KeyInput().
|
protected |
Definition at line 417 of file menu.cxx.
References ImplGetSalMenu(), SalMenu::InsertItem(), nId, nPos, pData, pItemList, and STRING.
Referenced by InsertItem(), and PopupMenu::PrepareRun().
Definition at line 1173 of file menu.cxx.
References aActivateHdl, aDeactivateHdl, aSelectHdl, aTitleText, Clear(), GetItemCount(), i, ImplCopyItem(), MENU_APPEND, nCount, and nTitleHeight.
Referenced by MenuBar::operator=(), and PopupMenu::operator=().
void Menu::RemoveDisabledEntries | ( | bool | bRemoveEmptyPopups = false | ) |
Definition at line 2170 of file menu.cxx.
References MenuItemData::bEnabled, MenuItemData::eType, GetItemCount(), GetItemType(), mpLayoutData, n, pItemList, MenuItemData::pSubMenu, RemoveDisabledEntries(), RemoveItem(), and SEPARATOR.
Referenced by RemoveDisabledEntries().
void Menu::RemoveEventListener | ( | const Link< VclMenuEvent &, void > & | rEventListener | ) |
Definition at line 412 of file menu.cxx.
References maEventListeners.
Referenced by ToolBox::ExecuteCustomMenu().
void Menu::RemoveItem | ( | sal_uInt16 | nPos | ) |
Definition at line 496 of file menu.cxx.
References GetItemCount(), ImplCalcSize(), ImplCallEventListeners(), ImplGetSalMenu(), ImplGetWindow(), vcl::Window::Invalidate(), vcl::Window::IsVisible(), MenuRemoveItem, mpLayoutData, nPos, pItemList, and SalMenu::RemoveItem().
Referenced by Clear(), SalInstanceMenu::remove(), SalInstanceMenuButton::remove_item(), and RemoveDisabledEntries().
void Menu::Select | ( | ) |
Definition at line 351 of file menu.cxx.
References aSelectHdl, Link< typename Arg, typename Ret >::Call(), GetCurItemId(), GetItemPos(), ImplCallEventListeners(), ImplGetStartMenu(), ImplMenuDelData::isDeleted(), MenuSelect, nSelectedId, and sSelectedIdent.
Referenced by PopupMenu::ImplFlushPendingSelect().
|
pure virtual |
|
inline |
void Menu::SetAccelKey | ( | sal_uInt16 | nItemId, |
const vcl::KeyCode & | rKeyCode | ||
) |
Definition at line 785 of file menu.cxx.
References vcl::KeyCode::GetName(), ImplGetSalMenu(), nPos, pData, pItemList, and SalMenu::SetAccelerator().
Referenced by Edit::CreatePopupMenu(), ImplCopyItem(), MenuBarWindow::ImplCreatePopup(), and VclBuilder::insertMenuObject().
void Menu::SetAccessible | ( | const css::uno::Reference< css::accessibility::XAccessible > & | rxAccessible | ) |
Definition at line 1339 of file menu.cxx.
References mxAccessible.
void Menu::SetAccessibleDescription | ( | sal_uInt16 | nItemId, |
const OUString & | rStr | ||
) |
Definition at line 2318 of file menu.cxx.
References pData, and pItemList.
Referenced by VclBuilder::insertMenuObject().
void Menu::SetAccessibleName | ( | sal_uInt16 | nItemId, |
const OUString & | rStr | ||
) |
Definition at line 2296 of file menu.cxx.
References ImplCallEventListeners(), MenuAccessibleNameChanged, nPos, pData, and pItemList.
Referenced by VclBuilder::insertMenuObject().
void Menu::SetHelpCommand | ( | sal_uInt16 | nItemId, |
const OUString & | rString | ||
) |
Definition at line 1073 of file menu.cxx.
References pData, and pItemList.
Referenced by ImplCopyItem(), and MenuBarWindow::ImplCreatePopup().
void Menu::SetHelpId | ( | sal_uInt16 | nItemId, |
const OUString & | rHelpId | ||
) |
Definition at line 1148 of file menu.cxx.
References pData, and pItemList.
Referenced by ImplCopyItem(), MenuBarWindow::ImplCreatePopup(), VclBuilder::insertMenuObject(), and SalInstanceMenu::set_item_help_id().
void Menu::SetHelpText | ( | sal_uInt16 | nItemId, |
const OUString & | rString | ||
) |
Definition at line 1091 of file menu.cxx.
References pData, and pItemList.
Referenced by ImplCopyItem(), and MenuBarWindow::ImplCreatePopup().
void Menu::SetItemBits | ( | sal_uInt16 | nItemId, |
MenuItemBits | nBits | ||
) |
Definition at line 689 of file menu.cxx.
References CHECKABLE, ImplCallEventListeners(), ImplGetSalMenu(), MenuItemRoleChanged, nPos, pData, pItemList, RADIOCHECK, and SalMenu::SetItemBits().
void Menu::SetItemCommand | ( | sal_uInt16 | nItemId, |
const OUString & | rCommand | ||
) |
Definition at line 1054 of file menu.cxx.
References nPos, pData, and pItemList.
Referenced by ImplCopyItem(), MenuBarWindow::ImplCreatePopup(), VclBuilder::insertMenuObject(), NotebookBarAddonsMerger::MergeNotebookBarMenuAddons(), and ToolBox::UpdateCustomMenu().
void Menu::SetItemImage | ( | sal_uInt16 | nItemId, |
const Image & | rImage | ||
) |
Definition at line 1028 of file menu.cxx.
References ImplGetSalMenu(), ImplSetMenuItemData(), nPos, pData, pItemList, and SalMenu::SetItemImage().
Referenced by InsertItem(), and NotebookBarAddonsMerger::MergeNotebookBarMenuAddons().
void Menu::SetItemText | ( | sal_uInt16 | nItemId, |
const OUString & | rStr | ||
) |
Definition at line 986 of file menu.cxx.
References ImplCalcSize(), ImplCallEventListeners(), ImplGetSalMenu(), ImplGetWindow(), ImplSetMenuItemData(), vcl::Window::Invalidate(), IsMenuBar(), vcl::Window::IsVisible(), MenuItemTextChanged, mpLayoutData, nPos, pData, pItemList, and SalMenu::SetItemText().
Referenced by SalInstanceMenuButton::set_item_label(), and SalInstanceMenu::set_label().
|
inline |
Definition at line 252 of file menu.hxx.
Referenced by Edit::CreatePopupMenu(), ToolBox::ExecuteCustomMenu(), and SalInstanceMenuButton::SalInstanceMenuButton().
void Menu::SetPopupMenu | ( | sal_uInt16 | nItemId, |
PopupMenu * | pMenu | ||
) |
Definition at line 738 of file menu.cxx.
References ImplCallEventListeners(), ImplGetSalMenu(), MenuSubmenuChanged, nPos, pData, pItemList, and SalMenu::SetSubMenu().
Referenced by ImplCopyItem(), MenuBarWindow::ImplCreatePopup(), and VclBuilder::insertMenuObject().
Definition at line 334 of file menu.hxx.
Referenced by SalInstanceMenu::SalInstanceMenu(), and SalInstanceMenu::~SalInstanceMenu().
void Menu::SetTipHelpText | ( | sal_uInt16 | nItemId, |
const OUString & | rString | ||
) |
Definition at line 1130 of file menu.cxx.
References pData, and pItemList.
Referenced by VclBuilder::insertMenuObject().
void Menu::SetUserValue | ( | sal_uInt16 | nItemId, |
void * | nUserValue, | ||
MenuUserDataReleaseFunction | aFunc = nullptr |
||
) |
void Menu::ShowItem | ( | sal_uInt16 | nItemId, |
bool | bVisible = true |
||
) |
Definition at line 964 of file menu.cxx.
References bVisible, ImplGetSalMenu(), ImplGetWindow(), IsMenuBar(), vcl::Window::IsVisible(), nPos, pData, pItemList, SAL_WARN, SAL_WARN_IF, and SalMenu::ShowItem().
Referenced by Edit::Command(), TextWindow::Command(), SalInstanceMenuButton::set_item_visible(), and SalInstanceMenu::set_visible().
void Menu::UpdateNativeMenu | ( | ) |
Definition at line 2205 of file menu.cxx.
References ImplGetSalMenu(), and SalMenu::Update().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Definition at line 130 of file menu.hxx.
Referenced by Activate(), and operator=().
Definition at line 131 of file menu.hxx.
Referenced by Deactivate(), and operator=().
Definition at line 132 of file menu.hxx.
Referenced by operator=(), and Select().
|
private |
Definition at line 138 of file menu.hxx.
Referenced by ImplCalcSize(), ImplPaintMenuTitle(), and operator=().
|
private |
Terminated during a callback.
Definition at line 151 of file menu.hxx.
Referenced by MenuBarWindow::KillActivePopup(), MenuFloatingWindow::KillActivePopup(), and PopupMenu::PrepareRun().
|
private |
In Activate/Deactivate.
Definition at line 152 of file menu.hxx.
Referenced by Activate(), MenuBarWindow::ChangeHighlightItem(), Deactivate(), MenuBarWindow::HandleKeyEvent(), HandleMenuActivateEvent(), HandleMenuDeActivateEvent(), MenuBarWindow::KillActivePopup(), MenuFloatingWindow::KillActivePopup(), and PopupMenu::PrepareRun().
|
private |
Killed.
Definition at line 153 of file menu.hxx.
Referenced by dispose(), and PopupMenu::PrepareRun().
|
private |
Definition at line 134 of file menu.hxx.
Referenced by AddEventListener(), ImplCallEventListeners(), and RemoveEventListener().
|
private |
Definition at line 142 of file menu.hxx.
Referenced by MenuBar::HandleMenuHighlightEvent().
|
private |
Definition at line 125 of file menu.hxx.
Referenced by dispose(), ImplAddDel(), and ImplRemoveDel().
|
mutableprivate |
Definition at line 156 of file menu.hxx.
Referenced by dispose(), GetBoundingRectangle(), GetCharacterBounds(), GetIndexForPoint(), ImplFillLayoutData(), ImplKillLayoutData(), ImplPaint(), InsertItem(), InsertSeparator(), PopupMenu::PrepareRun(), RemoveDisabledEntries(), RemoveItem(), and SetItemText().
|
private |
Definition at line 157 of file menu.hxx.
Referenced by MenuBarWindow::AddMenuBarButton(), dispose(), MenuBarWindow::GetMenuBarButtonRectPixel(), MenuBar::ImplDestroy(), MenuBar::MenuBar(), PopupMenu::PopupMenu(), MenuBarWindow::RemoveMenuBarButton(), and MenuBarWindow::ShowButtons().
|
private |
Definition at line 155 of file menu.hxx.
Referenced by dispose(), GetAccessible(), and SetAccessible().
|
private |
Definition at line 141 of file menu.hxx.
Referenced by dispose(), ImplFindSelectMenu(), PopupMenu::ImplFlushPendingSelect(), and ImplSelect().
|
private |
Definition at line 148 of file menu.hxx.
Referenced by ImplCalcSize(), and ImplPaint().
|
private |
Definition at line 143 of file menu.hxx.
Referenced by Activate(), ImplIsVisible(), and PopupMenu::PrepareRun().
|
private |
Definition at line 144 of file menu.hxx.
Referenced by MenuFloatingWindow::ChangeHighlightItem(), MenuFloatingWindow::EndExecute(), PopupMenu::FinishRun(), HandleMenuCommandEvent(), MenuBar::HandleMenuHighlightEvent(), ImplCallHighlight(), PopupMenu::ImplExecute(), ImplSelect(), PopupMenu::PrepareRun(), Select(), and PopupMenu::SetSelectedEntry().
|
private |
Definition at line 149 of file menu.hxx.
Referenced by ImplCalcSize(), ImplPaint(), MenuFloatingWindow::Paint(), and MenuFloatingWindow::RenderHighlightItem().
|
private |
Definition at line 139 of file menu.hxx.
Referenced by ImplCalcSize(), ImplPaint(), ImplPaintMenuTitle(), and operator=().
|
private |
Definition at line 126 of file menu.hxx.
Referenced by MenuBarWindow::ChangeHighlightItem(), MenuFloatingWindow::ChangeHighlightItem(), CheckItem(), CreateAutoMnemonics(), Deactivate(), dispose(), MenuFloatingWindow::doShutdown(), EnableItem(), GetAccelKey(), GetAccessibleDescription(), GetAccessibleName(), GetActivationKey(), GetHelpCommand(), GetHelpId(), GetItemBits(), GetItemCommand(), GetItemCount(), GetItemId(), GetItemIdent(), GetItemImage(), GetItemPos(), GetItemText(), GetItemType(), GetPopupMenu(), GetTipHelpText(), GetUserValue(), HasValidEntries(), MenuBarWindow::HighlightItem(), PopupMenu::ImplCalcHeight(), ImplCalcSize(), PopupMenu::ImplCalcVisEntries(), ImplCallHighlight(), MenuBarWindow::ImplCreatePopup(), ImplCurrentlyHiddenOnGUI(), MenuBarWindow::ImplFindEntry(), ImplGetFirstVisible(), ImplGetHelpText(), MenuBarWindow::ImplGetItemRect(), MenuFloatingWindow::ImplGetItemRect(), ImplGetNextVisible(), ImplGetVisibleItemCount(), MenuFloatingWindow::ImplHighlightItem(), ImplIsSelectable(), ImplIsVisible(), ImplPaint(), InsertItem(), InsertSeparator(), MenuFloatingWindow::InvalidateItem(), IsItemChecked(), IsItemEnabled(), MenuFloatingWindow::MouseMove(), NbcInsertItem(), PopupMenu::PrepareRun(), RemoveDisabledEntries(), RemoveItem(), MenuFloatingWindow::RenderHighlightItem(), PopupMenu::Run(), SetAccelKey(), SetAccessibleDescription(), SetAccessibleName(), SetHelpCommand(), SetHelpId(), SetHelpText(), SetItemBits(), SetItemCommand(), SetItemImage(), SetItemText(), SetPopupMenu(), SetTipHelpText(), SetUserValue(), and ShowItem().
Definition at line 127 of file menu.hxx.
Referenced by MenuFloatingWindow::ChangeHighlightItem(), MenuFloatingWindow::CreateAccessible(), dispose(), MenuFloatingWindow::doShutdown(), MenuFloatingWindow::EndExecute(), GetAccessible(), HandleMenuActivateEvent(), HandleMenuCommandEvent(), HandleMenuDeActivateEvent(), MenuBar::HandleMenuHighlightEvent(), IMPL_LINK_NOARG(), MenuBar::ImplCreate(), ImplGetStartMenu(), MenuFloatingWindow::KeyInput(), PopupMenu::PrepareRun(), and MenuFloatingWindow::StopExecute().
|
private |
Definition at line 128 of file menu.hxx.
Referenced by dispose(), PopupMenu::FinishRun(), MenuBar::getMenuBarWindow(), HighlightItem(), ImplCalcSize(), MenuBar::ImplCreate(), MenuBar::ImplDestroy(), ImplFillLayoutData(), ImplPaint(), IsHighlighted(), IsMenuVisible(), MenuBarWindow::KillActivePopup(), MenuFloatingWindow::KillActivePopup(), MenuBar::MenuBarKeyInput(), PopupMenu::PrepareRun(), PopupMenu::Run(), MenuBar::SelectItem(), and SystemWindow::SetMenuBar().
|
private |
Definition at line 145 of file menu.hxx.
Referenced by MenuFloatingWindow::ChangeHighlightItem(), MenuFloatingWindow::EndExecute(), HandleMenuCommandEvent(), MenuBar::HandleMenuHighlightEvent(), ImplCallHighlight(), PopupMenu::PrepareRun(), Select(), and PopupMenu::SetSelectedEntry().