summaryrefslogtreecommitdiff
path: root/sc/inc/docuno.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2017-12-01 22:28:48 +0900
committerTomaž Vajngerl <quikee@gmail.com>2017-12-04 08:03:30 +0100
commitf1f1dd3885cdbf00032a362275f36e408ef5ac9f (patch)
tree8076292ee90fb6620d25db6447ee38ce5a08cf1d /sc/inc/docuno.hxx
parentf6b437c57d4b0b032cb7e0838e16572bdf9a05cc (diff)
Use print state when rendering a Calc document
When rendering a Calc document with UNO rendering API for printing, PDF export, some data (like print X, Y sizes) can be passed from one ScPrintFunc call to the other to save us from some unnecessay recalculation and increase performance. This was used previously for preview, but not when rendering. This implements some missing functions in ScPrintFunc and implements the use of print state when rendering with UNO rendering API. Change-Id: Ic69dee99223961befb9b5dddf8ec5c268630bf79 Reviewed-on: https://gerrit.libreoffice.org/45687 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sc/inc/docuno.hxx')
-rw-r--r--sc/inc/docuno.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx
index 0004b03935e7..ecb7cf494763 100644
--- a/sc/inc/docuno.hxx
+++ b/sc/inc/docuno.hxx
@@ -59,6 +59,7 @@ class ScDocShell;
class ScAnnotationObj;
class ScMarkData;
class ScPrintFuncCache;
+struct ScPrintState;
class ScPrintSelectionStatus;
class ScTableColumnObj;
class ScTableRowObj;
@@ -92,6 +93,7 @@ private:
ScDocShell* pDocShell;
ScPrintFuncCache* pPrintFuncCache;
ScPrintUIOptions* pPrinterOptions;
+ std::unique_ptr<ScPrintState> m_pPrintState;
css::uno::Reference<css::uno::XAggregation> xNumberAgg;
css::uno::Reference<css::uno::XInterface> xDrawGradTab;
css::uno::Reference<css::uno::XInterface> xDrawHatchTab;