summaryrefslogtreecommitdiff
path: root/libreofficekit
AgeCommit message (Collapse)Author
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
2015-06-09loplugin:literaltoboolconversionStephan Bergmann
Change-Id: I85fa46de5b864369158d047fd3f7c683f10c822f
2015-06-09-Werror,-Wunused-private-fieldStephan Bergmann
Change-Id: I76cf487c66e048b5e9d0877a1b690cd066b73528
2015-06-09tilebuffer: tileSize as member variable is superfluousPranav Kant
Change-Id: I1eae8c96c12ba4d272341f45fee6c1fd66ab9e28
2015-06-09tilebuffer: ZoomFactor as member variable is superfluousPranav Kant
Change-Id: I9f533f577f959c9a715e5214be99ca59cb0d206c
2015-06-09lokdocview: Make tilebuffer an instancePranav Kant
Change-Id: I06dae2e7a5067160326f4c65f5975c4e5afb05ce
2015-06-09libreofficekit: fix RHEL5 build of tilebufferMiklos Vajna
Change-Id: I27da86c774f0450c844e742563c4a8de3f23ad34
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: fix render calls after LOK callbacksPranav Kant
Change-Id: Ib33f0e1dcf257350be1e2cf6c49cd92494472a55
2015-06-09lokdocview: move GtkDrawingArea size request out of renderDocument()Pranav Kant
... and place it at places only where the widget can change its size. Change-Id: I4a4b28b35eba06a6faab434677d4d70d2a33339a
2015-06-09lokdocview: check payload for inconsistencies before using itPranav Kant
Lets follow the old advice: "Be liberal in what you accept, be strict in what you produce". This is after noticing negative values for x, y in the payload in some situation, such as, hitting a backspace key when the cursor is at the start of a line Change-Id: I11939b981f75969b88214baee66b4c69c5e41906
2015-06-09lokdocview: fixed rectangle format in documentation/commentsPranav Kant
Change-Id: Iaf4a5fba5c4c34d03b91ca9ca4dd4eff1dbf39f6
2015-06-09lokdocview, tilebuffer: clean upPranav Kant
Improve documentation, style fixes Change-Id: I5000e32e90cd8e3b75e8df2907673efc303a55fd
2015-06-09lokdocview: wrap a functionality inside a member functionPranav Kant
Lets use a member function to set invalid tiles that come under the given GdkRectangle. Change-Id: I440336ddf3c5fd9094f35bb89479aa76a42477fa
2015-06-09lokdocview: move commonly used functions and variables to common headerPranav Kant
twipToPixel and pixelToTwip are also being used by the new TileBuffer clsas. Lets move these utility functions to a common header, tilebuffer.hxx The variables for DPI and tileSize are also moved to tilebuffer.hxx Change-Id: I9d0bec7f2aefe412df232040a7a9abc6db3e4ccb
2015-06-09lokdocview: Add support for editing documentsPranav Kant
Change-Id: I8637d99e6fa59129af207e667bcdf03dc212efeb
2015-06-09lokdocview: Use maps instead of vectorPranav Kant
Using vector each tile needs to be allocated memory irrespective of whether tile is required or not. This approach fails when we zoom in to a very high level to have thousands of tiles due to lot of memory required. Using maps instead of vector takes care of this, and only allocates Tiles when required. Change-Id: I523f815618451a7f014e28258e0de7b1c0693370
2015-06-09Add tile buffering supportPranav Kant
The TileBuffer class now manages all the tiles. The tile rendering calls to LO core is also managed by this class. Change-Id: Ic667a93dcf1c097e0601c0496e8a083c4742e8cb
2015-06-09lokdocview: use GtkDrawingArea for drawing tilesPranav Kant
Change-Id: I1a3d8a9229f416418f0f3e9c720b78af09b35978
2015-06-09lokdocview: add width and height to the visible rectanglePranav Kant
Change-Id: I64212113750893f33f8a859ba52ecd8815a820f4
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann
Change-Id: I6fcd79094bb09f9068a4182eaace794b19633f4c
2015-05-28gtktiledviewer: use SearchItem.SearchStartPoint*Miklos Vajna
Change-Id: If0219eda3a2ca3b97c37bea70e35d47e49d38e02
2015-05-27loplugin:staticmethodsStephan Bergmann
Change-Id: Idb1072ecedd9ab0315d67e296da6d306c098b183
2015-05-27loplugin:staticmethodsAndrzej Hunt
Change-Id: I8a6a6dcac8355796b984f6b37b791596fe9dca02
2015-05-27lokdocview: handle LOK_CALLBACK_DOCUMENT_SIZE_CHANGEDMiklos Vajna
Change-Id: Ib1b99221afbf9810bad5fd49fbf62c7a20fd28e4
2015-05-27lokdocview: fix not updated part selector when search changes partMiklos Vajna
Change-Id: I337eed47c56dbbbebda4d7fe716eab6177936dc0
2015-05-26lokdocview: handle LOK_CALLBACK_SET_PARTMiklos Vajna
Change-Id: I47fc389590d581155074fec63cca79bea3596860
2015-05-23lokdocview: update doc size on LOK_CALLBACK_PAGE_COUNT_CHANGEDMiklos Vajna
No need to do any actual rendering, the invalidation callback takes care of that. Change-Id: I9a3e45cab5250fc45eccb4577fe76377f76354eb