summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/app/inputwin.cxx2
-rw-r--r--sc/source/ui/inc/inputwin.hxx7
2 files changed, 6 insertions, 3 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 04d6143ec900..d8a5c32c0660 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -514,6 +514,7 @@ void ScInputWindow::Resize()
{
std::vector<vcl::LOKPayloadItem> aItems;
aItems.emplace_back("size", GetSizePixel().toString());
+ aItems.emplace_back("lines", OString::number(aTextWindow.GetNumLines()));
pNotifier->notifyWindow(GetLOKWindowId(), "size_changed", aItems);
}
@@ -534,6 +535,7 @@ void ScInputWindow::NotifyLOKClient()
aItems.emplace_back("type", "calc-input-win");
aItems.emplace_back(std::make_pair("position", Point(GetOutOffXPixel(), GetOutOffYPixel()).toString()));
aItems.emplace_back(std::make_pair("size", aSize.toString()));
+ aItems.emplace_back("lines", OString::number(aTextWindow.GetNumLines()));
pNotifier->notifyWindow(GetLOKWindowId(), "created", aItems);
}
diff --git a/sc/source/ui/inc/inputwin.hxx b/sc/source/ui/inc/inputwin.hxx
index d831cfe0e3b1..9150096fec72 100644
--- a/sc/source/ui/inc/inputwin.hxx
+++ b/sc/source/ui/inc/inputwin.hxx
@@ -57,6 +57,7 @@ public:
virtual void SetFormulaMode( bool bSet ) = 0;
virtual bool IsInputActive() = 0;
virtual void TextGrabFocus() = 0;
+ virtual long GetNumLines() const = 0;
};
class ScTextWnd : public ScTextWndBase, public DragSourceHelper // edit window
@@ -95,7 +96,7 @@ public:
long GetPixelHeightForLines(long nLines);
long GetEditEngTxtHeight() const;
- long GetNumLines() const { return mnLines; }
+ virtual long GetNumLines() const override { return mnLines; }
void SetNumLines(long nLines);
long GetLastNumExpandedLines() const { return mnLastExpandedLines; }
@@ -191,7 +192,7 @@ public:
virtual void InsertAccessibleTextData(ScAccessibleEditLineTextData& rTextData) override;
virtual EditView* GetEditView() override;
long GetLastNumExpandedLines() const;
- long GetNumLines() const;
+ virtual long GetNumLines() const override;
long GetPixelHeightForLines(long nLines);
ScrollBar& GetScrollBar();
virtual const OUString& GetTextString() const override;
@@ -236,7 +237,7 @@ public:
bool IsInputActive() override;
void IncrementVerticalSize();
void DecrementVerticalSize();
- long GetNumLines() const { return maTextWndGroup->GetNumLines(); }
+ virtual long GetNumLines() const override { return maTextWndGroup->GetNumLines(); }
long GetVertOffset() const { return mnVertOffset; }
private: