LibreOffice Module sc (master) 1
|
This class implements a popup window for the auto filter dropdown. More...
#include <checklistmenu.hxx>
Classes | |
class | Action |
Action to perform when an event takes place. More... | |
struct | Config |
Configuration options for this popup window. More... | |
struct | ExtendedData |
Extended data that the client code may need to store. More... | |
struct | MenuItemData |
struct | ResultEntry |
struct | SubMenuItemData |
Public Types | |
typedef std::set< ResultEntry > | ResultType |
Public Member Functions | |
ScCheckListMenuControl (weld::Widget *pParent, ScViewData &rViewData, bool bTreeMode, int nWidth, bool bIsMultiField=false) | |
~ScCheckListMenuControl () | |
void | addMenuItem (const OUString &rText, Action *pAction) |
void | addSeparator () |
ScListSubMenuControl * | addSubMenuItem (const OUString &rText, bool bEnabled, bool bColorMenu) |
void | selectMenuItem (size_t nPos, bool bSubMenuTimer) |
void | queueLaunchSubMenu (size_t nPos, ScListSubMenuControl *pMenu) |
void | setMemberSize (size_t n) |
void | addDateMember (const OUString &rName, double nVal, bool bVisible, bool bHiddenByOtherFilter) |
void | addMember (const OUString &rName, const double nVal, bool bVisible, bool bHiddenByOtherFilter, bool bValue=false) |
void | clearMembers () |
size_t | initMembers (int nMaxMemberWidth=-1) |
void | setConfig (const Config &rConfig) |
bool | isAllSelected () const |
void | getResult (ResultType &rResult) |
void | launch (weld::Widget *pWidget, const tools::Rectangle &rRect) |
void | close (bool bOK) |
void | StartPopupMode (weld::Widget *pParent, const tools::Rectangle &rRect) |
void | EndPopupMode () |
size_t | getSubMenuPos (const ScListSubMenuControl *pSubMenu) |
void | setSubMenuFocused (const ScListSubMenuControl *pSubMenu) |
void | queueCloseSubMenu () |
void | clearSelectedMenuItem () |
void | setExtendedData (std::unique_ptr< ExtendedData > p) |
Set auxiliary data that the client code might need. More... | |
ExtendedData * | getExtendedData () |
Get the store auxiliary data, or NULL if no such data is stored. More... | |
ScViewData & | GetViewData () const |
void | GrabFocus () |
void | setOKAction (Action *p) |
void | setPopupEndAction (Action *p) |
void | setFieldChangedAction (Action *p) |
int | GetTextWidth (const OUString &rsName) const |
int | IncreaseWindowWidthToFitText (int nMaxTextWidth) |
void | terminateAllPopupMenus () |
Dismiss all visible popup menus and set focus back to the application window. More... | |
void | endSubMenu (ScListSubMenuControl &rSubMenu) |
void | addFields (const std::vector< OUString > &aFields) |
tools::Long | getField () |
Static Public Attributes | |
static constexpr size_t | MENU_NOT_SELECTED = 999 |
Private Member Functions | |
void | prepWindow () |
Calculate the appropriate window size based on the menu items. More... | |
void | setAllMemberState (bool bSet) |
void | selectCurrentMemberOnly (bool bSet) |
void | updateMemberParents (const weld::TreeIter *pLeaf, size_t nIdx) |
std::unique_ptr< weld::TreeIter > | ShowCheckEntry (const OUString &sName, ScCheckListMember &rMember, bool bShow=true, bool bCheck=true) |
void | CheckEntry (std::u16string_view sName, const weld::TreeIter *pParent, bool bCheck) |
void | CheckEntry (const weld::TreeIter &rEntry, bool bCheck) |
void | GetRecursiveChecked (const weld::TreeIter *pEntry, std::unordered_set< OUString > &vOut, OUString &rLabel) |
std::unordered_set< OUString > | GetAllChecked () |
bool | IsChecked (std::u16string_view sName, const weld::TreeIter *pParent) |
int | GetCheckedEntryCount () const |
void | CheckAllChildren (const weld::TreeIter &rEntry, bool bCheck) |
void | setSelectedMenuItem (size_t nPos) |
std::unique_ptr< weld::TreeIter > | FindEntry (const weld::TreeIter *pParent, std::u16string_view sNode) |
void | executeMenuItem (size_t nPos) |
tools::Rectangle | GetSubMenuParentRect () |
Get the area of the active row. More... | |
void | handleMenuTimeout (const SubMenuItemData *pTimer) |
void | launchSubMenu () |
void | CreateDropDown () |
DECL_LINK (ButtonHdl, weld::Button &, void) | |
DECL_LINK (TriStateHdl, weld::Toggleable &, void) | |
void | Check (const weld::TreeIter *pIter) |
DECL_LINK (CheckHdl, const weld::TreeView::iter_col &, void) | |
DECL_LINK (PopupModeEndHdl, weld::Popover &, void) | |
DECL_LINK (SearchEditTimeoutHdl, Timer *, void) | |
DECL_LINK (ComboChangedHdl, weld::ComboBox &, void) | |
DECL_LINK (EdModifyHdl, weld::Entry &, void) | |
DECL_LINK (EdActivateHdl, weld::Entry &, bool) | |
DECL_LINK (RowActivatedHdl, weld::TreeView &rMEvt, bool) | |
DECL_LINK (SelectHdl, weld::TreeView &, void) | |
DECL_LINK (TreeSizeAllocHdl, const Size &, void) | |
DECL_LINK (KeyInputHdl, const KeyEvent &, bool) | |
DECL_LINK (MenuKeyInputHdl, const KeyEvent &, bool) | |
DECL_LINK (MouseEnterHdl, const MouseEvent &, bool) | |
DECL_LINK (PostPopdownHdl, void *, void) | |
void | SetDropdownPos () |
DECL_LINK (SetDropdownPosHdl, void *, void) | |
DECL_LINK (CommandHdl, const CommandEvent &, bool) | |
void | ResizeToRequest () |
void | DropPendingEvents () |
This class implements a popup window for the auto filter dropdown.
Definition at line 56 of file checklistmenu.hxx.
Definition at line 95 of file checklistmenu.hxx.
ScCheckListMenuControl::ScCheckListMenuControl | ( | weld::Widget * | pParent, |
ScViewData & | rViewData, | ||
bool | bTreeMode, | ||
int | nWidth, | ||
bool | bIsMultiField = false |
||
) |
Definition at line 499 of file checklistmenu.cxx.
References weld::Check, CreateDropDown(), EDIT_UPDATEDATA_TIMEOUT, LINK, maSearchEditTimer, mbHasDates, mbIsMultiField, mnCheckListVisibleRows, mnCheckWidthReq, mpChecks, mxBox, mxBtnCancel, mxBtnOk, mxBtnSelectSingle, mxBtnUnselectSingle, mxButtonBox, mxChkToggleAll, mxContainer, mxContainer, mxEdSearch, mxFieldsCombo, mxFieldsComboLabel, mxListChecks, mxMenu, mxNonMenu, mxTreeChecks, nBorderWidth, Timer::SetInvokeHandler(), Timer::SetTimeout(), and TRISTATE_INDET.
ScCheckListMenuControl::~ScCheckListMenuControl | ( | ) |
Definition at line 653 of file checklistmenu.cxx.
References DropPendingEvents(), EndPopupMode(), maMenuItems, maSearchEditTimer, and Task::Stop().
void ScCheckListMenuControl::addDateMember | ( | const OUString & | rName, |
double | nVal, | ||
bool | bVisible, | ||
bool | bHiddenByOtherFilter | ||
) |
Definition at line 1013 of file checklistmenu.cxx.
References Date::AddDays(), bVisible, ScCheckListMember::DAY, FindEntry(), weld::Widget::freeze(), ScGlobal::GetCalendar(), Date::GetDay(), ScViewData::GetDocument(), ScDocument::GetFormatTable(), Date::GetMonth(), CalendarWrapper::getMonths(), SvNumberFormatter::GetNullDate(), Date::GetYear(), weld::TreeView::insert(), ScCheckListMember::maDateParts, weld::TreeView::make_iterator(), maMembers, ScCheckListMember::maName, ScCheckListMember::maRealName, maYearMonthMap, ScCheckListMember::mbDate, ScCheckListMember::mbHiddenByOtherFilter, ScCheckListMember::mbLeaf, ScCheckListMember::mbVisible, ScCheckListMember::meDatePartType, ScCheckListMember::MONTH, mpChecks, mrViewData, ScCheckListMember::mxParent, weld::TreeView::set_sensitive(), weld::TreeView::set_text(), weld::TreeView::set_toggle(), weld::Widget::thaw(), TRISTATE_FALSE, and ScCheckListMember::YEAR.
void ScCheckListMenuControl::addFields | ( | const std::vector< OUString > & | aFields | ) |
Definition at line 376 of file checklistmenu.cxx.
References mbIsMultiField, and mxFieldsCombo.
void ScCheckListMenuControl::addMember | ( | const OUString & | rName, |
const double | nVal, | ||
bool | bVisible, | ||
bool | bHiddenByOtherFilter, | ||
bool | bValue = false |
||
) |
Definition at line 1107 of file checklistmenu.cxx.
References bVisible, maMembers, ScCheckListMember::maName, ScCheckListMember::maRealName, ScCheckListMember::mbDate, ScCheckListMember::mbHiddenByOtherFilter, ScCheckListMember::mbLeaf, ScCheckListMember::mbValue, ScCheckListMember::mbVisible, ScCheckListMember::mnValue, ScCheckListMember::mxParent, and o3tl::trim().
void ScCheckListMenuControl::addMenuItem | ( | const OUString & | rText, |
Action * | pAction | ||
) |
Definition at line 121 of file checklistmenu.cxx.
References maMenuItems, ScCheckListMenuControl::MenuItemData::mbEnabled, ScCheckListMenuControl::MenuItemData::mxAction, and mxMenu.
void ScCheckListMenuControl::addSeparator | ( | ) |
Definition at line 133 of file checklistmenu.cxx.
References maMenuItems, and mxMenu.
ScListSubMenuControl * ScCheckListMenuControl::addSubMenuItem | ( | const OUString & | rText, |
bool | bEnabled, | ||
bool | bColorMenu | ||
) |
Definition at line 190 of file checklistmenu.cxx.
References maMenuItems, ScCheckListMenuControl::MenuItemData::mbEnabled, mxDropDown, mxMenu, and ScCheckListMenuControl::MenuItemData::mxSubMenuWin.
|
private |
Definition at line 942 of file checklistmenu.cxx.
References CheckEntry(), weld::TreeView::get_toggle(), GetCheckedEntryCount(), maConfig, maMembers, ScCheckListMenuControl::Config::mbAllowEmptySet, mePrevToggleAllState, mpChecks, mxBtnOk, mxChkToggleAll, TRISTATE_FALSE, TRISTATE_INDET, and TRISTATE_TRUE.
|
private |
Definition at line 1211 of file checklistmenu.cxx.
References CheckAllChildren(), weld::TreeView::iter_children(), weld::TreeView::iter_next_sibling(), weld::TreeView::make_iterator(), mpChecks, weld::TreeView::set_toggle(), TRISTATE_FALSE, and TRISTATE_TRUE.
Referenced by CheckAllChildren(), and CheckEntry().
|
private |
Definition at line 1223 of file checklistmenu.cxx.
References CheckAllChildren(), weld::TreeView::get_iter_depth(), weld::TreeView::get_toggle(), weld::TreeView::iter_children(), weld::TreeView::iter_next_sibling(), weld::TreeView::iter_parent(), weld::TreeView::make_iterator(), mpChecks, weld::TreeView::set_toggle(), TRISTATE_FALSE, and TRISTATE_TRUE.
|
private |
Definition at line 1203 of file checklistmenu.cxx.
References CheckEntry(), FindEntry(), and sName.
Referenced by Check(), CheckEntry(), initMembers(), and ShowCheckEntry().
void ScCheckListMenuControl::clearMembers | ( | ) |
Definition at line 1123 of file checklistmenu.cxx.
References weld::TreeView::clear(), weld::Widget::freeze(), maMembers, mpChecks, and weld::Widget::thaw().
void ScCheckListMenuControl::clearSelectedMenuItem | ( | ) |
Definition at line 426 of file checklistmenu.cxx.
References MENU_NOT_SELECTED, and selectMenuItem().
void ScCheckListMenuControl::close | ( | bool | bOK | ) |
Definition at line 1528 of file checklistmenu.cxx.
References EndPopupMode(), and mxOKAction.
|
private |
Definition at line 170 of file checklistmenu.cxx.
References DecorationView::DrawSymbol(), VclPtr< class reference_type >::get(), StyleSettings::GetDarkShadowColor(), StyleSettings::GetLightColor(), Application::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), Color::IsDark(), mxDropDown, and mxMenu.
Referenced by ScCheckListMenuControl().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 639 of file checklistmenu.cxx.
References mnAsyncPostPopdownId, mnAsyncSetDropdownPosId, and Application::RemoveUserEvent().
Referenced by ~ScCheckListMenuControl().
void ScCheckListMenuControl::EndPopupMode | ( | ) |
Definition at line 453 of file checklistmenu.cxx.
References mbIsPoppedUp, and mxPopover.
Referenced by close(), terminateAllPopupMenus(), and ~ScCheckListMenuControl().
void ScCheckListMenuControl::endSubMenu | ( | ScListSubMenuControl & | rSubMenu | ) |
Definition at line 359 of file checklistmenu.cxx.
References ScListSubMenuControl::EndPopupMode(), getSubMenuPos(), LINK, maOpenTimer, MENU_NOT_SELECTED, mnAsyncPostPopdownId, mnSelectedMenu, mxMenu, Application::PostUserEvent(), and ScCheckListMenuControl::SubMenuItemData::reset().
|
private |
Definition at line 204 of file checklistmenu.cxx.
References launchSubMenu(), maMenuItems, maOpenTimer, ScCheckListMenuControl::MenuItemData::mbEnabled, ScCheckListMenuControl::SubMenuItemData::mnMenuPos, ScCheckListMenuControl::SubMenuItemData::mpSubMenu, ScCheckListMenuControl::MenuItemData::mxSubMenuWin, nPos, and terminateAllPopupMenus().
Referenced by IMPL_LINK(), and IMPL_LINK_NOARG().
|
private |
Definition at line 1132 of file checklistmenu.cxx.
References weld::TreeView::get_iter_first(), weld::TreeView::get_text(), weld::TreeView::iter_children(), weld::TreeView::iter_next_sibling(), weld::TreeView::make_iterator(), and mpChecks.
Referenced by addDateMember(), CheckEntry(), initMembers(), IsChecked(), ShowCheckEntry(), and updateMemberParents().
|
private |
Definition at line 1179 of file checklistmenu.cxx.
References aLabel, weld::TreeView::get_iter_first(), GetRecursiveChecked(), weld::TreeView::iter_next_sibling(), weld::TreeView::make_iterator(), and mpChecks.
Referenced by getResult().
|
private |
Definition at line 1325 of file checklistmenu.cxx.
References weld::TreeView::all_foreach(), weld::TreeView::get_toggle(), mpChecks, and TRISTATE_TRUE.
Referenced by Check(), launch(), and setAllMemberState().
ScCheckListMenuControl::ExtendedData * ScCheckListMenuControl::getExtendedData | ( | ) |
Get the store auxiliary data, or NULL if no such data is stored.
Definition at line 1540 of file checklistmenu.cxx.
References mxExtendedData.
Referenced by ScListSubMenuControl::getExtendedData().
tools::Long ScCheckListMenuControl::getField | ( | ) |
Definition at line 389 of file checklistmenu.cxx.
References mbIsMultiField, and mxFieldsCombo.
|
private |
Definition at line 1145 of file checklistmenu.cxx.
References aLabel, weld::TreeView::get_text(), weld::TreeView::get_toggle(), GetRecursiveChecked(), weld::TreeView::iter_children(), weld::TreeView::iter_has_child(), weld::TreeView::iter_next_sibling(), weld::TreeView::make_iterator(), mpChecks, and TRISTATE_TRUE.
Referenced by GetAllChecked(), and GetRecursiveChecked().
void ScCheckListMenuControl::getResult | ( | ResultType & | rResult | ) |
Definition at line 1453 of file checklistmenu.cxx.
References aLabel, ScCheckListMenuControl::ResultEntry::aName, ScCheckListMenuControl::ResultEntry::bDate, ScCheckListMenuControl::ResultEntry::bValid, ScCheckListMenuControl::ResultEntry::bValue, weld::TreeView::get_text(), GetAllChecked(), i, weld::TreeView::iter_parent(), weld::TreeView::make_iterator(), maMembers, maName, mpChecks, mxParent, n, ScCheckListMenuControl::ResultEntry::nValue, and ScResId().
|
private |
Get the area of the active row.
Suitable as the parent rectangle argument for Executing a popup
Definition at line 322 of file checklistmenu.cxx.
References mxMenu, and mxScratchIter.
Referenced by launchSubMenu().
size_t ScCheckListMenuControl::getSubMenuPos | ( | const ScListSubMenuControl * | pSubMenu | ) |
Definition at line 431 of file checklistmenu.cxx.
References i, maMenuItems, MENU_NOT_SELECTED, and n.
Referenced by endSubMenu(), and setSubMenuFocused().
int ScCheckListMenuControl::GetTextWidth | ( | const OUString & | rsName | ) | const |
Definition at line 1570 of file checklistmenu.cxx.
References mxDropDown.
|
inline |
Definition at line 170 of file checklistmenu.hxx.
References mrViewData.
Referenced by ScListSubMenuControl::GetViewData().
void ScCheckListMenuControl::GrabFocus | ( | ) |
Definition at line 628 of file checklistmenu.cxx.
References mxEdSearch, and mxMenu.
Referenced by StartPopupMode().
|
private |
Definition at line 239 of file checklistmenu.cxx.
References ScListSubMenuControl::EndPopupMode(), launchSubMenu(), LINK, maCloseTimer, maOpenTimer, ScCheckListMenuControl::SubMenuItemData::maTimer, mnAsyncPostPopdownId, ScCheckListMenuControl::SubMenuItemData::mpSubMenu, Application::PostUserEvent(), and Task::Stop().
Definition at line 1575 of file checklistmenu.cxx.
References weld::TreeView::get_height_rows(), mnCheckWidthReq, mpChecks, nBorder, nBorderWidth, nCheckListVisibleRows, and weld::Widget::set_size_request().
size_t ScCheckListMenuControl::initMembers | ( | int | nMaxMemberWidth = -1 | ) |
Definition at line 1360 of file checklistmenu.cxx.
References weld::TreeView::append(), weld::TreeView::bulk_insert_for_each(), CheckEntry(), weld::TreeView::expand_row(), FindEntry(), weld::Widget::freeze(), i, IsChecked(), weld::TreeView::make_iterator(), maMembers, maName, mbHasDates, mbVisible, mePrevToggleAllState, mnCheckWidthReq, mpChecks, mxChkToggleAll, mxParent, n, weld::TreeView::n_children(), weld::TreeView::set_cursor(), weld::Widget::thaw(), TRISTATE_FALSE, TRISTATE_INDET, and TRISTATE_TRUE.
bool ScCheckListMenuControl::isAllSelected | ( | ) | const |
Definition at line 1448 of file checklistmenu.cxx.
References mxChkToggleAll, and TRISTATE_TRUE.
|
private |
Definition at line 1197 of file checklistmenu.cxx.
References FindEntry(), weld::TreeView::get_toggle(), mpChecks, sName, and TRISTATE_TRUE.
Referenced by initMembers().
void ScCheckListMenuControl::launch | ( | weld::Widget * | pWidget, |
const tools::Rectangle & | rRect | ||
) |
Definition at line 1493 of file checklistmenu.cxx.
References tools::Rectangle::AdjustLeft(), GetCheckedEntryCount(), tools::Rectangle::GetWidth(), comphelper::LibreOfficeKit::isActive(), tools::Rectangle::Left(), maConfig, ScCheckListMenuControl::Config::mbAllowEmptySet, ScCheckListMenuControl::Config::mbRTL, mnWndWidth, tools::Rectangle::Move(), mxBtnOk, prepWindow(), tools::Rectangle::SetLeft(), and StartPopupMode().
|
private |
Definition at line 329 of file checklistmenu.cxx.
References GetSubMenuParentRect(), ScListSubMenuControl::GrabFocus(), maOpenTimer, ScCheckListMenuControl::SubMenuItemData::mpSubMenu, mxMenu, mxScratchIter, and ScListSubMenuControl::StartPopupMode().
Referenced by executeMenuItem(), and handleMenuTimeout().
|
private |
Calculate the appropriate window size based on the menu items.
Definition at line 662 of file checklistmenu.cxx.
References MENU_NOT_SELECTED, mnSelectedMenu, mnWndWidth, mxContainer, mxMenu, and nBorderWidth.
Referenced by launch().
void ScCheckListMenuControl::queueCloseSubMenu | ( | ) |
Definition at line 296 of file checklistmenu.cxx.
References ScListSubMenuControl::EndPopupMode(), Timer::Invoke(), comphelper::LibreOfficeKit::isActive(), maCloseTimer, maOpenTimer, ScCheckListMenuControl::SubMenuItemData::maTimer, MENU_NOT_SELECTED, ScCheckListMenuControl::SubMenuItemData::mnMenuPos, ScCheckListMenuControl::SubMenuItemData::mpSubMenu, Timer::Start(), and Task::Stop().
Referenced by queueLaunchSubMenu(), and selectMenuItem().
void ScCheckListMenuControl::queueLaunchSubMenu | ( | size_t | nPos, |
ScListSubMenuControl * | pMenu | ||
) |
Definition at line 268 of file checklistmenu.cxx.
References Timer::Invoke(), comphelper::LibreOfficeKit::isActive(), maCloseTimer, maOpenTimer, ScCheckListMenuControl::SubMenuItemData::maTimer, ScCheckListMenuControl::SubMenuItemData::mnMenuPos, ScCheckListMenuControl::SubMenuItemData::mpSubMenu, nPos, queueCloseSubMenu(), ScCheckListMenuControl::SubMenuItemData::reset(), and Timer::Start().
Referenced by selectMenuItem().
|
private |
Definition at line 720 of file checklistmenu.cxx.
References mnCheckListVisibleRows, mnCheckWidthReq, mxListChecks, mxPopover, and mxTreeChecks.
|
private |
Definition at line 690 of file checklistmenu.cxx.
References weld::TreeView::get_cursor(), weld::TreeView::make_iterator(), mpChecks, weld::TreeView::set_toggle(), setAllMemberState(), TRISTATE_FALSE, and TRISTATE_TRUE.
void ScCheckListMenuControl::selectMenuItem | ( | size_t | nPos, |
bool | bSubMenuTimer | ||
) |
Definition at line 397 of file checklistmenu.cxx.
References maMenuItems, MENU_NOT_SELECTED, mnSelectedMenu, mxMenu, nPos, queueCloseSubMenu(), and queueLaunchSubMenu().
Referenced by clearSelectedMenuItem(), IMPL_LINK(), and setSelectedMenuItem().
|
private |
Definition at line 675 of file checklistmenu.cxx.
References weld::TreeView::all_foreach(), weld::TreeView::get_sensitive(), GetCheckedEntryCount(), maConfig, ScCheckListMenuControl::Config::mbAllowEmptySet, mpChecks, mxBtnOk, weld::TreeView::set_toggle(), TRISTATE_FALSE, and TRISTATE_TRUE.
Referenced by selectCurrentMemberOnly().
void ScCheckListMenuControl::setConfig | ( | const Config & | rConfig | ) |
Definition at line 1443 of file checklistmenu.cxx.
References maConfig.
|
private |
Definition at line 154 of file checklistmenu.cxx.
References maAllocatedSize, mxMenu, and Size::Width().
Referenced by IMPL_LINK(), and IMPL_LINK_NOARG().
void ScCheckListMenuControl::setExtendedData | ( | std::unique_ptr< ExtendedData > | p | ) |
Set auxiliary data that the client code might need.
Note that this popup window class manages its life time; no explicit deletion of the instance is needed in the client code.
Definition at line 1535 of file checklistmenu.cxx.
References mxExtendedData, and p.
void ScCheckListMenuControl::setFieldChangedAction | ( | Action * | p | ) |
Definition at line 1555 of file checklistmenu.cxx.
References mxFieldChangedAction, and p.
void ScCheckListMenuControl::setMemberSize | ( | size_t | n | ) |
Definition at line 1008 of file checklistmenu.cxx.
void ScCheckListMenuControl::setOKAction | ( | Action * | p | ) |
Definition at line 1545 of file checklistmenu.cxx.
References mxOKAction, and p.
void ScCheckListMenuControl::setPopupEndAction | ( | Action * | p | ) |
Definition at line 1550 of file checklistmenu.cxx.
References mxPopupEndAction, and p.
|
private |
Definition at line 230 of file checklistmenu.cxx.
References mnSelectedMenu, nPos, and selectMenuItem().
Referenced by IMPL_LINK_NOARG().
void ScCheckListMenuControl::setSubMenuFocused | ( | const ScListSubMenuControl * | pSubMenu | ) |
Definition at line 442 of file checklistmenu.cxx.
References getSubMenuPos(), maCloseTimer, mnSelectedMenu, mxMenu, and ScCheckListMenuControl::SubMenuItemData::reset().
Referenced by ScListSubMenuControl::StartPopupMode().
|
private |
Definition at line 1257 of file checklistmenu.cxx.
References weld::TreeView::append(), CheckEntry(), FindEntry(), weld::TreeView::insert(), weld::TreeView::iter_has_child(), weld::TreeView::iter_parent(), ScCheckListMember::maDateParts, weld::TreeView::make_iterator(), ScCheckListMember::maName, ScCheckListMember::mbDate, mpChecks, ScCheckListMember::mxParent, weld::TreeView::remove(), weld::TreeView::set_text(), weld::TreeView::set_toggle(), sName, TRISTATE_FALSE, and TRISTATE_TRUE.
void ScCheckListMenuControl::StartPopupMode | ( | weld::Widget * | pParent, |
const tools::Rectangle & | rRect | ||
) |
Definition at line 463 of file checklistmenu.cxx.
References GrabFocus(), LINK, mbIsPoppedUp, and mxPopover.
Referenced by launch().
void ScCheckListMenuControl::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 471 of file checklistmenu.cxx.
References EndPopupMode().
Referenced by executeMenuItem(), and ScListSubMenuControl::terminateAllPopupMenus().
|
private |
Definition at line 965 of file checklistmenu.cxx.
References ScCheckListMember::DAY, FindEntry(), weld::TreeView::iter_parent(), weld::TreeView::make_iterator(), maMembers, maYearMonthMap, and mpChecks.
|
private |
Definition at line 302 of file checklistmenu.hxx.
Referenced by IMPL_LINK(), and SetDropdownPos().
|
private |
Definition at line 334 of file checklistmenu.hxx.
Referenced by handleMenuTimeout(), queueCloseSubMenu(), queueLaunchSubMenu(), and setSubMenuFocused().
|
private |
Definition at line 301 of file checklistmenu.hxx.
Referenced by Check(), launch(), setAllMemberState(), and setConfig().
|
private |
Definition at line 292 of file checklistmenu.hxx.
Referenced by addDateMember(), addMember(), Check(), clearMembers(), getResult(), initMembers(), setMemberSize(), and updateMemberParents().
|
private |
Definition at line 193 of file checklistmenu.hxx.
Referenced by addMenuItem(), addSeparator(), addSubMenuItem(), executeMenuItem(), getSubMenuPos(), IMPL_LINK(), IMPL_LINK_NOARG(), selectMenuItem(), and ~ScCheckListMenuControl().
|
private |
Definition at line 333 of file checklistmenu.hxx.
Referenced by endSubMenu(), executeMenuItem(), handleMenuTimeout(), launchSubMenu(), queueCloseSubMenu(), and queueLaunchSubMenu().
|
private |
Definition at line 336 of file checklistmenu.hxx.
Referenced by ScCheckListMenuControl(), and ~ScCheckListMenuControl().
|
private |
Definition at line 294 of file checklistmenu.hxx.
Referenced by addDateMember(), and updateMemberParents().
|
private |
Definition at line 315 of file checklistmenu.hxx.
Referenced by initMembers(), and ScCheckListMenuControl().
|
private |
Definition at line 337 of file checklistmenu.hxx.
Referenced by addFields(), getField(), and ScCheckListMenuControl().
|
private |
Definition at line 316 of file checklistmenu.hxx.
Referenced by EndPopupMode(), and StartPopupMode().
|
staticconstexpr |
Definition at line 59 of file checklistmenu.hxx.
Referenced by clearSelectedMenuItem(), endSubMenu(), getSubMenuPos(), IMPL_LINK(), IMPL_LINK_NOARG(), prepWindow(), queueCloseSubMenu(), ScCheckListMenuControl::SubMenuItemData::reset(), and selectMenuItem().
|
private |
Definition at line 306 of file checklistmenu.hxx.
Referenced by Check(), and initMembers().
|
private |
Definition at line 312 of file checklistmenu.hxx.
Referenced by DropPendingEvents(), endSubMenu(), handleMenuTimeout(), and IMPL_LINK_NOARG().
|
private |
Definition at line 313 of file checklistmenu.hxx.
Referenced by DropPendingEvents(), IMPL_LINK(), and IMPL_LINK_NOARG().
|
private |
whole window width.
Definition at line 305 of file checklistmenu.hxx.
Referenced by ResizeToRequest(), and ScCheckListMenuControl().
|
private |
Definition at line 303 of file checklistmenu.hxx.
Referenced by IncreaseWindowWidthToFitText(), initMembers(), ResizeToRequest(), and ScCheckListMenuControl().
|
private |
Definition at line 308 of file checklistmenu.hxx.
Referenced by endSubMenu(), IMPL_LINK(), IMPL_LINK_NOARG(), prepWindow(), selectMenuItem(), setSelectedMenuItem(), and setSubMenuFocused().
|
private |
matching width request for mxChecks
Definition at line 304 of file checklistmenu.hxx.
Referenced by launch(), and prepWindow().
|
private |
Definition at line 279 of file checklistmenu.hxx.
Referenced by addDateMember(), Check(), CheckAllChildren(), CheckEntry(), clearMembers(), FindEntry(), GetAllChecked(), GetCheckedEntryCount(), GetRecursiveChecked(), getResult(), IncreaseWindowWidthToFitText(), initMembers(), IsChecked(), ScCheckListMenuControl(), selectCurrentMemberOnly(), setAllMemberState(), ShowCheckEntry(), and updateMemberParents().
|
private |
Definition at line 310 of file checklistmenu.hxx.
Referenced by addDateMember(), and GetViewData().
|
private |
Definition at line 276 of file checklistmenu.hxx.
Referenced by ScCheckListMenuControl().
|
private |
Definition at line 287 of file checklistmenu.hxx.
Referenced by ScCheckListMenuControl().
|
private |
Definition at line 286 of file checklistmenu.hxx.
Referenced by Check(), launch(), ScCheckListMenuControl(), and setAllMemberState().
|
private |
Definition at line 282 of file checklistmenu.hxx.
Referenced by ScCheckListMenuControl().
|
private |
Definition at line 283 of file checklistmenu.hxx.
Referenced by ScCheckListMenuControl().
|
private |
Definition at line 267 of file checklistmenu.hxx.
|
private |
Definition at line 285 of file checklistmenu.hxx.
Referenced by ScCheckListMenuControl().
|
private |
Definition at line 281 of file checklistmenu.hxx.
Referenced by Check(), initMembers(), isAllSelected(), and ScCheckListMenuControl().
|
private |
Definition at line 269 of file checklistmenu.hxx.
Referenced by prepWindow(), and ScCheckListMenuControl().
|
private |
Definition at line 288 of file checklistmenu.hxx.
|
private |
Definition at line 290 of file checklistmenu.hxx.
Referenced by addSubMenuItem(), CreateDropDown(), and GetTextWidth().
|
private |
Definition at line 275 of file checklistmenu.hxx.
Referenced by GrabFocus(), and ScCheckListMenuControl().
|
private |
Definition at line 296 of file checklistmenu.hxx.
Referenced by getExtendedData(), and setExtendedData().
|
private |
Definition at line 299 of file checklistmenu.hxx.
Referenced by setFieldChangedAction().
|
private |
Definition at line 274 of file checklistmenu.hxx.
Referenced by addFields(), getField(), and ScCheckListMenuControl().
|
private |
Definition at line 273 of file checklistmenu.hxx.
Referenced by ScCheckListMenuControl().
|
private |
Definition at line 277 of file checklistmenu.hxx.
Referenced by ResizeToRequest(), and ScCheckListMenuControl().
|
private |
Definition at line 270 of file checklistmenu.hxx.
Referenced by addMenuItem(), addSeparator(), addSubMenuItem(), CreateDropDown(), endSubMenu(), GetSubMenuParentRect(), GrabFocus(), IMPL_LINK_NOARG(), launchSubMenu(), prepWindow(), ScCheckListMenuControl(), selectMenuItem(), SetDropdownPos(), and setSubMenuFocused().
|
private |
Definition at line 272 of file checklistmenu.hxx.
Referenced by ScCheckListMenuControl().
|
private |
Definition at line 297 of file checklistmenu.hxx.
Referenced by close(), and setOKAction().
|
private |
Definition at line 268 of file checklistmenu.hxx.
Referenced by EndPopupMode(), ResizeToRequest(), and StartPopupMode().
|
private |
Definition at line 298 of file checklistmenu.hxx.
Referenced by setPopupEndAction().
|
private |
Definition at line 271 of file checklistmenu.hxx.
Referenced by GetSubMenuParentRect(), IMPL_LINK_NOARG(), and launchSubMenu().
|
private |
Definition at line 278 of file checklistmenu.hxx.
Referenced by ResizeToRequest(), and ScCheckListMenuControl().