summaryrefslogtreecommitdiff
path: root/include/LibreOfficeKit/LibreOfficeKitGtk.h
AgeCommit message (Collapse)Author
2022-10-26Enable gtktiledviewer on WindowsMike Kaganski
A new configure argument is introduced: --with-gtk3-build=<absolute path to GTK3 build> When provided, libreofficekit_selectionhandles package, libreofficekitgtk library and gtktiledviewer executable would be built on Windows using the GTK3 libraries in the passed directory, that must contain lib/pkgconfig subdirectory with correct pkg-config data. Change-Id: I6504af6eec0fc73cceb26a1ce923337abe14b5c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141624 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-05-13sw content controls, dropdown: add LOK APIMiklos Vajna
- expose the available list items in a new "items" key of the LOK_CALLBACK_CONTENT_CONTROL callback - add a new lok::Document::sendContentControlEvent() function to be able to select a list item from the current drop-down - add a new listbox to the gtktiledviewer toolbar to select a content control list item when the cursor is inside a dropdown - add tests for the array API of tools::JsonWriter Change-Id: I47f1333a7815d67952f7c20a9cba1b248886f6dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134256 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2019-11-19lokdocview: Add support for get_command_valuesCorentin Noël
Change-Id: I6a007724de8aea0e4de035313855acd6e9342ee7 Reviewed-on: https://gerrit.libreoffice.org/82377 Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2018-01-08lokdocview: Make g-ir-compiler, scanner happyPranav Kant
Silence their warnings Change-Id: Id397745bbf7fe6687b60eeca60d5a0b67da421b1
2017-03-15tdf#102511: Fix gobject-introspection annotation syntaxMike Gorse
Change-Id: I43a3ee21bd2db9ace809084d3ab888008243c97f Reviewed-on: https://gerrit.libreoffice.org/35155 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk>
2016-10-21tdf#102511: Add (allow-none) for backward GI compatibilityPranav Kant
(allow-none), though deprecated since GI 1.42, is required to maintain the backward compatibility since (nullable), added in GI 1.42, is not understood by GI tools < 1.42 preventing the clients from passing a null parameter to various functions in the widget. We can remove this deprecated (allow-none) annotation once we bump the GI version in LibreOffice to atleast 1.42 Change-Id: I98a1f3d2205ec5afd8060f16e69c5f938f229e26
2016-08-18gtktiledviewer: specify author name when calling initializeForRendering()Miklos Vajna
Open two views, and type into both of them when a Writer doc with redlining enabled is open: the manage changes dialog now shows how the correct author is used when creating the redline items. Change-Id: I48fb90301bfcc04b06d5be5544324ca76fe7b3d7
2016-06-21lok: Change version string to JSON formatPranav Kant
Change-Id: Ie1264fed9964b09006980df2e151e170b48b4082
2016-06-21lok: Expose LO version informationPranav Kant
Change-Id: Ided924e928c04385457c7a2e231fdf57e7e38970
2016-04-19In lok_init_2, allow vnd.sun.star.pathname user_profile_urlStephan Bergmann
...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>
2016-04-19tdf#99314 lokdocview: add new userprofileurl propertyMiklos Vajna
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>
2016-02-05Fix typosAndrea Gelmini
Change-Id: Ice72f8d9971e15dd6ef365e64cd567b8581a92d3 Reviewed-on: https://gerrit.libreoffice.org/21797 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-02-02lokdocview: Handle password protected documentsPranav Kant
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>
2016-02-02lokdocview: add a set_visible_area()Miklos Vajna
Change-Id: Ib63959ad64fe52b648e0c0d3fe6d49fb282d57ee
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>
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: Added some missing comments/annotationsPranav Kant
Change-Id: I2f62bae37719ce96677a5ca6ffd93c8edb325a6a Reviewed-on: https://gerrit.libreoffice.org/20777 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
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-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-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-06tdf#96246: Make pRenderingArguments nullablePranav Kant
Type gchar* is not nullable by convention. See: https://wiki.gnome.org/Projects/GObjectIntrospection/Annotations#Nullable_parameters Change-Id: Ibfee816a3ef2d29c7376071fb61eda7bf0538efb Reviewed-on: https://gerrit.libreoffice.org/20425 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-11-18gtktiledviewer: allow passing initializeForRendering() argumentsMiklos Vajna
Change-Id: Ic7b52764cf2fedbf73d4dcaaf36d1055b8ee22f2
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'). Change-Id: I254939ebc8ea5f309ae39686dcaaeddd5148b0c9
2015-09-25Move all introspection comments to header filePranav Kant
... wherever possible. There are few things we can't move to header file, for example, the comments corresponding to GObject properties, and signals. Change-Id: If74d61b17ccee11f8a056f3a93040d2cff2dd98d Reviewed-on: https://gerrit.libreoffice.org/18863 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-09-21lokdocview: allow not calling documentLoad()Miklos Vajna
Change-Id: I2ff57c4be11cd3908bc951ebf572a2c02e2c4585
2015-09-11LOK: don't use unstable API unconditionally when including the GTK headerMiklos Vajna
Change-Id: I679ddfdadbf4746d3fba64d3d5157ec070b4f6dd
2015-07-28lokdocview: Use a thread pool for most LOK callsPranav Kant
This is a thread pool with just single thread because LOK is single threaded; using multiple threads in this case would be useless. Primary reason we are using a thread pool here is to avoid the overhead in spawning a new thread for each LOK call. Change-Id: Ibbfdb7cb0a8ef9f07bcc659e65ce8997716aa245
2015-07-28lokdocview: Call open_document in another threadPranav Kant
This is to keep the widget responsive during document load. Change-Id: I81acaffc75ca7deddd6cc2de6abae22d009d40cd
2015-07-22gtktiledviewer: method for resetting all tilesMihai Varga
[ Miklos Vajna: The point of the change is that without this, part switching in Calc does not work, as Calc does not invalidate everything after a part switch (unlike Impress), and we suppose the right fix for this is to let the clients throw away the tiles, rather than letting Calc send out invalidations, too. ] Change-Id: Id368b955c54efb87ecf3d59278ddb5cdbb2e7856 Reviewed-on: https://gerrit.libreoffice.org/17267 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-06-29lokdocview: Remove superfluous *_post_key()Pranav Kant
Instead directly let LOKDocView handle the input. Change-Id: I260a460df23c3e2e5c78d8b363bb864ae5c63dab
2015-06-22lokdocview: Use *get_instance_private () to get private structurePranav Kant
Let lok_doc_view_get_instance_private () do the pointer arithmatic. Additionally, we are saving sizeof (void*) already in the _LOKDocView struct with this approach. Change-Id: I6d991d5834ef15dad24acb14a1d4bbf7d03df762
2015-06-22lokdocview: Use GInitablePranav Kant
The construction of LokDocView widget can fail because it involves initializing the lok context via lok_init. Having lok_init calls in constructed virtual method is a bad idea since it assumes that construction will never fail. So, implement GInitable for this class, and move the object initialization from constructed to initable. Change-Id: Idf18a054cf8ef2e946392458ec52cb0107bd7454
2015-06-16lokdocview: Restructure this GObject classPranav Kant
This is a big messy commit restructuring the whole class to follow most common practices followed by standard GObject classes, so that it can keep gobject-introspection happy; hence, allowing this widget to be used from other languages. Change-Id: I10c34dad402d1ec586958b2db21ff44412c36cea
2015-06-12lokdocview: Create LOK context inside of lok_doc_view_newPranav Kant
Change-Id: I675192d6bd6d10e6c7974a5de6f488f9a087ac32
2015-06-12lokdocview: Change parent class to GtkDrawingAreaPranav Kant
It is not the job of the widget to provide the scroll bars. Change-Id: Iafc5724ed5b21717d711bb8f7e1a076dd1288b76
2015-06-09lokdocview: mark *_get_type() with const function attributePranav Kant
Use G_GNUC_CONST that adds const function attribute to lok_doc_view_get_type() for better performance. Change-Id: Id79f0395a98c4f98b46303e9b5ee1e103fbe331f
2015-06-09lokdocview: Modernise LOKDocView as GObjectPranav Kant
Change-Id: I3bbd07ce8163890f9b88567966622dd4fbe9d94d
2015-06-09lokdocview: Lets follow the GObject naming conventionPranav Kant
If we are mentioning this type as DocView, we should break it at each capital letter. Change-Id: I76c7eea455281e541b2196a03778018aa127cebe
2015-06-09lokdocview: Let G_BEGIN/END_DECLS handle the compiler checkPranav Kant
Change-Id: I8c60c9ba13516fc2b3a926c19b41ee19805d74a5
2015-05-28gtktiledviewer: use SearchItem.SearchStartPoint*Miklos Vajna
Change-Id: If0219eda3a2ca3b97c37bea70e35d47e49d38e02
2015-05-27lokdocview: fix not updated part selector when search changes partMiklos Vajna
Change-Id: I337eed47c56dbbbebda4d7fe716eab6177936dc0
2015-05-21gtktiledviewer: handle LOK_CALLBACK_SEARCH_NOT_FOUNDMiklos Vajna
Change-Id: Ic545bbd14d11a3b310f4d72ee02e51a7cb6f4f22
2015-04-22lok::Document::postUnoCommand: allow passing argumentsMiklos Vajna
Change-Id: I6c24a8e392473f3985d3bde9b76a3148fd03bc9a
2015-04-14lokdocview: implement LOK_CALLBACK_STATE_CHANGEDMiklos Vajna
Change-Id: I239849056dd88f785dce239c4d53d6c905177b64
2015-03-30lokdocview: move keyboard handling to LOKDocView_ImplMiklos Vajna
Change-Id: I1117ec42bdf0f2cb19f77723b87597d301d20ddb
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-16LOK: Implement posting of .uno: commands.Jan Holesovsky
Implements also Bold button as an example in the gtktiledviewer. Change-Id: I3b07d51165f28534aadbb4673f964ec10d5fc6ef
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: add lok_docview_get_edit()Miklos Vajna
Change-Id: I57a9c94ed0fb67befd226afe78a90bee9a7fb358