summaryrefslogtreecommitdiff
path: root/libreofficekit/source
AgeCommit message (Collapse)Author
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-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-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: 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-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-21lokdocview: allow not calling documentLoad()Miklos Vajna
Change-Id: I2ff57c4be11cd3908bc951ebf572a2c02e2c4585
2015-09-11lokdocview: GTK+ calls should be made from the main threadMiklos Vajna
Change-Id: Ia76ef111170700ef507550222ca917986d4fe00e
2015-08-19Fix incomplete g-i annotationsPranav Kant
Change-Id: I2665a12251921523045f4071df88ca69ecd5a5c0
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
2015-07-28lokdocview: Follow the camelCase naming conventionPranav Kant
Change-Id: I05582d33ee3535d4b677fa8138c9d573585a4252
2015-07-28lokdocview: Cannot use same GTask object for all calls.Pranav Kant
Change-Id: I875d49a9e4360659087ae70456edefb15bc57b20
2015-07-28Use thread pool for LOK call: paintTile()Pranav Kant
Change-Id: I45e94248013277affa11e91439fbc16995b8ed8e
2015-07-28lokdocview, tilebuffer: Add DOxygen commentsPranav Kant
Change-Id: I27377f0a758729a7877cfc6a56ea1b4bb3d1c3c9
2015-07-28lokdocview: Make paintTile() asyncPranav Kant
Change-Id: I57db9e3adf26996e6e1e105b8b95f53e88e7760f
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: Emit load-changed signal showing load progressPranav Kant
Change-Id: I69b4c05d12c0c0b2ca6b7d1ad76ed74cc1f4346a
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-07-07lokdocview: Grab focus on mouse 'button-press-event'Pranav Kant
Change-Id: I65187bbd2cc32d9278d8b3890a82b5555390858a
2015-06-29lokdocview: Handle DELETE keyPranav Kant
Change-Id: I58d0c36decf81c812c108458b449402416ebcc2d
2015-06-29tilebuffer: Add timer to measure paintTile() callPranav Kant
Change-Id: I2645863c7445e17d77e2c4e2dc24e22f8685034e
2015-06-29lokdocview: Remove superfluous *_post_key()Pranav Kant
Instead directly let LOKDocView handle the input. Change-Id: I260a460df23c3e2e5c78d8b363bb864ae5c63dab
2015-06-29lokdocview: Don't handle hyperlink clicksPranav Kant
Instead emit the signal 'hyperlink-clicked', and let the application decide how it wants to handle the hyperlink clicks. Change-Id: Ief72bbd16727e140cacf28b852ad43952c02f7ae
2015-06-22lokdocview: fixed a signal namePranav Kant
Change-Id: I645516d43562dfa03c27e2bea366e9a161829bfe
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