summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-11-03 15:05:37 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-03 16:56:48 +0100
commit8a284e678e50c875c68f7d3e155fe92cc43393c9 (patch)
tree9580a4fbb07b44c489db4c6daaba95dcd76738df /include
parent30d04756881ec60f80173387a836ae74874f7b54 (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. (cherry picked from commit 75303695eb4bfe6c8fdea2cad0d3ed3f912f95c9) Conflicts: libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx sc/inc/docuno.hxx Change-Id: I64a155582acdee7b2acc741d77a2c462409b91a8
Diffstat (limited to 'include')
-rw-r--r--include/vcl/ITiledRenderable.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx
index 369758d29dc6..c24370a7b236 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();
}