summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-28 23:43:49 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-29 00:04:24 -0500
commit4bbef9595f12dd5ac3c6f4558f4d466f84b8f5ad (patch)
treecb8dd02f6d68e8fb5843edb983e2c3376d9cfb54 /sc
parent8ea81446029b314ae78e45fddb64903ea6ac5509 (diff)
Arg to CalcPages() no longer used.
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/inc/preview.hxx8
-rw-r--r--sc/source/ui/view/preview.cxx10
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<nTabP; i++)