diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2022-04-27 11:45:04 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2022-05-03 14:52:07 +0200 |
commit | d0cacf09a1105d89bf3df84b18623d790e3aeb82 (patch) | |
tree | ced947b6ce149c089696674ae83da7021fcf3147 /sc/source/ui/inc/inputwin.hxx | |
parent | 5801b887629dbd784116ec6878b61bb99e991647 (diff) |
tdf#99708 Save formula bar height to document
Save the current state of the Calc formula bar to the document.
Number of visible lines is saved into the document settings
and restored when loading that document.
Also adds a UNO property, so that the formula bar height can be
changed via UNO.
Change-Id: Ifef0c9e42cb4f7465516629d2c22974367e0eb33
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133499
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'sc/source/ui/inc/inputwin.hxx')
-rw-r--r-- | sc/source/ui/inc/inputwin.hxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/source/ui/inc/inputwin.hxx b/sc/source/ui/inc/inputwin.hxx index 6bd4c3152712..12bc461f2836 100644 --- a/sc/source/ui/inc/inputwin.hxx +++ b/sc/source/ui/inc/inputwin.hxx @@ -104,9 +104,10 @@ public: int GetPixelHeightForLines(tools::Long nLines); int GetEditEngTxtHeight() const; - virtual tools::Long GetNumLines() const override { return mnLines; } + virtual tools::Long GetNumLines() const override; void SetNumLines(tools::Long nLines); tools::Long GetLastNumExpandedLines() const { return mnLastExpandedLines; } + void SetLastNumExpandedLines(tools::Long nLastExpandedLines) { mnLastExpandedLines = nLastExpandedLines; } void DoScroll(); @@ -153,7 +154,6 @@ private: ScTabViewShell* mpViewShell; ScTextWndGroup& mrGroupBar; - tools::Long mnLines; tools::Long mnLastExpandedLines; bool mbInvalidate; }; @@ -209,6 +209,7 @@ public: const OutputDevice& GetEditViewDevice() const; Point GetCursorScreenPixelPos(bool bBelowLine); tools::Long GetLastNumExpandedLines() const; + void SetLastNumExpandedLines(tools::Long nLastExpandedLines); virtual tools::Long GetNumLines() const override; int GetPixelHeightForLines(tools::Long nLines); weld::ScrolledWindow& GetScrollWin(); @@ -259,6 +260,7 @@ public: bool IsInputActive() override; void IncrementVerticalSize(); void DecrementVerticalSize(); + void NumLinesChanged(); virtual tools::Long GetNumLines() const override { return mxTextWndGroup->GetNumLines(); } tools::Long GetVertOffset() const { return mnVertOffset; } @@ -300,6 +302,8 @@ public: void SetOkCancelMode(); void SetSumAssignMode(); void EnableButtons( bool bEnable ); + /// Update Input bar after the number of lines was changed externally + void NumLinesChanged(); void StartFormula(); void SetFormulaMode( bool bSet ); |