summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Riemer <ruderphilipp@gmail.com>2013-05-05 20:22:31 +0200
committerPhilipp Riemer <ruderphilipp@gmail.com>2013-05-05 20:33:20 +0200
commitf7fdcc15317b2711f33f3b8dc19fd3044de54323 (patch)
tree64cbcaf618f7bdf8bf17ebd1558bc36569ad9e3b
parentb9008dfbef5c744e351c6bb1edbfc30f364731c8 (diff)
remove commented-out code in sw/source/core/view
Change-Id: Ib94be6370549c6a71879a5af1eb60808fba762e8
-rw-r--r--sw/source/core/view/pagepreviewlayout.cxx2
-rw-r--r--sw/source/core/view/printdata.cxx3
-rw-r--r--sw/source/core/view/viewpg.cxx3
-rw-r--r--sw/source/core/view/vprint.cxx25
4 files changed, 1 insertions, 32 deletions
diff --git a/sw/source/core/view/pagepreviewlayout.cxx b/sw/source/core/view/pagepreviewlayout.cxx
index fca15fe51314..e614499f0107 100644
--- a/sw/source/core/view/pagepreviewlayout.cxx
+++ b/sw/source/core/view/pagepreviewlayout.cxx
@@ -529,14 +529,12 @@ void SwPagePreviewLayout::_CalcDocPrevwPaintRect()
Size aSize;
if ( mbDoesLayoutColsFitIntoWindow )
- //aSize.Width() = mnPrevwLayoutWidth;
aSize.Width() = std::min( mnPrevwLayoutWidth,
maPreviewDocRect.GetWidth() - aTopLeftPos.X() );
else
aSize.Width() = std::min( maPreviewDocRect.GetWidth() - aTopLeftPos.X(),
maWinSize.Width() - maAdditionalPaintOffset.X() );
if ( mbDoesLayoutRowsFitIntoWindow )
- //aSize.Height() = mnPrevwLayoutHeight;
aSize.Height() = std::min( mnPrevwLayoutHeight,
maPreviewDocRect.GetHeight() - aTopLeftPos.Y() );
else
diff --git a/sw/source/core/view/printdata.cxx b/sw/source/core/view/printdata.cxx
index f4e533d958c6..4b0481e17494 100644
--- a/sw/source/core/view/printdata.cxx
+++ b/sw/source/core/view/printdata.cxx
@@ -456,9 +456,6 @@ bool SwPrintUIOptions::IsPrintTables() const
// take care of different property names currently in use for this option.
// for compatibility the old name should win (may still be used for PDF export or via Uno API)
-// bool bRes = getBoolValue( "PrintTablesGraphicsAndDiagrams", sal_True );
-// bRes = getBoolValue( "PrintTables", bRes );
-// return bRes;
// for now it was decided that tables should always be printed
return true;
}
diff --git a/sw/source/core/view/viewpg.cxx b/sw/source/core/view/viewpg.cxx
index 5e2a0e18fc7b..61d82f1c99d3 100644
--- a/sw/source/core/view/viewpg.cxx
+++ b/sw/source/core/view/viewpg.cxx
@@ -97,8 +97,6 @@ void ViewShell::PrintProspect(
std::pair< sal_Int32, sal_Int32 > rPagesToPrint =
rPrintData.GetRenderData().GetPagePairsForProspectPrinting()[ nRenderer ];
-// const USHORT nPageMax = static_cast< USHORT >(rPagesToPrint.first > rPagesToPrint.second ?
-// rPagesToPrint.first : rPagesToPrint.second);
OSL_ENSURE( rPagesToPrint.first == -1 || rPrintData.GetRenderData().GetValidPagesSet().count( rPagesToPrint.first ) == 1, "first Page not valid" );
OSL_ENSURE( rPagesToPrint.second == -1 || rPrintData.GetRenderData().GetValidPagesSet().count( rPagesToPrint.second ) == 1, "second Page not valid" );
@@ -213,7 +211,6 @@ void ViewShell::PrintProspect(
Point aPos( aSttPt );
aPos -= aShell.maVisArea.Pos();
-// aPos -= aPrtOff;
aMapMode.SetOrigin( aPos );
pPrinter->SetMapMode( aMapMode );
pStPage->GetUpper()->Paint( pStPage->Frm() );
diff --git a/sw/source/core/view/vprint.cxx b/sw/source/core/view/vprint.cxx
index 809a7a7d6463..6cea260e3b43 100644
--- a/sw/source/core/view/vprint.cxx
+++ b/sw/source/core/view/vprint.cxx
@@ -293,7 +293,6 @@ void ViewShell::CalcPagesForPrint( sal_uInt16 nMax )
SET_CURR_SHELL( this );
SwRootFrm* pMyLayout = GetLayout();
- // ULONG nStatMax = pLayout->GetPageNum();
const SwFrm *pPage = pMyLayout->Lower();
SwLayAction aAction( pMyLayout, Imp() );
@@ -314,7 +313,6 @@ void ViewShell::CalcPagesForPrint( sal_uInt16 nMax )
maVisArea = aOldVis; //reset due to the paints
Imp()->SetFirstVisPageInvalid();
-// SwPaintQueue::Repaint();
}
pMyLayout->EndAllAction();
@@ -324,10 +322,6 @@ SwDoc * ViewShell::FillPrtDoc( SwDoc *pPrtDoc, const SfxPrinter* pPrt)
{
OSL_ENSURE( this->IsA( TYPE(SwFEShell) ),"ViewShell::Prt for FEShell only");
SwFEShell* pFESh = (SwFEShell*)this;
- // Let's create a new document
-// SwDoc *pPrtDoc = new SwDoc;
-// pPrtDoc->acquire();
-// pPrtDoc->SetRefForDocShell( (SvEmbeddedObjectRef*)&(long&)rDocShellRef );
pPrtDoc->LockExpFlds();
// use given printer
@@ -392,9 +386,6 @@ SwDoc * ViewShell::FillPrtDoc( SwDoc *pPrtDoc, const SfxPrinter* pPrt)
((SwTxtNode*)pLastNd)->CopyCollFmt( *pTxtNd );
}
- // a new one has been created in CORE (copying OLE objects)
-// if( aDocShellRef.Is() )
-// SwDataExchange::InitOle( aDocShellRef, pPrtDoc );
// fill it with the selected content
pFESh->Copy( pPrtDoc );
@@ -511,18 +502,6 @@ sal_Bool ViewShell::PrintOrPDFExport(
::SetSwVisArea( pViewSh2, pStPage->Frm() );
-// FIXME disabled because rPrintData.aOffset is always (0,0)
-#if 0
- // consider offset when printing an envelope
- if( pStPage->GetFmt()->GetPoolFmtId() == RES_POOLPAGE_JAKET )
- {
- Point aNewOrigin = pOutDev->GetMapMode().GetOrigin();
- aNewOrigin += rPrintData.aOffset;
- MapMode aTmp( pOutDev->GetMapMode() );
- aTmp.SetOrigin( aNewOrigin );
- pOutDev->SetMapMode( aTmp );
- }
-#endif
pShell->InitPrt( pOutDev );
::SetSwVisArea( pViewSh2, pStPage->Frm() );
@@ -572,13 +551,11 @@ void ViewShell::PrtOle2( SwDoc *pDoc, const SwViewOption *pOpt, const SwPrintDat
// Removing this gives us a performance gain during saving the
// document because the thumbnail creation will not trigger a complete
// formatting of the document.
- // Format pages for printing
- // pSh->CalcPagesForPrint( SHRT_MAX );
+
//#39275# now Meyer wants again a Clipping
pOleOut->Push( PUSH_CLIPREGION );
pOleOut->IntersectClipRegion( aSwRect.SVRect() );
pSh->GetLayout()->Paint( aSwRect );
-// SFX_APP()->SpoilDemoOutput( *pOleOut, rRect );
pOleOut->Pop();
// first the CurrShell object needs to be destroyed!