This is an automated email from the ASF dual-hosted git repository. mseidel pushed a commit to branch Pilot-Pirx-fontcolor in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/Pilot-Pirx-fontcolor by this push: new ccc5d87e34 Set Writer page border to black (white in HC mode) ccc5d87e34 is described below commit ccc5d87e34969e5ca3dd097157423a0a343800c0 Author: mseidel <msei...@apache.org> AuthorDate: Thu Nov 2 23:49:36 2023 +0100 Set Writer page border to black (white in HC mode) --- main/sw/source/core/layout/paintfrm.cxx | 36 ++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/main/sw/source/core/layout/paintfrm.cxx b/main/sw/source/core/layout/paintfrm.cxx index 4522f2a7a8..5a40e11e3c 100644 --- a/main/sw/source/core/layout/paintfrm.cxx +++ b/main/sw/source/core/layout/paintfrm.cxx @@ -5527,23 +5527,23 @@ const sal_Int8 SwPageFrm::mnBorderPxWidth = 1; ViewShell* _pViewShell, bool bRightSidebar ) { - // --> FME 2004-06-24 #i16816# tagged pdf support - SwTaggedPDFHelper aTaggedPDFHelper( 0, 0, 0, *_pViewShell->GetOut() ); - // <-- - - // get color for page border - const Color& rColor = SwViewOption::GetFontColor(); - - // save current fill and line color of output device - Color aFill( _pViewShell->GetOut()->GetFillColor() ); - Color aLine( _pViewShell->GetOut()->GetLineColor() ); - - // paint page border - _pViewShell->GetOut()->SetFillColor(); // OD 20.02.2003 #107369# - no fill color - _pViewShell->GetOut()->SetLineColor( rColor ); - SwRect aPaintRect; - SwPageFrm::GetBorderRect( _rPageRect, _pViewShell, aPaintRect, bRightSidebar ); - _pViewShell->GetOut()->DrawRect( aPaintRect.SVRect() ); + // --> FME 2004-06-24 #i16816# tagged pdf support + SwTaggedPDFHelper aTaggedPDFHelper( 0, 0, 0, *_pViewShell->GetOut() ); + // <-- + + // save current fill and line color of output device + Color aFill( _pViewShell->GetOut()->GetFillColor() ); + Color aLine( _pViewShell->GetOut()->GetLineColor() ); + + // paint page border + _pViewShell->GetOut()->SetFillColor(); // OD 20.02.2003 #107369# - no fill color + if (Application::GetSettings().GetStyleSettings().GetHighContrastMode() ) + _pViewShell->GetOut()->SetLineColor(COL_WHITE); + else + _pViewShell->GetOut()->SetLineColor(COL_BLACK); + SwRect aPaintRect; + SwPageFrm::GetBorderRect( _rPageRect, _pViewShell, aPaintRect, bRightSidebar ); + _pViewShell->GetOut()->DrawRect( aPaintRect.SVRect() ); } //mod #i6193# paint sidebar for notes @@ -6985,4 +6985,4 @@ Graphic SwDrawFrmFmt::MakeGraphic( ImageMap* ) return aRet; } -//eof +/* vim: set noet sw=4 ts=4: */