summaryrefslogtreecommitdiff
path: root/libreofficekit
AgeCommit message (Collapse)AuthorFilesLines
2015-05-11CppunitTest_libreofficekit_tiledrendering: add postUnoCommand() testcaseMiklos Vajna1-1/+5
This fails without commit d4a12421f2b0aafe97f8ab78017261969c36ae0e (desktop: pJSON may be 0 in jsonToPropertyValues(), 2015-04-29). Change-Id: I08fffe65eb6cdc94fcfc57c2b8f1ec9fa546f70d
2015-05-08gtktiledviewer: Make all functions staticPranav Kant1-12/+12
These functions are only being used inside this file. Change-Id: I473b33f794cfbaff590d00f22d2832456482d15a Reviewed-on: https://gerrit.libreoffice.org/15680 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-05-08gtktiledviewer: Stop event propagation to GtkToolbar when in edit modePranav Kant1-3/+8
If not stopped, key-press events are interpreted by both LOKDocView and GtkToolbar leading to poor editing experience. Change-Id: Ie878d168e202a0f3e1d52191aa3fd7cc00a7cbfd Reviewed-on: https://gerrit.libreoffice.org/15677 Tested-by: Miklos Vajna <vmiklos@collabora.co.uk> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-05-08Clarify the usage message a bitTor Lillqvist1-1/+1
Change-Id: I6ae2f5c12ae5c20fd2f33bff639129dd303c3c20
2015-05-08gtktiledviewer: unused pFileNameMiklos Vajna1-2/+0
Change-Id: I30cd9d8adffbdf9d7451bca0c09aa56639379486
2015-04-23libreofficekit: error: 'gtk_widget_get_visible' was not declared in this scopeMiklos Vajna1-0/+4
Change-Id: I31b65f405a9252fcc8323ac4e528b38e05a32625
2015-04-23gtktiledviewer: let findbar have the focus when it's visibleMiklos Vajna1-2/+12
1) Give its GtkEntry focus after pressing the button to show the findbar, so one can immediately can begin typing. 2) Only forward keypresses to LOK if the findbar is not visible, so it's not necessary to stop editing to be able to search. Change-Id: I5c9487739a550e34c66f39b12469392028bb7e3d
2015-04-22Blind fix for Executable_gtktiledviewerStephan Bergmann1-0/+1
Change-Id: Ib252b4fb98663a8a6aa76dddedc80596230097e8
2015-04-22gtktiledviewer: implement search using .uno:ExecuteSearchMiklos Vajna1-0/+93
And using boost::property_tree::write_json() to marshal the parameters. Change-Id: I0027b6e1ce6c8d3b0b3a84642c76595eadc3db5f
2015-04-22lok::Document::postUnoCommand: allow passing argumentsMiklos Vajna2-3/+3
Change-Id: I6c24a8e392473f3985d3bde9b76a3148fd03bc9a
2015-04-16CID#1294410 missing breakMiklos Vajna1-0/+1
Change-Id: Ibfb4a60bfdce303264ef1826f943672695cdf274
2015-04-14add gdb debugging info on gtktiledviewerSiqi Liu1-1/+17
Change-Id: I1460131d25212266b910d76a7713d1e973f7c415
2015-04-14gtktiledviewer: can use gtk_toggle_tool_button_new_from_stock() for theseMiklos Vajna1-10/+5
Change-Id: I3c1163f9757a4592692bb8a920d1dc679bf53699
2015-04-14WaE: implicit conversion (IntegralCast) from bool to 'int'Miklos Vajna1-1/+1
Change-Id: I228c0bca3133e94b28db2540dbd41e8b4fd1eee9
2015-04-14gtktiledviewer: add underline and strikethroughMiklos Vajna1-0/+13
Change-Id: I457deb8d544b97874701dec37d8baee237ce4ebb
2015-04-14gtktiledviewer: add toggleToolItem() to avoid copy&pasteMiklos Vajna1-23/+23
Change-Id: If2553d96472e6ced9b2fad4c202d0793a1fce3bc
2015-04-14lokdocview: add Italic buttonMiklos Vajna1-0/+16
Change-Id: If23cb2f799df99cab92c13e09628fc139cdedb00
2015-04-14lokdocview: implement LOK_CALLBACK_STATE_CHANGEDMiklos Vajna2-2/+53
Change-Id: I239849056dd88f785dce239c4d53d6c905177b64
2015-04-13WaE: format string is not a string literalTor Lillqvist1-1/+1
Change-Id: I0346c98ec1e075009ac6b563119ee44178e9c773
2015-04-13LOK_STATE_CHANGED callback implemented with sfx events interception.Siqi Liu1-0/+6
2015-04-09Use comphelper::LibreOfficeKit::isActive() instead of LOK_TEST env varTor Lillqvist1-3/+0
Change-Id: Iaa0c751f101df6db25e9fca9123b81ac63033159
2015-04-07lokdocview: gtk_show_uri() requires Gtk 2.14Miklos Vajna1-0/+2
Change-Id: I54454fec250b74238a1c064cc2136889e1a28972
2015-04-07lokdocview: move callback handling to LOKDocView_ImplMiklos Vajna1-100/+108
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 Vajna1-51/+61
Change-Id: If2aff61df7efd5c291e4cc7c7196e7f6f3937b32
2015-04-07lokdocview: GList -> std::vectorMiklos Vajna1-65/+58
Primarily because I'm worried about the untyped GList. Change-Id: I0ae6610019f6e80b0cad12086782fd89ac74943b
2015-04-07lokdocview: move document rendering to LOKDocView_ImplMiklos Vajna1-108/+116
Change-Id: Ie1d61b35f07400c2bd1c32240c15eb908d587d59
2015-04-07lokdocview: move timeout handling to LOKDocView_ImplMiklos Vajna1-39/+43
Change-Id: Id1e14f259af68acbd29784436bb2c5062a0d6563
2015-03-30lokdocview: move handle rendering to LOKDocView_ImplMiklos Vajna1-120/+113
Change-Id: I52537a96af596db076c38dc607abe857d0771257
2015-03-30lokdocview: move cursor / selection overlay to LOKDocView_ImplMiklos Vajna1-82/+92
Change-Id: I48a6906382fd41906a06704855d2f054467c1716
2015-03-30lokdocview: move motion handling to LOKDocView_ImplMiklos Vajna1-32/+32
Change-Id: Ibace4a943fb61e2f897c9571cc2c8814935b6e75
2015-03-30lokdocview: move button handling to LOKDocView_ImplMiklos Vajna1-150/+150
Change-Id: Iac5d9e97f04af92ff6f6945d691abe94a3d785b0
2015-03-30lokdocview: move keyboard handling to LOKDocView_ImplMiklos Vajna4-67/+72
Change-Id: I1117ec42bdf0f2cb19f77723b87597d301d20ddb
2015-03-30lokdocview: larger default window sizeMiklos Vajna1-1/+1
Change-Id: I1526ab6969effa043cb7d429961aa7611e1fdd06
2015-03-30lokdocview: always use zoom factor when doing twips <-> pixel conversionMiklos Vajna1-60/+61
Change-Id: I81ce20c54bb62bec68152ca228eb222f3fd3c597
2015-03-30lokdocview: sync graphic move behavior with AndroidMiklos Vajna1-45/+17
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 Vajna1-47/+55
Change-Id: I0910afdb6a0d031cb64f545b5b2c0d16f18a0f04
2015-03-30lokdocview: add LOKDocView_Impl ctorMiklos Vajna1-35/+36
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 Vajna2-249/+316
And move private data out of LibreOfficeKitGtk.h, so that clients are forced to use the getter/setter functions. Change-Id: I6565312b5ec5a8e882c3763164ff5aa81ed9720c
2015-03-23gtktiledviewer: remove unimplemented gtk-zoom-fit buttonMiklos Vajna1-8/+0
Change-Id: Iaecedd01d7e7bba90e49ddaa5f36859d9218242d
2015-03-23lokdocview: clean up quad modeMiklos Vajna4-366/+0
It's not necessary since the normal widget renders normal 256x256px tiles, not just a single huge one. Change-Id: Ia1c6a6c8692769093232d66aa63fde096390a7b2
2015-03-23Rectangle::toString(): output position, then sizeMiklos Vajna1-4/+4
This order seems to be less confusing. Change-Id: I95a7e3e2f6244915c820bb86e67745a777714e2d
2015-03-20Drop paintTile's row stride output parameter that nobody is interested inTor Lillqvist3-19/+3
Change-Id: I166b4b713c2ea52c62c52045bb2073b6d84c1547
2015-03-16lok_docview_init: ignore the second, not the first paramMiklos Vajna1-2/+2
Fixes the crash on startup. Change-Id: I991537644dfb6a5335d08d3d03c3d25491a0c335
2015-03-16libreofficekit: various loplugin fixesStephan Bergmann2-8/+10
Change-Id: I317f8f5397bfeb9c0d6ecaaa656cb31e66eece0b
2015-03-16Add SwXTextDocument::setTextSelection() testcaseMiklos Vajna1-1/+1
Change-Id: Id986d5408981b6ae7bf3c8c96c5226d2445a5f0d
2015-03-16libreofficekit: add overview of tiled editing to READMEMiklos Vajna1-0/+48
Change-Id: Ie4e28f9315c9de2062d63c5eb5e9c7481c719cef
2015-03-16lokdocview: detect click on border vs click inside graphic selectionMiklos Vajna1-5/+33
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 Vajna1-1/+1
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 Holesovsky2-0/+20
Implements also Bold button as an example in the gtktiledviewer. Change-Id: I3b07d51165f28534aadbb4673f964ec10d5fc6ef
2015-03-16lokdocview: cppcheck: variableScopeMiklos Vajna1-42/+24
Change-Id: Ib91bfea95d957362d807a3de53b12e2fc9389fbb