summaryrefslogtreecommitdiff
path: root/libreofficekit
AgeCommit message (Collapse)AuthorFilesLines
2017-11-28LOK: tilebench improvementsAshod Nakashian3-35/+73
* Arguments for max number of parts and tiles to render (optional). + Automatic estimation of maximum tiles to render based on max parts for Writer docs, since there is only 1 part, this caps the number of pages to render, similar to other doc types. * Fixed rendering of Writer documents over and over (as many times as pages). + Writer has a single part, unlike other doc types. + No point in rendering the whole document in writer to a single tile, since that's completely unrealistic and impractical (it takes forever for large docs and artificially spikes the memory). * Rendering starts at the current part and not the first. + This gives the spreadsheet of interest priority (if saved as visible). * The tile size is now more realistic as we use the same dimensions as the Online client does. * When rendering tiles at scale, we use the same dimensions as the Online client rather than splitting the width by 4, for realism. * Rendering of tiles is done rows-first, rather than columns-first, which is similar to what the Online client does, which is more cache friendly, therefore more realistic. * Enabled compiling of tilebench when GTK3 is disabled, which was erroneous, since tilebench doesn't have any dependency on GTK. + Now it's possible to compile with local Cairo/Pixman libs. Change-Id: Ib78d030ead387748914119f95fe49ddc1ce64498 Reviewed-on: https://gerrit.libreoffice.org/44936 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-11-28lokdialog: Remove getDialogInfo + update gtktiledviewer accordingly.Pranav Kant2-12/+28
Change-Id: I6f810c97f2fadd3b1ea602a97e24c8b42f4a84b9
2017-11-28gtv: Kill dialog selector combo boxPranav Kant2-38/+1
Change-Id: I2cd27dff95f2bc49a15ab395b8282b5496e1e229
2017-11-28lokdialog: Make vcl::DialogID an integerPranav Kant3-49/+35
This will help launching multiple instances of dialog from multiple views. The earlier approach of using the UNO command strings as dialog id would not have been useful for multi-view case. Change-Id: I01cfb3c8b204d5654df2417efdac6b50dc920f0e
2017-11-28lokdialog: Create dialog when callback is receivedPranav Kant4-40/+34
With this, we do away with initial approach of rendering the dialog on a large surface. We now create the cairo surface with dimensions of the dialog. Change-Id: Icb034693c7f1c656b7daae7f5c711b5bd4d8e880
2017-11-28lokdialog: gtv: Add width and height props to Dialog GObjectPranav Kant3-5/+43
Change-Id: I488a94d9c6cefd37624f755c6308f0b75595df84
2017-11-16Fix gtktiledviewer crash: this should be a null terminated listTamás Zolnai1-1/+2
Change-Id: I06e0923980b98b37b06ab45d8db68424b01d4f71 Reviewed-on: https://gerrit.libreoffice.org/42645 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk>
2017-11-15lokdialog: Move getting dialog information in separate LOK callPranav Kant1-2/+4
Using outparameters to get the dialog information with the paintDialog call was quite confusing. Change-Id: Ief331b251dc66e66084b827ce5b025ba6c9ce7d2 Reviewed-on: https://gerrit.libreoffice.org/44473 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-11-15lokdialog: Support painting parts of the dialogPranav Kant5-10/+56
Pass the dimensions of the region to the paintDialog call to paint only that much of the region in the dialog. The DIALOG_INVALIDATE callback also returns a 'rectangle' field now in the payload that tells the region of the dialog invalidated. It can be used in combination with the new paintDialog call then to paint only the invalidated region in the dialog. Change-Id: Iebb228865c71684e0f75dd01271b71ae41a0f906 Reviewed-on: https://gerrit.libreoffice.org/44472 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-11-15lokdialog: Tunnel dialog title to lokclient as outparamPranav Kant1-4/+9
Change-Id: I1beb5ab3f06debdca7ebf999af7ac879a41ea47e Reviewed-on: https://gerrit.libreoffice.org/43959 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-11-15lokdialog: Clear the pointer after destroyingPranav Kant1-0/+3
Change-Id: Iebbe3fab6f6144f0cf1de9a1c45a0b2a62b07e0b Reviewed-on: https://gerrit.libreoffice.org/43958 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-11-15lokdialog: Use UNO name as dialog id when invoking lok callbacksPranav Kant1-12/+20
... not the frame id from the .ui file Remove temporary hacks introduced earlier in GTV also. Change-Id: I71290a5fac6547a5584094da21e2301ef8fbce0c Reviewed-on: https://gerrit.libreoffice.org/43957 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-11-15lokdialog: Smoother mouse move on floating windowsPranav Kant1-28/+30
Do away with an early hack to create the floating window with every invalidate. This gets rid of persistent blinking when moving the mouse over a listbox, for example. Change-Id: Ida9367156605edc9835529f83529363ad97beaee
2017-11-15lokdialog: button press type debug infoPranav Kant1-3/+17
Change-Id: I193e0ab82e998905b670f7de73daae784de3ef00
2017-11-15lokdialog: Emit dialog close callback upon dialog closePranav Kant2-34/+51
Change-Id: I4ccef76cc3b2926dd8916f825671bb732e101027
2017-11-15Change CB_DIALOG_INVALIDATE to CB_DIALOGPranav Kant4-16/+21
We can specify whether it is an invalidation or something else in the payload. Change-Id: I95c5fc0a0a88b5277eaa93c8d1f9b937bddce7b3
2017-11-15lokdialog: Mouse events for dialog floating child windowsPranav Kant1-0/+127
Change-Id: I06a081835d246f752e57f8cc289162ed31fc91d4
2017-11-15lokdialog: drawing area needs to have focus to capture key eventsPranav Kant1-3/+5
With this, key events successfully work now. Change-Id: I6dc6aff91dea08fcbc7ab840a77e2542ab9048ce
2017-11-15lokdialog: Move the floating window to its actual positionPranav Kant3-5/+26
gtk_window_move them to the position broadcasted to us by vcl Change-Id: Id27b52a24e721b51d7a153cc7c0e03197a99ee2f
2017-11-15lokdialog: Support for rendering floating window dialog widgetsPranav Kant6-2/+132
Now gtktiledviewer can show floating window dialog widgets when user clicks any of such widget in the dialog. Change-Id: I13d756f236379bc8b2041ed41cb7b502f7fd9b24
2017-11-15lokdialog: gtv: Forward key events on dialog to corePranav Kant1-4/+122
Change-Id: Icfc210b08c7f1d8ebaf9c731ed64bb128cfc4356
2017-11-15lokdocview: Remove unnecessary codePranav Kant1-30/+11
Change-Id: I1d744c91f01eb098e9273d2459b63a5444558f39
2017-11-15lokdialog: Trigger repaint on all opened dialog with invalidatePranav Kant4-3/+26
For now, temporarily trigger paints for all the opened dialogs whenever a dialog invalidation callback is emitted. This solves the problem for some of the dialogs where hard coded uno command, which we are using as dialog IDs in GTV, doesn't match with the dialog id contained in the payload of the invalidation callback. With this SearchDialog, AcceptChangeTracking and few others are responding well to mouse clicks and invalidate instantaneously while to invalidate and repaint some other dialogs, one needs to refocus them. Change-Id: Iac2acbda60c8e2d0eabe65440f3fbda3ef271d7a
2017-11-15lokdialog: Forward mouse events to vcl; enable mouse movePranav Kant1-8/+40
The current implementation works well - the mouse events are properly handled by the opened dialog changing the dialog states. However, since the uno commands (dialog IDs) are different from what is returned by LOK_CALLBACK_DIALOG_INVALIDATE, the invalidation doesn't instantaneously, so one have to make the dialog window out-of-focus and then again back to focus to trigger the paint and see the updated dialog state. The mouse coordinates are forwarded in pixels as of now. Enable mouse GDK Motion mask too for mouse move operation. Change-Id: Ia915f734e8cbf4586da2b70da5840fe1568b39bd
2017-11-15lokdialog: Set up intial posting mouse events to dialogsPranav Kant2-0/+120
Events from the dialog in GTV are forwarded correctly, but the events are still not processed by the dialog in core. Change-Id: Ib95ac0a3cd23f6cc2763c21425a67402b15f2de2
2017-11-15lokdialog: Queue a redraw on invalidation in gtktiledviewerPranav Kant8-4/+109
Change-Id: I081508674a71c3beb89175e4f8ac3256e6bc6c6a
2017-11-15lokdialog: this is a stringPranav Kant1-1/+1
Change-Id: I7cb320a740cdb21da5a654cf99c887f5c7a8979d
2017-11-15lokdialog: Dialog invalidation supportPranav Kant1-0/+4
For now, just invalidate the whole dialog whenever any of the controls in the dialog get invalidated. Since during dialog painting, many such invalidations are triggered, don't listen to them when we are painting. Change-Id: Ia8fc12cf9469691d60e91ef770d687e5ff01a7ef
2017-11-15gtktiledviewer: Implement modeless dialog renderingPranav Kant8-1/+269
Hardcode modeless dialogs available in writer (very few) as of now in the combobox. Change-Id: I82d1442fbc71776dd64640ad048a0375ca041a67
2017-11-15gtv: G_OPTION_FLAG_NONE is available since 2.42 onlyPranav Kant1-7/+7
Change-Id: Ic3aacb79a3e828e59fede437213f2b7298e49bc1
2017-11-15libreofficekit: Update the README to match realityPranav Kant1-2/+2
Change-Id: Ifb7bf759e87cb654401005914ed8906ef9456fdd
2017-11-15gtktiledviewer: Typo; these should be classesPranav Kant2-2/+2
Change-Id: Iba449fc66423959340c7967c64bc422a28fc75dd
2017-11-15Modernize gtktiledviewer; use GApplicationPranav Kant20-2296/+3617
Put all the UI content in UI XML file. Unfortunately, lots of boilerplate code because G_DECLARE_* macros are available only since glib 2.44 Change-Id: Idc74ba8565d482c28abd00b6f6f75646ab3d40b9 Reviewed-on: https://gerrit.libreoffice.org/39913 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-11-15libreofficekit: Merge add_libs block into onePranav Kant1-7/+4
Change-Id: I0c4c2f3389cae243dbbfd16667d44d3ab8851860 Reviewed-on: https://gerrit.libreoffice.org/39914 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk>
2017-09-14implementing callback for ruler invalidationAditya Dewan1-0/+16
adding commands to fetch and changee ruler state '.uno:RulerState' and '.uno:RulerStateChange' Change-Id: I66107039a7ae5893691feb45c8ab2e4aa476ea76 Reviewed-on: https://gerrit.libreoffice.org/40727 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-06-27Resolves: rhbz#1454693 segv if tiled rendering is interruptedCaolán McNamara1-2/+21
Change-Id: I1131f246c43806adb8a83f6eeafca2b734851a0e Reviewed-on: https://gerrit.libreoffice.org/38890 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit c9eb6c7162a29a36f96d83c3dbe21d4e89df1470)
2017-05-31libreofficekit: GTK 3.22 deprecates gtk_show_uriMichael Stahl1-1/+8
Avoid -Werror=deprecated-declaration and use gtk_show_uri_on_window instead, which needs a GtkWindow. Change-Id: Ia77978348809c8d88cb2823a1549cbdeffcc6c97 Reviewed-on: https://gerrit.libreoffice.org/34926 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk> (cherry picked from commit 45dd570ac474c336cceac1ca2792f243ee125fa2) Reviewed-on: https://gerrit.libreoffice.org/38158 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> (cherry picked from commit 735f1becd2500d2572f47dfcea319c156d9b5484)
2017-05-16lok: sc: notify cell cursor position to address control in clientMarco Cecchetti2-0/+80
A new callback has been introduced for notifying the client: LOK_CALLBACK_CELL_ADDRESS Change-Id: I40b38a3cb8fb658c3f00332d56cfcbaf98e13771 Reviewed-on: https://gerrit.libreoffice.org/37357 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk> (cherry picked from commit 9cc9300bc20e9367728aa4b7ec3a789fdd274aff)
2017-03-24lok: Forgotten file for the unit test.Jan Holesovsky1-0/+0
Change-Id: Id20c32c1451bd0144377821ffaacbbdeaecbe7bd
2017-03-24lok: Unit test for setting of the language during load of the document.Jan Holesovsky1-0/+89
Change-Id: Idf4d3ba6b55be1f885f9d8fc89157e7e498d4e42
2017-03-20lok: Fix crash in paintPartTile() when the current view was destroyed.Jan Holesovsky1-0/+32
Change-Id: I59b71ee6815cbcfa4c8b5f68ae6dc9299856d49e
2017-02-28libreofficekit: adapt README to realityMiklos Vajna1-4/+3
Change-Id: I7098e5c304a0fa945e3d3ba794be2b7932788c74 (cherry picked from commit 28974126aa02d98b1808fd8fc01bc45f9a407a90)
2017-02-28gtktiledviewer: Different reply uno command for impressPranav Kant1-1/+6
Change-Id: I9dcd32a7e64198ca4772f263ed89a458e298c53b (cherry picked from commit 57d75ba3176063249e27524a7c7e425b3a2e75b4)
2017-02-28gtktiledviewer: Id param is string nowPranav Kant1-3/+3
It was changed in ce96c5957c38384f8911d6307605c502eca0c644 Change-Id: I4cc1f90d85e31044306ab36eaeac9d4424d965c0 (cherry picked from commit c62d2317472e2a02c7ace08a2f8ecc4135a9ba2c)
2017-02-28gtktiledviewer: Adjust for different delete uno cmd for impressPranav Kant1-14/+21
Change-Id: I7fa82096298a8a7c9f586a1d3c06aa5852e6842e (cherry picked from commit 6a4bf88c581b7fc1b6303099c804235027fd9f3e)
2017-02-28gtktiledviewer: enable comment sidebar for all doctypesPranav Kant1-3/+1
Impress was the only doctype remaining which didn't have comments api yet, but now it does Change-Id: I4e287301e879dff1c29c26880305505466ceaba4 (cherry picked from commit 6b4103984f31b42c791800925328dda00f17f122)
2017-02-18gtktiledviewer: Different UNO command for calcPranav Kant1-1/+1
Change-Id: I229451bac7cf4c223efd3fa18c177d650d3f9954 Reviewed-on: https://gerrit.libreoffice.org/34327 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk> (cherry picked from commit 748361ada42ffef774a7cb68f704de0e9edb5639)
2017-02-18gtktiledviewer: This is a better place to change doc-specific controlsPranav Kant1-5/+8
Change-Id: Id8fbebe2f6e339120741ed3744b18f50941c995e (cherry picked from commit a6c4552e792f6ab20fae83d354b369defd3bb345)
2017-02-18gtktiledviewer: Kill CommentsSidebar's docConfigurePranav Kant1-49/+41
Move this code to initWindow too (cherry picked from commit 2d6ec9761df5fcd36dd0ce7964d1ae6876ec9943) Change-Id: I057d9b8f60b9da2c20b28901ab958f9fc2095df3
2017-02-18gtktiledviewer: Kill signalSize; move its code to initWindowPranav Kant1-14/+5
Change-Id: I8aa0a00768e074b016ea20680c67884f19fe26df (cherry picked from commit abef7dfae3d87f52464d1f0879927ffdcfd41656)