summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-06-16 16:45:21 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-06-16 16:19:10 +0000
commit5bf3ae663a2189e37959235cda8c6a4051e10a1a (patch)
tree8f5c8348355a009425c7c82780a6b63605775ef9 /sc
parente841ed93d6c6d817be1f7fdc18ff971325c861cc (diff)
comphelper: enable LibreOfficeKit::isViewCallback() by default
This requires porting the sw/sd/sc_tiledrendering test code to the new internal API, as only the public LOK API is unchanged. Change-Id: Ic6a2f96421da4a16bdee7d0cbb3f6e35bc6ddff9 Reviewed-on: https://gerrit.libreoffice.org/26379 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/tiledrendering/tiledrendering.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/qa/unit/tiledrendering/tiledrendering.cxx b/sc/qa/unit/tiledrendering/tiledrendering.cxx
index 858ed3a6a8d9..168987ca7ed5 100644
--- a/sc/qa/unit/tiledrendering/tiledrendering.cxx
+++ b/sc/qa/unit/tiledrendering/tiledrendering.cxx
@@ -308,19 +308,19 @@ void ScTiledRenderingTest::testDocumentSize()
{
comphelper::LibreOfficeKit::setActive();
ScModelObj* pModelObj = createDoc("sort-range.ods");
- pModelObj->registerCallback(&ScTiledRenderingTest::callback, this);
-
- // check initial document size
- Size aDocSize = pModelObj->getDocumentSize();
- CPPUNIT_ASSERT(aDocSize.Width() > 0);
- CPPUNIT_ASSERT(aDocSize.Height() > 0);
-
ScDocShell* pDocSh = dynamic_cast< ScDocShell* >( pModelObj->GetEmbeddedObject() );
CPPUNIT_ASSERT(pDocSh);
ScTabViewShell* pViewShell = pDocSh->GetBestViewShell(false);
CPPUNIT_ASSERT(pViewShell);
+ pViewShell->registerLibreOfficeKitViewCallback(&ScTiledRenderingTest::callback, this);
+
+ // check initial document size
+ Size aDocSize = pModelObj->getDocumentSize();
+ CPPUNIT_ASSERT(aDocSize.Width() > 0);
+ CPPUNIT_ASSERT(aDocSize.Height() > 0);
+
// Set cursor column
pViewShell->SetCursor(100, 0);
// 2 seconds