summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2008-01-14 15:20:20 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2008-01-14 15:20:20 +0000
commit06f4366d53d152d9ecda2f3ffbe4eeac0708ba51 (patch)
treecd308ab067f822070c7226d1401c002ab65f94f8 /vcl
parent2a823d4321227cb486d2994f110073f6427de6bb (diff)
INTEGRATION: CWS aquavcl04 (1.6.2); FILE MERGED
2007/11/22 17:20:09 pl 1.6.2.1: #i77549# allow for aqua theme drawing scrollbars not as spcified
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/salnativewidgets.hxx21
1 files changed, 19 insertions, 2 deletions
diff --git a/vcl/inc/vcl/salnativewidgets.hxx b/vcl/inc/vcl/salnativewidgets.hxx
index c09eec257e31..79629ef16f34 100644
--- a/vcl/inc/vcl/salnativewidgets.hxx
+++ b/vcl/inc/vcl/salnativewidgets.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: salnativewidgets.hxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: kz $ $Date: 2007-10-09 15:17:58 $
+ * last change: $Author: ihi $ $Date: 2008-01-14 16:20:20 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -187,6 +187,23 @@ typedef sal_uInt32 ControlPart;
#define PART_MENU_ITEM_CHECK_MARK 251
#define PART_MENU_ITEM_RADIO_MARK 252
+/* #i77549#
+ HACK: for scrollbars in case of thumb rect, page up and page down rect we
+ abuse the HitTestNativeControl interface. All theming engines but aqua
+ are actually able to draw the thumb according to our internal representation.
+ However aqua draws a little outside. The canonical way would be to enhance the
+ HitTestNativeControl passing a ScrollbarValue additionally so all necessary
+ information is available in the call.
+ .
+ However since there is only this one small exception we will deviate a little and
+ instead pass the respective rect as control region to allow for a small correction.
+
+ So all places using HitTestNativeControl on PART_THUMB_HORZ, PART_THUMB_VERT,
+ PART_TRACK_HORZ_LEFT, PART_TRACK_HORZ_RIGHT, PART_TRACK_VERT_UPPER, PART_TRACK_VERT_LOWER
+ do not use the control rectangle as region but the actuall part rectangle, making
+ only small deviations feasible.
+*/
+
/** The edit field part of a control, e.g. of the combo box.
Currently used just for combo boxes and just for GetNativeControlRegion().