From 4bbef9595f12dd5ac3c6f4558f4d466f84b8f5ad Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Mon, 28 Nov 2011 23:43:49 -0500 Subject: Arg to CalcPages() no longer used. --- sc/source/ui/inc/preview.hxx | 8 ++++---- sc/source/ui/view/preview.cxx | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sc/source/ui/inc/preview.hxx b/sc/source/ui/inc/preview.hxx index 26ef7b31417d..f6982914029d 100644 --- a/sc/source/ui/inc/preview.hxx +++ b/sc/source/ui/inc/preview.hxx @@ -104,7 +104,7 @@ private: long nFooterHeight; void TestLastPage(); - void CalcPages( SCTAB nToWhichTab ); + void CalcPages(); void RecalcPages(); void UpdateDrawView(); void DoPrint( ScPreviewLocationData* pFillLocation ); @@ -154,15 +154,15 @@ public: sal_uInt16 GetZoom() const { return nZoom; } Point GetOffset() const { return aOffset; } - SCTAB GetTab() { if (!bValid) { CalcPages(0); RecalcPages(); } return nTab; } - long GetTotalPages() { if (!bValid) { CalcPages(0); RecalcPages(); } return nTotalPages; } + SCTAB GetTab() { if (!bValid) { CalcPages(); RecalcPages(); } return nTab; } + long GetTotalPages() { if (!bValid) { CalcPages(); RecalcPages(); } return nTotalPages; } bool AllTested() const { return bValid && nTabsTested >= nTabCount; } sal_uInt16 GetOptimalZoom(bool bWidthOnly); long GetFirstPage(SCTAB nTab); - void CalcAll() { CalcPages(MAXTAB); } + void CalcAll() { CalcPages(); } void SetInGetState(bool bSet) { bInGetState = bSet; } DECL_STATIC_LINK( ScPreview, InvalidateHdl, void* ); diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx index fb72a8b74c41..19fc66a40704 100644 --- a/sc/source/ui/view/preview.cxx +++ b/sc/source/ui/view/preview.cxx @@ -223,7 +223,7 @@ void ScPreview::TestLastPage() } -void ScPreview::CalcPages( SCTAB /*nToWhichTab*/ ) +void ScPreview::CalcPages() { WaitObject( this ); @@ -314,7 +314,7 @@ void ScPreview::RecalcPages() // nur nPageNo geaendert bool bDone = false; while (nPageNo >= nTotalPages && nTabsTested < nTabCount) { - CalcPages( nTabsTested ); + CalcPages(); bDone = true; } @@ -351,7 +351,7 @@ void ScPreview::DoPrint( ScPreviewLocationData* pFillLocation ) { if (!bValid) { - CalcPages(0); + CalcPages(); RecalcPages(); UpdateDrawView(); // Tabelle evtl. geaendert } @@ -674,7 +674,7 @@ String ScPreview::GetPosString() { if (!bValid) { - CalcPages(nTab); + CalcPages(); UpdateDrawView(); // Tabelle evtl. geaendert } @@ -742,7 +742,7 @@ long ScPreview::GetFirstPage(SCTAB nTabP) long nPage = 0; if (nTabP>0) { - CalcPages( nTabP ); + CalcPages(); UpdateDrawView(); // Tabelle evtl. geaendert for (SCTAB i=0; i