#include <menu.hxx>


Public Member Functions | |
| MenuBar () | |
| MenuBar (const ResId &rResId) | |
| MenuBar (const MenuBar &rMenu) | |
| ~MenuBar () | |
| MenuBar & | operator= (const MenuBar &rMenu) |
| void | ShowCloser (BOOL bShow=TRUE) |
| BOOL | HasCloser () const |
| void | ShowFloatButton (BOOL bShow=TRUE) |
| BOOL | HasFloatButton () const |
| void | ShowHideButton (BOOL bShow=TRUE) |
| BOOL | HasHideButton () const |
| void | ShowButtons (BOOL bClose, BOOL bFloat, BOOL bHide) |
| void | SelectEntry (USHORT nId) |
| BOOL | HandleMenuActivateEvent (Menu *pMenu) const |
| BOOL | HandleMenuDeActivateEvent (Menu *pMenu) const |
| BOOL | HandleMenuHighlightEvent (Menu *pMenu, USHORT nEventId) const |
| BOOL | HandleMenuCommandEvent (Menu *pMenu, USHORT nEventId) const |
| BOOL | HandleMenuButtonEvent (Menu *pMenu, USHORT nEventId) const |
| void | SetCloserHdl (const Link &rLink) |
| const Link & | GetCloserHdl () const |
| void | SetFloatButtonClickHdl (const Link &rLink) |
| const Link & | GetFloatButtonClickHdl () const |
| void | SetHideButtonClickHdl (const Link &rLink) |
| const Link & | GetHideButtonClickHdl () const |
| void | SetDisplayable (BOOL bDisplayable) |
| BOOL | IsDisplayable () const |
| USHORT | AddMenuBarButton (const Image &, const Link &, USHORT nPos=0) |
| USHORT | AddMenuBarButton (const Image &, const Link &, const String &, USHORT nPos=0) |
| void | SetMenuBarButtonHighlightHdl (USHORT nId, const Link &) |
| Rectangle | GetMenuBarButtonRectPixel (USHORT nId) |
| void | RemoveMenuBarButton (USHORT nId) |
Private Member Functions | |
| SAL_DLLPRIVATE BOOL | ImplHandleKeyEvent (const KeyEvent &rKEvent, BOOL bFromMenu=TRUE) |
Static Private Member Functions | |
| static SAL_DLLPRIVATE Window * | ImplCreate (Window *pParent, Window *pWindow, MenuBar *pMenu) |
| static SAL_DLLPRIVATE void | ImplDestroy (MenuBar *pMenu, BOOL bDelete) |
Private Attributes | |
| Link | maCloserHdl |
| Link | maFloatHdl |
| Link | maHideHdl |
| BOOL | mbCloserVisible |
| BOOL | mbFloatBtnVisible |
| BOOL | mbHideBtnVisible |
| BOOL | mbDisplayable |
Friends | |
| class | Application |
| class | Menu |
| class | MenuBarWindow |
| class | MenuFloatingWindow |
| class | SystemWindow |
Classes | |
| struct | MenuBarButtonCallbackArg |
Definition at line 379 of file menu.hxx.
| MenuBar::MenuBar | ( | ) |
Definition at line 3151 of file menu.cxx.
References mbCloserVisible, mbDisplayable, mbFloatBtnVisible, and mbHideBtnVisible.
| MenuBar::MenuBar | ( | const ResId & | rResId | ) |
Definition at line 3169 of file menu.cxx.
References Menu::ImplLoadRes(), mbCloserVisible, mbDisplayable, mbFloatBtnVisible, and mbHideBtnVisible.
| MenuBar::MenuBar | ( | const MenuBar & | rMenu | ) |
Definition at line 3159 of file menu.cxx.
References Menu::bIsMenuBar, mbCloserVisible, mbDisplayable, mbFloatBtnVisible, and mbHideBtnVisible.
| MenuBar::~MenuBar | ( | ) |
| Window * MenuBar::ImplCreate | ( | Window * | pParent, | |
| Window * | pWindow, | |||
| MenuBar * | pMenu | |||
| ) | [static, private] |
Definition at line 3223 of file menu.cxx.
References Menu::ImplCalcSize(), Menu::ImplGetSalMenu(), IsDisplayable(), MenuBarWindow, Window::SetPosSizePixel(), SalMenu::VisibleMenuBar(), and WINDOW_POSSIZE_HEIGHT.
Referenced by SystemWindow::SetMenuBar().
| void MenuBar::ImplDestroy | ( | MenuBar * | pMenu, | |
| BOOL | bDelete | |||
| ) | [static, private] |
Definition at line 3243 of file menu.cxx.
References Menu::ImplGetWindow(), MenuBarWindow::KillActivePopup(), and Menu::pWindow.
Referenced by SystemWindow::SetMenuBar(), and ~MenuBar().
| BOOL MenuBar::ImplHandleKeyEvent | ( | const KeyEvent & | rKEvent, | |
| BOOL | bFromMenu = TRUE | |||
| ) | [private] |
Definition at line 3254 of file menu.cxx.
References Menu::ImplGetSalMenu(), Menu::ImplGetWindow(), IsDisplayable(), Window::IsEnabled(), Window::IsInModalMode(), and Window::IsInputEnabled().
Referenced by SystemWindow::Notify().
| void MenuBar::ShowCloser | ( | BOOL | bShow = TRUE |
) |
Definition at line 3183 of file menu.cxx.
References mbFloatBtnVisible, mbHideBtnVisible, and ShowButtons().
| BOOL MenuBar::HasCloser | ( | ) | const [inline] |
| void MenuBar::ShowFloatButton | ( | BOOL | bShow = TRUE |
) |
Definition at line 3188 of file menu.cxx.
References mbCloserVisible, mbHideBtnVisible, and ShowButtons().
| BOOL MenuBar::HasFloatButton | ( | ) | const [inline] |
| void MenuBar::ShowHideButton | ( | BOOL | bShow = TRUE |
) |
Definition at line 3193 of file menu.cxx.
References mbCloserVisible, mbFloatBtnVisible, and ShowButtons().
| BOOL MenuBar::HasHideButton | ( | ) | const [inline] |
| void MenuBar::ShowButtons | ( | BOOL | bClose, | |
| BOOL | bFloat, | |||
| BOOL | bHide | |||
| ) |
Definition at line 3198 of file menu.cxx.
References Menu::ImplGetWindow(), mbCloserVisible, mbFloatBtnVisible, and mbHideBtnVisible.
Referenced by ShowCloser(), ShowFloatButton(), and ShowHideButton().
| void MenuBar::SelectEntry | ( | USHORT | nId | ) |
Definition at line 3272 of file menu.cxx.
References MenuBarWindow::ChangeHighlightItem(), Menu::GetItemPos(), Window::GrabFocus(), Menu::ImplGetWindow(), ITEMPOS_INVALID, MenuBarWindow::KillActivePopup(), MenuBarWindow::nHighlightedItem, and MenuBarWindow::SetAutoPopup().
| BOOL MenuBar::HandleMenuActivateEvent | ( | Menu * | pMenu | ) | const |
Definition at line 3297 of file menu.cxx.
References Menu::Activate(), Menu::bInCallback, and Menu::pStartedFrom.
Referenced by ImplHandleMenuEvent().
| BOOL MenuBar::HandleMenuDeActivateEvent | ( | Menu * | pMenu | ) | const |
Definition at line 3309 of file menu.cxx.
References Menu::bInCallback, Menu::Deactivate(), and Menu::pStartedFrom.
Referenced by ImplHandleMenuEvent().
| BOOL MenuBar::HandleMenuHighlightEvent | ( | Menu * | pMenu, | |
| USHORT | nEventId | |||
| ) | const |
Definition at line 3321 of file menu.cxx.
References Menu::GetItemPos(), Menu::ImplCallEventListeners(), Menu::ImplCallHighlight(), Menu::ImplFindMenu(), ITEMPOS_INVALID, Menu::mnHighlightedItemPos, Menu::nSelectedId, Menu::pStartedFrom, and VCLEVENT_MENU_DEHIGHLIGHT.
Referenced by ImplHandleMenuEvent().
| BOOL MenuBar::HandleMenuCommandEvent | ( | Menu * | pMenu, | |
| USHORT | nEventId | |||
| ) | const |
Definition at line 3340 of file menu.cxx.
References Menu::ImplFindMenu(), Menu::ImplSelect(), Menu::nSelectedId, and Menu::pStartedFrom.
Referenced by ImplHandleMenuEvent().
| BOOL MenuBar::HandleMenuButtonEvent | ( | Menu * | pMenu, | |
| USHORT | nEventId | |||
| ) | const |
Definition at line 3382 of file menu.cxx.
References Menu::pWindow.
Referenced by ImplHandleMenuEvent().
| void MenuBar::SetFloatButtonClickHdl | ( | const Link & | rLink | ) | [inline] |
| const Link& MenuBar::GetFloatButtonClickHdl | ( | ) | const [inline] |
| void MenuBar::SetHideButtonClickHdl | ( | const Link & | rLink | ) | [inline] |
| const Link& MenuBar::GetHideButtonClickHdl | ( | ) | const [inline] |
| void MenuBar::SetDisplayable | ( | BOOL | bDisplayable | ) |
Definition at line 3212 of file menu.cxx.
References Menu::ImplGetWindow(), MenuBarWindow::ImplLayoutChanged(), and mbDisplayable.
| BOOL MenuBar::IsDisplayable | ( | ) | const [inline] |
| USHORT MenuBar::AddMenuBarButton | ( | const Image & | i_rImage, | |
| const Link & | i_rLink, | |||
| USHORT | nPos = 0 | |||
| ) |
| USHORT MenuBar::AddMenuBarButton | ( | const Image & | i_rImage, | |
| const Link & | i_rLink, | |||
| const String & | i_rToolTip, | |||
| USHORT | nPos = 0 | |||
| ) |
| void MenuBar::SetMenuBarButtonHighlightHdl | ( | USHORT | nId, | |
| const Link & | rLink | |||
| ) |
| Rectangle MenuBar::GetMenuBarButtonRectPixel | ( | USHORT | nId | ) |
| void MenuBar::RemoveMenuBarButton | ( | USHORT | nId | ) |
friend class Application [friend] |
friend class MenuBarWindow [friend] |
friend class MenuFloatingWindow [friend] |
friend class SystemWindow [friend] |
Link MenuBar::maCloserHdl [private] |
Link MenuBar::maFloatHdl [private] |
Link MenuBar::maHideHdl [private] |
BOOL MenuBar::mbCloserVisible [private] |
Definition at line 384 of file menu.hxx.
Referenced by MenuBar(), ShowButtons(), ShowFloatButton(), and ShowHideButton().
BOOL MenuBar::mbFloatBtnVisible [private] |
Definition at line 385 of file menu.hxx.
Referenced by MenuBar(), ShowButtons(), ShowCloser(), and ShowHideButton().
BOOL MenuBar::mbHideBtnVisible [private] |
Definition at line 386 of file menu.hxx.
Referenced by MenuBar(), ShowButtons(), ShowCloser(), and ShowFloatButton().
BOOL MenuBar::mbDisplayable [private] |
1.5.6