summaryrefslogtreecommitdiff
path: root/include/LibreOfficeKit
AgeCommit message (Collapse)Author
2015-06-12lokdocview: Create LOK context inside of lok_doc_view_newPranav Kant
Change-Id: I675192d6bd6d10e6c7974a5de6f488f9a087ac32
2015-06-12lokdocview: Change parent class to GtkDrawingAreaPranav Kant
It is not the job of the widget to provide the scroll bars. Change-Id: Iafc5724ed5b21717d711bb8f7e1a076dd1288b76
2015-06-09lokdocview: mark *_get_type() with const function attributePranav Kant
Use G_GNUC_CONST that adds const function attribute to lok_doc_view_get_type() for better performance. Change-Id: Id79f0395a98c4f98b46303e9b5ee1e103fbe331f
2015-06-09lokdocview: Modernise LOKDocView as GObjectPranav Kant
Change-Id: I3bbd07ce8163890f9b88567966622dd4fbe9d94d
2015-06-09lokdocview: Lets follow the GObject naming conventionPranav Kant
If we are mentioning this type as DocView, we should break it at each capital letter. Change-Id: I76c7eea455281e541b2196a03778018aa127cebe
2015-06-09lokdocview: Let G_BEGIN/END_DECLS handle the compiler checkPranav Kant
Change-Id: I8c60c9ba13516fc2b3a926c19b41ee19805d74a5
2015-06-05LOK: fix the rectangle format mentioned in documentation/commentPranav Kant
Change-Id: I41bf3a21b5da9fc8155bbe6eb0f86078f90f6647
2015-05-28gtktiledviewer: use SearchItem.SearchStartPoint*Miklos Vajna
Change-Id: If0219eda3a2ca3b97c37bea70e35d47e49d38e02
2015-05-27LOK: change PAGE_COUNT to a more generic DOCUMENT_SIZEMiklos Vajna
Change-Id: If94af4072c321358d7bd4d678eeed181dc0f44db
2015-05-27lokdocview: fix not updated part selector when search changes partMiklos Vajna
Change-Id: I337eed47c56dbbbebda4d7fe716eab6177936dc0
2015-05-26sd: fix LOK search result highlight when result is not on the current slideMiklos Vajna
By adding a new callback event, so clients can switch to the correct slide. Change-Id: I6c2388eb11ef97811cc644fe3a9d3866aa82fd75
2015-05-23SwView::UpdatePageNums: add LOK callback about page count changeMiklos Vajna
Change-Id: If9ab69c9f3ec3f9f518738792ff020ef4cfd6390
2015-05-22LOK: remove unused LOK_PARTMODE_EMBEDDEDOBJMiklos Vajna
Change-Id: I8cbb5b7a134fb84bd2c363b06f06f7f40964521f
2015-05-21gtktiledviewer: handle LOK_CALLBACK_SEARCH_NOT_FOUNDMiklos Vajna
Change-Id: Ic545bbd14d11a3b310f4d72ee02e51a7cb6f4f22
2015-05-19LOKit callback for search not foundMihai Varga
Needed for signaling the user when no match was found for the searched input Change-Id: I171ee956d94d6fd83036ae34102c2f1bdd5661de Reviewed-on: https://gerrit.libreoffice.org/15798 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-05-06Enable passing in a UserInstallation also in the C++ APITor Lillqvist
Change-Id: I0549a58bc6cebdfd9d69c078b4a6e8a891182019
2015-05-06Add support for progress bar callbacks to LibreOfficeKitTor Lillqvist
The libsofficeapp and LibreOfficeKit API bits. Change-Id: I4efe9880dfa4e0387f05b50e64b5eaee448e0925
2015-04-24Don't be fooled by the dummy libsofficeapp.so in the mergedlib caseTor Lillqvist
Change-Id: If4bc9ee28091680fad78fbba585e0470f87dc830
2015-04-23No F_OK on Windows eitherTor Lillqvist
Change-Id: I5ecb340ffef46cca11492ddf7c1cd771d275cac1
2015-04-23No <unistd.h> on _WIN32Tor Lillqvist
Change-Id: I9bbeb434185b1517e120b1df9d474d913c867cf1
2015-04-23Improve error handlingTor Lillqvist
Change-Id: Id8661cb315f2f3a1bb398bce4f898342d5cce338
2015-04-23More informative error message after dlopen() or LoadLibrary() has failedTor Lillqvist
Change-Id: Iedf956c9bd78d1d23e5ee68772a000f90a39810e Reviewed-on: https://gerrit.libreoffice.org/15492 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2015-04-22lok::Document::postUnoCommand: allow passing argumentsMiklos Vajna
Change-Id: I6c24a8e392473f3985d3bde9b76a3148fd03bc9a
2015-04-16The mode lines says we use 4-column indentation steps, so do that thenTor Lillqvist
Also, be consistent in spacing, indentation and alignment. Inconsistency is infuritating. In this case, I decided to drop the attempts to align the names of "methods", and their parameter lists. They were not all aligned anyway, and some of those that tried to be in fact were off by one column. Also, consistently use a blank line between the method pointers, If you feel strongly about this and *want* such inter-line alignment, by all means re-introduce it, but at least try to be consistent then, and do it for all methods. Change-Id: I382ca0eaf8533ebc3f829ebd978a9676ebcefaf0
2015-04-16CID#1294411: dlhandle is "leaked"Tor Lillqvist
Change-Id: Ie8dafb4d5dfd2ab09d71bc509f91e5c2c483bfb8
2015-04-14lokdocview: implement LOK_CALLBACK_STATE_CHANGEDMiklos Vajna
Change-Id: I239849056dd88f785dce239c4d53d6c905177b64
2015-04-13LOK_STATE_CHANGED callback implemented with sfx events interception.Siqi Liu
2015-04-09WaE: ‘LibreOfficeKit* lok_init(const char*)’ defined but not usedTor Lillqvist
Change-Id: I1b5594173b912c8ac54bb54718ce06bee47e2ed9
2015-04-08Add lok_init_2() that takes also the path to a user profile to useTor Lillqvist
In some LibreOfficeKit use cases it will be useful to use a separate (initially empty) user profile each time, instead of whatever the default might turn out to be. (When using the "instdir" of a LibreOffice build tree, the user profile is the "instdir/user" directory.) Also add a corresponding new function to be looked up, libreofficekit_hook_2. I did not bother with any more descriptive name. After all, "lok_init" already is quite terse, so calling the new function "lok_init_with_user_profile" or something similarly verbose would in my humble opinion have been inconsistent. (And if/when we need to extend the LibreOfficeKit initialisation function with even more parameters, the name would become really long.) But feel free to change this if you feel like it... Make sure to stay backward-compatible with source code calling lok_init() and with binaries looking for only the libreofficekit_hook entry point. Change-Id: Ifa9ce8f72c2f60554fb3431d522e5784afa8d8d3
2015-04-07LOK: document remaining Document member functionsMiklos Vajna
Change-Id: Idc5836317c01780bb5078d39d8c31775886027d0
2015-03-30lokdocview: move keyboard handling to LOKDocView_ImplMiklos Vajna
Change-Id: I1117ec42bdf0f2cb19f77723b87597d301d20ddb
2015-03-30Minor tweak of the LOK_CALLBACK_TEXT_SELECTION_START / _END docu.Jan Holesovsky
Change-Id: I39a6a20818c4ed92d37b7b5b0a91517ee370adcb
2015-03-23Typo: s/SEPERATOR/SEPARATORTor Lillqvist
Thanks to Jürgen Funk for noticing, on https://gerrit.libreoffice.org/#/c/13017/ . Change-Id: Iff6225d658a9f5c7d3cd95b1f5b0b17606897d15
2015-03-23lokdocview: add lok_docview_get_document()Miklos Vajna
And move private data out of LibreOfficeKitGtk.h, so that clients are forced to use the getter/setter functions. Change-Id: I6565312b5ec5a8e882c3763164ff5aa81ed9720c
2015-03-20Drop paintTile's row stride output parameter that nobody is interested inTor Lillqvist
Change-Id: I166b4b713c2ea52c62c52045bb2073b6d84c1547
2015-03-19Indent parameter lists consistently.Tor Lillqvist
Other inconsistencies in spacing and alignment remain, though. Change-Id: I2b4f9e34781288c5146518be853d3831ec32e968
2015-03-16LOK: extract the callback typedef to a separate LibreOfficeKitTypes.h headerMiklos Vajna
With this, most LO code can avoid rebuilding when touching LibreOfficeKit.h, something that caused a mass-rebuild earlier. Change-Id: I4880fc7ad82cc535377b2b602897e3172ffa480b
2015-03-16LOK: Implement posting of .uno: commands.Jan Holesovsky
Implements also Bold button as an example in the gtktiledviewer. Change-Id: I3b07d51165f28534aadbb4673f964ec10d5fc6ef
2015-03-16lok::Document: add resetSelection()Miklos Vajna
Change-Id: Ib24003178bb576ff1450d674d74ef8978b350b92
2015-03-16lokdocview: add edit-changed signal, so toolbar toggle button is in syncMiklos Vajna
Editing can start by clicking into the widget or by pressing the toggle button on the toolbar. In the first case the widget should emit a signal, so the the toggle button's state can be up to date. In both toggle button <-> LOK widget direction only update the state if it's not yet up to date to avoid infinite loops. Change-Id: I84c9e7757cd7cde42a95f67f0cb28f9ad6984e7a
2015-03-16lokdocview: add lok_docview_get_edit()Miklos Vajna
Change-Id: I57a9c94ed0fb67befd226afe78a90bee9a7fb358
2015-03-16lokdocview: implement move of imagesMiklos Vajna
It's the same as resizing, except that the action starts inside the graphic selection, but not over any handles. Change-Id: Ie2465fc4534d2d919ccb0f316874477f02a5d103
2015-03-16lokdocview: use lok::Document::setGraphicSelection()Miklos Vajna
With this, it's now possible to resize images in Writer. Change-Id: I2f557d6a64efda54959627d21406aef85160e470
2015-03-16LOK: add lok::Document::setGraphicSelection() API and implement it for WriterMiklos Vajna
Change-Id: I115cf7e7978622d5108c4c792f7de861beb6efb6
2015-03-11Ensure RTTI symbol visibility for Linux Clang -fsanitize=function,vptrStephan Bergmann
The problem being that any lib later loaded via osl_loadModule (e.g., libgcc3_uno.so) would not bind to the same global (RTTI-related) symbols as libsofficeapp.so and its dependencies (so, e.g., -fsanitize=function would erroneously assume that bridges/source/cpp_uno/shared/component.cxx's uno_initEnvironment is called with a different, non-matching uno_Environment type). Change-Id: I08b0cbc1f9eb74641eb617c46587a0a528a56c31
2015-03-10Avoid undef use of null ptr, use offsetof insteadStephan Bergmann
Change-Id: I47b1d8e7b119e50406b50f580ee06f9f1b5f8401
2015-03-09Look for .dylib on OS X, but ...Tor Lillqvist
... note that the LibreOfficeKit bits aren't built for OS X. I don't recall if there is some fundamental reason why not. Was it so that for OS X, like for iOS, a "virtual device" should be created with a CGContext and not a pixmap buffer? Change-Id: I6e1fedb89e7fe409baf2ea1ac7f3b65b0f1c776b
2015-03-09tdf#89705: provides callback for url handling on android.Siqi Liu
Change-Id: Ie28cd768519fbdc305f98e1d764d05bd209951ca
2015-03-09sw: move LOK_CALLBACK_CURSOR_VISIBLE event from SwVisCrsr to SwCrsrShellMiklos Vajna
This should fix the problem that LOK_CALLBACK_CURSOR_VISIBLE is emitted 2 times during every mouse click (hide, then show), while the motivation behind this callback is to just hide the blinking cursor for image selection, i.e. it's never emitted during normal text editing. Change-Id: Id2a2b1102589f8151f640af3fcb50b646d261275
2015-03-09lokdocview: render graphic selection handlesMiklos Vajna
Change-Id: I8c1331c32baf92b077f45678929df0e4cf185774