office-gobmx/libreofficekit
Jan-Marek Glogowski 417ef821bc Fix Ubuntu Precise build: non-static member init
gcc 4.6 reports: sorry, unimplemented: non-static data member
initializers

Moves the initialization into the constructors initializer list.

Change-Id: Id25ac042aa3207135edda2485d3c5fe8f98652af
2015-03-09 11:05:37 +01:00
..
qa Fix Ubuntu Precise build: non-static member init 2015-03-09 11:05:37 +01:00
source/gtk sw: move LOK_CALLBACK_CURSOR_VISIBLE event from SwVisCrsr to SwCrsrShell 2015-03-09 10:16:17 +01:00
CppunitTest_libreofficekit_tiledrendering.mk CppunitTest_libreofficekit_tiledrendering: fix up and enable this again 2015-03-09 10:16:11 +01:00
Executable_gtktiledviewer.mk
Executable_tilebench.mk
Library_libreofficekitgtk.mk lokdocview: stop rendering a single huge tile 2015-01-16 13:18:29 +01:00
Makefile
Module_libreofficekit.mk CppunitTest_libreofficekit_tiledrendering: fix up and enable this again 2015-03-09 10:16:11 +01:00
README libreofficekit: update README, deploy a couple of g_info() calls 2015-01-26 10:27:35 +01:00

LibreOfficeKit
**************

LibreOfficeKit can be used for accessing LibreOffice functionality
through C/C++, without any need to use UNO.

For now it only offers document conversion (in addition to an experimental
tiled rendering API).

Integrating LOK into other software
-----------------------------------

LOK functionality can be accessed by including LibreOfficeKit.h[xx] in your
program.

LOK initialisation (lok_init) requires the inclusion of LibreOfficeKitInit.h
in your program. Should you be using the C++ LibreOfficeKit.hxx header you
must first include LibreOfficeKitInit.h followed by LibreOfficeKit.hxx in any
files where you need to use lok_cpp_init.

(LibreOfficeKit.hxx is a simple and fully inlined C++ wrapper for the same
functionality as in LibreOfficeKit.h.)

An example program (currently using the older shim.c/static library
integration) can be seen on:
https://github.com/ojwb/lloconv	

Tiled Rendering
---------------

To use LOK Tiled Rendering you will need the following before the LOK includes:
#define LOK_USE_UNSTABLE_API

(This must be define before ANY LOK header, i.e. including the Init header.)

Currently only bitmap-buffer rendering is supported, with a 32-bit RGBA
colourspace (further alternatives could feasibly be implemented as needed).
Scanlines are ordered top-down (whereas LibreOffice will internally default
to bottom-up).

LibreOfficeKitGtk
*****************

Currently consists of only a very basic GTK+ document viewer widget.

The widget uses g_info() instead of SAL_INFO(), use the 'G_MESSAGES_DEBUG=all'
environment variable to display those messages.