summaryrefslogtreecommitdiff
path: root/libreofficekit
AgeCommit message (Collapse)Author
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
2015-08-18lok::Document getStyles methodMihai Varga
This method returns a JSON mapping of style families to a list of styles from the corresponding family. Will be used to know and apply styles in tiledrendering. Change-Id: I0aa395c40b9573920ade44255f97c077475ae5f1
2015-08-17gtktiledviewer: Jump to cursor position when it changesPranav Kant
Change-Id: If50ac0bd21e59b0e0639aa353513451e88ae2a9f
2015-08-05loplugin:unusedmethodsNoel Grandin
Change-Id: I6801618efb5a66d24156fa429e026acb6ca03aba Reviewed-on: https://gerrit.libreoffice.org/17506 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-04lokdocview: Don't use extern variable: lokThreadPoolPranav Kant
Change-Id: Ia208e3309bb64baf71ceb97cdf1b3b57b6120353
2015-08-03coverity#1315075 Uninitialized pointer fieldCaolán McNamara
Change-Id: I4e933b458ca26b2a92d4953ca6cd6220dd730cf9
2015-08-01LOK: Implement parts for Writer too.Jan Holesovsky
In Writer, the meaning of 'parts' is a bit different than in Calc or Impress. In Writer, the parts mean pages, and the document does not give a completely different view, the cursor just jumps to the given page. It is up to the client to follow the cursor appropriately to have the desired effect. Change-Id: I56b3264e0340cd639bdabfa92b74b52bd1f391a5
2015-07-28libreofficekit: -Werror,-Wformat-securityMiklos Vajna
Change-Id: I177ea091fb1061d9fa71f7fb1a84629128afd6a0
2015-07-28lokdocview: post_command arguments are not supposed to be constPranav Kant
Change-Id: Ibc22d03d9eee9fd151ecf5773e36c2519141a5eb
2015-07-28lokdocview: setGraphicSelection in another threadPranav Kant
Change-Id: Ib7a6bf63ee6f300c6c5d50d02a3465d0a075a5be
2015-07-28lokdocview: Move postMouseEvent in separate LOK threadPranav Kant
Change-Id: I9d1a08db2a91a596d3039a2388c22e6ea76dc2b1
2015-07-28lokdocview: Use only one ctor for instantiating LOEventPranav Kant
... and set each member variable manually. Additionally, improves documentation of the struct LOEvent. Change-Id: I2e8e1dc70298dc85943769e2f01c6127eedb8207