summaryrefslogtreecommitdiffstats
path: root/libreofficekit
Commit message (Collapse)AuthorAgeFilesLines
* lokdocview: log postMouseEvent() argumentsMiklos Vajna2016-04-271-0/+8
| | | | | | | Change-Id: Idd4db9259448d3dcf4e0820b8845a1ab395f0bff Reviewed-on: https://gerrit.libreoffice.org/24427 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* lokdocview: log setGraphicSelection() argumentsMiklos Vajna2016-04-261-0/+5
| | | | | | | Change-Id: I36af712274e1a3f9dacd5d62ab42032ca9e9acdd Reviewed-on: https://gerrit.libreoffice.org/24390 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* In lok_init_2, allow vnd.sun.star.pathname user_profile_urlStephan Bergmann2016-04-191-1/+2
| | | | | | | | | | | | | | | ...which takes a raw filesystem pathname that is internally converted to a file URL (similarly to what is supported for the INIFILENAME and URE_BOOTSTRAP bootstrap variables in rtl::Bootstrap). That way, the gtktiledviewer executable doesn't need to try convert a pathname into a URL. Also adapted various parameter names to make it obvious that URLs get passed, not pathnames. Change-Id: I33ab31fe142d94ee47885033ef48278ef5ff55a2 Reviewed-on: https://gerrit.libreoffice.org/24241 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* tdf#99314 lokdocview: add new userprofileurl propertyMiklos Vajna2016-04-192-2/+46
| | | | | | | | | | So that users of the widget can use a custom user profile, allowing running widgets users and LibreOffice in parallel. Change-Id: I1bd0a8e53aa3216adc721052cf30f0dd174327bd Reviewed-on: https://gerrit.libreoffice.org/24237 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* lok context menu: Expose context menuPranav Kant2016-04-081-0/+7
| | | | Change-Id: I0968689630e10f838c075e86357eb36a9a220d0d
* New LOK_LOADLIB_GLOBAL to let clients control dlopen(RTLD_GLOBAL)Stephan Bergmann2016-03-081-1/+7
| | | | | | | | | | ...in LibreOfficeKintInit.h's lok_loadlib, now that RTLD_GLOBAL isn't only needed for UBSan (62b124b2704adf11a63681164d05a8eb49dfb105 "Ensure RTTI symbol visibility for Linux Clang -fsanitize=function,vptr") but also for -stdlib=libc++ on Linux (see <https://whatofhow.wordpress.com/2016/03/01/libclibcabi-on-linux/>). Change-Id: I24ed6612c3d922eba695423d46af5635c77f7077
* gtktiledviewer: log .uno:ViewRowColumnHeaders command resultMiklos Vajna2016-03-011-0/+1
| | | | Change-Id: I6d71071371ef54f70613246162c893daa56b7bb9
* cid#1354270 fix uninitialized membersMiklos Vajna2016-02-251-0/+1
| | | | Change-Id: I35fda96885375996a1b0b05ecc04a0ac35104b88
* tdf#97235: Protect reset_view when called with no tile buffer initializedPranav Kant2016-02-211-1/+3
| | | | | | This can happen when no document has been loaded yet. Change-Id: Ib9c18e22b6c344528d05eb781bf9b3052060089a
* tdf#97236: Refresh the view when part is changedPranav Kant2016-02-211-0/+2
| | | | Change-Id: I189d33cd25f394f5740d54fb5fe5567ac71299e4
* lokdocview: Protect set_part from setting an invalid part numberPranav Kant2016-02-211-0/+9
| | | | Change-Id: Iffbe71ab161d5c50a98fd17ee0fdd0ab4d065e9d
* lokdocview: Center the widget vertically inside the allocationPranav Kant2016-02-141-0/+2
| | | | Change-Id: I891519d54212ecd99273a54aca2a44e2d54c1933
* tdf#97301: Return silently when no document is loadedPranav Kant2016-02-141-0/+3
| | | | Change-Id: Id6cf77ee7597fb992a306649c2f2a3639bf6dad8
* vcl, libreofficekit: gtk_clipboard_wait_for_contents() may return nullMichael Stahl2016-02-091-0/+4
| | | | | | Don't crash then. Change-Id: I4980fe4ea56e023cbf303fa43d1e6b383d983d2e
* cid#1351879 missing breakMiklos Vajna2016-02-051-0/+1
| | | | Change-Id: I3e86b57b6384370666f023115ae7d4671f1eaca1
* coverity#1351757 Uninitialized pointer fieldCaolán McNamara2016-02-041-0/+5
| | | | Change-Id: I996dc17ba0c01bf23283687dffb563b0eac3a31a
* gtktiledviewer: cid#1351757 uninitialized membersMiklos Vajna2016-02-041-0/+2
| | | | Change-Id: Ifb48dc528e95519097477faf79b10e3e7637869d
* new loplugin fpcomparisonNoel Grandin2016-02-041-1/+1
| | | | | | | | | | Find code that compares floating point values with == or != It should rather use rtl::math::approxEqual Change-Id: I9026e08823340fa1d6a042c430515344c93215bd Reviewed-on: https://gerrit.libreoffice.org/21997 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* lok interaction handler: Add handling of io and network errors.Jan Holesovsky2016-02-031-0/+17
| | | | Change-Id: If7c84a7b24f2072439718fb0c473b73243f2ecc1
* lokdocview: Handle password protected documentsPranav Kant2016-02-022-5/+154
| | | | | | | | Change-Id: I606a1112c8eb4c1cc4596d6947ce1223543cc87c Reviewed-on: https://gerrit.libreoffice.org/21861 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* LOK: add Document::setClientVisibleArea()Miklos Vajna2016-02-021-1/+9
| | | | | | | | | | | ... and implement it in Writer. Otherwise there is no way we can perform e.g. page down in an expected way. Without this, the core visible area depends on the zoom in the document, and the client visible area can be something entirely different. Change-Id: Iadfb5a225da09a2551ffa41ddf503bb3d22b3eae
* lokdocview: add a set_visible_area()Miklos Vajna2016-02-022-1/+26
| | | | Change-Id: Ib63959ad64fe52b648e0c0d3fe6d49fb282d57ee
* lokdocview: call lok::Document::setClientZoom() after zoom changeMiklos Vajna2016-02-011-1/+24
| | | | | | | This is similar to what is implemented in online.git's leaflet. If the zoom factor changes, then inform LOK about it on the first keyboard hit. Change-Id: I2db4ffed3897db5c852f4b8aea8f4e2d3500a25a
* lokdocview: log lok::Document::postKeyEvent() argumentsMiklos Vajna2016-02-011-0/+3
| | | | Change-Id: I16e7c0fee34077d5bbb493d9d9502ff82355c2c6
* Missing includeStephan Bergmann2016-01-281-0/+1
| | | | Change-Id: I4930837c2a5bd78c16a83dcccde34843d3026618
* libreofficekit: password interaction optional and off by defaultMichael Stahl2016-01-271-0/+2
| | | | | | | | | | Add setOptionalFeatures() function that clients must call during initialization, and enum LibreOfficeKitOptionalFeatures. Change-Id: I73035193c87033052921c3aad94fdc057fe81111 Reviewed-on: https://gerrit.libreoffice.org/21809 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
* libreofficekit: ask for password when loading encrypted documentsMichael Stahl2016-01-251-0/+8
| | | | Change-Id: I3b3b0c0e64965280c24842b0cf70a21b8abb4dfb
* lokdocview: handle page down and page upMiklos Vajna2016-01-221-0/+6
| | | | Change-Id: I119633474236faa95ecf5fd26cd89789b313e382
* lokdocview: log lok::Document::getTextSelection() parametersMiklos Vajna2016-01-221-0/+4
| | | | Change-Id: I7706fe40705bc74bcebd53b58239c4b159bab7c0
* gtktiledviewer: support pasting PNG imagesMiklos Vajna2016-01-211-4/+22
| | | | Change-Id: Ifaf96dee8b6554282f6a19ac6d6e0d14318aa1f4
* gtktiledviewer: Set buttons insensitive in view-only modePranav Kant2016-01-211-45/+98
| | | | | | | | | | | These buttons, such as, bold, italic, underline, paste, doesn't make any sense in view-only mode. Lets make them insensitive in view-only mode. Change-Id: I194f6a4d707b72d1d6aa3967aa526092445f0926 Reviewed-on: https://gerrit.libreoffice.org/21642 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
* lokdocview: Center the widget inside the allocationPranav Kant2016-01-201-2/+9
| | | | | | | Change-Id: I8d7f8ffb1c5ddd07ccf7d56bdf0ccc866c927401 Reviewed-on: https://gerrit.libreoffice.org/21624 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Pranav Kant <pranavk@gnome.org>
* lokdocview: Package and install selection handlesPranav Kant2016-01-193-6/+26
| | | | | | | | | | Now since, LOKDocView has started to get clients, we need to ship all of its dependencies with the widget. Reviewed on: https://gerrit.libreoffice.org/21605 Change-Id: I874eb416587a80b7760c5f00183d6004dfca4cce
* libreofficekit: log document paste argumentsMiklos Vajna2016-01-151-0/+5
| | | | Change-Id: I0e7783cf73d2d4bfcd4f0c75ca3ad82336048b27
* lokdocview: Fix WARNING when creating an errorDebarshi Ray2016-01-111-1/+1
| | | | | | | | | | | | A GError needs a valid GQuark as the domain. Passing 0 leads to: GLib-WARNING **: (gerror.c:408):g_error_new_valist: runtime check failed: (domain != 0) Change-Id: I2f252eaa83a1519b5d16c7ba22c8f593732807ca Reviewed-on: https://gerrit.libreoffice.org/21261 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Pranav Kant <pranavk@gnome.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
* Silence loplugin:implicitboolconversion between bool and gbooleanStephan Bergmann2016-01-111-2/+2
| | | | Change-Id: I83ce360622eea0fb805833650c0d2126bcd5d8db
* tdf#96513: Limit LOKDocView's zoom in [0.25, 5.0]Pranav Kant2016-01-111-2/+27
| | | | | | | Change-Id: Ibee485909dca1ea4a3774fca7a840afbf2d9883c Reviewed-on: https://gerrit.libreoffice.org/20819 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
* tdf#96421: Return if no window is realizedPranav Kant2016-01-111-0/+2
| | | | | | | Change-Id: I13de7e6eae4e73932e8441ba2e2ad3e4ff888f41 Reviewed-on: https://gerrit.libreoffice.org/20799 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
* iostream is not neededDavid Tardon2016-01-111-1/+1
| | | | Change-Id: I481b402e0d3b42de5b486a159acb8a25e345b8b8
* lokdocview: Use shared_ptr to fix a possible memory leakPranav Kant2016-01-111-6/+6
| | | | | | | | | Possible because boost::property_tree can throw an exception. Change-Id: I68394ce3b30d448d40d8e22555bafdff1ffa6092 Reviewed-on: https://gerrit.libreoffice.org/21309 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* Fix typosAndrea Gelmini2016-01-101-1/+1
| | | | | | | Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
* gtktiledviewer: hide new view button when it's not supposed to workMiklos Vajna2016-01-081-5/+9
| | | | Change-Id: I91003540f994eeaab78bc66ed6e0df9e9f59ee4b
* lool - page border shadow can be disabledMarco Cecchetti2016-01-081-7/+14
| | | | | | | | | | | | Support for text documents and presentations. Added a command line option for gtktiledviewer: --hide-page-shadow. Reviewed on: https://gerrit.libreoffice.org/21210 Change-Id: I1e427693d7af40cb5731d1730ac5b7c486d45c29
* tdf#96514: Emits a 'notify' signal when zoom changesPranav Kant2015-12-301-0/+2
| | | | | | | Change-Id: I5f55e4cce26096afcae3ad3711efa37757aada39 Reviewed-on: https://gerrit.libreoffice.org/20798 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* lokdocview: Use an array to install propertiesPranav Kant2015-12-301-97/+90
| | | | | | | | | | | | | | | | This way we can directly reference any property by pointers to GParamSpec stored in a static array, rather than looking for property using property name. The former is a faster approach. This will come in handy for functions, such as, g_object_notify which needs to access properties to notify the object of any property change in a faster way. Change-Id: Ic4087bff3bdb63a3e8853d158c7af688e5e67811 Reviewed-on: https://gerrit.libreoffice.org/20797 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* coverity#1315075 Uninitialized scalar fieldCaolán McNamara2015-12-211-0/+4
| | | | Change-Id: I003839589354f02f8064b6a6af6174d2793b9b3a
* coverity#1343633 Resource leakCaolán McNamara2015-12-191-8/+6
| | | | Change-Id: I2384091557c2a3b061e2c60118309f35b65b45d6
* coverity#1343632 Resource leakCaolán McNamara2015-12-191-3/+3
| | | | Change-Id: I79bf35a4c1a2f0463abc202f6c2b104ffdd5139c
* coverity#1343631 Resource leakCaolán McNamara2015-12-191-3/+3
| | | | Change-Id: Ic5d7c88ae4080c2e103fb691c2e326a9e239aa12
* lokdocview: Return if no document is setPranav Kant2015-12-172-2/+36
| | | | | | | | | | For example, when document has been destroyed using lok_doc_view_destroy_document() Change-Id: I531b85018ffa25bcf88fb101c912b9f11b489a97 Reviewed-on: https://gerrit.libreoffice.org/20779 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>