summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-05-28 09:07:11 +0200
committerJan Holesovsky <kendy@suse.cz>2012-05-28 09:26:38 +0200
commitd02e19e3d8697132f63eca353047a572b1e459ea (patch)
treebc2a6f346fba35ece9e05cb667248c4b2abe496c /vcl/source
parent94713bbeca876c1718305791d45ff8bb986da433 (diff)
calc input line: Native rendering of the input line.
[Including few adjustments in the way the scrollbar is being calculated.] Change-Id: I247ee139864a119bdec9dead64e51d9aace385ff
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/brdwin.cxx4
-rw-r--r--vcl/source/window/decoview.cxx16
2 files changed, 20 insertions, 0 deletions
diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx
index 9d397c2de7d7..601a6147b742 100644
--- a/vcl/source/window/brdwin.cxx
+++ b/vcl/source/window/brdwin.cxx
@@ -1201,6 +1201,8 @@ void ImplSmallBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHei
nStyle |= FRAME_DRAW_DOUBLEOUT;
else if ( nBorderStyle & WINDOW_BORDER_TOPBOTTOM )
nStyle |= FRAME_DRAW_TOPBOTTOM;
+ else if ( nBorderStyle & WINDOW_BORDER_NWF )
+ nStyle |= FRAME_DRAW_NWF;
else
nStyle |= FRAME_DRAW_DOUBLEIN;
if ( nBorderStyle & WINDOW_BORDER_MONO )
@@ -1392,6 +1394,8 @@ void ImplSmallBorderWindowView::DrawWindow( sal_uInt16 nDrawFlags, OutputDevice*
nStyle |= FRAME_DRAW_DOUBLEOUT;
else if ( nBorderStyle & WINDOW_BORDER_TOPBOTTOM )
nStyle |= FRAME_DRAW_TOPBOTTOM;
+ else if ( nBorderStyle & WINDOW_BORDER_NWF )
+ nStyle |= FRAME_DRAW_NWF;
else
nStyle |= FRAME_DRAW_DOUBLEIN;
if ( nBorderStyle & WINDOW_BORDER_MONO )
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx
index 878578df7724..20546e5e3dd0 100644
--- a/vcl/source/window/decoview.cxx
+++ b/vcl/source/window/decoview.cxx
@@ -739,6 +739,14 @@ void ImplDrawFrame( OutputDevice *const pDev, Rectangle& rRect,
++rRect.Top();
--rRect.Bottom();
break;
+
+ case FRAME_DRAW_NWF:
+ // enough space for the native rendering
+ rRect.Left() += 5;
+ rRect.Top() += 5;
+ rRect.Right() -= 5;
+ rRect.Bottom() -= 5;
+ break;
}
}
else
@@ -830,6 +838,14 @@ void ImplDrawFrame( OutputDevice *const pDev, Rectangle& rRect,
++rRect.Top();
--rRect.Bottom();
break;
+
+ case FRAME_DRAW_NWF:
+ // no rendering, just enough space for the native rendering
+ rRect.Left() += 5;
+ rRect.Top() += 5;
+ rRect.Right() -= 5;
+ rRect.Bottom() -= 5;
+ break;
}
}
}