summaryrefslogtreecommitdiff
path: root/libreofficekit
AgeCommit message (Collapse)Author
2015-10-30lokdocview: ensure private structure is allocated with operator newMiklos Vajna
It's undesirable to malloc a struct that has a TileBuffer member, while TileBuffer doesn't have a default ctor. Change-Id: I72dfacc0088f238ee101d84838bd7eea51ced82a
2015-10-26gtktiledviwer: try to paste as html, then as plain textMiklos Vajna
Change-Id: I8e1c93fd36fb903c0625b29f9f73825438c9e113
2015-10-22gtktiledviewer: initial paste supportMiklos Vajna
Change-Id: I50b4dfa456d3518f5ef7faf5f634642973441a3e
2015-10-21lokdocview: Emit a warning after errorPranav Kant
Change-Id: Id8e20e6561239096438d420c65d0da6dcc7f5e2e Reviewed-on: https://gerrit.libreoffice.org/19474 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-10-20lokdocview: Use G_PARAM_STATIC_STRINGSPranav Kant
... as `name`, `nick`, and `blurb` are guaranteed to remain valid and unmodified for the lifetime of the parameters. Change-Id: Ic6463b470546669d5a815842daedb170df85d161 Reviewed-on: https://gerrit.libreoffice.org/19472 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-10-20Add DLOPEN_LIBS to configure for some cases where -ldl is neededRichard PALO
use std::sqrt in vcldemo.cxx Change-Id: I24d8ba15ee267d0cad3b063df9b7cfd8d284f4ee Reviewed-on: https://gerrit.libreoffice.org/18591 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-10-14Bump gtk+ version to 2.18Riccardo Magliocchetti
2.18 is the version available in RHEL 6 released in 2010. Change-Id: I4cd4fc89f6b51e6f58ca72b8182f80316b1f4f88 Reviewed-on: https://gerrit.libreoffice.org/19330 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-10-12gtktiledviewer: drop tiles on set-part eventMiklos Vajna
When changePart() is called, we have two type of actions: - the ones we want to execute only in case the part was changed by the user (and not programatically -- e.g. because the request came from the widget) - the ones we want to execute all the time Resetting the view (so the tile buffer drops all the tiles) is something we want to do all the time, that's one of the needed things when the set-part event is emitted. Change-Id: Ic6bfbe460dc5a3fd8834f3b1ef93436fc9d3ad84
2015-10-09lokdocview: log postUnoCommand() argumentsMiklos Vajna
Change-Id: I0febc2b89d95bde59ad9d3a90d404b3932cc3624
2015-10-09LOK: CALLBACK_SEARCH_RESULT_COUNT is redundantMiklos Vajna
1) The size of the searchResultSelection array in LOK_CALLBACK_SEARCH_RESULT_SELECTION provides the same information. 2) None of the clients except lokdocview used it. 3) Only sw provided this callback, not sc/sd. Change-Id: I9da639b6693f24634f298f9bc4773f705e944359
2015-10-07lokdocview: invalidate after selection changeMiklos Vajna
Without this e.g. Calc search does not show the selection rectangle correctly. Change-Id: I5bc20a93ee861d3353bc2e1c1ed7ea8d0e6c8ed4
2015-10-06libreofficekit: -Werror=unused-macrosMichael Stahl
Change-Id: I154bd2c101819669d43ab475144ae400454df4d0
2015-10-06lokdocview: log paintTile() argumentsMiklos Vajna
Change-Id: I8015c8030c1c7f53ae1de053fe268a33464834ad
2015-10-06gtktiledviewer: recognize LOK_CALLBACK_SEARCH_RESULT_SELECTIONMiklos Vajna
Change-Id: Ib932ee36e41afcb53d15a6362b998cc673d474f2
2015-10-05LOK: fixed duplicated switch case valuesMihai Varga
2015-10-05LOK: add the search phrase to the search result count callbackMihai Varga
We need this to notify the user for which search phrase no results were found Change-Id: I8cc7ab235b9129dfdcb022145456180ff7e4ca92
2015-10-05LOK: added the button type and key modifier to postMouseEvent()Mihai Varga
To get a better functionality we need to know the button type (left, right, middle). We also need the key modifier (ctrl, alt, shift) for actions such as ctrl+click (to open a link) or shift+click to select Change-Id: Iaccb93b276f8a6870dd41cc5132dbb85d2bbf71b
2015-10-05gtktiledviewer: make it possible to trigger SearchItem.CommandMiklos Vajna
Change-Id: I210da07802bae1f2f2948976bc0faf90e93152b4
2015-10-05lokdocview: handle LOK_CALLBACK_SEARCH_RESULT_COUNTMiklos Vajna
Change-Id: I0d1b641654e0de65169e19bb5843ea11b43a90a3
2015-09-29lokdocview: Reset view completelyPranav Kant
Resetting tiles only is not enough. We need to empty stale selection rectangles, handle bars, cursor positions etc., so that they do not interfere with next view to be opened using same widget instance. We are not destroying the document here, so the widget would still point to the same document unless it is made to point to another document by subsequent lok_doc_view_open_document calls. Change-Id: I3c7cc789c8c7393b3793b4edf6aa96d54bc0b1a3 Reviewed-on: https://gerrit.libreoffice.org/18866 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-09-28libreofficekit: fix mismatched free() / deleteMiklos Vajna
Change-Id: I60eb53d4bf9943fd52e0a9d8e3574a7d1cc027e0
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-21gtktiledviewer: fix leftover import progressbar in createView()Miklos Vajna
Change-Id: Ia71e80c521cdc6a8e4df52e51e063a44a0dd53df
2015-09-21gtktiledviewer: don't crash on opening non-existing filesMiklos Vajna
Change-Id: Ic48adaf038e8fbcc86a94b5e351d2f963fcfcd16
2015-09-21lokdocview: set view before calling lok::Document member functionsMiklos Vajna
getTextSelection() is still to be done, but has to be moved to the widget first. Change-Id: I780a31f1dbce38b2b7398bfdacbbc1c40881229d
2015-09-21LOK: allow postMouseEvent() in multiple viewsMiklos Vajna
Change-Id: Iafb08cb44a96dbc03d12367d21b4120063bd0222
2015-09-21gtktiledviewer: use setView() before postKeyEvent()Miklos Vajna
Also in SfxLokHelper::setView() set the current view shell directly, GetFocus() in VCL may be a NOP for hidden windows. With this, the Writer layout dump shows that two Gtk windows can have different cursor positions correctly. Change-Id: I81890c1d8ad7972f1194db3d5f2e9d8a39fc2f87
2015-09-21gtktiledviewer: add setupWidgetAndCreateWindow() to avoid copy&pasteMiklos Vajna
Change-Id: Ibbbaaa1c148cfd4578ad37e0f99b62ab885a1a83
2015-09-21lokdocview: set up the widget in all windowsMiklos Vajna
With this finally the number of GTK+ windows always match the number returned by SfxLokHelper::getViews(). Change-Id: Ia45bef7dea86b80cfac00e2ad7c1a16d7f5b507b
2015-09-21lokdocview: avoid GTK+ calls in openDocumentInThread()Miklos Vajna
GTK+ calls should be made from the main thread. Change-Id: Idcfa46d427d6e35fc544246a691bafc72f75a74c
2015-09-21gtktiledviewer: set up a new GtkWindow for a new viewMiklos Vajna
Change-Id: I9dcb5871c231a49bcd65a1187df6c3c81f92bd55
2015-09-21gtktiledviewer: factor out setupDocView() from main()Miklos Vajna
Change-Id: Iac803f03267859c11f0f9090346b09b90c115b76
2015-09-21gtktiledviewer: factor out createWindow() from main()Miklos Vajna
Change-Id: Ib7ccd2192247805205b65e5e8da67bcc826f4d31
2015-09-21lokdocview: allow not calling documentLoad()Miklos Vajna
Change-Id: I2ff57c4be11cd3908bc951ebf572a2c02e2c4585
2015-09-21gtktiledviewer: allow findbar in multiple windowsMiklos Vajna
With this, all previously global data is now stored per-window in the g_aWindows map. Change-Id: I45b4449ee7d516106ea0b039d1af97db49edf759
2015-09-21gtktiledviewer: allow part selector in multiple windowsMiklos Vajna
Change-Id: Ib31fca3d8b4119704fb1a5c3cee885e7c239c247
2015-09-21gtktiledviwer: tool item registration is per-windowMiklos Vajna
Change-Id: I11a6cda7b9b8949c48c201c4bd467b49f2f43ca5
2015-09-21gtktiledviwer: allow GtkToolItems in multiple windowsMiklos Vajna
Change-Id: I6c19a9bdd34163d12047929170e5cfa7bb9a5820
2015-09-21gtktiledviewer: allow multiple status barsMiklos Vajna
Change-Id: I84c4102937deee662814c41607ee8de380a067f2
2015-09-21gtktiledviewer: allow multiple DocView instancesMiklos Vajna
Change-Id: I4e8a08d71a94445e8fd30563867a2741cad862e5
2015-09-21gtktiledviewer: these globals can be staticMiklos Vajna
Change-Id: Ife0a4bb1102f6135e297dc69ba5b52b89a5dd9dd
2015-09-21gtktiledviewer: add button tooltipsMiklos Vajna
Change-Id: Ifad67adf80761118bbbfb110cbadd493214fee93
2015-09-21lok::Document: add createView()Miklos Vajna
Change-Id: Ic871ec41992b611b10958799b2dc12375a91efe4
2015-09-17boost->stdCaolán McNamara
Change-Id: Ifde84627578283bd057d7393eb7e5578ef5c029a
2015-09-11LOK: don't use unstable API unconditionally when including the GTK headerMiklos Vajna
Change-Id: I679ddfdadbf4746d3fba64d3d5157ec070b4f6dd
2015-09-11lokdocview: GTK+ calls should be made from the main threadMiklos Vajna
Change-Id: Ia76ef111170700ef507550222ca917986d4fe00e
2015-09-09LOK: moved the decalaration of LibLODocument_Impl to make it visibleMihai Varga
We needed a better way to test LOK methods that are not app specific, but are defined in /desktop/source/lib/init.cxx. So the decalaration needs to be visible. I also moved the `getStyles` test in the new test file Change-Id: I98d97dc17a66e72732ca7bd848c131610790f48e
2015-09-04Revert "LOK: added a general getCommandValues method"Mihai Varga
This reverts commit 9640dcea46dd3201aa4c27f6a3918f7419288a2a.
2015-09-04LOK: added a general getCommandValues methodMihai Varga
This method returns a JSON mapping of the posible values for the given command (e.g. .uno:StyleApply, etc). returns: {commandName: "cmdName", commandValues: {json_of_cmd_values}} Change-Id: Ic8f970d077af6be9bc226f72f725b6cdf2d4c160
2015-08-19Fix incomplete g-i annotationsPranav Kant
Change-Id: I2665a12251921523045f4071df88ca69ecd5a5c0