diff options
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/decoview.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx index 381043e7be83..3e85e2e5e0b3 100644 --- a/vcl/source/window/decoview.cxx +++ b/vcl/source/window/decoview.cxx @@ -1087,6 +1087,17 @@ void DecorationView::DrawSeparator( const Point& rStart, const Point& rStop, boo { Point aStart( rStart ), aStop( rStop ); const StyleSettings& rStyleSettings = mpOutDev->GetSettings().GetStyleSettings(); + Window *const pWin = (mpOutDev->GetOutDevType()==OUTDEV_WINDOW) ? (Window*) mpOutDev: NULL; + if(pWin) + { + ControlPart nPart = ( bVertical ? PART_SEPARATOR_VERT : PART_SEPARATOR_HORZ ); + bool nativeSupported = pWin->IsNativeControlSupported( CTRL_FIXEDLINE, nPart ); + ImplControlValue aValue; + ControlState nState = 0; + Rectangle aRect(rStart,rStop); + if(nativeSupported && pWin->DrawNativeControl(CTRL_FIXEDLINE,nPart,aRect,nState,aValue,rtl::OUString())) + return; + } mpOutDev->Push( PUSH_LINECOLOR ); if ( rStyleSettings.GetOptions() & STYLE_OPTION_MONO ) |