summaryrefslogtreecommitdiff
path: root/libreofficekit
AgeCommit message (Collapse)Author
2016-01-27libreofficekit: password interaction optional and off by defaultMichael Stahl
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>
2016-01-25libreofficekit: ask for password when loading encrypted documentsMichael Stahl
Change-Id: I3b3b0c0e64965280c24842b0cf70a21b8abb4dfb
2016-01-22lokdocview: handle page down and page upMiklos Vajna
Change-Id: I119633474236faa95ecf5fd26cd89789b313e382
2016-01-22lokdocview: log lok::Document::getTextSelection() parametersMiklos Vajna
Change-Id: I7706fe40705bc74bcebd53b58239c4b159bab7c0
2016-01-21gtktiledviewer: support pasting PNG imagesMiklos Vajna
Change-Id: Ifaf96dee8b6554282f6a19ac6d6e0d14318aa1f4
2016-01-21gtktiledviewer: Set buttons insensitive in view-only modePranav Kant
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>
2016-01-20lokdocview: Center the widget inside the allocationPranav Kant
Change-Id: I8d7f8ffb1c5ddd07ccf7d56bdf0ccc866c927401 Reviewed-on: https://gerrit.libreoffice.org/21624 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Pranav Kant <pranavk@gnome.org>
2016-01-19lokdocview: Package and install selection handlesPranav Kant
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
2016-01-15libreofficekit: log document paste argumentsMiklos Vajna
Change-Id: I0e7783cf73d2d4bfcd4f0c75ca3ad82336048b27
2016-01-11lokdocview: Fix WARNING when creating an errorDebarshi Ray
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>
2016-01-11Silence loplugin:implicitboolconversion between bool and gbooleanStephan Bergmann
Change-Id: I83ce360622eea0fb805833650c0d2126bcd5d8db
2016-01-11tdf#96513: Limit LOKDocView's zoom in [0.25, 5.0]Pranav Kant
Change-Id: Ibee485909dca1ea4a3774fca7a840afbf2d9883c Reviewed-on: https://gerrit.libreoffice.org/20819 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2016-01-11tdf#96421: Return if no window is realizedPranav Kant
Change-Id: I13de7e6eae4e73932e8441ba2e2ad3e4ff888f41 Reviewed-on: https://gerrit.libreoffice.org/20799 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2016-01-11iostream is not neededDavid Tardon
Change-Id: I481b402e0d3b42de5b486a159acb8a25e345b8b8
2016-01-11lokdocview: Use shared_ptr to fix a possible memory leakPranav Kant
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>
2016-01-10Fix typosAndrea Gelmini
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-08gtktiledviewer: hide new view button when it's not supposed to workMiklos Vajna
Change-Id: I91003540f994eeaab78bc66ed6e0df9e9f59ee4b
2016-01-08lool - page border shadow can be disabledMarco Cecchetti
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
2015-12-30tdf#96514: Emits a 'notify' signal when zoom changesPranav Kant
Change-Id: I5f55e4cce26096afcae3ad3711efa37757aada39 Reviewed-on: https://gerrit.libreoffice.org/20798 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2015-12-30lokdocview: Use an array to install propertiesPranav Kant
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>
2015-12-21coverity#1315075 Uninitialized scalar fieldCaolán McNamara
Change-Id: I003839589354f02f8064b6a6af6174d2793b9b3a
2015-12-19coverity#1343633 Resource leakCaolán McNamara
Change-Id: I2384091557c2a3b061e2c60118309f35b65b45d6
2015-12-19coverity#1343632 Resource leakCaolán McNamara
Change-Id: I79bf35a4c1a2f0463abc202f6c2b104ffdd5139c
2015-12-19coverity#1343631 Resource leakCaolán McNamara
Change-Id: Ic5d7c88ae4080c2e103fb691c2e326a9e239aa12
2015-12-17lokdocview: Return if no document is setPranav Kant
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>
2015-12-17lokdocview: Use GLib basic typesPranav Kant
Change-Id: I07add7b9dcb1dc53d7ed61ff71545489de3be155 Reviewed-on: https://gerrit.libreoffice.org/20778 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2015-12-17lokdocview: Superfluous *_set_zoom() call on widget initializationPranav Kant
G_PARAM_CONSTRUCT implies that parameter will be set upon widget initialization which means calling lok_doc_view_set_zoom() while document still points to null. Change-Id: Ib576ac3b32c2349be2b2df6067ae79a056a03028 Reviewed-on: https://gerrit.libreoffice.org/20775 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2015-12-17lokdocview: Remove an easy FIXMEPranav Kant
Change-Id: I8305f3eb45330f457089ca0524a0df004410f59c Reviewed-on: https://gerrit.libreoffice.org/20774 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2015-12-16tdf#96250 LOK: guard against 0 pRenderingArgumentsMiklos Vajna
Change-Id: Ifa39777795ce966662c31c891ffc1b9b1a297b00
2015-12-11tdf#96384: Add a new signal 'text-selection' to lokdocviewPranav Kant
To help client know when the user has selected a non-null text. Change-Id: Ie939612fc5f38e2e50e9ad9792e04e89ae918886 Reviewed-on: https://gerrit.libreoffice.org/20621 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-12-10Crash fix in gtktiledviewer when creating new viewAshod Nakashian
Change-Id: I85bb71e775f300214e05e75636bbee200d35ffaa Reviewed-on: https://gerrit.libreoffice.org/20418 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2015-12-10loplugin:nullptr: More NULL -> nullptr automatic rewriteStephan Bergmann
Change-Id: Ie83819e2bcdc5fa160b39296b005ca9a5ff74b1d
2015-12-09tdf#96317: Add API for copy/paste from/to the widgetPranav Kant
Change-Id: Iac869ddb65cbdd2227f96d047d83159ca7819f11 Reviewed-on: https://gerrit.libreoffice.org/20534 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2015-12-09loplugin:nullptrStephan Bergmann
Change-Id: Id249baebf047bae083e36ad6e23d5bb8989f9a98
2015-12-09tdf#96318: Add searching APIPranav Kant
Clients should now use these APIs to search for text in the widget, rather than executing UNO commands directly on the widget. This allows searching for text in the widget in view-only mode too. Change-Id: I013b6f96e69a634ec33367394d39c0f645a4994d Reviewed-on: https://gerrit.libreoffice.org/20488 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2015-12-09tdf#96316: Decouple view-only/editable modesPranav Kant
- Move text selection and graphic selection tasks into functions - Merge GDK_BUTTON_PRESS, GDK_BUTTON_RELEASE conditional code - Do not change to 'move' cursor in view-only mode - Ignore LOK_POST_COMMAND, LOK_SET_GRAPHIC_SELECTION in view-only As a consequence this commit also allows dragging handles during text selection in view-only mode which was earlier not possible. Change-Id: Iffb668d5447dd646a1e40237dee8d8d3fa3314b6 Reviewed-on: https://gerrit.libreoffice.org/20487 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2015-12-09lokdocview: Set a 'default' path for LOK initPranav Kant
When passed NULL to lok_doc_view_new, use the default path : $libdir/libreoffice/program as LOK install path Change-Id: I1e033c407184b29b1509cfb8c416b514591d67ce Reviewed-on: https://gerrit.libreoffice.org/20476 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2015-12-07Let LIBO_INTERNAL_ONLY imply LOK_USE_UNSTABLE_APIMiklos Vajna
Change-Id: Ifbed5e534ba79d32b7188bb7fb7108338b6e124d
2015-11-26cid#1340232 uncaught exceptionMiklos Vajna
Change-Id: Idb80a055aca67a3fb90aef597ace932f47af8e05
2015-11-26cid#1340231 uncaught exceptionMiklos Vajna
Change-Id: I69f2078093c2c23ae0a02a6a292e51fdbdde9ed4
2015-11-24cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: I1934441858baeeb41a46f694dbcef2d846b308b7
2015-11-23loplugin:cstylecastStephan Bergmann
Change-Id: I4a02309c3ef4cb8c88edd538012ed2a8c43da307
2015-11-23Do all svp text rendering with cairoCaolán McNamara
enabling us to delete a whole pile of foo For android we patch cairo, which is internal in that case, to swap the rgb components so that cairo then matches the OpenGL GL_RGBA format so we can use it there where we don't have GL_BGRA support. Change-Id: I25e34889c7b7263438b143dd2a2ad882fb0f190a
2015-11-23android: remove duplicated bitmapsMiklos Vajna
Change-Id: I5e16aa9da0aabe4302ebdd30b080b6bad4767006
2015-11-20-Werror,-Wdeprecated-declarationsStephan Bergmann
Change-Id: I7c7d3dda02a3745128a5a125b4b6952e087cdcda
2015-11-19gtktiledviewer: allow setting custom background colorMiklos Vajna
E.g. it helps testing the semi-transparent shadow around Writer pages to append "--background-color yellow" to the commandline arguments. Change-Id: Ib94750e936abe3f41e4982534431fd5115e2c543
2015-11-18gtktiledviewer: allow passing initializeForRendering() argumentsMiklos Vajna
Change-Id: Ic7b52764cf2fedbf73d4dcaaf36d1055b8ee22f2
2015-11-18lok::Document::initializeForRendering: support init. argumentsMiklos Vajna
Change-Id: I8aaf19a50f25f495cb87fba7ff6a4b0f56ed7d80
2015-11-17gtktiledviewer: set author name when inserting a commentMiklos Vajna
Change-Id: Iee66687ce813ff801f29e4568329ed2a39f905ba
2015-11-14gtktiledviewer: add toolbar buttons to insert / delete commentsMiklos Vajna
Change-Id: Ia566e983548a89d974c133823da2f07d5c2e35e4