diff options
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/cctrl/checklistmenu.cxx | 10 | ||||
-rw-r--r-- | sc/source/ui/inc/checklistmenu.hxx | 5 |
2 files changed, 0 insertions, 15 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index 7e0c9fc5c03c..83544df61145 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -291,11 +291,6 @@ tools::Rectangle ScCheckListMenuControl::GetSubMenuParentRect() return mxMenu->get_row_area(*mxScratchIter); } -sal_Int32 ScCheckListMenuControl::ExecuteMenu(weld::Menu& rMenu) -{ - return rMenu.popup_at_rect(mxMenu.get(), GetSubMenuParentRect(), weld::Placement::End).toInt32(); -} - void ScCheckListMenuControl::launchSubMenu() { ScListSubMenuControl* pSubMenu = maOpenTimer.mpSubMenu; @@ -343,11 +338,6 @@ void ScCheckListMenuControl::endSubMenu(ScListSubMenuControl& rSubMenu) } } -void ScCheckListMenuControl::resizeToFitMenuItems() -{ - mxMenu->set_size_request(-1, mxMenu->get_preferred_size().Height() + 2); -} - void ScCheckListMenuControl::selectMenuItem(size_t nPos, bool bSubMenuTimer) { mxMenu->select(nPos == MENU_NOT_SELECTED ? -1 : nPos); diff --git a/sc/source/ui/inc/checklistmenu.hxx b/sc/source/ui/inc/checklistmenu.hxx index 961fddceac58..4ba29de52166 100644 --- a/sc/source/ui/inc/checklistmenu.hxx +++ b/sc/source/ui/inc/checklistmenu.hxx @@ -130,7 +130,6 @@ public: void addMenuItem(const OUString& rText, Action* pAction); void addSeparator(); ScListSubMenuControl* addSubMenuItem(const OUString& rText, bool bEnabled, bool bCheckList); - void resizeToFitMenuItems(); void selectMenuItem(size_t nPos, bool bSubMenuTimer); void queueLaunchSubMenu(size_t nPos, ScListSubMenuControl* pMenu); @@ -183,8 +182,6 @@ public: */ void terminateAllPopupMenus(); - sal_Int32 ExecuteMenu(weld::Menu& rMenu); - void endSubMenu(ScListSubMenuControl& rSubMenu); private: @@ -339,8 +336,6 @@ public: void clearMenuItems(); void resizeToFitMenuItems(); - void setSelectedMenuItem(size_t nPos); - ScViewData& GetViewData() const { return mrParentControl.GetViewData(); } ScCheckListMenuControl::ExtendedData* getExtendedData() { return mrParentControl.getExtendedData(); } VclPtr<VirtualDevice> create_virtual_device() const { return mxMenu->create_virtual_device(); } |