summaryrefslogtreecommitdiff
path: root/libreofficekit
AgeCommit message (Collapse)Author
2014-07-28-Werror=declaration-after-statementMiklos Vajna
Change-Id: I97b1d03410e98c5ff2ad3cc15cef692e9b994a6c
2014-07-28Use CPPUNIT_ASSERT instead of assert.Andrzej Hunt
Change-Id: I24e7934002ebdde208db74ae3308b26875a3155b
2014-07-28Prevent LOK DocView crash if document too large.Andrzej Hunt
There seems to be a maximum size that gdk's pixbuf can handle, however I have been unable to find any documentatation. Seeing as the current implementation isn't realistically useable anyway, we might as well set a hard limit here (in practice we'd have much smaller tiles + compositing). Specifically extras/source/shellnew/soffice.ods will fail without this patch. Change-Id: I6ac495adca8e15878989375ef8b2de472788279a
2014-07-26gtktiledviewer: make sure we clean up the office instance.Andrzej Hunt
Change-Id: I12c3e9df8b8fcf8dcd6fb5fa781c2f7c10ab0a0c
2014-07-26libreofficekit_tilederendering: test all 4 tiles.Andrzej Hunt
The use of VisPortChgd ensures that the tiles all render as expected, i.e. that the pixels match 1:1 irrespective of actual tile size (for identical zoom factors and document areas). Change-Id: Ib1e1df4f8257546c2f7993a8160c309a52037d8b
2014-07-18Disable libreofficekit_tiledrendering test for now.Andrzej Hunt
LOK Document loading seems to be quite unreliable for various reasons.
2014-07-18cid#1226493 Uninitialized scalar variableNoel Grandin
Change-Id: I80cd8adccad492c7e4b71e6204c0059bfc003b83
2014-07-18Try to make some sense out of that sentenceKhaled Hosny
Change-Id: Ibe9fedb3602d6c8ddbc007b214969c9960ba10b1
2014-07-18TyposKhaled Hosny
Change-Id: If91ed85a56c597f9aecbd5e469af4af83d256cfb
2014-07-17libreofficekit_tiledrendering test: force lock file removalAndrzej Hunt
If the lock file still exists when running this test, LOK will fail resulting in "documentLoad failed: unknown load failure" (the actual error is that the lock file dialog cannot be confirmed by the user in headless mode, resulting in loading failure, however this is then hidden by multiple layers of exception redirection in sfx2). Change-Id: I025ea6187c3d17805f25ab6f756eae9646f2c7c8
2014-07-17Add png dumping to LOK tiled rendering test.Andrzej Hunt
This allows for easier visual comparisons (i.e. currently the test would be failing for some tiles). Change-Id: I5b174375b57ffe0edd2700fdec411a83669e4a34
2014-07-17Add LOK Readme.Andrzej Hunt
2014-07-17Fix some CppunitTest_libreofficekit_tiledrendering related problemsMatúš Kukan
Change-Id: Icdcde0af1b3d5744ef2842e4b4d2b85a094ac686
2014-07-16LibreOfficeKit: Check for libmerged too.Jan Holesovsky
And avoid some strcat's when at it. Change-Id: I0c70ee2a1abf0c9e2914f756b06bedc3a16df19b
2014-07-16Revert "libreofficekit does not work with libmerged"Jan Holesovsky
Instead, we need to make sure it works with libmerged too :-) This reverts commit 4e9d8ca44a246653894559f10bf88effba366b10.
2014-07-15libreofficekit does not work with libmergedMatúš Kukan
Change-Id: I3ca4cf51f6d3999a0f701f108a7c5c21329eb1c7
2014-07-14LOK tiled rendering test: add some debug output.Andrzej Hunt
Change-Id: I0da29204809b6a1de42d5f0fc37705497a060493
2014-07-12GtkComboBoxText requires gtk >= 2.24.Andrzej Hunt
Seeing as this is only a test program, probably easiest just to disable this for gtk < 2.24, and rely on devs wanting to use it isntalling a new enough gtk version.
2014-07-12Add LOK tiled rendering divided-tile unit test.Andrzej Hunt
I.e. we render the same area as one larger tile, and then as 4 sub-tiles (which, when put together, should be identical to the larger tile). However currently only the top-left sub-tile actually matches the larger tile, so we have to disable the test for the remaining sub-tiles. Change-Id: If1130022b43898e20fefff3e9f592102da3e413a
2014-07-12Add part selector to gtktiledviewer.Andrzej Hunt
Change-Id: I569c8f0ebf4476c0a247cde15a263d1db956a14b
2014-07-12LOK DocView: implement part selection.Andrzej Hunt
Change-Id: I2e16ca9d2d5fcd25b0435f1b9b0fbcb52b92e012
2014-07-12gtktiledviewer: allow selecting between normal and quad-tile view.Andrzej Hunt
Change-Id: I85b22b93fe4ce2ffb62df8766ceea7a1bd8961ee
2014-07-12Quad Docview: only rerender on zoom if we have a document open.Andrzej Hunt
Same as "LOK DocView: only rerender on zoom if we have a document open." but for our quad-tiled test widget. Change-Id: I6c1b946cc9d576d1dcc4687048339d9f0b3e6eff
2014-07-12LOK DocView: only rerender on zoom if we have a document open.Andrzej Hunt
Otherwise we would segfault, and it's perfectly valid to set a zoom level _before_ opening a document (as that would e.g. save the document first being rendered on opening if the client wants to immediately render at a non-standard zoom level). Change-Id: Ide261b09f4aab8dc3b552f6c3bf55f78ffd7870c
2014-07-12Implement a (qa-only) quad-tiled viewer.Andrzej Hunt
I.e. we subdivide the document into 4 tiles: one at 100% scaling, one at 200%, one at 50%, one at 25% -- these are then post-scaled in gdk) and assembled to show as one document again. This is specifically a test only widget, primarily to be able to quickly spot any tile positioning/border-transition issues. We could theoretically make this widget inherit from the original widget, however that would mean having to introduce virtual methods etc., which is not something that we'd want in production -- in the longer run that widget will hopefully be extended to have proper tile composition etc., which would then break this widget too if it were inheriting from there. Change-Id: Ib880a1614f89724135e753013cf91aec25973e39
2014-06-27LOK DocView: handle document load failure without crashing.Michael Meeks
Change-Id: Icd668b3a7ec3ac58322a6af3f1da6008837d0b6b
2014-06-27libreofficekitgtk requires ENABLE_GTK.Andrzej Hunt
Change-Id: I2ba47edc457e310548c8a62747a6a152ee5e1314
2014-06-25fix buildCaolán McNamara
Change-Id: I33f06887b4b2b7950c6e322ccf1c7ec65240f9b0
2014-06-25LOK DocView: clean up document on exit.Andrzej Hunt
Otherwise lock files etc. aren't cleaned up, which isn't particularly nice should when then opening the file in normal LibreOffice. Change-Id: I822b6fb582473674371a4c1d403d5a05adb7ea6b
2014-06-25Add zoom controls to gtktiledviewer.Andrzej Hunt
Change-Id: I33ae83a97be254a3d3716bd9ae05f089845fd536
2014-06-25LOK Docview: add set_zoomAndrzej Hunt
Change-Id: I902f3a134b4a7dcc721eff3f67376014a4276885
2014-06-25Prevent GTK assertions due to scrolled window not being initialised.Andrzej Hunt
Seems to be a gtk bug which we need to work around. The assertions don't actually seem to cause any harm (they just print a bunch of "Gtk-CRITICAL **: IA__gtk_range_get_adjustment: assertion `GTK_IS_RANGE (range)' failed" but probably best to avoid them. Change-Id: I5d1bb20bd5c0569c6d023a6148123208a15b9de2
2014-06-25Move gtktiledviewer into libreofficekit.Andrzej Hunt
desktop is no longer the right place for it now that libreofficekit has its own directory. Change-Id: I207f1d642e7e35c460ff85bb57aa142cb98023c8
2014-06-25Implement LibreOfficeKit gtk+ viewer widget.Andrzej Hunt
Very basic, but works. Change-Id: I0c521e833b53e13065e0be48e6fa767e44b29787
2014-06-18LOK: kill double initialize.Andrzej Hunt
Change-Id: I4d3dd913faea8b9f4a0bd3c13af37d097ced9888
2014-06-17LOK: Split into instance and class.Andrzej Hunt
Change-Id: I2b6f33eaf12343c7da1328a932eb703bb4e4ef6f
2014-06-13rename in Module makefile tooMatúš Kukan
Change-Id: Ie3a19a5c3de0021b89eefbacb91c88e38396b8cb
2014-06-13Rename makefile to StaticLibrary_libreofficekit and clean up.Matúš Kukan
It's static library since d324745fe95c7f0fad56f146e1e33f994a0d5de6. Change-Id: Id8474fb28d40a2373e2b0c85439cb5a96c469c85
2014-06-11Rename C api of LibreOfficeKit.Andrzej Hunt
However for the sake of ABI compatibility we can't change liblibreoffice_hook. Change-Id: I0e921efeeab40ef1b53a67c0e7a89d4c75ced831
2014-06-11Move liblibreoffice into LibreOfficeKit.Andrzej Hunt
Change-Id: Ib2754a77be470faaa6f9b27644a1d8dd082ed2b8