diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-03 15:05:37 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-03 15:39:55 +0100 |
commit | 75303695eb4bfe6c8fdea2cad0d3ed3f912f95c9 (patch) | |
tree | 4cac531cdbd4c7f01870f3d62e3636c9616a743c /include | |
parent | cce7d78baa91ab348e85407ada8387c9c89176cb (diff) |
sc lok: allow requesting row headers only for a logic area
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
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/ITiledRenderable.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx index 48a13ffc1275..efa9bc272b40 100644 --- a/include/vcl/ITiledRenderable.hxx +++ b/include/vcl/ITiledRenderable.hxx @@ -150,8 +150,11 @@ public: /** * Get position and content of row/column headers of Calc documents. + * + * @param rRectangle - if not empty, then limit the output only to the area of this rectangle + * @return a JSON describing position/content of rows/columns */ - virtual OUString getRowColumnHeaders() + virtual OUString getRowColumnHeaders(const Rectangle& /*rRectangle*/) { return OUString(); } |