LibreOffice Module vcl (master) 1
|
Common ancestor for MenuFloatingWindow and MenuBarWindow. More...
#include <menuwindow.hxx>
Static Protected Member Functions | |
static bool | ImplHandleHelpEvent (vcl::Window *pMenuWindow, Menu const *pMenu, sal_uInt16 nHighlightedItem, const HelpEvent &rHEvt, const tools::Rectangle &rHighlightRect) |
Show the appropriate help tooltip. More... | |
Common ancestor for MenuFloatingWindow and MenuBarWindow.
The menu can be a floating window, or a menu bar. Even though this has 'Window' in the name, it is not derived from the VCL's Window class, as the MenuFloatingWindow's or MenuBarWindow's already are VCL Windows.
TODO: move here stuff that was a mentioned previously when there was no common class for MenuFloatingWindow and MenuBarWindow:
a basic class for both (due to pActivePopup, Timer,...) would be nice, but a container class should have been created then, as they would be derived from different windows In most functions we would have to create exceptions for menubar, popupmenu, hence we made two classes
Definition at line 48 of file menuwindow.hxx.
|
staticprotected |
Show the appropriate help tooltip.
Definition at line 40 of file menuwindow.cxx.
References aCommand, BALLOON, tools::Rectangle::Center(), CONTEXT, MenuItemList::GetDataFromPos(), Application::GetHelp(), Menu::GetHelpId(), Menu::GetHelpText(), Menu::GetItemCommand(), Menu::GetItemList(), HelpEvent::GetMode(), HelpEvent::GetMousePosPixel(), Menu::GetTipHelpText(), ImplChangeTipTimeout(), ITEMPOS_INVALID, HelpEvent::KeyboardActivated(), nId, MenuItemData::nId, OOO_HELP_INDEX, QUICK, Help::ShowBalloon(), Help::ShowQuickHelp(), and Help::Start().
Referenced by MenuBarWindow::RequestHelp(), and MenuFloatingWindow::RequestHelp().