summaryrefslogtreecommitdiff
path: root/libreofficekit/source
AgeCommit message (Collapse)Author
2015-11-18lok::Document::initializeForRendering: support init. argumentsMiklos Vajna
(cherry picked from commit 4bddfc00d25a42917db79ceaf0547c2e792132c4) Conflicts: libreofficekit/source/gtk/lokdocview.cxx Change-Id: I8aaf19a50f25f495cb87fba7ff6a4b0f56ed7d80
2015-11-03lok: Introduce LOK_CALLBACK_UNO_COMMAND_RESULT callback.Jan Holesovsky
Posting of the .uno:Something commands is asynchronous. To be able to find out when eg. .uno:Save finished, this commit introduces a callback that fires when that happens. To be able to receive such a notification, the appropriate postUnoCommand() must be called with 'true' as the parameter for bNotifyWhenFinished (defaults to 'false'). (cherry picked from commit 8c987fababbddb6e4f81b0cd717b59b9a9ff9be0) Change-Id: I254939ebc8ea5f309ae39686dcaaeddd5148b0c9
2015-10-15lokdocview: adapt Android pathMiklos Vajna
Change-Id: I786fd580b3d08fa076eeb2bf90bd23b09c9f8182 (cherry picked from commit 562d8f57f0d684879ae62fb10dcf9dcea2bd213b)
2015-10-07LOK: added the button type and key modifier to postMouseEvent()Mihai Varga
To get a better functionality we need to know the button type (left, right, middle). We also need the key modifier (ctrl, alt, shift) for actions such as ctrl+click (to open a link) or shift+click to select (cherry picked from commit c90c08a65c480a1012182979d5e9218f17a2ba2e) Conflicts: libreofficekit/Library_libreofficekitgtk.mk libreofficekit/source/gtk/lokdocview.cxx libreofficekit/source/gtk/tilebuffer.hxx Change-Id: Iaccb93b276f8a6870dd41cc5132dbb85d2bbf71b
2015-09-18WaE: this method can be declared static [loplugin:staticmethods]Tor Lillqvist
Change-Id: I39d63811d154b849708f1254642fd0eb04a9848b
2015-08-03LOK: Implement parts for Writer too.Jan Holesovsky
In Writer, the meaning of 'parts' is a bit different than in Calc or Impress. In Writer, the parts mean pages, and the document does not give a completely different view, the cursor just jumps to the given page. It is up to the client to follow the cursor appropriately to have the desired effect. Conflicts: libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx libreofficekit/source/gtk/lokdocview.cxx Change-Id: I56b3264e0340cd639bdabfa92b74b52bd1f391a5
2015-05-29gtktiledviewer: use SearchItem.SearchStartPoint*Miklos Vajna
Change-Id: If0219eda3a2ca3b97c37bea70e35d47e49d38e02 (cherry picked from commit 3c9fb5898159fbda9d5b23f3f518044a5df03f72)
2015-05-28lokdocview: handle LOK_CALLBACK_DOCUMENT_SIZE_CHANGEDMiklos Vajna
Change-Id: Ib1b99221afbf9810bad5fd49fbf62c7a20fd28e4 (cherry picked from commit 8cbb94a2b79dcaf9675125da800b64a85bae52dc)
2015-05-28lokdocview: fix not updated part selector when search changes partMiklos Vajna
Change-Id: I337eed47c56dbbbebda4d7fe716eab6177936dc0 (cherry picked from commit c7ecbbbb6acf92af4ded4119da6abdddace39fe0)
2015-05-28gtktiledviewer: handle LOK_CALLBACK_SEARCH_NOT_FOUNDMiklos Vajna
Change-Id: Ic545bbd14d11a3b310f4d72ee02e51a7cb6f4f22 (cherry picked from commit cb0b7ff34dc193c37e89f4a968e1cb7502338230)
2015-05-27lokdocview: it's enough to query the document size onceMiklos Vajna
Change-Id: Id99c9f1a814bc5f935eeb4e301ef3014ccb0bd07 (cherry picked from commit 124c937f3bd6a7538dc6664ab9556fcfb3f27088)
2015-05-27lokdocview: handle LOK_CALLBACK_SET_PARTMiklos Vajna
Change-Id: I47fc389590d581155074fec63cca79bea3596860 (cherry picked from commit 96041179d4aa5e0eb543c3c5da8e493beb0ed133)
2015-05-27lokdocview: update doc size on LOK_CALLBACK_PAGE_COUNT_CHANGEDMiklos Vajna
No need to do any actual rendering, the invalidation callback takes care of that. Change-Id: I9a3e45cab5250fc45eccb4577fe76377f76354eb (cherry picked from commit 490365b2452cb6fa96749475d996c6033b0d6407)
2015-05-20lokdocview: use postMouseEvent(LOK_MOUSEEVENT_MOUSEMOVE)Miklos Vajna
This is much better than using setTextSelection() directly, as that was introduced only to adjust an existing selection. Change-Id: I881c3e4e5b0c97891f29dac0da42c1d3a51361e8
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-18loplugin:staticmethodsStephan Bergmann
Change-Id: I660d68b9b596be531d595c35666a33fb02d6fd6a
2015-05-18lokdocview: use lok::Office::registerCallback()Miklos Vajna
This way we get some feedback on the state of the loading at least on the console. Change-Id: I95bf6cebcdd8b879c817b4e027d4f5b4acb9cd4c
2015-05-15lokdocview: implement desktop style click+move selection creationMiklos Vajna
Change-Id: I69663c0801bc95b8876c8dcbdf68d7a99fec4fb3
2015-04-22lok::Document::postUnoCommand: allow passing argumentsMiklos Vajna
Change-Id: I6c24a8e392473f3985d3bde9b76a3148fd03bc9a
2015-04-16CID#1294410 missing breakMiklos Vajna
Change-Id: Ibfb4a60bfdce303264ef1826f943672695cdf274
2015-04-14lokdocview: implement LOK_CALLBACK_STATE_CHANGEDMiklos Vajna
Change-Id: I239849056dd88f785dce239c4d53d6c905177b64
2015-04-13WaE: format string is not a string literalTor Lillqvist
Change-Id: I0346c98ec1e075009ac6b563119ee44178e9c773
2015-04-13LOK_STATE_CHANGED callback implemented with sfx events interception.Siqi Liu
2015-04-07lokdocview: gtk_show_uri() requires Gtk 2.14Miklos Vajna
Change-Id: I54454fec250b74238a1c064cc2136889e1a28972
2015-04-07lokdocview: move callback handling to LOKDocView_ImplMiklos Vajna
These were the last free functions that passed around a LOKDocView_Impl* manually just because it was not possible to have them in a C++ class when lokdocview was C code. Change-Id: I6229a853336db0e47f7d1ba4687d198e076934a3
2015-04-07lokdocview: move CallbackData to LOKDocView_ImplMiklos Vajna
Change-Id: If2aff61df7efd5c291e4cc7c7196e7f6f3937b32
2015-04-07lokdocview: GList -> std::vectorMiklos Vajna
Primarily because I'm worried about the untyped GList. Change-Id: I0ae6610019f6e80b0cad12086782fd89ac74943b
2015-04-07lokdocview: move document rendering to LOKDocView_ImplMiklos Vajna
Change-Id: Ie1d61b35f07400c2bd1c32240c15eb908d587d59
2015-04-07lokdocview: move timeout handling to LOKDocView_ImplMiklos Vajna
Change-Id: Id1e14f259af68acbd29784436bb2c5062a0d6563
2015-03-30lokdocview: move handle rendering to LOKDocView_ImplMiklos Vajna
Change-Id: I52537a96af596db076c38dc607abe857d0771257
2015-03-30lokdocview: move cursor / selection overlay to LOKDocView_ImplMiklos Vajna
Change-Id: I48a6906382fd41906a06704855d2f054467c1716
2015-03-30lokdocview: move motion handling to LOKDocView_ImplMiklos Vajna
Change-Id: Ibace4a943fb61e2f897c9571cc2c8814935b6e75
2015-03-30lokdocview: move button handling to LOKDocView_ImplMiklos Vajna
Change-Id: Iac5d9e97f04af92ff6f6945d691abe94a3d785b0
2015-03-30lokdocview: move keyboard handling to LOKDocView_ImplMiklos Vajna
Change-Id: I1117ec42bdf0f2cb19f77723b87597d301d20ddb
2015-03-30lokdocview: always use zoom factor when doing twips <-> pixel conversionMiklos Vajna
Change-Id: I81ce20c54bb62bec68152ca228eb222f3fd3c597
2015-03-30lokdocview: sync graphic move behavior with AndroidMiklos Vajna
Android behavior is: if there is a graphic selection, then drag inside the shape is a move. lokdocivew behavior was: drag on the border of a graphic selection is a move, but inside, it's just a pair of clicks. Since commit 658534d36f87f9ab03d862e57b04ea268b73ccab (SdrMarkView tiled rendering: suppress handles during text edit, 2015-03-19), we can depend on the availability of the handles to decide if we want to move the shape or do text editing, so do the same in lokdocview as well. Change-Id: I2b105089e9acbbda75568622d4f2b1adecfe08f1
2015-03-30lokdocview: lcl_onDestroy() -> LOKDocView_Impl::destroy()Miklos Vajna
Change-Id: I0910afdb6a0d031cb64f545b5b2c0d16f18a0f04
2015-03-30lokdocview: add LOKDocView_Impl ctorMiklos Vajna
It simplifies lok_docview_init() a lot and makes harder to add a LOKDocView_Impl member without initializing it. Change-Id: I02d91b97fecd86896c11facca98fabd6a79157e5
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-23Rectangle::toString(): output position, then sizeMiklos Vajna
This order seems to be less confusing. Change-Id: I95a7e3e2f6244915c820bb86e67745a777714e2d
2015-03-20Drop paintTile's row stride output parameter that nobody is interested inTor Lillqvist
Change-Id: I166b4b713c2ea52c62c52045bb2073b6d84c1547
2015-03-16lok_docview_init: ignore the second, not the first paramMiklos Vajna
Fixes the crash on startup. Change-Id: I991537644dfb6a5335d08d3d03c3d25491a0c335
2015-03-16libreofficekit: various loplugin fixesStephan Bergmann
Change-Id: I317f8f5397bfeb9c0d6ecaaa656cb31e66eece0b
2015-03-16lokdocview: detect click on border vs click inside graphic selectionMiklos Vajna
Previously there were two cases when the user clicked inside a graphic selection: 1) If the click started at a handle, it was a resize. 2) Otherwise it was a move. Change 2) by requiring a click on the border for move, and otherwise interpreting the click as a normal one. This makes it possible to edit shape text with a blinking cursor. Change-Id: Ifc063790cacb3da2684f6f72eaadd86323dd3aef
2015-03-16lokdocview: ensure that the cursor is at least 30 twips wideMiklos Vajna
While Writer uses "0" for the "minimal width" case, editeng uses 2. We used to round up 0 to 30, do it for any value smaller than 30. Change-Id: Ib3cc7645b55881fc51f0729163cdea5eb9ca4f0a
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-16lokdocview: cppcheck: variableScopeMiklos Vajna
Change-Id: Ib91bfea95d957362d807a3de53b12e2fc9389fbb
2015-03-16lokdocview.c -> lokdocview.cxxMiklos Vajna
Otherwise it's not possible to later move the keyboard handling code from gtktiledviewer to lokdocview, and handling keyboard in gtktiledviewer but mouse in lokdocview is confusing. Change-Id: Ib036e2cbf65ffa28771a41b01c0fda2b7b895f47
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