summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2016-03-18 15:52:55 +0100
committerJan Holesovsky <kendy@collabora.com>2016-03-18 15:56:55 +0100
commit8d515ccd7c25120ee1f8d6d5494c8853f1268162 (patch)
tree7d94335275eecf3f7c4c7699beaa76cfefc12539 /sc
parentcf56d2449c27130ae40dc940ddcdb13de1128b7f (diff)
sc lok bccu#1519: More general solution to detecting cell resizes.
This covers even the row height updates when the text in the cell changes etc. Change-Id: Idb570fa2c3c4d3c6bcdb381f8ce07a0311354083
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docsh3.cxx8
-rw-r--r--sc/source/ui/view/viewfun2.cxx3
2 files changed, 8 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx
index efcf435a26f0..a805c0194e18 100644
--- a/sc/source/ui/docshell/docsh3.cxx
+++ b/sc/source/ui/docshell/docsh3.cxx
@@ -63,6 +63,9 @@
#include "markdata.hxx"
#include <memory>
+#include <comphelper/lok.hxx>
+#include <LibreOfficeKit/LibreOfficeKitEnums.h>
+
// Redraw - Benachrichtigungen
void ScDocShell::PostEditView( ScEditEngineDefaulter* pEditEngine, const ScAddress& rCursorPos )
@@ -159,6 +162,11 @@ void ScDocShell::PostPaint( const ScRangeList& rRanges, sal_uInt16 nPart, sal_uI
}
Broadcast(ScPaintHint(aPaintRanges.Combine(), nPart));
+
+ // LOK: we are supposed to update the row / columns headers (and actually
+ // the document size too - cell size affects that, obviously)
+ if ((nPart & (PAINT_TOP | PAINT_LEFT)) && comphelper::LibreOfficeKit::isActive() && aDocument.GetDrawLayer())
+ aDocument.GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_DOCUMENT_SIZE_CHANGED, "");
}
void ScDocShell::PostPaintGridAll()
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 09c80ee91318..54c019aae01c 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -155,9 +155,6 @@ bool ScViewFunc::AdjustBlockHeight( bool bPaint, ScMarkData* pMarkData )
if ( bPaint && bAnyChanged )
pDocSh->UpdateOle(&GetViewData());
- if (bAnyChanged && comphelper::LibreOfficeKit::isActive() && rDoc.GetDrawLayer())
- rDoc.GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_DOCUMENT_SIZE_CHANGED, "");
-
return bAnyChanged;
}