From 8a284e678e50c875c68f7d3e155fe92cc43393c9 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 3 Nov 2015 15:05:37 +0100 Subject: 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 --- include/vcl/ITiledRenderable.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/vcl') 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(); } -- cgit