summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-09-30 15:28:36 +0100
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-09-30 15:28:36 +0100
commit48df6684d55f1565cd107638ef9ccab96150ce72 (patch)
treeaebdc6864a83c39ab2edf097d5736abdb0fb2036
parentde11617acda45ec49562f7793e0b7b1dabc0b43c (diff)
TODO: printfun needs fixing (see previous commit).
We don't need this for tiled rendering for now though. Change-Id: Iac9ed2a4327840ac0af00eb1903484e127fac2c8
-rw-r--r--sc/source/ui/view/printfun.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx
index e78545a81245..1d68535b7e88 100644
--- a/sc/source/ui/view/printfun.cxx
+++ b/sc/source/ui/view/printfun.cxx
@@ -493,7 +493,9 @@ void ScPrintFunc::DrawToDev( ScDocument* pDoc, OutputDevice* pDev, double /* nPr
ScTableInfo aTabInfo;
pDoc->FillInfo( aTabInfo, nX1, nY1, nX2, nY2, nTab,
- nScaleX, nScaleY, false, bFormula );
+ nScaleX, nScaleY,
+ pDev, MapMode(), // TODO: fix this -- use pViewData if possible, otherwise?
+ false, bFormula );
lcl_HidePrint( aTabInfo, nX1, nX2 );
if (bEmbed)
@@ -1337,7 +1339,9 @@ void ScPrintFunc::DrawBorder( long nScrX, long nScrY, long nScrW, long nScrH,
ScTableInfo aTabInfo;
pBorderDoc->FillInfo( aTabInfo, 0,0, 0,0, 0,
- nScaleX, nScaleY, false, false );
+ nScaleX, nScaleY,
+ pDev, MapMode(), // TODO: same as above
+ false, false );
OSL_ENSURE(aTabInfo.mnArrCount,"nArrCount == 0");
aTabInfo.mpRowInfo[1].nHeight = (sal_uInt16) nEffHeight;
@@ -1553,7 +1557,9 @@ void ScPrintFunc::PrintArea( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2,
ScTableInfo aTabInfo;
pDoc->FillInfo( aTabInfo, nX1, nY1, nX2, nY2, nPrintTab,
- nScaleX, nScaleY, true, aTableParam.bFormulas );
+ nScaleX, nScaleY,
+ pDev, MapMode(), // TODO: same here
+ true, aTableParam.bFormulas );
lcl_HidePrint( aTabInfo, nX1, nX2 );
if (bEmbed)