summaryrefslogtreecommitdiff
path: root/libreofficekit
AgeCommit message (Collapse)AuthorFilesLines
2015-01-07fdo#84938: convert STREAM_ #defines to 'enum class'Noel Grandin1-1/+1
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
2015-01-06LOK: add LibreOfficeKitCallbackType enumerationMiklos Vajna1-4/+10
Change-Id: I0147b1985f87f25e70f4d8672beba18fdd9ba6c2
2015-01-06gtktiledviewer: register a LOK callback and re-render the document ...Miklos Vajna1-0/+13
... when the callback is invoked Change-Id: I979a75bc7c7ad1e0d0b9c5413c238ed7260d2093
2014-12-12lok_init can fail (in which case it printed sth to stderr already)Stephan Bergmann1-0/+2
Change-Id: I1c59a4fabf2f48f5f3637077496be5e252794b60
2014-12-10The document argument to gtktiledviewer is apparently non-optionalStephan Bergmann1-2/+2
Change-Id: I81ac033ebe887256279232d192f5ab93dccc0434
2014-12-04Revert "Implement lokconf_init."Tomaž Vajngerl3-88/+0
This reverts commit 5acadbfb0c79fe51f8025b065b46b0ccd25c804d. Conflicts: libreofficekit/qa/lokconf_init/lokconf_init.cxx Change-Id: I88221f660bcf15cbc29e90bfc3016b367570f9af
2014-12-04Make common paths member variables.Andrzej Hunt1-0/+3
We'll need these for other tests too. Change-Id: Ia99c2e60f5e5bb24a83875a9dcf85a6b4f54beb4
2014-12-04Upgrade lokconf_init to LibreOfficeKitInit.hAndrzej Hunt1-0/+1
Change-Id: I0581a107c3eefd33c25b003afe9f7be217598441
2014-12-04Use gb_CppunitTest_use_confpreinit for LOK tiled rendering.Andrzej Hunt1-1/+2
Now that we use the event loop for LOK we need to make sure that it is able to run successfully first time, as unit tests start with a completely clean config. Change-Id: If9ddcb75fe8286381d71ecdc76ac7eb3697960d0
2014-12-04Implement lokconf_init.Andrzej Hunt3-0/+87
This is a simple executable which can be used to ensure there is a pe-pared configuration for unit-tests to avoid the usually required re-start on the first run. Change-Id: I49b706e8daa93bc34db508a24615b63b9babddba
2014-11-06coverity#1000834 Use of untrusted string valueCaolán McNamara1-0/+1
and coverity#706196 Use of untrusted string value coverity#1244947 Use of untrusted string value Change-Id: I5083aba2eff9e852a24513db431585922302b279
2014-10-18tilebench depend on linreooficekitgtk so need ENABLE_GTK tooNorbert Thiebaud1-1/+1
Change-Id: I04b787493115de0190615f42248cc82968907e38
2014-10-02loplugin:unreffunStephan Bergmann1-2/+0
Change-Id: I99da68d2003e01bbc4e8dd9ff6ab943d8ea156ca
2014-10-02LOK: Excercise tiled-rendering harder in the test-bench.Michael Meeks1-0/+82
Change-Id: I13a93991050cc25d06f2836d85ec1d0a0bc574f1
2014-10-02LOK: Add a tiled rendering testbench.Michael Meeks3-0/+126
Change-Id: I631c0506f427d974c3dd4c75484aa25603100895
2014-09-29LOK: avoid crash when zooming using quadviewMichael Meeks1-1/+1
Change-Id: I89a8c9e44906326976c3dc8057e1637affaf2521
2014-08-14LOK: remove code from assert that must be compiled when not in debug mode.Michael Meeks1-1/+2
Change-Id: Ibc02247ad4f1099fa31acdcef38dd5b1e95523f2
2014-07-31LOK: add document loading failure test.Andrzej Hunt1-0/+13
We don't really have any way of telling the client that the file didn't exist yet though, so not very useful so far. Change-Id: I1db386781b88b345f3e9cb4f37838ca1d95f92f9
2014-07-31LOK: add test for getDocumentType.Andrzej Hunt3-0/+30
Change-Id: I264567f73dae9ecd061e09c4413857f793fcac48
2014-07-31LOK: add slide name retrieval test.Andrzej Hunt2-0/+23
Change-Id: I6d2bc4dfa634223da662af6f7c9a91f06cfe7534
2014-07-31Use one test instance to run all LOK tests.Andrzej Hunt1-7/+18
Recreating Office instances after destruction (when still within the same process) currently fails, hence we need to do all tests at once for now. Change-Id: Ic7652c909e1cd970fe1ee76995e61fb6aae8f96c
2014-07-31Make common paths member variables.Andrzej Hunt1-6/+7
We'll need these for other tests too. Change-Id: Ia99c2e60f5e5bb24a83875a9dcf85a6b4f54beb4
2014-07-31GtkComboBoxText requires gtk >= 2.24 (again).Andrzej Hunt1-0/+4
Broken in 77d083130948fa35f9f404656b8c170060e78043.
2014-07-30LokDocView: Update part selector when mode changes.Andrzej Hunt1-5/+21
Change-Id: Ice754a46d07ce2714257c30e1aef27193b614cd3
2014-07-30LokDocView: set current item for part selector.Andrzej Hunt1-1/+2
Change-Id: Idbb3d63803bd60a182a9b8e26620d11b2d643cb6
2014-07-30gtktiledviewer: add part mode selector.Andrzej Hunt1-1/+34
Change-Id: Ia1e78df1d833f9b0fbda0b78136590c9c960fa27
2014-07-30LOKDocView: add set_part_mode.Andrzej Hunt1-0/+7
Change-Id: I0e14a535124e93979ef05431255911245a11aa29
2014-07-30gtktiledviewer: show part names in selector.Andrzej Hunt1-5/+15
Change-Id: I02ae5b729f96e36b3f226218b32495907cb63cf3
2014-07-30LOKDocView: add part name retrieval.Andrzej Hunt1-1/+4
Change-Id: Iac31de0410d7f6187e5884152c329375047a23f4
2014-07-29One final removal of libreofficekit static library.Andrzej Hunt1-4/+0
(Seems you need a clean build to notice this...)
2014-07-29Update LOK Readme to use LibreOfficeKitInit.hAndrzej Hunt1-4/+11
2014-07-29Kill the libreofficekit static library / shim.c.Andrzej Hunt7-110/+2
It looks like the cleanest method of getting lok_init into a LibreOfficeKitInit.h header (in a c89 compatible way) is to have it as a static function. (inline is only available in C99 or later -- this is actually available on Linux which is the only place that we can actually use lok_init anyways currently, however given we have to keep c89 for the C code (for MSVC) compatibility, selectively enabling c99 would likely be more messy.) Change-Id: I0493e7a68ed5397479220bb6ba8c3db870b6dd32
2014-07-28-Werror=declaration-after-statementMiklos Vajna1-7/+7
Change-Id: I97b1d03410e98c5ff2ad3cc15cef692e9b994a6c
2014-07-28Use CPPUNIT_ASSERT instead of assert.Andrzej Hunt1-1/+1
Change-Id: I24e7934002ebdde208db74ae3308b26875a3155b
2014-07-28Prevent LOK DocView crash if document too large.Andrzej Hunt1-4/+18
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 Hunt1-0/+4
Change-Id: I12c3e9df8b8fcf8dcd6fb5fa781c2f7c10ab0a0c
2014-07-26libreofficekit_tilederendering: test all 4 tiles.Andrzej Hunt1-2/+2
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 Hunt1-3/+3
LOK Document loading seems to be quite unreliable for various reasons.
2014-07-18cid#1226493 Uninitialized scalar variableNoel Grandin1-1/+1
Change-Id: I80cd8adccad492c7e4b71e6204c0059bfc003b83
2014-07-18Try to make some sense out of that sentenceKhaled Hosny1-1/+1
Change-Id: Ibe9fedb3602d6c8ddbc007b214969c9960ba10b1
2014-07-18TyposKhaled Hosny1-5/+5
Change-Id: If91ed85a56c597f9aecbd5e469af4af83d256cfb
2014-07-17libreofficekit_tiledrendering test: force lock file removalAndrzej Hunt1-0/+8
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 Hunt2-1/+27
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 Hunt1-0/+41
2014-07-17Fix some CppunitTest_libreofficekit_tiledrendering related problemsMatúš Kukan2-2/+3
Change-Id: Icdcde0af1b3d5744ef2842e4b4d2b85a094ac686
2014-07-16LibreOfficeKit: Check for libmerged too.Jan Holesovsky1-12/+27
And avoid some strcat's when at it. Change-Id: I0c70ee2a1abf0c9e2914f756b06bedc3a16df19b
2014-07-16Revert "libreofficekit does not work with libmerged"Jan Holesovsky1-2/+0
Instead, we need to make sure it works with libmerged too :-) This reverts commit 4e9d8ca44a246653894559f10bf88effba366b10.
2014-07-15libreofficekit does not work with libmergedMatúš Kukan1-0/+2
Change-Id: I3ca4cf51f6d3999a0f701f108a7c5c21329eb1c7
2014-07-14LOK tiled rendering test: add some debug output.Andrzej Hunt1-0/+8
Change-Id: I0da29204809b6a1de42d5f0fc37705497a060493
2014-07-12GtkComboBoxText requires gtk >= 2.24.Andrzej Hunt1-0/+9
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.