summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/printfun.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/printfun.cxx')
-rw-r--r--sc/source/ui/view/printfun.cxx35
1 files changed, 19 insertions, 16 deletions
diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx
index 4be6f821bf85..43d6a5d481b2 100644
--- a/sc/source/ui/view/printfun.cxx
+++ b/sc/source/ui/view/printfun.cxx
@@ -757,7 +757,7 @@ sal_Bool ScPrintFunc::AdjustPrintArea( sal_Bool bNew )
}
pDoc->ExtendMerge( nStartCol,nStartRow, nEndCol,nEndRow, nPrintTab,
- false, sal_True ); // kein Refresh, incl. Attrs
+ false ); // kein Refresh, incl. Attrs
if ( bChangeCol )
{
@@ -1715,7 +1715,9 @@ sal_Bool ScPrintFunc::IsLeft( long nPageNo ) // linke Fussnoten ?
void ScPrintFunc::MakeTableString()
{
- pDoc->GetName( nPrintTab, aFieldData.aTabName );
+ rtl::OUString aTmp;
+ pDoc->GetName(nPrintTab, aTmp);
+ aFieldData.aTabName = aTmp;
}
void ScPrintFunc::MakeEditEngine()
@@ -2663,9 +2665,9 @@ void ScPrintFunc::ApplyPrintSettings()
}
//--------------------------------------------------------------------
-// rPageRanges = Range fuer alle Tabellen
-// nStartPage = in rPageRanges beginnen bei nStartPage
-// nDisplayStart = lfd. Nummer fuer Anzeige der Seitennummer
+// rPageRanges = range for all tables
+// nStartPage = rPageRanges starts at nStartPage
+// nDisplayStart = continious number for displaying the page number
long ScPrintFunc::DoPrint( const MultiSelection& rPageRanges,
long nStartPage, long nDisplayStart, sal_Bool bDoPrint,
@@ -2698,14 +2700,14 @@ long ScPrintFunc::DoPrint( const MultiSelection& rPageRanges,
long nPrinted = 0;
long nEndPage = rPageRanges.GetTotalRange().Max();
- sal_uInt16 nRepeats = 1; // wie oft durchgehen ?
+ sal_uInt16 nRepeats = 1;
if (bMultiArea)
nRepeats = pDoc->GetPrintRangeCount(nPrintTab);
for (sal_uInt16 nStep=0; nStep<nRepeats; nStep++)
{
- if (bMultiArea) // Bereich neu belegen ?
+ if (bMultiArea) // replace area
{
- CalcZoom(nStep); // setzt auch nStartCol etc. neu
+ CalcZoom(nStep); // also sets nStartCol etc. new
InitModes();
}
@@ -2716,7 +2718,7 @@ long ScPrintFunc::DoPrint( const MultiSelection& rPageRanges,
size_t nCountX;
size_t nCountY;
- if (aTableParam.bTopDown) // von oben nach unten
+ if (aTableParam.bTopDown) // top-bottom
{
nX1 = nStartCol;
for (nCountX=0; nCountX<nPagesX; nCountX++)
@@ -2736,7 +2738,7 @@ long ScPrintFunc::DoPrint( const MultiSelection& rPageRanges,
if ( pProgress )
{
pProgress->SetState( nPageNo+nStartPage+1, nEndPage );
- pProgress->Reschedule(); //Mag der Anwender noch oder hat er genug?
+ pProgress->Reschedule(); //does the user want to continue
}
++nPrinted;
}
@@ -2746,7 +2748,7 @@ long ScPrintFunc::DoPrint( const MultiSelection& rPageRanges,
nX1 = nX2 + 1;
}
}
- else // von links nach rechts
+ else // left to right
{
for (nCountY=0; nCountY<nPagesY; nCountY++)
{
@@ -2766,7 +2768,8 @@ long ScPrintFunc::DoPrint( const MultiSelection& rPageRanges,
if ( pProgress )
{
pProgress->SetState( nPageNo+nStartPage+1, nEndPage );
- pProgress->Reschedule(); //Mag der Anwender noch oder hat er genug?
+ pProgress->Reschedule(); //does the user want to continue
+
}
++nPrinted;
}
@@ -2795,7 +2798,7 @@ long ScPrintFunc::DoPrint( const MultiSelection& rPageRanges,
if ( pProgress && bPageSelected )
{
pProgress->SetState( nPageNo+nStartPage+1, nEndPage );
- pProgress->Reschedule(); //Mag der Anwender noch oder hat er genug?
+ pProgress->Reschedule(); //does the user want to continue
}
if (bPageSelected)
{
@@ -2811,12 +2814,12 @@ long ScPrintFunc::DoPrint( const MultiSelection& rPageRanges,
while (nNoteAdd);
if ( bMultiArea )
- ResetBreaks(nPrintTab); // Breaks fuer Anzeige richtig
+ ResetBreaks(nPrintTab); //breaks correct for displaying
return nPrinted;
}
-void ScPrintFunc::CalcZoom( sal_uInt16 nRangeNo ) // Zoom berechnen
+void ScPrintFunc::CalcZoom( sal_uInt16 nRangeNo ) // calculate zoom
{
sal_uInt16 nRCount = pDoc->GetPrintRangeCount( nPrintTab );
const ScRange* pThisRange = NULL;
@@ -2830,7 +2833,7 @@ void ScPrintFunc::CalcZoom( sal_uInt16 nRangeNo ) // Zoom
nEndRow = pThisRange->aEnd .Row();
}
- if (!AdjustPrintArea(false)) // leer
+ if (!AdjustPrintArea(false)) // empty
{
nZoom = 100;
nPagesX = nPagesY = nTotalY = 0;