diff options
author | Sahil Gautam <sahil@libreoffice.org> | 2024-03-04 04:22:03 +0530 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2024-04-20 21:58:10 +0200 |
commit | 05a1217921b7be283c6750a35b90e4feda6e993e (patch) | |
tree | b4cd353766c608d0b0bd8b4bd36f57f164e2449a /sc/source/ui/inc/inscldlg.hxx | |
parent | 64743ee6bc9567015f164333ed9b508542017337 (diff) |
tdf#80390 Extend InsertCells Dialog to allow adding a set of Rows/Columns
Change-Id: I103574d720fef685b806943672a2aeb1fbf87097
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164316
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'sc/source/ui/inc/inscldlg.hxx')
-rw-r--r-- | sc/source/ui/inc/inscldlg.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/ui/inc/inscldlg.hxx b/sc/source/ui/inc/inscldlg.hxx index b44bfb60baa9..fdd70fff8738 100644 --- a/sc/source/ui/inc/inscldlg.hxx +++ b/sc/source/ui/inc/inscldlg.hxx @@ -30,12 +30,20 @@ private: std::unique_ptr<weld::RadioButton> m_xBtnCellsRight; std::unique_ptr<weld::RadioButton> m_xBtnInsRow; std::unique_ptr<weld::RadioButton> m_xBtnInsCol; + std::unique_ptr<weld::SpinButton> m_xNumberOfRows; + std::unique_ptr<weld::SpinButton> m_xNumberOfCols; + + // These are arbitrarily chosen. + const size_t MAX_INS_ROWS = 4000; + const size_t MAX_INS_COLS = 4000; public: ScInsertCellDlg(weld::Window* pParent, bool bDisallowCellMove); virtual ~ScInsertCellDlg() override; InsCellCmd GetInsCellCmd() const; + size_t GetCount() const; + DECL_LINK(RadioButtonsHdl, weld::Toggleable&, void); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |