Age | Commit message (Collapse) | Author |
|
Change-Id: Iccd5b39f6bdf1c7a43131fc50186ea5a2838d77e
|
|
Change-Id: I89c4d9752ef650d516bed8fcdc5873de8ae87e18
|
|
Lets separate the task of painting the tile, and saving the tile
in tile buffer using GAsyncReadyCallback. This will provide us
with better control over tiles -- cancelling the painting operation,
and filtering tiles that should not be saved in the tile buffer.
Change-Id: I6aae928d8cc0c906034570ed0e9a054763d493a3
Reviewed-on: https://gerrit.libreoffice.org/19725
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
|
|
Change-Id: I7ed9e19df071b6baf1e941faee24c332c7b5e804
|
|
There were two problems here:
1) ScTabView::getRowColumnHeaders() did not expose twip values directly,
but used ScRow/ColBar::GetEntrySize(), which does a twip -> pixel
conversion, and then converted it back to twip. Avoid this unnecessary
roundtrip.
2) ScViewData::ToPixel() trunaces the resulting float to an integer, so
if the result is e.g. 67.7 pixels, then Calc handled that as 67, but
gtktiledviewer rounded that up to 68, resulting in non-matching headers
for the rendered tiles.
Change-Id: Ie6ed1ea923a423d1526eeb235b7b87106fd2f20b
|
|
Change-Id: I4ab00a269b0a8435a278f93e1d92d102a80c8506
|
|
As that's the unit we use everywhere else in the LOK API. Also, make the
ScGlobal::nScreenPPTX/Y calculation more precise, otherwise rounding
errors occur during the pixel -> twip conversion.
Example with the old precision: col height is 103 px, nScreenPPTY is
0.067, twips is 1537.3134328358208, convering it back is 102.487562189
px.
Example with the new precision: col height is 103 px, nScreenPPTY is
0.0667, twips is 1544.2278860569716, convering it back is 102.948525737
px.
Change-Id: I19f5285508ef0c751614d07969b3a7a037e7d1ec
|
|
Change-Id: Iea8f32fb8c388b49dad8119f816502f593ebadeb
|
|
Change-Id: I5107e4fa1828145a709e1edffe02831f4faae3c8
Reviewed-on: https://gerrit.libreoffice.org/19676
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
|
|
Change-Id: I9ac908d0981734e4b2930a79f160ec0462127483
|
|
Change-Id: I3a7af693ccdce2012ddbaa6a3ac8321f29b6356c
|
|
Change-Id: I10e88b4ff4ab0cfb29e97fa608d8acd69ce0f062
|
|
Change-Id: I4cdf2fa91dde1968cfb984faf0bdd3aad42eefd2
|
|
Change-Id: Iec9080d7017ddcf2b605243bc820f9664110c2e8
|
|
It's undesirable to malloc a struct that has a TileBuffer member, while
TileBuffer doesn't have a default ctor.
Change-Id: I72dfacc0088f238ee101d84838bd7eea51ced82a
|
|
Change-Id: I8e1c93fd36fb903c0625b29f9f73825438c9e113
|
|
Change-Id: I50b4dfa456d3518f5ef7faf5f634642973441a3e
|
|
Change-Id: Id8e20e6561239096438d420c65d0da6dcc7f5e2e
Reviewed-on: https://gerrit.libreoffice.org/19474
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
|
|
... 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>
|
|
use std::sqrt in vcldemo.cxx
Change-Id: I24d8ba15ee267d0cad3b063df9b7cfd8d284f4ee
Reviewed-on: https://gerrit.libreoffice.org/18591
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
|
|
2.18 is the version available in RHEL 6 released in 2010.
Change-Id: I4cd4fc89f6b51e6f58ca72b8182f80316b1f4f88
Reviewed-on: https://gerrit.libreoffice.org/19330
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
|
|
When changePart() is called, we have two type of actions:
- the ones we want to execute only in case the part was changed by the
user (and not programatically -- e.g. because the request came from
the widget)
- the ones we want to execute all the time
Resetting the view (so the tile buffer drops all the tiles) is something
we want to do all the time, that's one of the needed things when the
set-part event is emitted.
Change-Id: Ic6bfbe460dc5a3fd8834f3b1ef93436fc9d3ad84
|
|
Change-Id: I0febc2b89d95bde59ad9d3a90d404b3932cc3624
|
|
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
|
|
Without this e.g. Calc search does not show the selection rectangle
correctly.
Change-Id: I5bc20a93ee861d3353bc2e1c1ed7ea8d0e6c8ed4
|
|
Change-Id: I154bd2c101819669d43ab475144ae400454df4d0
|
|
Change-Id: I8015c8030c1c7f53ae1de053fe268a33464834ad
|
|
Change-Id: Ib932ee36e41afcb53d15a6362b998cc673d474f2
|
|
|
|
We need this to notify the user for which search phrase no results were
found
Change-Id: I8cc7ab235b9129dfdcb022145456180ff7e4ca92
|
|
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
|
|
Change-Id: I210da07802bae1f2f2948976bc0faf90e93152b4
|
|
Change-Id: I0d1b641654e0de65169e19bb5843ea11b43a90a3
|
|
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>
|
|
Change-Id: I60eb53d4bf9943fd52e0a9d8e3574a7d1cc027e0
|
|
... 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>
|
|
Change-Id: Ia71e80c521cdc6a8e4df52e51e063a44a0dd53df
|
|
Change-Id: Ic48adaf038e8fbcc86a94b5e351d2f963fcfcd16
|
|
getTextSelection() is still to be done, but has to be moved to the
widget first.
Change-Id: I780a31f1dbce38b2b7398bfdacbbc1c40881229d
|
|
Change-Id: Iafb08cb44a96dbc03d12367d21b4120063bd0222
|
|
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
|
|
Change-Id: Ibbbaaa1c148cfd4578ad37e0f99b62ab885a1a83
|
|
With this finally the number of GTK+ windows always match the number
returned by SfxLokHelper::getViews().
Change-Id: Ia45bef7dea86b80cfac00e2ad7c1a16d7f5b507b
|
|
GTK+ calls should be made from the main thread.
Change-Id: Idcfa46d427d6e35fc544246a691bafc72f75a74c
|
|
Change-Id: I9dcb5871c231a49bcd65a1187df6c3c81f92bd55
|
|
Change-Id: Iac803f03267859c11f0f9090346b09b90c115b76
|
|
Change-Id: Ib7ccd2192247805205b65e5e8da67bcc826f4d31
|
|
Change-Id: I2ff57c4be11cd3908bc951ebf572a2c02e2c4585
|
|
With this, all previously global data is now stored per-window in the
g_aWindows map.
Change-Id: I45b4449ee7d516106ea0b039d1af97db49edf759
|
|
Change-Id: Ib31fca3d8b4119704fb1a5c3cee885e7c239c247
|