Commit Graph

28 Commits

Author SHA1 Message Date
7f8eb6d501 LOKDocView: add set_part_mode.
Change-Id: I0e14a535124e93979ef05431255911245a11aa29
2014-07-30 12:44:03 +02:00
366d8fb4db LOKDocView: add part name retrieval.
Change-Id: Iac31de0410d7f6187e5884152c329375047a23f4
2014-07-30 12:44:02 +02:00
977ba354b2 Remove horrifically outdated comment.
Change-Id: I1362489c9aecf536b31bf6ab57ad8c149f37a876
2014-07-30 12:44:01 +02:00
6872ecdbc7 LOK: add setPartMode.
This API seems to be simplest in the long run where we'll want to be
able to select between rendering slides/notes/both/embedded objects,
and maybe even adding the option of switching between continuous
and single page mode in writer (although I have no idea how hard
getting a single page mode out of writer would be).

Change-Id: I5bdfdb61854c37281c6992c8f3ed1c50c8aa0919
2014-07-30 12:44:01 +02:00
6548361109 LOK: Add getPartName.
By default (i.e. for writer) we can just return an empty string,
and we only actually need to implement ITiledRenderable's
getPartName for components that actually support it (i.e. calc/impress).

Change-Id: I8b381e5d7a8000638b02f763b4bea8ef0226f8e0
2014-07-30 12:44:01 +02:00
5fe0711dbe Fix comment typo.
Change-Id: I8ebe3ad2a6efcf1797a2dc941994c7fc1e36f4bf
2014-07-30 12:44:00 +02:00
9e7bdb422d Kill the libreofficekit static library / shim.c.
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-29 07:11:20 +02:00
c49e26cb44 LOK DocView: implement part selection.
Change-Id: I2e16ca9d2d5fcd25b0435f1b9b0fbcb52b92e012
2014-07-12 05:19:13 +02:00
4d15212ef8 Add get/setPart to ITiledRenderable, and implement for sw/sc.
Change-Id: Iec3d6374f029149cadf8fb9c9b16fec90146c31e
2014-07-12 05:19:13 +02:00
822cf7cb24 Kill saveAsWithOptions again. (merge error/oversight)
The declaration sneaked in again when merging the libreofficekit
tiled rendering changes, there's no actual implementation or use
of this anywhere though.
2014-06-27 09:29:15 +02:00
6024ddbfac LOK Docview: add set_zoom
Change-Id: I902f3a134b4a7dcc721eff3f67376014a4276885
2014-06-25 13:04:33 +01:00
837631c6cf LIBLOK: implement getDocumentType, make doctypes unique.
Change-Id: I6cf810af55284cb6ddd9e0bfd879fd19508d127a
2014-06-25 13:04:32 +01:00
d465dfb209 Implement LibreOfficeKit gtk+ viewer widget.
Very basic, but works.

Change-Id: I0c521e833b53e13065e0be48e6fa767e44b29787
2014-06-25 13:04:31 +01:00
67d7bad694 Use external buffer for LibLO tiled rendering.
Means we can get rid of hackily storing a reference to the last
buffer we created.

Change-Id: I8092a7d87bc391301f75651a59b37fbd73ac64fd
2014-06-25 13:04:30 +01:00
fd5f324b09 Implement document size retrieval for LibLO.
Change-Id: Ibd69f8e766fd421b05d2305f967179a969bc5b56
2014-06-25 13:04:29 +01:00
41911db36e Add rowstride to tiled rendering via LibLO.
The buffer width could be larger than the desired rendering
width, hence we need to give the client access to the rowstride.

Change-Id: Ic63c1f455c89960164e076ed2528d43e64e81a40
2014-06-25 13:04:28 +01:00
0434043aed Return a bitmap buffer for tiled rendering from LibLO.
We still need some way of managing the buffers properly rather
than just keeping a static reference to the last buffer
that was rendered.

Change-Id: I17940c758948aa9418f4e0216ecd253d128cd04f
2014-06-25 13:04:28 +01:00
d2382e3f3d Add tiled rendering via liblibreoffice.
We still need to add functions for getting dimensions of documents
etc. for this to be truly useful, this is also only usable for writer
documents for now.

Change-Id: I07812c9b72caca71dfd509705af48c1d355cb2f8
2014-06-25 13:04:28 +01:00
707a648eb3 LOK: kill saveAsWithOptions.
The saveAsWithOptions/saveAs split existed for reasons of historical
API compatibility. Since we're breaking the API currently we can
now get a clean start, and get rid of the redundant saveAs, and
make saveAsWithOptions the standard saveAs function.

Change-Id: Ia3e2294a8604cab08e95b07544c9d10d42dd1152
2014-06-23 12:24:36 +01:00
f73e4594d3 LOK: kill double initialize.
Change-Id: I4d3dd913faea8b9f4a0bd3c13af37d097ced9888
2014-06-18 12:07:16 +01:00
8ba3116a8f LOK: Split into instance and class.
Change-Id: I2b6f33eaf12343c7da1328a932eb703bb4e4ef6f
2014-06-17 16:58:57 +01:00
ede15aaeb1 liblok: add include for size_t.
Change-Id: Icd7d78a332fbb67e32ab929f0afc5881ab7448eb
2014-06-12 16:33:47 +01:00
18c786cbcd cast loses precision
Change-Id: Ic688f08cada4ae70ea1dfb1e29e249a166456452
2014-06-12 14:28:55 +01:00
202dac6e20 liblok: check new methods via macros on nSize, not by de-referencing.
We can't check for NULL from beyond the end of a smaller structure.

Change-Id: Id3754bf747c402cf0d767eda5fd4b5ad6b5789e9
2014-06-12 14:07:23 +01:00
f24f4f92ee Complete LibreOfficeKit C++ renaming.
Change-Id: Ice611cf5913051346a3a0c0b00ed35a35a0dfe3c
2014-06-12 14:07:22 +01:00
a533f986f9 Upgrade LibreOfficeKit C++ API.
Change-Id: If263b8fc748f67a1ed423c0f3f7cd465cf533993
2014-06-11 13:44:56 +01:00
cd76b9996c Rename C api of LibreOfficeKit.
However for the sake of ABI compatibility we can't change
liblibreoffice_hook.

Change-Id: I0e921efeeab40ef1b53a67c0e7a89d4c75ced831
2014-06-11 13:44:55 +01:00
9a1b2970ed Move liblibreoffice into LibreOfficeKit.
Change-Id: Ib2754a77be470faaa6f9b27644a1d8dd082ed2b8
2014-06-11 13:44:55 +01:00