Kaydet (Commit) d29318c7 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#45869 we want page preview text to layout for print output

We want text to be positioned as it would be for the the high dpi printed
output, not as would be ideal for the 96dpi preview window itself. It is
supposed to be a print preview surely.

This should avoid getting different text positions/widths shown in the "page
preview" of calc than gets used when printed/exported to .pdf

Change-Id: Iea3acce3c1f2a7051007c22768329c52a7c1d4ee
üst cd8e530d
...@@ -1668,7 +1668,10 @@ void ScPrintFunc::MakeEditEngine() ...@@ -1668,7 +1668,10 @@ void ScPrintFunc::MakeEditEngine()
pEditEngine = new ScHeaderEditEngine( EditEngine::CreatePool(), sal_True ); pEditEngine = new ScHeaderEditEngine( EditEngine::CreatePool(), sal_True );
pEditEngine->EnableUndo(false); pEditEngine->EnableUndo(false);
pEditEngine->SetRefDevice( pDev ); //fdo#45869 we want text to be positioned as it would be for the the
//high dpi printed output, not as would be ideal for the 96dpi preview
//window itself
pEditEngine->SetRefDevice(pPrinter ? pPrinter : pDoc->GetRefDevice());
pEditEngine->SetWordDelimiters( pEditEngine->SetWordDelimiters(
ScEditUtil::ModifyDelimiters( pEditEngine->GetWordDelimiters() ) ); ScEditUtil::ModifyDelimiters( pEditEngine->GetWordDelimiters() ) );
pEditEngine->SetControlWord( pEditEngine->GetControlWord() & ~EE_CNTRL_RTFSTYLESHEETS ); pEditEngine->SetControlWord( pEditEngine->GetControlWord() & ~EE_CNTRL_RTFSTYLESHEETS );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment