LibreOffice Module sc (master) 1
|
#include <checklistmenu.hxx>
Public Member Functions | |
ScListSubMenuControl (weld::Widget *pParent, ScCheckListMenuControl &rParentControl, bool bColorMenu) | |
void | setPopupStartAction (ScCheckListMenuControl::Action *p) |
void | GrabFocus () |
bool | IsVisible () const |
void | StartPopupMode (weld::Widget *pParent, const tools::Rectangle &rRect) |
void | EndPopupMode () |
void | addMenuItem (const OUString &rText, ScCheckListMenuControl::Action *pAction) |
void | addMenuColorItem (const OUString &rText, bool bActive, VirtualDevice &rImage, int nMenu, ScCheckListMenuControl::Action *pAction) |
void | addSeparator () |
void | clearMenuItems () |
void | resizeToFitMenuItems () |
ScViewData & | GetViewData () const |
ScCheckListMenuControl::ExtendedData * | getExtendedData () |
VclPtr< VirtualDevice > | create_virtual_device () const |
void | terminateAllPopupMenus () |
Dismiss all visible popup menus and set focus back to the application window. More... | |
Private Member Functions | |
DECL_LINK (RowActivatedHdl, weld::TreeView &rMEvt, bool) | |
DECL_LINK (ColorSelChangedHdl, weld::TreeView &, void) | |
DECL_LINK (MenuKeyInputHdl, const KeyEvent &, bool) | |
void | SetupMenu (weld::TreeView &rMenu) |
void | executeMenuItem (ScCheckListMenuControl::Action *pAction) |
void | addItem (ScCheckListMenuControl::Action *pAction) |
Private Attributes | |
std::unique_ptr< weld::Builder > | mxBuilder |
std::unique_ptr< weld::Popover > | mxPopover |
std::unique_ptr< weld::Container > | mxContainer |
std::unique_ptr< weld::TreeView > | mxMenu |
std::unique_ptr< weld::TreeView > | mxBackColorMenu |
std::unique_ptr< weld::TreeView > | mxTextColorMenu |
std::unique_ptr< weld::TreeIter > | mxScratchIter |
std::unique_ptr< ScCheckListMenuControl::Action > | mxPopupStartAction |
std::vector< ScCheckListMenuControl::MenuItemData > | maMenuItems |
ScCheckListMenuControl & | mrParentControl |
int | mnBackColorMenuPrefHeight |
int | mnTextColorMenuPrefHeight |
bool | mbColorMenu |
Definition at line 340 of file checklistmenu.hxx.
ScListSubMenuControl::ScListSubMenuControl | ( | weld::Widget * | pParent, |
ScCheckListMenuControl & | rParentControl, | ||
bool | bColorMenu | ||
) |
Definition at line 1588 of file checklistmenu.cxx.
References LINK, mxBackColorMenu, mxContainer, mxMenu, mxTextColorMenu, weld::Radio, and SetupMenu().
|
private |
Definition at line 1676 of file checklistmenu.cxx.
References maMenuItems, ScCheckListMenuControl::MenuItemData::mbEnabled, and ScCheckListMenuControl::MenuItemData::mxAction.
Referenced by addMenuColorItem(), and addMenuItem().
void ScListSubMenuControl::addMenuColorItem | ( | const OUString & | rText, |
bool | bActive, | ||
VirtualDevice & | rImage, | ||
int | nMenu, | ||
ScCheckListMenuControl::Action * | pAction | ||
) |
Definition at line 1690 of file checklistmenu.cxx.
References addItem(), weld::TreeView::insert(), mnBackColorMenuPrefHeight, mnTextColorMenuPrefHeight, mxBackColorMenu, mxScratchIter, mxTextColorMenu, nColorListVisibleRows, weld::TreeView::set_image(), weld::TreeView::set_toggle(), weld::Widget::show(), sId, weld::toId(), TRISTATE_FALSE, and TRISTATE_TRUE.
void ScListSubMenuControl::addMenuItem | ( | const OUString & | rText, |
ScCheckListMenuControl::Action * | pAction | ||
) |
Definition at line 1684 of file checklistmenu.cxx.
References addItem(), mxMenu, and weld::toId().
Referenced by ScGridWindow::DPSetupFieldPopup().
void ScListSubMenuControl::addSeparator | ( | ) |
Definition at line 1718 of file checklistmenu.cxx.
References maMenuItems, and mxMenu.
void ScListSubMenuControl::clearMenuItems | ( | ) |
Definition at line 1726 of file checklistmenu.cxx.
References maMenuItems, mnBackColorMenuPrefHeight, mnTextColorMenuPrefHeight, mxBackColorMenu, mxMenu, and mxTextColorMenu.
|
inline |
Definition at line 363 of file checklistmenu.hxx.
References mxMenu.
|
private |
|
private |
|
private |
void ScListSubMenuControl::EndPopupMode | ( | ) |
Definition at line 1643 of file checklistmenu.cxx.
References mxPopover.
Referenced by ScCheckListMenuControl::endSubMenu(), ScCheckListMenuControl::handleMenuTimeout(), ScCheckListMenuControl::queueCloseSubMenu(), and terminateAllPopupMenus().
|
private |
Definition at line 1810 of file checklistmenu.cxx.
References ScCheckListMenuControl::Action::execute(), and terminateAllPopupMenus().
|
inline |
Definition at line 362 of file checklistmenu.hxx.
References ScCheckListMenuControl::getExtendedData(), and mrParentControl.
|
inline |
Definition at line 361 of file checklistmenu.hxx.
References ScCheckListMenuControl::GetViewData(), and mrParentControl.
void ScListSubMenuControl::GrabFocus | ( | ) |
Definition at line 1648 of file checklistmenu.cxx.
References weld::Widget::grab_focus(), mbColorMenu, mxBackColorMenu, and mxMenu.
Referenced by ScCheckListMenuControl::launchSubMenu().
bool ScListSubMenuControl::IsVisible | ( | ) | const |
Definition at line 1654 of file checklistmenu.cxx.
References mxPopover.
void ScListSubMenuControl::resizeToFitMenuItems | ( | ) |
Definition at line 1659 of file checklistmenu.cxx.
References mbColorMenu, mnBackColorMenuPrefHeight, mnTextColorMenuPrefHeight, mxBackColorMenu, mxMenu, and mxTextColorMenu.
Referenced by ScGridWindow::DPSetupFieldPopup().
void ScListSubMenuControl::setPopupStartAction | ( | ScCheckListMenuControl::Action * | p | ) |
Definition at line 1821 of file checklistmenu.cxx.
References mxPopupStartAction, and p.
|
private |
Definition at line 1623 of file checklistmenu.cxx.
References weld::Widget::connect_key_press(), weld::TreeView::connect_row_activated(), and LINK.
Referenced by ScListSubMenuControl().
void ScListSubMenuControl::StartPopupMode | ( | weld::Widget * | pParent, |
const tools::Rectangle & | rRect | ||
) |
Definition at line 1629 of file checklistmenu.cxx.
References weld::End, mbColorMenu, mrParentControl, mxBackColorMenu, mxMenu, mxPopover, mxPopupStartAction, weld::TreeView::select(), weld::TreeView::set_cursor(), and ScCheckListMenuControl::setSubMenuFocused().
Referenced by ScCheckListMenuControl::launchSubMenu().
void ScListSubMenuControl::terminateAllPopupMenus | ( | ) |
Dismiss all visible popup menus and set focus back to the application window.
This method is called e.g. when a menu action is fired.
Definition at line 1826 of file checklistmenu.cxx.
References EndPopupMode(), mrParentControl, and ScCheckListMenuControl::terminateAllPopupMenus().
Referenced by executeMenuItem().
|
private |
Definition at line 380 of file checklistmenu.hxx.
Referenced by addItem(), addSeparator(), and clearMenuItems().
|
private |
Definition at line 384 of file checklistmenu.hxx.
Referenced by GrabFocus(), resizeToFitMenuItems(), and StartPopupMode().
|
private |
Definition at line 382 of file checklistmenu.hxx.
Referenced by addMenuColorItem(), clearMenuItems(), and resizeToFitMenuItems().
|
private |
Definition at line 383 of file checklistmenu.hxx.
Referenced by addMenuColorItem(), clearMenuItems(), and resizeToFitMenuItems().
|
private |
Definition at line 381 of file checklistmenu.hxx.
Referenced by getExtendedData(), GetViewData(), StartPopupMode(), and terminateAllPopupMenus().
|
private |
Definition at line 376 of file checklistmenu.hxx.
Referenced by addMenuColorItem(), clearMenuItems(), GrabFocus(), resizeToFitMenuItems(), ScListSubMenuControl(), and StartPopupMode().
|
private |
Definition at line 372 of file checklistmenu.hxx.
|
private |
Definition at line 374 of file checklistmenu.hxx.
|
private |
Definition at line 375 of file checklistmenu.hxx.
Referenced by addMenuItem(), addSeparator(), clearMenuItems(), create_virtual_device(), GrabFocus(), resizeToFitMenuItems(), ScListSubMenuControl(), and StartPopupMode().
|
private |
Definition at line 373 of file checklistmenu.hxx.
Referenced by EndPopupMode(), IsVisible(), and StartPopupMode().
|
private |
Definition at line 379 of file checklistmenu.hxx.
Referenced by setPopupStartAction(), and StartPopupMode().
|
private |
Definition at line 378 of file checklistmenu.hxx.
Referenced by addMenuColorItem().
|
private |
Definition at line 377 of file checklistmenu.hxx.
Referenced by addMenuColorItem(), clearMenuItems(), resizeToFitMenuItems(), and ScListSubMenuControl().