diff options
author | Ruslan Kabatsayev <b7.10110111@gmail.com> | 2012-06-07 03:54:43 +0400 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-06-15 15:23:46 +0200 |
commit | fd9827e7353111563b91f66b3dfe3f54a61628e2 (patch) | |
tree | bbf1771109731189d5aecf0cd5cf8aace80fdc46 /vcl/source | |
parent | 2406d170111a3859c34735c304e435832ecd108f (diff) |
Implement native FixedLine render, add GTK support for it
Change-Id: I142cc8c48331aaed0d157b4b0f81e7c021005624
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
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 ) |