summaryrefslogtreecommitdiff
path: root/libreofficekit
AgeCommit message (Collapse)Author
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
2015-03-16lokdocview: register callback earlyMiklos Vajna
This is mainly to be in sync with Android, but this also makes blinking text work in viewer mode. Change-Id: Ie307cab722bae5030ca9bdfb442555a728aa33cc
2015-03-16lokdocview: add lok_docview_get_edit()Miklos Vajna
Change-Id: I57a9c94ed0fb67befd226afe78a90bee9a7fb358
2015-03-16lokdocview: log dragging the graphic selectionMiklos Vajna
Not too important for now, but in case later we want to show some kind of preview, then this will be the place to do it. Change-Id: I531761178491f606834b4b359281122be4c8bca9
2015-03-16lokdocview: return early in lcl_signalMotion()Miklos Vajna
Change-Id: Ibf9d62c52edeaad4aada7960820e1bb8fa6c2c63
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-16lokdocview: handle LOK_CALLBACK_HYPERLINK_CLICKEDMiklos Vajna
Change-Id: Ic9804857df2237507f412bc6e248e5a7e83f8803
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-10Fix CppunitTest_libreofficekit_tiledrendering dependenciesStephan Bergmann
Remove the unnecessary ones, but make sure that e.g. the sofficeapp library is built (which was not covered by depending on services.rdb). Change-Id: I1adfa4aaaf60787c944d71cc289cdafba8351c1b
2015-03-09Fix Ubuntu Precise build: non-static member initJan-Marek Glogowski
gcc 4.6 reports: sorry, unimplemented: non-static data member initializers Moves the initialization into the constructors initializer list. Change-Id: Id25ac042aa3207135edda2485d3c5fe8f98652af
2015-03-09Fix Linux baseline buildMiklos Vajna
1) One more place in desktop that missed the LOK_TEST check. 2) One testcase currently fails on baseline, disabled for now, need to check later. Change-Id: I8c8bcf2cec1618e39e8453120755dffd3feb79ce
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
2015-03-09lokdocview: initial LOK_CALLBACK_GRAPHIC_SELECTION handlingMiklos Vajna
No markers yet, but we're aware of the selection rectangle at least. Change-Id: I92d3fc62d066e401ad19107fbbd414b1b9b26125
2015-03-09LOK: add LOK_CALLBACK_CURSOR_VISIBLEMiklos Vajna
With this, if a Writer document contains an image, then clicking on the image then back to the text properly shows/hides the blinking cursor. Change-Id: I3313319ded614a2eb86e1c66c926189511a7cca6
2015-03-09lokdocview: CursorVisible -> CursorOverlayVisibleMiklos Vajna
There are multiple levels of being hidden: if the cursor is not visible due to just blinking or in case it won't show up after some timeout, either. Let's use CursorOverlayVisible for the condition if the cursor should be painted right now or not, and CursorVisible for the long-term "is it visible" state. Change-Id: Ib583236c1429f25e14ba79fdabad4ea899bb4269
2015-03-09CppunitTest_libreofficekit_tiledrendering: fix up and enable this againMiklos Vajna
The main problem was that UserInstallation did not point to the usual workdir/unittest/, so initialization failed early, not finding the soffice.cfg directory under workdir/CppunitTest/libreofficekit_tiledrendering.test.user/. Disable one testcase that still fails, though. Change-Id: I3fdae5ead47dd2a805a0ed8d3cb407938f868e3b
2015-03-08libreofficekit, svx, sw: fix typosMiklos Vajna
Change-Id: I883c0b95d91ae9cb7e59b8f68ae0c8a3ebcb9f88 Reviewed-on: https://gerrit.libreoffice.org/14796 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-03-02LOK: move Office::postKeyEvent to DocumentMiklos Vajna
The implementation still sends them to the currently active VCL frame, not to the given document, though. Change-Id: I6fa2decdea3f949c55287e802cb3373c85664207
2015-03-02libreofficekit: pretty-print LibreOfficeKitCallbackTypeMiklos Vajna
Change-Id: I15a6b265c6fa0d0c62277814fa119d20b311625b
2015-03-02gtktiledviewer: map shift keyMiklos Vajna
Change-Id: Id7e995ef3b6eb117dc74a0a0258417d9dc1291e6
2015-03-02gtktiledviewer: map down/up/left/right arrow keysMiklos Vajna
Change-Id: I2a3c729d06d73ff7a7b7cedff27d9fb4a3a88d73
2015-03-02gtktiledviewer: map GDK_Tab to css::awt::Key::TABMiklos Vajna
Change-Id: Icfd38ea4bc4fb470e3eb3eb1a3d48c6607d6a999
2015-02-23lokdocview: scale selection rendering / cursor handling with zoom.Michael Meeks
Change-Id: I2e3b86fd7f9eb2da0bcd36afd5a735a2815d70cd
2015-02-23Extract LibreOfficeKitEnums.h from LibreOfficeKit.hMiklos Vajna
This massively reduces the rebuild time in case only a new enumeration value is added to one of the enums. Change-Id: I4e58adf36fcd29da1672a5e5091bd3f6744f148d
2015-02-23lok::Office::postKeyEvent: allow different char and key codeMiklos Vajna
editeng is not happy with non-zero char code for css::awt::Key::ESCAPE. Change-Id: If26923df7defb8a47766e9109835a8569067e578
2015-02-23gtktiledviewer: map css::awt::Key::ESCAPEMiklos Vajna
Change-Id: Ib034244b39b185877be5791c2a86018d1b57f7e3
2015-02-16LOK: add LOK_SETTEXTSELECTION_RESETMiklos Vajna
So clients can perform a single method call to adjust the cursor position (when it's not a range), instead of sending two mouse clicks. This is mostly to be consistent, so that adjusting the cursor's middle and start/end handles all result in a setTextSelection() LOK call. Change-Id: I09eb0811887d173ea9ad7d125a2afb2c9e5c918c
2015-02-16lokdocview: reset start/end or middle handle depending on if we have selectionMiklos Vajna
Change-Id: Iee5511a8077e37999865aa83da2dfde1fdd4dbc2
2015-02-16lokdocview: allow dragging the selection start handle, tooMiklos Vajna
Change-Id: Ic5dd96c4ced7c5ea67d4417c73721535302f754b
2015-02-16lokdocview: allow dragging the selection end handleMiklos Vajna
Change-Id: I977e93657c52a66f10762293835ead28451b5406
2015-02-16lokdocview: allow dragging the middle handleMiklos Vajna
Change-Id: I83ef2797c17c8de8f8e9b5f3dcbe9adb34eb4313
2015-02-16lokdocview: avoid loading the handle bitmaps again and againMiklos Vajna
Change-Id: I767a1c0ddce4e06d421b6bb951aa6d0451943f89
2015-02-16lokdocview: draw handles at selection start/endMiklos Vajna
Change-Id: Ic9b4138619f20a8d35437912784b94f4d1f2af4f
2015-02-16lokdocview: when have a cursor but no selection, show the middle handleMiklos Vajna
Change-Id: I1497bd73303a0445f06f3302aa5b8a537243bfeb
2015-02-09lokdocview: fix Linux baseline buildMiklos Vajna
Baseline is only used for releases, while lokdocview is a tool to helpdevelopment for now, so don't bother with full compatiblity, just add enough to not break the build. Change-Id: I52e312d3c3ae80636448bf42d5f277184fb9ca7b
2015-02-09lokdocview: implement selection overlay using LOK_CALLBACK_TEXT_SELECTIONMiklos Vajna
Change-Id: I59cb870973ea4e2fda816b15ae7d9a53a4624e8d
2015-02-09lokdocview: fix memory leak in lcl_payloadToRectangle()Miklos Vajna
Change-Id: I2894c693d11b025d23ebbf0ae75f67532efe315f
2015-02-09lok::Document::postMouseEvent(): allow double-clickMiklos Vajna
Change-Id: Idaddd28d906e7508d4d2c5aab916b06fbe021beb
2015-02-09lokdocview: let the cursor blinkMiklos Vajna
Change-Id: I935fe7f09a5a6efcbfd246b0f24eba5226f61fb2
2015-02-09lokdocview: initial overlay on top of the tilesMiklos Vajna
It currently contains a non-blinking cursor caret in case at least one character is typed. Change-Id: I476bb1e8434a5df8c97054d670d68bc79721914e
2015-01-30coverity#1267697 Uninitialized scalar variableCaolán McNamara
Change-Id: I0703df58dd3d798ff0928f317b8d61e13ec2f0ce
2015-01-26lokdocview: fix for missing gtk_table_get_size()Miklos Vajna
Change-Id: Ib3f9849c2f28375a7e8bcd6575a6c3da0860d4fb
2015-01-26gtktiledviewer: fix for missing g_info()Miklos Vajna
Change-Id: I04a91065526b49bacb72c7d4865440efc3b3f7d0
2015-01-26fix for missing g_infoMiklos Vajna
Change-Id: Ibfab6d3aadb126fc357fd2d15485dcde8ceefa94
2015-01-26LOK: move postMouseEvent to DocumentMiklos Vajna
Change-Id: I5d2d2d05fc0f55d98a1e7a1591b4d66fd93ad353
2015-01-26lokdocview: send mouse events in doc model coordinatesMiklos Vajna
Change-Id: Ie4bc39330bf5f7f8ac4683486d98aec87aa82923