summaryrefslogtreecommitdiff
path: root/include/vcl/ITiledRenderable.hxx
AgeCommit message (Collapse)AuthorFilesLines
2018-07-04lok: sc: ctrl-clicking links doesn't workMarco Cecchetti1-1/+1
I think there is no reason for not execuring the code below if ((bDouble || bIsTiledRendering) && .... ) { ... } for both desktop and online. So since the code for open the clicked URL is below such if clause, I changed the code so that we return only when it's really a double click event. Moreover I reverted back the code for executing the list validation pop-up to its original place, since there is no more the need to have it executed in two places. Change-Id: Idbec2e6e45cd7ee8282005169e1132a11d4cac33 Reviewed-on: https://gerrit.libreoffice.org/56922 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2018-05-22lok: don't post events on disposed windowPranav Kant1-0/+3
Change-Id: I7721380b1bb6e9ec21338a72523326d0cae6729e Reviewed-on: https://gerrit.libreoffice.org/51778 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-05-22lok - sc - list validationMarco Cecchetti1-1/+1
This provide the correct invalidation and drawing of the combo box control which is used for cell where a validation list has been set up. This patch fixes also tunneling issue for the floating window showing the list of valid entries. Change-Id: I9f7277688293eff443504221c7c7e46097a5da4a Reviewed-on: https://gerrit.libreoffice.org/51131 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-02-27lok: Re-introduce the cancellation of tracking.Jan Holesovsky1-0/+6
Without this, the charts tend to crash on double-click. This kind of reverts commit 86ea687d3f19c04192ee2b7a82736e110c7be334. Change-Id: I462e4beec71008a0abe29ec0bb570c8a35c82a7f Reviewed-on: https://gerrit.libreoffice.org/50408 Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2018-02-24lok: All mouse,key events asyncPranav Kant1-0/+45
custom posting of mouse,key events on main thread This still bypasses vcl while keeping the processing of events on the main thread which is what we want. Change-Id: Ia7a6f5ef1ac546245715abe418d261b49df12d4c Reviewed-on: https://gerrit.libreoffice.org/50274 Reviewed-by: Aron Budea <aron.budea@collabora.com> Tested-by: Aron Budea <aron.budea@collabora.com>
2018-02-23lok sc: Post mouse events to main threadPranav Kant1-0/+61
Change-Id: I1311938d7c01d0e3bfd239743e6cb2148da56cdf Reviewed-on: https://gerrit.libreoffice.org/50253 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-02-22lok - calc: add support for show/hide tabs in onlineMarco Cecchetti1-0/+9
Change-Id: Ibd061414a0c3a5fad83d03f7047831cef62076d2 Reviewed-on: https://gerrit.libreoffice.org/49978 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-02-14lok IME: support dialogs as wellPranav Kant1-7/+5
Change-Id: Ic78da45dadaa5a4e1ca78e20d04974108581121e (cherry picked from commit 44fa8ae7d9bb3a28d860b2cc5871d6a6ccfc8411) Reviewed-on: https://gerrit.libreoffice.org/49728 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk>
2018-02-13sd, sc lok: IME support + unit testsPranav Kant1-1/+1
Change-Id: I710ba4347977641102b89fd274a159d34bc29e72 Reviewed-on: https://gerrit.libreoffice.org/49385 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk> (cherry picked from commit b746577d27437f9298fa111512d083eaccd4fbed) Reviewed-on: https://gerrit.libreoffice.org/49624 Tested-by: pranavk <pranavk@collabora.co.uk>
2018-02-13sw lok: IME support + unit testPranav Kant1-0/+7
Change-Id: I557493db23dfa3529606050c86161628dbd722e7 Reviewed-on: https://gerrit.libreoffice.org/49354 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk> (cherry picked from commit 7f9f58f3a304733f7089719a5a65eef8c68c2b8d) Reviewed-on: https://gerrit.libreoffice.org/49623
2017-11-30lok: calc: set outline stateMarco Cecchetti1-13/+13
use a specific message from the client for set the visibility state of a group instead of hijacking the update row/column header message Change-Id: I9634c24bbffaddc916c8ad716ac6d5d31e735a55 Reviewed-on: https://gerrit.libreoffice.org/45471 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-11-28lok - calc: outline and group handlingMarco Cecchetti1-0/+13
Change-Id: Ibb287468653bc381acf034dcb8531c5faf61aef3 Reviewed-on: https://gerrit.libreoffice.org/45416 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-11-28lokdialog: Move the LOKWindowId <-> VclPtr<Window> mapping to Window.Jan Holesovsky1-6/+0
This allows registering & de-registering of non-sfx windows too, and makes the Calc autofilter popup to appear. Change-Id: I7cbbe94d208115aabcb6fa5f964646c7b7ce4c93
2017-11-28lokdialog: Move the painting down to Window, and enable Calc and Impress.Jan Holesovsky1-0/+6
Tested with .uno:FormatCellDialog in Calc, Impress not tested. Change-Id: I6d911c29616988db0625be9e2a63cf2172c69ee8
2017-09-14implementing callback for ruler invalidationAditya Dewan1-1/+8
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-05-16lok: sc: misplaced comment mark on inserting/deleting/resizing row/colMarco Cecchetti1-0/+7
A unique id has been introduced, in a similar way of what occurs in Writer. Change-Id: I7b2ef694867fb4184c4cfc616fe1c8f12da3b676
2017-02-17lok: New commandvalues command - .uno:ViewAnnotationsPranav Kant1-0/+7
Change-Id: I1c3560ab4609c64da7a77e9a65febeb569ec1a3c Reviewed-on: https://gerrit.libreoffice.org/33468 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk> (cherry picked from commit a623b3a449dfcddaad5b621ff1c0b7a520edf4d6)
2016-09-21lok::Document::getCommandValues: expose sw redline author colorsMiklos Vajna1-0/+7
These colors are used in the tiles, so it's a good idea if the client can use matching colors for cursors and selections. But to be able to do that, we need an API to expose these colors. Change-Id: Ia688c07e6c300fecdf8dc428d5a3f000d1857387
2016-08-30sc lok: implement getCommandValues(.uno:AcceptTrackedChanges) APIMiklos Vajna1-0/+8
Unlike in Writer, there doesn't seem to be an existing UNO API that can be reused here. Change-Id: I011a2f34d4d09ad604991637322ceadf6b2eb181 Reviewed-on: https://gerrit.libreoffice.org/28498 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-06-21Remove no longer needed vcl::ITiledRenderable::registerCallback()Miklos Vajna1-9/+0
All clients has been changed to use SfxViewShell::registerLibreOfficeKitViewCallback() instead. Change-Id: I2538268dc9c4b449f68b5d2b05a72de584c29fd0 Reviewed-on: https://gerrit.libreoffice.org/26540 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-04-21lokit: add getPartHashHenry Castro1-0/+6
In the tiled rendering case, the slides, no matter if it is inserted or deleted, the part names always return sequential names i.e. Slide 1, Slide 2, ..., Slide N. However the client side needs to know what slides had been deleted or inserted, so it is necessary to send the hash codes. Change-Id: I0e9caeec660c3e42dd9f751bdce7690f9ad365a1 Reviewed-on: https://gerrit.libreoffice.org/24267 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-02-02LOK: add Document::setClientVisibleArea()Miklos Vajna1-0/+5
... and implement it in Writer. Otherwise there is no way we can perform e.g. page down in an expected way. Without this, the core visible area depends on the zoom in the document, and the client visible area can be something entirely different. Change-Id: Iadfb5a225da09a2551ffa41ddf503bb3d22b3eae
2016-01-08vcl: fix WaE messagesChris Sherlock1-2/+2
Change-Id: Ib861efdaa9e18a22fb967bcef251792c9b9f5768 Reviewed-on: https://gerrit.libreoffice.org/21240 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-08vcl: fix parameter documentation in ITiledRenderable headerChris Sherlock1-6/+11
Change-Id: I258887a332c2a990ec2f76ed06e893bd1cc38c76
2015-12-07Let LIBO_INTERNAL_ONLY imply LOK_USE_UNSTABLE_APIMiklos Vajna1-1/+0
Change-Id: Ifbed5e534ba79d32b7188bb7fb7108338b6e124d
2015-11-18vcl::ITiledRenderable::initializeForTiledRendering: support init. argumentsMiklos Vajna1-1/+1
Change-Id: I9a6a75457078dc6383673f4c1a2012b69b5cefdd
2015-11-13LOK: setClientZoom() - sets the client zoom levelMihai Varga1-0/+18
We need to know the client's view level to correctly handle the mouse events in calc. PaintTile() set a zoom level that corresponds to the requested tiles and previously postMouseEvent would call SetZoom(1,1). Now we can make use of knowing the client's view level and call SetZoom() with the correct parameters Change-Id: I34b5afcdcc06a671a8ac92c03e87404e42adf4cd Conflicts: sc/source/ui/unoobj/docuno.cxx
2015-11-11Implement LOK_CALLBACK_MOUSE_POINTERAndrzej Hunt1-0/+3
Change-Id: I8d1f63208baf277b0a9d15908f3ea7ff3b56bf10 Reviewed-on: https://gerrit.libreoffice.org/19883 Reviewed-by: Andrzej Hunt <andrzej@ahunt.org> Tested-by: Andrzej Hunt <andrzej@ahunt.org>
2015-11-10Missing includesAshod Nakashian1-0/+1
Restored some missing includes and refactored sot/formats.hxx. Change-Id: I11b7102b06889f426f5e0f3efa3a835c6e774d88 Reviewed-on: https://gerrit.libreoffice.org/19891 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
2015-11-05sc lok: tdf#94605 introduce uno:CellCursorAndrzej Hunt1-0/+12
This allows the client to rerequest the current cursor position, which is necessary e.g. on zoom-level changes. Conflicts: desktop/source/lib/init.cxx sc/inc/docuno.hxx Change-Id: I10d81e220a56a36e2ec0c59005cd1d4f134857d5
2015-11-03sc lok: allow requesting row headers only for a logic areaMiklos Vajna1-1/+4
So that for large documents it's not needed to query all of them on load, but (similar to tiled rendering itself) it's possible to query the data that affects the visible area. One catch is that the row sizes are relative, so there is a placeholder row in case the visible area is not the top left corner, and constructing its size needs special care. Normally the handed out twip values have to be floored after twip->px conversion, but this one is already rounded (as the total is a sum of px values, again becase of the previous floor rule), so need to play the +0.5 trick to allow clients always just flooring the logic conversion result they get. Change-Id: I64a155582acdee7b2acc741d77a2c462409b91a8
2015-10-30LOK: initial Document::getCommandValues() for RowColumnHeadersMiklos Vajna1-0/+8
Only the row info and for the entire tiled rendering area as a start. Change-Id: Idbccd805b355e8d151ab7025ac1cf0c686cb237b
2015-10-28vcl: getWindow() -> setClipboard() in ITiledRenderableMiklos Vajna1-2/+2
It's cleaner to let the apps do this themselves than exposing their underlying vcl::Window. Change-Id: Iff2442dd325fa65a0cf3ad4aa7f918542dab1e4c
2015-10-26sc: implement vcl::ITiledRenderable::isMimeTypeSupported()Miklos Vajna1-4/+2
Change-Id: I0b9de068ddf0f4ff92d8fbf003b7529516f1f80a
2015-10-26lok::Document::paste: check if the given mime type is supportedMiklos Vajna1-0/+5
Change-Id: Ib59ea43700815c53cdd4be819e2e9cf35c6f89e9
2015-10-26vcl: ITiledRenderable::getWindow() can be pure-virtual nowMiklos Vajna1-4/+1
Change-Id: I393ec4427674cd5d77d0e9a069ffe159d14e38b1
2015-10-22vcl: add ITiledRenderable::getWindow() and implement in swMiklos Vajna1-0/+6
Change-Id: I9d0fad3904e74b44b0b126974ace4025f7a4fc5b
2015-10-05LOK: added the button type and key modifier to postMouseEvent()Mihai Varga1-1/+1
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-09-29lok: add Document::getPartPageRectangles()Miklos Vajna1-0/+8
Change-Id: I20acd44f7a81471982ba96ad3894a9124e035c5f
2015-09-21Use SfxViewFrame::Current()Miklos Vajna1-8/+0
Allows getting rid of vcl::ITiledRenderable::getCurrentViewShell(), which would do the same, just not implemented outside Writer. Change-Id: Id26ceca560fb9002dc2d5c740c411b9c4a149523
2015-09-21vcl::ITiledRenderable: add getCurrentViewShell() and implement it for WriterMiklos Vajna1-0/+10
Change-Id: Ic936746f3d473e15f5a1589cba35173778b442c6
2015-07-10vcl::ITiledRenderable: getTextSelection() can be pure virtual nowMiklos Vajna1-1/+1
Change-Id: Ifb33ee9a70afeccc01f45996b2953fcd5f3700cc Reviewed-on: https://gerrit.libreoffice.org/16906 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-06-19LOK: return used format in Document::getTextSelection()Miklos Vajna1-1/+1
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-17LOK: add lok::Document::getTextSelection()Miklos Vajna1-0/+7
I.e. the copy part of copy&paste. Only the Writer bits for now. Change-Id: Ia003e76e3b234735f472cdef125514f9771d8640
2015-04-07LOK: reimplement lok::Document::postKeyEvent()Miklos Vajna1-0/+7
Instead of posting an event to the main loop of the soffice thread, do what every other methods do: take the solar mutex and execute the task on the thread. This fixes random lost/delayed key events on Android. Change-Id: Ibe819282b5f3bb64e44d4b6f0a92611fe651bb39
2015-03-30SdXImpressDocument: implement resetSelection()Miklos Vajna1-1/+1
With this, when editing is finished, no text edit is active, also both editeng and sdr selections are reset. Change-Id: If953e1d8683171c1f1ed8c7d97ae34a163d14765
2015-03-30sc tiled editing: Implement scaling of drawings and bitmaps in Calc.Jan Holesovsky1-1/+1
Change-Id: I1faa4608047e5a7ce30c317c72babfa44cdd808d
2015-03-30vcl::ITiledRenderable: setTextSelection() can be pure-virtual nowMiklos Vajna1-1/+1
Change-Id: I232197b55a80a65800d85e66c50875b3af7e7fab
2015-03-30vcl::ITiledRenderable: can mark these methods as pure virtualMiklos Vajna1-5/+3
Change-Id: Ic6b594ee3ed668f5038a1f998ec9e514ecb75169
2015-03-16LOK: extract the callback typedef to a separate LibreOfficeKitTypes.h headerMiklos Vajna1-1/+1
With this, most LO code can avoid rebuilding when touching LibreOfficeKit.h, something that caused a mass-rebuild earlier. Change-Id: I4880fc7ad82cc535377b2b602897e3172ffa480b