summaryrefslogtreecommitdiff
path: root/libreofficekit
AgeCommit message (Collapse)Author
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-28gtktiledviewer: Fill whole statusbar with progressbarPranav Kant
We don't have anything yet to put in statusbar. Let progressbar fill the whole width of statusbar for now. Change-Id: I4cd8745e997a0d2b917bc5baf358b097174d0df9
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-27tiledrendering: added getPartName method for calcMihai Varga
This method is used to get the sheet's name and to display it in the tabs (sheet selector) I've also added an unit test for it and uncommented a similar one Change-Id: Ia866815c594a873812c71a6c86e303c869e1f093 Reviewed-on: https://gerrit.libreoffice.org/17294 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
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-29g_assert_nonnull was not declaredCaolán McNamara
Change-Id: Ie98c37d4bdaa365ac27e8620fb5bbecbb0faccdf
2015-06-29gtktiledviewer: Don't continue on widget init failurePranav Kant
Change-Id: I5916357903fad5878d29bc31f21af45816a45ec5
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-28Fix typosAndrea Gelmini
Change-Id: Ifd126a535f18db79a18aaec61b76cdf26ab33dff Reviewed-on: https://gerrit.libreoffice.org/16522 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
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
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-22gtktiledviewer: do HTML copying if possibleMiklos Vajna
Change-Id: I24e7b18442cb08814a73dd33b368b368039a11e4
2015-06-19LOK: return used format in Document::getTextSelection()Miklos Vajna
This allows requesting text/html, with falling back to plain text if necessary. Change-Id: Ie6d4e0e173311ba018553043b6a869abf193bf6f Reviewed-on: https://gerrit.libreoffice.org/16377 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-06-18gtktiledviewer: add copy buttonMiklos Vajna
Change-Id: I56ed5047da118eac01d7dea150597133215278e2
2015-06-17Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe
This may reduce some degree of dependency on boost. Done by running a script like: git grep -l '#include *.boost/scoped_array.hpp.' \ | xargs sed -i -e 's@#include *.boost/scoped_array.hpp.@#include <memory>@' git grep -l '\(boost::\)\?scoped_array<\([^<>]*\)>' \ | xargs sed -i -e 's/\(boost::\)\?scoped_array<\([^<>]*\)>/std::unique_ptr<\2[]>/' ... and then killing duplicate or unnecessary includes, while changing manually m_xOutlineStylesCandidates in xmloff/source/text/txtimp.cxx, extensions/source/ole/unoconversionutilities.hxx, and extensions/source/ole/oleobjw.cxx. Change-Id: I3955ed3ad99b94499a7bd0e6e3a09078771f9bfd Reviewed-on: https://gerrit.libreoffice.org/16289 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-06-16lokdocview: couple for missing static_cast<GParamFlags>()Miklos Vajna
Change-Id: I038c05c0d081f52e4ac90688f73397565413632d
2015-06-16Superfluous block; lets merge into onePranav Kant
Change-Id: I2f49394c53deece8e86a7f290250c4f52918c5d8
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-15gtktiledviewer: Replace deprecated Gtk functionsPranav Kant
Change-Id: I354aa987f8e732945fb552d855a3416c782bb508
2015-06-15lokdocview, gtktiledviewer: Remove gtk version checksPranav Kant
We already have the global ENABLE_GTK3 guard for RHEL5 baseline. Change-Id: Id814a4063861a1e750952b44686ed24864c0394f
2015-06-15lokdocview: Port to gtk3; 'expose-event' -> 'draw'Pranav Kant
Change-Id: I8d2541f5cbd2b908c2b0dc52cccf9b936bbc307a
2015-06-15lokdocview, gtktiledviewer: Port to gtk3Pranav Kant
Change-Id: I57f2d7b9383790e5c34fc517a905dd537519598f
2015-06-14cppcheck: postfixOperatorJulien Nabet
Change-Id: Ia17bdf6e8f871d64add358822ea383236ecd6405
2015-06-12Fix RHEL5 buildMiklos Vajna
Change-Id: I9a71ee85d2d28aed5bd3f4d1f6e91261a9228d04
2015-06-12lokdocview: Create LOK context inside of lok_doc_view_newPranav Kant
Change-Id: I675192d6bd6d10e6c7974a5de6f488f9a087ac32
2015-06-12lokdocview: Make this GObject class introspectablePranav Kant
... so that this widget can be used from other languages. Change-Id: Icd7d6df6aa587ffdb018af0b911300dc81ec6560
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-12CID#1306215 Uninitialized membersMiklos Vajna
Change-Id: Ib1ff285d1f8180ecb0be8448ac4c2d1878dff274
2015-06-09-Werror,-Wignored-attributes ("attribute declaration must precede definition")Stephan Bergmann
Change-Id: Iee0e9ef3a623706c33f84c34c1fbbf5b173f7f5d
2015-06-09loplugin:unreffunStephan Bergmann
Change-Id: I2011b491012dfd623ece9fd24a265107ac690cba