diff options
author | Vladimir Glazunov <vg@openoffice.org> | 2010-05-28 09:36:24 +0200 |
---|---|---|
committer | Vladimir Glazunov <vg@openoffice.org> | 2010-05-28 09:36:24 +0200 |
commit | a24ed4a9d146127a698669b23635ba565c0f2e2f (patch) | |
tree | 52cd45990c2f8f4c9c17339db29852ea64388f93 /sc/source/ui/view/output2.cxx | |
parent | dd508f5004b7a26b085e6f6f51c8f4b4bc16c75c (diff) | |
parent | 284da3a62f12258617bcb998dde18e79213429db (diff) |
CWS-TOOLING: integrate CWS calc53
Notes
split repo tag: calc_ooo/DEV300_m80
Diffstat (limited to 'sc/source/ui/view/output2.cxx')
-rw-r--r-- | sc/source/ui/view/output2.cxx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx index 102bb56463b6..5a48d0d310d5 100644 --- a/sc/source/ui/view/output2.cxx +++ b/sc/source/ui/view/output2.cxx @@ -2351,7 +2351,20 @@ void ScOutputData::DrawEdit(BOOL bPixelToLogic) } } if (bPixelToLogic) - pEngine->SetPaperSize(pRefDevice->PixelToLogic(aPaperSize)); + { + Size aLogicSize = pRefDevice->PixelToLogic(aPaperSize); + if ( bBreak && !bAsianVertical && pRefDevice != pFmtDevice ) + { + // #i85342# screen display and formatting for printer, + // use same GetEditArea call as in ScViewData::SetEditEngine + + Fraction aFract(1,1); + Rectangle aUtilRect = ScEditUtil( pDoc, nCellX, nCellY, nTab, Point(0,0), pFmtDevice, + HMM_PER_TWIPS, HMM_PER_TWIPS, aFract, aFract ).GetEditArea( pPattern, FALSE ); + aLogicSize.Width() = aUtilRect.GetWidth(); + } + pEngine->SetPaperSize(aLogicSize); + } else pEngine->SetPaperSize(aPaperSize); |