Files
libreoffice/vcl/osx/salnativewidgets.cxx

1373 lines
53 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
re-base on ALv2 code. Includes (at least) relevant parts of: linecap: Reintegrating finished LineCap feature Patch contributed by Regina Henschel http://svn.apache.org/viewvc?view=revision&revision=1232507 Patches contributed by Sven Jacobi impress212: #i81610# fixed animation export http://svn.apache.org/viewvc?view=revision&revision=1167620 impress212: drawinglayer gbuild environment changes http://svn.apache.org/viewvc?view=revision&revision=1167627 http://svn.apache.org/viewvc?view=revision&revision=1167628 impress212: DffPropSet -> minor code improvements, removing table http://svn.apache.org/viewvc?view=revision&revision=1167634 impress212: #158494# fixed excel import (text rotation) http://svn.apache.org/viewvc?view=revision&revision=1167638 Patches contributed by Armin Le Grand Svg: Reintegrated Svg replacement from /branches/alg/svgreplavement http://svn.apache.org/viewvc?view=revision&revision=1220836 #118728# changed indentifying definitions for Svg file detection http://svn.apache.org/viewvc?view=revision&revision=1229961 #118838# LineGeometry creation for complicated cases optimized to create single Polygons http://svn.apache.org/viewvc?view=revision&revision=1236232 #119176# corrected file type detection for SVG for svg files without xml header http://svn.apache.org/viewvc?view=revision&revision=1309445 #118728# Extended Svg file detection http://svn.apache.org/viewvc?view=revision&revision=1230531 #118529# solve break converters and convert commands for OLEs and images http://svn.apache.org/viewvc?view=revision&revision=1186168 svg: added WaE changes from branch svgreplacement to trunc http://svn.apache.org/viewvc?view=revision&revision=1222974 svg: corrected missing member initialization http://svn.apache.org/viewvc?view=revision&revision=1226134 fix for #118525#: Using primitives for chart sub-geometry visualisation http://svn.apache.org/viewvc?view=revision&revision=1226879 #118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert metafiles to bitmapEx ... http://svn.apache.org/viewvc?view=revision&revision=1293316 fix for #118525#: removed no longer used variable maOriginalMapMode, one more exception eliminated http://svn.apache.org/viewvc?view=revision&revision=1227097 #16758# Added buffering to the VDev usages of the VclProcessor2D derivates... http://svn.apache.org/viewvc?view=revision&revision=1229521 #116758# Secured VDev buffer device to Vcl deinit http://svn.apache.org/viewvc?view=revision&revision=1230574 #116758# added remembering allocated VDevs for VDevBuffer to be able to also delete these when vcl goes down; it should never happen, but You never know http://svn.apache.org/viewvc?view=revision&revision=1230927 #118730# Changed SvgClipPathNode to use MaskPrimitive2D for primitive representation instead of TransparencePrimitive2D http://svn.apache.org/viewvc?view=revision&revision=1231198 #118822# secured 3D geometry creation (slices) by subdividing the 2D source polyPolygon early http://svn.apache.org/viewvc?view=revision&revision=1234749 #118829# enhanced Svg gradient quality, obstacles avoided http://svn.apache.org/viewvc?view=revision&revision=1235361 #118834# Unified usage of TextBreakupHelper as single tooling class for i18n text primitive breakup http://svn.apache.org/viewvc?view=revision&revision=1236110 #118853# added square pixel size limit to conversion of TransparencePrimitive2D to Metafile action http://svn.apache.org/viewvc?view=revision&revision=1237656 #118824# coreccted mirroring and boundrect when the graphicmanager is used for bitmap output http://svn.apache.org/viewvc?view=revision&revision=1240097 #115092# Corrected VclProcessor2D::RenderPolygonStrokePrimitive2D for various optimization scenarios http://svn.apache.org/viewvc?view=revision&revision=1241434 #118783# Corrected errors in ID strings, corrected Svg line/fill export, corrected polygon close state http://svn.apache.org/viewvc?view=revision&revision=1232006 #118796# corrected null-pointer usage in SVG text exporter http://svn.apache.org/viewvc?view=revision&revision=1240262 #118729# Use GraphicStreamUrl and GraphicUrl to allow multi image import with linked graphics, too http://svn.apache.org/viewvc?view=revision&revision=1229962 #118898# corrected error in GDIMetaFile::GetBoundRect in handling MetaFloatTransparentAction http://svn.apache.org/viewvc?view=revision&revision=1293349 #118855# Corrected handling of possibly created empty clipRegions after PolyPolygon clipping http://svn.apache.org/viewvc?view=revision&revision=1237725 #115962# Better (but not yet optimal, see comments in task) handling of MetaFloatTransparentAction in PDF export http://svn.apache.org/viewvc?view=revision&revision=1241078 IP clearance: #118466# This patch removes librsvg, libcroco, libgsf, ... http://svn.apache.org/viewvc?view=revision&revision=1200879 118779# Added svg content streaming in/out to ImpGraphic stream operators http://svn.apache.org/viewvc?view=revision&revision=1231908 linecap: correctons for WaE and mac drawing http://svn.apache.org/viewvc?view=revision&revision=1232793 svg: uses current system Dpi for Svg replacement image creation http://svn.apache.org/viewvc?view=revision&revision=1233948 Patches contributed by Mathias Bauer (and others) gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1397315 http://svn.apache.org/viewvc?view=revision&revision=1394326 Remove duplicate header includes. cws mba34issues01: #i117720#: convert assertion into warning http://svn.apache.org/viewvc?view=revision&revision=1172352 118485 - Styles for OLEs are not saved. Submitted by Armin Le Grand. http://svn.apache.org/viewvc?view=revision&revision=1182166 cws mba34issues01: #i117714#: remove assertion http://svn.apache.org/viewvc?view=revision&revision=1172357 Patch contributed by Jurgen Schmidt add some additional checks to ensure proper reading operations http://svn.apache.org/viewvc?view=revision&revision=1209022 mostly prefer our stream / bounds checking work. Patches contributed by Herbert Duerr #i118816# add clarifying comment regarding Font::*Color*() methods http://svn.apache.org/viewvc?view=revision&revision=1233833 extend macro->string handling for empty strings http://svn.apache.org/viewvc?view=revision&revision=1175801 avoid magic constants for SALCOLOR_NONE http://svn.apache.org/viewvc?view=revision&revision=1177543 initialize slant properly in ImplFontMetricData constructor (author=iorsh) http://svn.apache.org/viewvc?view=revision&revision=1177551 #i118675# make check for extension updates more stable http://svn.apache.org/viewvc?view=revision&revision=1214797 #a118617# remove VBasicEventListener.dll binary There are no known users depending on its CLSID http://svn.apache.org/viewvc?view=revision&revision=1203697 Patches contributed by Ariel Constenla-Haile Fix build breaker on Linux/gcc http://svn.apache.org/viewvc?view=revision&revision=1221104 Fix crash when trying to instantiate css.graphic.GraphicRasterizer_RSVG http://svn.apache.org/viewvc?view=revision&revision=1215559 Patches contributed by Oliver-Rainer Wittmann sw34bf06: #i117962# - method <SwFlyFrm::IsPaint(..)> - consider instances of <SwFlyDrawObj> http://svn.apache.org/viewvc?view=revision&revision=1172120 sw34bf06: #i117783# - Writer's implementation of XPagePrintable - apply print settings to new printing routines http://svn.apache.org/viewvc?view=revision&revision=1172115 gnumake4 work variously from Hans-Joachim Lankenau http://svn.apache.org/viewvc?view=revision&revision=1397315 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1396782 http://svn.apache.org/viewvc?view=revision&revision=1394707 plus some amount of re-splitting of legacy headers. Patch contributed by Pavel Janik WaE: Remove unused variables. http://svn.apache.org/viewvc?view=revision&revision=1230697 Patches contributed by Takashi Ono mingwport35: i#117795: MinGW port fix for vcl2gnumake http://svn.apache.org/viewvc?view=revision&revision=1172091 mingwport35: i#117795: MinGW port fix for vcl2gnumake http://svn.apache.org/viewvc?view=revision&revision=1172091 Patch contributed by Christian Lippka impress212: #i98044# re enable Text menu for outline and title shapes http://svn.apache.org/viewvc?view=revision&revision=1167639 Patch contributed by Andre Fischer 118674: Made category B code optional and disabled by default. http://svn.apache.org/viewvc?view=revision&revision=1215131 118881: Ignore empty paragraphs after bullets. http://svn.apache.org/viewvc?view=revision&revision=1296205 Patches contributed by Philipp Lohmann ooo340fixes: #i117780# use rtl allocator http://svn.apache.org/viewvc?view=revision&revision=1172087 ooo34gsl02: #i117807# fix an off by one error (index actually inside the pfb section header) http://svn.apache.org/viewvc?view=revision&revision=1167576 various cleanups, related compilation fixes, warning cleanups, re-working of obsolete stl template pieces to use boost instead, changed string classes, re-adapt KDE about data, about dialog, fixing warnings, and other fixes & improvements. Disable svg import / render for about/ branding code-paths for now. Restore full icon theme set. Remove OS/2 conditionals and sources. Remove conflicting gtk/full-screen monitors support. Retain existing svg rasterizer files - temporarily disabled. Standardize stringificaiton and fixup dllpostfix issues. Rename SvgGradientHelper::== to equalTo to avoid overloading issues. Use the flat GdiPlus API for LineCaps calls.
2012-10-09 12:22:23 +01:00
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
#include <config_features.h>
#include "vcl/salnativewidgets.hxx"
#include "vcl/decoview.hxx"
#include "vcl/svapp.hxx"
#include "vcl/timer.hxx"
#include <vcl/settings.hxx>
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
#include "quartz/salgdi.h"
#include "osx/salnativewidgets.h"
#include "osx/saldata.hxx"
#include "osx/salframe.h"
#include "premac.h"
#include <Carbon/Carbon.h>
#include "postmac.h"
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
#include <cuidraw.hxx>
#if !HAVE_FEATURE_MACOSX_SANDBOX
@interface NSWindow(CoreUIRendererPrivate)
+ (CUIRendererRef)coreUIRenderer;
@end
#endif
class AquaBlinker : public Timer
{
AquaSalFrame* mpFrame;
Rectangle maInvalidateRect;
AquaBlinker( AquaSalFrame* pFrame, const Rectangle& rRect )
: mpFrame( pFrame ), maInvalidateRect( rRect )
{
mpFrame->maBlinkers.push_back( this );
}
public:
static void Blink( AquaSalFrame*, const Rectangle&, int nTimeout = 80 );
virtual void Invoke() SAL_OVERRIDE
{
Stop();
if( AquaSalFrame::isAlive( mpFrame ) && mpFrame->mbShown )
{
mpFrame->maBlinkers.remove( this );
mpFrame->SendPaintEvent( &maInvalidateRect );
}
delete this;
}
};
void AquaBlinker::Blink( AquaSalFrame* pFrame, const Rectangle& rRect, int nTimeout )
{
// prevent repeated paints from triggering themselves all the time
for( std::list< AquaBlinker* >::const_iterator it = pFrame->maBlinkers.begin();
it != pFrame->maBlinkers.end(); ++it )
{
if( (*it)->maInvalidateRect == rRect )
return;
}
AquaBlinker* pNew = new AquaBlinker( pFrame, rRect );
pNew->SetTimeout( nTimeout );
pNew->Start();
}
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
// Helper returns an HIRect
static HIRect ImplGetHIRectFromRectangle(Rectangle aRect)
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
HIRect aHIRect;
aHIRect.origin.x = static_cast<float>(aRect.Left());
aHIRect.origin.y = static_cast<float>(aRect.Top());
aHIRect.size.width = static_cast<float>(aRect.GetWidth());
aHIRect.size.height = static_cast<float>(aRect.GetHeight());
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
return aHIRect;
}
static ThemeButtonValue ImplGetButtonValue( ButtonValue aButtonValue )
{
switch( aButtonValue )
{
case BUTTONVALUE_ON:
return kThemeButtonOn;
break;
case BUTTONVALUE_OFF:
return kThemeButtonOff;
break;
case BUTTONVALUE_MIXED:
case BUTTONVALUE_DONTKNOW:
default:
return kThemeButtonMixed;
break;
}
}
static bool AquaGetScrollRect( /* TODO: int nScreen, */ ControlPart nPart,
const Rectangle& rControlRect, Rectangle& rResultRect )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
bool bRetVal = true;
rResultRect = rControlRect;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
switch( nPart )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
case PART_BUTTON_UP:
rResultRect.Bottom() = rResultRect.Top();
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
break;
case PART_BUTTON_DOWN:
rResultRect.Top() = rResultRect.Bottom();
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
break;
case PART_BUTTON_LEFT:
rResultRect.Right() = rResultRect.Left();
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
break;
case PART_BUTTON_RIGHT:
rResultRect.Left() = rResultRect.Right();
break;
case PART_TRACK_HORZ_AREA:
case PART_TRACK_VERT_AREA:
case PART_THUMB_HORZ:
case PART_THUMB_VERT:
case PART_TRACK_HORZ_LEFT:
case PART_TRACK_HORZ_RIGHT:
case PART_TRACK_VERT_UPPER:
case PART_TRACK_VERT_LOWER:
break;
default:
bRetVal = false;
}
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
return bRetVal;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
}
/*
* IsNativeControlSupported()
* --------------------------
* Returns true if the platform supports native
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
* drawing of the control defined by nPart.
*
*/
bool AquaSalGraphics::IsNativeControlSupported( ControlType nType, ControlPart nPart )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
bool bOk = false;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
// Native controls are now defaults
// If you want to disable experimental native controls code,
// just set the environment variable SAL_NO_NWF to something
// and vcl controls will be used as default again.
switch( nType )
{
case CTRL_PUSHBUTTON:
case CTRL_RADIOBUTTON:
case CTRL_CHECKBOX:
case CTRL_LISTNODE:
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
if( nPart == PART_ENTIRE_CONTROL )
return true;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
break;
case CTRL_SCROLLBAR:
if( nPart == PART_DRAW_BACKGROUND_HORZ ||
nPart == PART_DRAW_BACKGROUND_VERT ||
nPart == PART_ENTIRE_CONTROL ||
nPart == HAS_THREE_BUTTONS )
return true;
break;
case CTRL_SLIDER:
if( nPart == PART_TRACK_HORZ_AREA || nPart == PART_TRACK_VERT_AREA )
return true;
break;
case CTRL_EDITBOX:
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
if( nPart == PART_ENTIRE_CONTROL ||
nPart == HAS_BACKGROUND_TEXTURE )
return true;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
break;
case CTRL_MULTILINE_EDITBOX:
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
if( nPart == PART_ENTIRE_CONTROL ||
nPart == HAS_BACKGROUND_TEXTURE )
return true;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
break;
case CTRL_SPINBOX:
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
if( nPart == PART_ENTIRE_CONTROL ||
nPart == PART_ALL_BUTTONS ||
nPart == HAS_BACKGROUND_TEXTURE )
return true;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
break;
case CTRL_SPINBUTTONS:
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
return false;
break;
case CTRL_COMBOBOX:
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
if( nPart == PART_ENTIRE_CONTROL ||
nPart == HAS_BACKGROUND_TEXTURE )
return true;
break;
case CTRL_LISTBOX:
if( nPart == PART_ENTIRE_CONTROL ||
nPart == PART_WINDOW ||
nPart == HAS_BACKGROUND_TEXTURE ||
nPart == PART_SUB_EDIT
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
)
return true;
break;
case CTRL_TAB_ITEM:
case CTRL_TAB_PANE:
case CTRL_TAB_BODY: // see vcl/source/window/tabpage.cxx
if( nPart == PART_ENTIRE_CONTROL ||
nPart == PART_TABS_DRAW_RTL ||
nPart == HAS_BACKGROUND_TEXTURE )
return true;
break;
// when PART_BUTTON is used, toolbar icons are not highlighted when mouse rolls over.
// More Aqua compliant
case CTRL_TOOLBAR:
if( nPart == PART_ENTIRE_CONTROL ||
nPart == PART_DRAW_BACKGROUND_HORZ ||
nPart == PART_DRAW_BACKGROUND_VERT)
return true;
break;
case CTRL_WINDOW_BACKGROUND:
if ( nPart == PART_BACKGROUND_WINDOW ||
nPart == PART_BACKGROUND_DIALOG )
return true;
break;
case CTRL_MENUBAR:
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
if( nPart == PART_ENTIRE_CONTROL )
return true;
break;
case CTRL_TOOLTIP: // ** TO DO
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
break;
case CTRL_MENU_POPUP:
if( nPart == PART_ENTIRE_CONTROL ||
nPart == PART_MENU_ITEM ||
nPart == PART_MENU_ITEM_CHECK_MARK ||
nPart == PART_MENU_ITEM_RADIO_MARK)
return true;
break;
case CTRL_PROGRESS:
case CTRL_INTROPROGRESS:
if( nPart == PART_ENTIRE_CONTROL )
return true;
break;
case CTRL_FRAME:
if( nPart == PART_BORDER )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
return true;
break;
case CTRL_LISTNET:
if( nPart == PART_ENTIRE_CONTROL )
return true;
break;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
}
return bOk;
}
/*
* HitTestNativeControl()
*
* If the return value is true, bIsInside contains information whether
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
* aPos was or was not inside the native widget specified by the
* nType/nPart combination.
*/
bool AquaSalGraphics::hitTestNativeControl( ControlType nType, ControlPart nPart, const Rectangle& rControlRegion,
const Point& rPos, bool& rIsInside )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
if ( nType == CTRL_SCROLLBAR )
{
Rectangle aRect;
bool bValid = AquaGetScrollRect( /* TODO: m_nScreen */ nPart, rControlRegion, aRect );
rIsInside = bValid && aRect.IsInside( rPos );
return bValid;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
} // CTRL_SCROLLBAR
return false;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
}
/*
kThemeStateInactive = 0,
kThemeStateActive = 1,
kThemeStatePressed = 2,
kThemeStateRollover = 6,
kThemeStateUnavailable = 7,
kThemeStateUnavailableInactive = 8
kThemeStatePressedUp = 2,
kThemeStatePressedDown = 3
#define ControlState::ENABLED 0x0001
#define ControlState::FOCUSED 0x0002
#define ControlState::PRESSED 0x0004
#define ControlState::ROLLOVER 0x0008
#define ControlState::HIDDEN 0x0010
#define ControlState::DEFAULT 0x0020
#define ControlState::SELECTED 0x0040
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
#define CTRL_CACHING_ALLOWED 0x8000 // set when the control is completely visible (i.e. not clipped)
*/
UInt32 AquaSalGraphics::getState( ControlState nState )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
const bool bDrawActive = mpFrame == nullptr || [mpFrame->getNSWindow() isKeyWindow];
if( !(nState & ControlState::ENABLED) || ! bDrawActive )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
if( ! (nState & ControlState::HIDDEN) )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
return kThemeStateInactive;
else
return kThemeStateUnavailableInactive;
}
if( nState & ControlState::HIDDEN )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
return kThemeStateUnavailable;
if( nState & ControlState::PRESSED )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
return kThemeStatePressed;
return kThemeStateActive;
}
UInt32 AquaSalGraphics::getTrackState( ControlState nState )
{
const bool bDrawActive = mpFrame == nullptr || [mpFrame->getNSWindow() isKeyWindow];
if( ! (nState & ControlState::ENABLED) || ! bDrawActive )
return kThemeTrackInactive;
return kThemeTrackActive;
}
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
/*
* DrawNativeControl()
*
* Draws the requested control described by nPart/nState.
*
* rControlRegion: The bounding region of the complete control in VCL frame coordinates.
* aValue: An optional value (tristate/numerical/string)
* aCaption: A caption or title string (like button text etc)
*/
bool AquaSalGraphics::drawNativeControl(ControlType nType,
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
ControlPart nPart,
const Rectangle& rControlRegion,
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
ControlState nState,
const ImplControlValue& aValue,
const OUString& )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
bool bOK = false;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
if( ! CheckContext() )
return false;
CGContextSaveGState( mrContext );
Rectangle buttonRect = rControlRegion;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
HIRect rc = ImplGetHIRectFromRectangle(buttonRect);
switch( nType )
{
case CTRL_COMBOBOX:
if ( nPart == HAS_BACKGROUND_TEXTURE ||
nPart == PART_ENTIRE_CONTROL )
{
HIThemeButtonDrawInfo aComboInfo;
aComboInfo.version = 0;
aComboInfo.kind = kThemeComboBox;
aComboInfo.state = getState( nState );
aComboInfo.value = kThemeButtonOn;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
aComboInfo.adornment = kThemeAdornmentNone;
if( nState & ControlState::FOCUSED )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
aComboInfo.adornment |= kThemeAdornmentFocus;
HIThemeDrawButton(&rc, &aComboInfo, mrContext, kHIThemeOrientationNormal,&rc);
bOK = true;
}
break;
case CTRL_TOOLBAR:
{
#if HAVE_FEATURE_MACOSX_SANDBOX
HIThemeMenuItemDrawInfo aMenuItemDrawInfo;
aMenuItemDrawInfo.version = 0;
aMenuItemDrawInfo.state = kThemeMenuActive;
aMenuItemDrawInfo.itemType = kThemeMenuItemHierBackground;
HIThemeDrawMenuItem(&rc,&rc,&aMenuItemDrawInfo,mrContext,kHIThemeOrientationNormal,NULL);
#else
if (rControlRegion.Top() == 0 && nPart == PART_DRAW_BACKGROUND_HORZ)
{
const bool bDrawActive = mpFrame == nullptr || [mpFrame->getNSWindow() isKeyWindow];
CGFloat unifiedHeight = rControlRegion.GetHeight();
CGRect drawRect = CGRectMake(rControlRegion.Left(), rControlRegion.Top(), rControlRegion.GetWidth(), rControlRegion.GetHeight());
CUIDraw([NSWindow coreUIRenderer], drawRect, mrContext,
reinterpret_cast<CFDictionaryRef>([NSDictionary dictionaryWithObjectsAndKeys:
@"kCUIWidgetWindowFrame", @"widget",
@"regularwin", @"windowtype",
(bDrawActive ? @"normal" : @"inactive"), @"state",
[NSNumber numberWithDouble:unifiedHeight], @"kCUIWindowFrameUnifiedTitleBarHeightKey",
[NSNumber numberWithBool:NO], @"kCUIWindowFrameDrawTitleSeparatorKey",
[NSNumber numberWithBool:YES], @"is.flipped",
nil]),
nil);;
}
else
{
HIThemeMenuItemDrawInfo aMenuItemDrawInfo;
aMenuItemDrawInfo.version = 0;
aMenuItemDrawInfo.state = kThemeMenuActive;
aMenuItemDrawInfo.itemType = kThemeMenuItemHierBackground;
HIThemeDrawMenuItem(&rc, &rc, &aMenuItemDrawInfo, mrContext, kHIThemeOrientationNormal, NULL);
}
#endif
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
bOK = true;
}
break;
case CTRL_WINDOW_BACKGROUND:
{
HIThemeBackgroundDrawInfo aThemeBackgroundInfo;
aThemeBackgroundInfo.version = 0;
aThemeBackgroundInfo.state = getState( nState );
aThemeBackgroundInfo.kind = kThemeBrushDialogBackgroundActive;
// FIXME: without this magical offset there is a 2 pixel black border on the right and bottom
rc.size.width += 2;
rc.size.height += 2;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
HIThemeApplyBackground( &rc, &aThemeBackgroundInfo, mrContext, kHIThemeOrientationNormal);
CGContextFillRect( mrContext, rc );
bOK = true;
}
break;
case CTRL_MENUBAR:
case CTRL_MENU_POPUP:
{
if ((nPart == PART_ENTIRE_CONTROL) || (nPart == PART_MENU_ITEM )|| (nPart == HAS_BACKGROUND_TEXTURE ))
{
// FIXME: without this magical offset there is a 2 pixel black border on the right
rc.size.width += 2;
HIThemeMenuDrawInfo aMenuInfo;
aMenuInfo.version = 0;
aMenuInfo.menuType = kThemeMenuTypePullDown;
HIThemeMenuItemDrawInfo aMenuItemDrawInfo;
// the Aqua grey theme when the item is selected is drawn here.
aMenuItemDrawInfo.itemType = kThemeMenuItemPlain;
if ((nPart == PART_MENU_ITEM ) && (nState & ControlState::SELECTED))
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
// the blue theme when the item is selected is drawn here.
aMenuItemDrawInfo.state = kThemeMenuSelected;
}
else
{
// normal color for non selected item
aMenuItemDrawInfo.state = kThemeMenuActive;
}
// repaints the background of the pull down menu
HIThemeDrawMenuBackground(&rc,&aMenuInfo,mrContext,kHIThemeOrientationNormal);
// repaints the item either blue (selected) and/or Aqua grey (active only)
HIThemeDrawMenuItem(&rc,&rc,&aMenuItemDrawInfo,mrContext,kHIThemeOrientationNormal,&rc);
bOK = true;
}
else if(( nPart == PART_MENU_ITEM_CHECK_MARK )||( nPart == PART_MENU_ITEM_RADIO_MARK )) {
if( nState & ControlState::PRESSED ) {//checked, else it is not displayed (see vcl/source/window/menu.cxx)
HIThemeTextInfo aTextInfo;
aTextInfo.version = 0;
aTextInfo.state = (nState & ControlState::ENABLED) ? kThemeStateInactive: kThemeStateActive;
aTextInfo.fontID = kThemeMenuItemMarkFont;
aTextInfo.horizontalFlushness=kHIThemeTextHorizontalFlushCenter;
aTextInfo.verticalFlushness=kHIThemeTextVerticalFlushTop;
aTextInfo.options=kHIThemeTextBoxOptionNone;
aTextInfo.truncationPosition=kHIThemeTextTruncationNone;
//aTextInfo.truncationMaxLines unused because of kHIThemeTextTruncationNone
if( nState & ControlState::SELECTED) aTextInfo.state = kThemeStatePressed; //item highlighted
UniChar mark=( nPart == PART_MENU_ITEM_CHECK_MARK ) ? kCheckUnicode: kBulletUnicode;//0x2713;
CFStringRef cfString = CFStringCreateWithCharactersNoCopy(kCFAllocatorDefault, &mark, 1, kCFAllocatorNull);
HIThemeDrawTextBox(cfString, &rc, &aTextInfo, mrContext, kHIThemeOrientationNormal);
if (cfString)
CFRelease(cfString);
bOK = true;
}
}
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
}
break;
case CTRL_PUSHBUTTON:
{
// [ FIXME] : instead of use a value, vcl can retrieve correct values on the fly (to be implemented)
const int PB_Mini_Height = 15;
const int PB_Norm_Height = 21;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
HIThemeButtonDrawInfo aPushInfo;
aPushInfo.version = 0;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
// no animation
aPushInfo.animation.time.start = 0;
aPushInfo.animation.time.current = 0;
PushButtonValue const * pPBVal = aValue.getType() == CTRL_PUSHBUTTON ? static_cast<PushButtonValue const *>(&aValue) : NULL;
CWS-TOOLING: integrate CWS vcl103 2009-07-24 Jens-Heiner Rechtien #i10000#: merge with m53 2009-07-10 Philipp Lohmann merge 2009-07-10 hdu #i103417# ignore non-standard font styles 2009-07-07 Philipp Lohmann #i98789# add: Invalidate on StateChanged( STATE_CHANGE_ENABLE ) 2009-07-07 Philipp Lohmann #i102501# ExportFormFields should be persistent 2009-07-07 Philipp Lohmann merge 2009-07-07 Philipp Lohmann #i103319# there is no platform currently where we should beep on disabled controls 2009-07-02 Philipp Lohmann merge 2009-07-01 Philipp Lohmann #i93100# handle ListBox with no border a little more graceful on MacOSX 2009-07-01 Philipp Lohmann #i101307# don't crash due to unfortunate timing 2009-07-03 thb #i103145# Swapped HINT_DOCK for HINT_TOOLBAR for the presentation fullscreen window; anecdotal evidence suggests it works much better then for wide-spread window managers 2009-06-30 Philipp Lohmann #i103102# evaluate Cmd-Option key combinations 2009-06-29 Philipp Lohmann #i103148# catch exception from missing UCB (thanks thb) 2009-06-29 hdu #i102378# fix PDF-export on PPC (thanks cloph!) 2009-06-25 Philipp Lohmann fix another link problem 2009-06-24 Philipp Lohmann use correct method signature 2009-06-24 Philipp Lohmann fix a warning 2009-06-24 Philipp Lohmann fix a warning 2009-06-24 Philipp Lohmann #i100357# add: GDIMetaFile::GetBoundRect 2009-06-24 Philipp Lohmann merge 2009-06-24 hdu #i100357# extend GetTextBoundRect() to measure justified text too 2009-06-23 Philipp Lohmann #i101108# protect writer from itself, no one could ever use paper of size (0,0) 2009-06-22 Philipp Lohmann merge 2009-06-22 Philipp Lohmann #i92356# treat windows running a popup menu as modal 2009-06-22 hdu #i100000# remove sft.h again (CWS dba32b accidentially reintroduced it) 2009-06-17 Philipp Lohmann merge 2009-06-17 Philipp Lohmann remove warnings (thanks ericb) 2009-06-17 Philipp Lohmann merge 2009-06-17 Philipp Lohmann #i102133# free cursors (thanks cmc) 2009-06-17 Philipp Lohmann #i97293# catch exception 2009-06-17 Philipp Lohmann #i91240# fix images in menus, again 2009-06-15 Philipp Lohmann #i100586# fix a pure virtual method (thanks cmc) 2009-06-15 Philipp Lohmann fix an array delete issue 2009-06-15 Philipp Lohmann #i102228# fix a cleanup issue 2009-06-15 Philipp Lohmann #i97218# solve duplicate accelerator 2009-06-12 hdu #i102219# avoid void*->oslGenericFunction cast for MingW (thanks tono!)
2009-07-24 15:45:35 +00:00
int nPaintHeight = static_cast<int>(rc.size.height);
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
if( pPBVal && pPBVal->mbBevelButton )
{
aPushInfo.kind = kThemeRoundedBevelButton;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
}
else if( rc.size.height <= PB_Norm_Height )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
aPushInfo.kind = kThemePushButtonMini;
nPaintHeight = PB_Mini_Height;
}
else if( pPBVal->mbSingleLine || rc.size.height < (PB_Norm_Height + PB_Norm_Height/2) )
{
aPushInfo.kind = kThemePushButtonNormal;
nPaintHeight = PB_Norm_Height;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
// avoid clipping when focused
rc.origin.x += FOCUS_RING_WIDTH/2;
rc.size.width -= FOCUS_RING_WIDTH;
if( nState & ControlState::DEFAULT )
{
AquaBlinker::Blink( mpFrame, buttonRect );
// show correct animation phase
aPushInfo.animation.time.current = CFAbsoluteTimeGetCurrent();
}
}
else
aPushInfo.kind = kThemeBevelButton;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
// translate the origin for controls with fixed paint height
// so content ends up somewhere sensible
int delta_y = static_cast<int>(rc.size.height) - nPaintHeight;
rc.origin.y += delta_y/2;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
aPushInfo.state = getState( nState );
aPushInfo.value = ImplGetButtonValue( aValue.getTristateVal() );
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
aPushInfo.adornment = ( nState & ControlState::DEFAULT ) ?
kThemeAdornmentDefault :
kThemeAdornmentNone;
if( nState & ControlState::FOCUSED )
aPushInfo.adornment |= kThemeAdornmentFocus;
HIThemeDrawButton( &rc, &aPushInfo, mrContext, kHIThemeOrientationNormal, NULL );
bOK = true;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
}
break;
case CTRL_RADIOBUTTON:
case CTRL_CHECKBOX:
{
HIThemeButtonDrawInfo aInfo;
aInfo.version = 0;
switch( nType )
{
case CTRL_RADIOBUTTON: if(rc.size.width >= BUTTON_HEIGHT) aInfo.kind = kThemeRadioButton;
else aInfo.kind = kThemeSmallRadioButton;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
break;
case CTRL_CHECKBOX: if(rc.size.width >= BUTTON_HEIGHT) aInfo.kind = kThemeCheckBox;
else aInfo.kind = kThemeSmallCheckBox;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
break;
}
aInfo.state = getState( nState );
ButtonValue aButtonValue = aValue.getTristateVal();
aInfo.value = ImplGetButtonValue( aButtonValue );
aInfo.adornment = ( nState & ControlState::DEFAULT ) ?
kThemeAdornmentDefault :
kThemeAdornmentNone;
if( nState & ControlState::FOCUSED )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
aInfo.adornment |= kThemeAdornmentFocus;
HIThemeDrawButton( &rc, &aInfo, mrContext, kHIThemeOrientationNormal, NULL );
bOK = true;
}
break;
case CTRL_LISTNODE:
{
ButtonValue aButtonValue = aValue.getTristateVal();
if( AllSettings::GetLayoutRTL() && aButtonValue == BUTTONVALUE_OFF )
CWS-TOOLING: integrate CWS vcl99 2009-01-29 15:34:04 +0100 hdu r267149 : #i77520# fix AquaSalGraphics::GetGlyphBoundRect() result y-sign 2009-01-29 10:14:23 +0100 hdu r267099 : #i77520# implement AquaSalGraphics::GetGlyphBoundRect() 2009-01-28 17:31:17 +0100 hdu r267071 : #i79046# restore MultiSalLayout components after drawing them 2009-01-28 12:02:19 +0100 tl r267050 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:54:21 +0100 tl r267049 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:43:44 +0100 tl r267047 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:17:42 +0100 tl r267041 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:14:30 +0100 tl r267038 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 10:33:03 +0100 tl r267032 : #i72073# auto spellcheck markups in RTL context fixed 2009-01-28 09:26:00 +0100 tl r267027 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 09:25:31 +0100 tl r267026 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:55:14 +0100 tl r267009 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:54:46 +0100 tl r267008 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:52:23 +0100 tl r267007 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:46:52 +0100 tl r267006 : #i72073# auto spellcheck markups in RTL context fixed 2009-01-27 11:53:53 +0100 pl r266975 : #i98515# fix a buffer overflow 2009-01-26 19:13:28 +0100 pl r266946 : #i98119# add static vcl object helper 2009-01-26 18:11:06 +0100 pl r266940 : #i94040# catch a corner case (thanks af) 2009-01-23 10:54:42 +0100 pl r266793 : #i92102# fix some RTL UI issues 2009-01-23 10:53:35 +0100 pl r266790 : #i98169# one more case of DrawWaveLine 2009-01-23 08:38:32 +0100 hdu r266768 : #i98139# prefer Tools->Options->FontSubstitution over PreMatchHook 2009-01-21 17:30:57 +0100 pl r266694 : #i92102# adjust spin buttons 2009-01-21 13:54:16 +0100 pl r266667 : #i97130# add Click handler 2009-01-21 13:32:47 +0100 os r266662 : #158646# set SwWrtShell in C'tor of SwIndexMarkDlg 2009-01-21 12:14:03 +0100 pl r266649 : #i98196# fix autospellchecking in writer 2009-01-19 14:25:28 +0100 pl r266497 : #i97130# implement functionality of ExplainButton
2009-02-17 10:33:03 +00:00
{
// FIXME: a value of kThemeDisclosureLeft
// should draw a theme compliant left disclosure triangle
// sadly this does not seem to work, so we'll draw a left
// grey equilateral triangle here ourselves.
// Perhaps some other HIThemeButtonDrawInfo setting would do the trick ?
CGContextSetShouldAntialias( mrContext, true );
CGFloat aGrey[] = { 0.45, 0.45, 0.45, 1.0 };
CWS-TOOLING: integrate CWS vcl99 2009-01-29 15:34:04 +0100 hdu r267149 : #i77520# fix AquaSalGraphics::GetGlyphBoundRect() result y-sign 2009-01-29 10:14:23 +0100 hdu r267099 : #i77520# implement AquaSalGraphics::GetGlyphBoundRect() 2009-01-28 17:31:17 +0100 hdu r267071 : #i79046# restore MultiSalLayout components after drawing them 2009-01-28 12:02:19 +0100 tl r267050 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:54:21 +0100 tl r267049 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:43:44 +0100 tl r267047 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:17:42 +0100 tl r267041 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:14:30 +0100 tl r267038 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 10:33:03 +0100 tl r267032 : #i72073# auto spellcheck markups in RTL context fixed 2009-01-28 09:26:00 +0100 tl r267027 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 09:25:31 +0100 tl r267026 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:55:14 +0100 tl r267009 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:54:46 +0100 tl r267008 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:52:23 +0100 tl r267007 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:46:52 +0100 tl r267006 : #i72073# auto spellcheck markups in RTL context fixed 2009-01-27 11:53:53 +0100 pl r266975 : #i98515# fix a buffer overflow 2009-01-26 19:13:28 +0100 pl r266946 : #i98119# add static vcl object helper 2009-01-26 18:11:06 +0100 pl r266940 : #i94040# catch a corner case (thanks af) 2009-01-23 10:54:42 +0100 pl r266793 : #i92102# fix some RTL UI issues 2009-01-23 10:53:35 +0100 pl r266790 : #i98169# one more case of DrawWaveLine 2009-01-23 08:38:32 +0100 hdu r266768 : #i98139# prefer Tools->Options->FontSubstitution over PreMatchHook 2009-01-21 17:30:57 +0100 pl r266694 : #i92102# adjust spin buttons 2009-01-21 13:54:16 +0100 pl r266667 : #i97130# add Click handler 2009-01-21 13:32:47 +0100 os r266662 : #158646# set SwWrtShell in C'tor of SwIndexMarkDlg 2009-01-21 12:14:03 +0100 pl r266649 : #i98196# fix autospellchecking in writer 2009-01-19 14:25:28 +0100 pl r266497 : #i97130# implement functionality of ExplainButton
2009-02-17 10:33:03 +00:00
CGContextSetFillColor( mrContext, aGrey );
CGContextBeginPath( mrContext );
float x = rc.origin.x + rc.size.width;
float y = rc.origin.y;
CGContextMoveToPoint( mrContext, x, y );
y += rc.size.height;
CGContextAddLineToPoint( mrContext, x, y );
x -= rc.size.height * 0.866; // cos( 30 degree ) is approx. 0.866
y -= rc.size.height/2;
CGContextAddLineToPoint( mrContext, x, y );
CGContextDrawPath( mrContext, kCGPathEOFill );
}
CWS-TOOLING: integrate CWS vcl99 2009-01-29 15:34:04 +0100 hdu r267149 : #i77520# fix AquaSalGraphics::GetGlyphBoundRect() result y-sign 2009-01-29 10:14:23 +0100 hdu r267099 : #i77520# implement AquaSalGraphics::GetGlyphBoundRect() 2009-01-28 17:31:17 +0100 hdu r267071 : #i79046# restore MultiSalLayout components after drawing them 2009-01-28 12:02:19 +0100 tl r267050 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:54:21 +0100 tl r267049 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:43:44 +0100 tl r267047 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:17:42 +0100 tl r267041 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:14:30 +0100 tl r267038 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 10:33:03 +0100 tl r267032 : #i72073# auto spellcheck markups in RTL context fixed 2009-01-28 09:26:00 +0100 tl r267027 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 09:25:31 +0100 tl r267026 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:55:14 +0100 tl r267009 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:54:46 +0100 tl r267008 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:52:23 +0100 tl r267007 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:46:52 +0100 tl r267006 : #i72073# auto spellcheck markups in RTL context fixed 2009-01-27 11:53:53 +0100 pl r266975 : #i98515# fix a buffer overflow 2009-01-26 19:13:28 +0100 pl r266946 : #i98119# add static vcl object helper 2009-01-26 18:11:06 +0100 pl r266940 : #i94040# catch a corner case (thanks af) 2009-01-23 10:54:42 +0100 pl r266793 : #i92102# fix some RTL UI issues 2009-01-23 10:53:35 +0100 pl r266790 : #i98169# one more case of DrawWaveLine 2009-01-23 08:38:32 +0100 hdu r266768 : #i98139# prefer Tools->Options->FontSubstitution over PreMatchHook 2009-01-21 17:30:57 +0100 pl r266694 : #i92102# adjust spin buttons 2009-01-21 13:54:16 +0100 pl r266667 : #i97130# add Click handler 2009-01-21 13:32:47 +0100 os r266662 : #158646# set SwWrtShell in C'tor of SwIndexMarkDlg 2009-01-21 12:14:03 +0100 pl r266649 : #i98196# fix autospellchecking in writer 2009-01-19 14:25:28 +0100 pl r266497 : #i97130# implement functionality of ExplainButton
2009-02-17 10:33:03 +00:00
else
{
HIThemeButtonDrawInfo aInfo;
aInfo.version = 0;
aInfo.kind = kThemeDisclosureTriangle;
aInfo.value = kThemeDisclosureRight;
aInfo.state = getState( nState );
aInfo.adornment = kThemeAdornmentNone;
switch( aButtonValue ) {
case BUTTONVALUE_ON: aInfo.value = kThemeDisclosureDown;//expanded
break;
case BUTTONVALUE_OFF:
// FIXME: this should have drawn a theme compliant disclosure triangle
// (see above)
if( AllSettings::GetLayoutRTL() )
CWS-TOOLING: integrate CWS vcl99 2009-01-29 15:34:04 +0100 hdu r267149 : #i77520# fix AquaSalGraphics::GetGlyphBoundRect() result y-sign 2009-01-29 10:14:23 +0100 hdu r267099 : #i77520# implement AquaSalGraphics::GetGlyphBoundRect() 2009-01-28 17:31:17 +0100 hdu r267071 : #i79046# restore MultiSalLayout components after drawing them 2009-01-28 12:02:19 +0100 tl r267050 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:54:21 +0100 tl r267049 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:43:44 +0100 tl r267047 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:17:42 +0100 tl r267041 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:14:30 +0100 tl r267038 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 10:33:03 +0100 tl r267032 : #i72073# auto spellcheck markups in RTL context fixed 2009-01-28 09:26:00 +0100 tl r267027 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 09:25:31 +0100 tl r267026 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:55:14 +0100 tl r267009 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:54:46 +0100 tl r267008 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:52:23 +0100 tl r267007 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:46:52 +0100 tl r267006 : #i72073# auto spellcheck markups in RTL context fixed 2009-01-27 11:53:53 +0100 pl r266975 : #i98515# fix a buffer overflow 2009-01-26 19:13:28 +0100 pl r266946 : #i98119# add static vcl object helper 2009-01-26 18:11:06 +0100 pl r266940 : #i94040# catch a corner case (thanks af) 2009-01-23 10:54:42 +0100 pl r266793 : #i92102# fix some RTL UI issues 2009-01-23 10:53:35 +0100 pl r266790 : #i98169# one more case of DrawWaveLine 2009-01-23 08:38:32 +0100 hdu r266768 : #i98139# prefer Tools->Options->FontSubstitution over PreMatchHook 2009-01-21 17:30:57 +0100 pl r266694 : #i92102# adjust spin buttons 2009-01-21 13:54:16 +0100 pl r266667 : #i97130# add Click handler 2009-01-21 13:32:47 +0100 os r266662 : #158646# set SwWrtShell in C'tor of SwIndexMarkDlg 2009-01-21 12:14:03 +0100 pl r266649 : #i98196# fix autospellchecking in writer 2009-01-19 14:25:28 +0100 pl r266497 : #i97130# implement functionality of ExplainButton
2009-02-17 10:33:03 +00:00
{
aInfo.value = kThemeDisclosureLeft;//collapsed, RTL
}
break;
case BUTTONVALUE_DONTKNOW: //what to do?
default:
break;
}
CWS-TOOLING: integrate CWS vcl99 2009-01-29 15:34:04 +0100 hdu r267149 : #i77520# fix AquaSalGraphics::GetGlyphBoundRect() result y-sign 2009-01-29 10:14:23 +0100 hdu r267099 : #i77520# implement AquaSalGraphics::GetGlyphBoundRect() 2009-01-28 17:31:17 +0100 hdu r267071 : #i79046# restore MultiSalLayout components after drawing them 2009-01-28 12:02:19 +0100 tl r267050 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:54:21 +0100 tl r267049 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:43:44 +0100 tl r267047 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:17:42 +0100 tl r267041 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:14:30 +0100 tl r267038 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 10:33:03 +0100 tl r267032 : #i72073# auto spellcheck markups in RTL context fixed 2009-01-28 09:26:00 +0100 tl r267027 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 09:25:31 +0100 tl r267026 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:55:14 +0100 tl r267009 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:54:46 +0100 tl r267008 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:52:23 +0100 tl r267007 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:46:52 +0100 tl r267006 : #i72073# auto spellcheck markups in RTL context fixed 2009-01-27 11:53:53 +0100 pl r266975 : #i98515# fix a buffer overflow 2009-01-26 19:13:28 +0100 pl r266946 : #i98119# add static vcl object helper 2009-01-26 18:11:06 +0100 pl r266940 : #i94040# catch a corner case (thanks af) 2009-01-23 10:54:42 +0100 pl r266793 : #i92102# fix some RTL UI issues 2009-01-23 10:53:35 +0100 pl r266790 : #i98169# one more case of DrawWaveLine 2009-01-23 08:38:32 +0100 hdu r266768 : #i98139# prefer Tools->Options->FontSubstitution over PreMatchHook 2009-01-21 17:30:57 +0100 pl r266694 : #i92102# adjust spin buttons 2009-01-21 13:54:16 +0100 pl r266667 : #i97130# add Click handler 2009-01-21 13:32:47 +0100 os r266662 : #158646# set SwWrtShell in C'tor of SwIndexMarkDlg 2009-01-21 12:14:03 +0100 pl r266649 : #i98196# fix autospellchecking in writer 2009-01-19 14:25:28 +0100 pl r266497 : #i97130# implement functionality of ExplainButton
2009-02-17 10:33:03 +00:00
HIThemeDrawButton( &rc, &aInfo, mrContext, kHIThemeOrientationNormal, NULL );
}
bOK = true;
}
break;
case CTRL_PROGRESS:
case CTRL_INTROPROGRESS:
{
long nProgressWidth = aValue.getNumericVal();
HIThemeTrackDrawInfo aTrackInfo;
aTrackInfo.version = 0;
aTrackInfo.kind = (rc.size.height > 10) ? kThemeProgressBarLarge : kThemeProgressBarMedium;
aTrackInfo.bounds = rc;
aTrackInfo.min = 0;
aTrackInfo.max = static_cast<SInt32>(rc.size.width);
aTrackInfo.value = nProgressWidth;
aTrackInfo.reserved = 0;
aTrackInfo.bounds.origin.y -= 2; // FIXME: magic for shadow
aTrackInfo.bounds.size.width -= 2; // FIXME: magic for shadow
aTrackInfo.attributes = kThemeTrackHorizontal;
if( AllSettings::GetLayoutRTL() )
aTrackInfo.attributes |= kThemeTrackRightToLeft;
aTrackInfo.enableState = getTrackState( nState );
// the intro bitmap never gets key anyway; we want to draw that enabled
if( nType == CTRL_INTROPROGRESS )
aTrackInfo.enableState = kThemeTrackActive;
aTrackInfo.filler1 = 0;
aTrackInfo.trackInfo.progress.phase = static_cast<UInt8>(CFAbsoluteTimeGetCurrent()*10.0);
HIThemeDrawTrack( &aTrackInfo, NULL, mrContext, kHIThemeOrientationNormal );
bOK = true;
}
break;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
case CTRL_SLIDER:
{
SliderValue const * pSLVal = static_cast<SliderValue const *>(&aValue);
HIThemeTrackDrawInfo aTrackDraw;
aTrackDraw.kind = kThemeSliderMedium;
if( nPart == PART_TRACK_HORZ_AREA || nPart == PART_TRACK_VERT_AREA )
{
aTrackDraw.bounds = rc;
aTrackDraw.min = pSLVal->mnMin;
2011-12-14 14:43:58 -05:00
aTrackDraw.max = pSLVal->mnMax;
aTrackDraw.value = pSLVal->mnCur;
aTrackDraw.reserved = 0;
aTrackDraw.attributes = kThemeTrackShowThumb;
if( nPart == PART_TRACK_HORZ_AREA )
aTrackDraw.attributes |= kThemeTrackHorizontal;
aTrackDraw.enableState = (nState & ControlState::ENABLED)
? kThemeTrackActive : kThemeTrackInactive;
SliderTrackInfo aSlideInfo;
aSlideInfo.thumbDir = kThemeThumbUpward;
aSlideInfo.pressState = 0;
aTrackDraw.trackInfo.slider = aSlideInfo;
HIThemeDrawTrack( &aTrackDraw, NULL, mrContext, kHIThemeOrientationNormal );
bOK = true;
}
}
break;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
case CTRL_SCROLLBAR:
{
const ScrollbarValue* pScrollbarVal = (aValue.getType() == CTRL_SCROLLBAR) ? static_cast<const ScrollbarValue*>(&aValue) : NULL;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
if( nPart == PART_DRAW_BACKGROUND_VERT ||
nPart == PART_DRAW_BACKGROUND_HORZ )
{
HIThemeTrackDrawInfo aTrackDraw;
aTrackDraw.kind = kThemeMediumScrollBar;
// FIXME: the scrollbar length must be adjusted
if (nPart == PART_DRAW_BACKGROUND_VERT)
rc.size.height += 2;
else
rc.size.width += 2;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
aTrackDraw.bounds = rc;
aTrackDraw.min = pScrollbarVal->mnMin;
aTrackDraw.max = pScrollbarVal->mnMax - pScrollbarVal->mnVisibleSize;
aTrackDraw.value = pScrollbarVal->mnCur;
aTrackDraw.reserved = 0;
aTrackDraw.attributes = kThemeTrackShowThumb;
if( nPart == PART_DRAW_BACKGROUND_HORZ )
aTrackDraw.attributes |= kThemeTrackHorizontal;
aTrackDraw.enableState = getTrackState( nState );
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
ScrollBarTrackInfo aScrollInfo;
aScrollInfo.viewsize = pScrollbarVal->mnVisibleSize;
aScrollInfo.pressState = 0;
if ( pScrollbarVal->mnButton1State & ControlState::ENABLED )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
if ( pScrollbarVal->mnButton1State & ControlState::PRESSED )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
aScrollInfo.pressState = kThemeTopOutsideArrowPressed;
}
if ( pScrollbarVal->mnButton2State & ControlState::ENABLED )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
if ( pScrollbarVal->mnButton2State & ControlState::PRESSED )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
aScrollInfo.pressState = kThemeBottomOutsideArrowPressed;
}
if ( pScrollbarVal->mnThumbState & ControlState::ENABLED )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
if ( pScrollbarVal->mnThumbState & ControlState::PRESSED )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
aScrollInfo.pressState = kThemeThumbPressed;
}
aTrackDraw.trackInfo.scrollbar = aScrollInfo;
HIThemeDrawTrack( &aTrackDraw, NULL, mrContext, kHIThemeOrientationNormal );
bOK = true;
}
}
break;
case CTRL_TAB_PANE:
{
HIThemeTabPaneDrawInfo aTabPaneDrawInfo;
aTabPaneDrawInfo.version = 1;
aTabPaneDrawInfo.state = kThemeStateActive;
aTabPaneDrawInfo.direction=kThemeTabNorth;
aTabPaneDrawInfo.size=kHIThemeTabSizeNormal;
aTabPaneDrawInfo.kind=kHIThemeTabKindNormal;
//the border is outside the rect rc for Carbon
//but for VCL it should be inside
rc.origin.x+=1;
rc.origin.y-=TAB_HEIGHT_NORMAL/2;
rc.size.height+=TAB_HEIGHT_NORMAL/2;
rc.size.width-=2;
HIThemeDrawTabPane(&rc, &aTabPaneDrawInfo, mrContext, kHIThemeOrientationNormal);
bOK = true;
}
break;
case CTRL_TAB_ITEM:
{
HIThemeTabDrawInfo aTabItemDrawInfo;
aTabItemDrawInfo.version=1;
aTabItemDrawInfo.style=kThemeTabNonFront;
aTabItemDrawInfo.direction=kThemeTabNorth;
aTabItemDrawInfo.size=kHIThemeTabSizeNormal;
aTabItemDrawInfo.adornment=kHIThemeTabAdornmentTrailingSeparator;
//State
if(nState & ControlState::SELECTED) {
aTabItemDrawInfo.style=kThemeTabFront;
}
if(nState & ControlState::FOCUSED) {
aTabItemDrawInfo.adornment|=kHIThemeTabAdornmentFocus;
}
//first, last or middle tab
aTabItemDrawInfo.position=kHIThemeTabPositionMiddle;
TabitemValue const * pTabValue = static_cast<TabitemValue const *>(&aValue);
TabitemFlags nAlignment = pTabValue->mnAlignment;
//TabitemFlags::LeftAligned (and TabitemFlags::RightAligned) for the leftmost (or rightmost) tab
//when there are several lines of tabs because there is only one first tab and one
//last tab and TabitemFlags::FirstInGroup (and TabitemFlags::LastInGroup) because when the
//line width is different from window width, there may not be TabitemFlags::RightAligned
if( ( (nAlignment & TabitemFlags::LeftAligned)&&(nAlignment & TabitemFlags::RightAligned) ) ||
( (nAlignment & TabitemFlags::FirstInGroup)&&(nAlignment & TabitemFlags::LastInGroup) )
) //tab alone
aTabItemDrawInfo.position=kHIThemeTabPositionOnly;
else if((nAlignment & TabitemFlags::LeftAligned)||(nAlignment & TabitemFlags::FirstInGroup))
aTabItemDrawInfo.position=kHIThemeTabPositionFirst;
else if((nAlignment & TabitemFlags::RightAligned)||(nAlignment & TabitemFlags::LastInGroup))
aTabItemDrawInfo.position=kHIThemeTabPositionLast;
//support for RTL
//see issue 79748
if( AllSettings::GetLayoutRTL() ) {
if( aTabItemDrawInfo.position == kHIThemeTabPositionFirst )
aTabItemDrawInfo.position = kHIThemeTabPositionLast;
else if( aTabItemDrawInfo.position == kHIThemeTabPositionLast )
aTabItemDrawInfo.position = kHIThemeTabPositionFirst;
}
rc.size.width+=2;//because VCL has 2 empty pixels between 2 tabs
rc.origin.x-=1;
HIThemeDrawTab(&rc, &aTabItemDrawInfo, mrContext, kHIThemeOrientationNormal, &rc );
bOK=true;
}
break;
case CTRL_LISTBOX:
switch( nPart)
{
case PART_ENTIRE_CONTROL:
case PART_BUTTON_DOWN:
{
HIThemeButtonDrawInfo aListInfo;
aListInfo.version = 0;
aListInfo.kind = kThemePopupButton;
aListInfo.state = getState( nState );//kThemeStateInactive -> greyed
aListInfo.value = kThemeButtonOn;
aListInfo.adornment = kThemeAdornmentDefault;
if( nState & ControlState::FOCUSED )
aListInfo.adornment |= kThemeAdornmentFocus;
HIThemeDrawButton(&rc, &aListInfo, mrContext, kHIThemeOrientationNormal,&rc);
bOK = true;
break;
}
case PART_WINDOW:
{
HIThemeFrameDrawInfo aTextDrawInfo;
aTextDrawInfo.version=0;
aTextDrawInfo.kind=kHIThemeFrameTextFieldSquare;
aTextDrawInfo.state=getState( nState );
aTextDrawInfo.isFocused=false;
rc.size.width+=1;//else there's a white space because an OS X theme has no 3D border
rc.size.height+=1;
HIThemeDrawFrame(&rc, &aTextDrawInfo, mrContext, kHIThemeOrientationNormal);
if(nState & ControlState::FOCUSED) HIThemeDrawFocusRect(&rc, true, mrContext, kHIThemeOrientationNormal);
bOK=true;
break;
}
}
break;
case CTRL_EDITBOX:
case CTRL_MULTILINE_EDITBOX:
{
HIThemeFrameDrawInfo aTextDrawInfo;
aTextDrawInfo.version=0;
aTextDrawInfo.kind=kHIThemeFrameTextFieldSquare;
aTextDrawInfo.state=getState( nState );
aTextDrawInfo.isFocused=false;
rc.size.width += 1; // else there may be a white space because an OS X theme has no 3D border
// change rc so that the frame will encompass only the content region
// see counterpart in GetNativeControlRegion
rc.size.width += 2;
rc.size.height += 2;
//CGContextSetFillColorWithColor
CGContextFillRect (mrContext, CGRectMake(rc.origin.x, rc.origin.y, rc.size.width, rc.size.height));
//fill a white background, because drawFrame only draws the border
HIThemeDrawFrame(&rc, &aTextDrawInfo, mrContext, kHIThemeOrientationNormal);
if(nState & ControlState::FOCUSED) HIThemeDrawFocusRect(&rc, true, mrContext, kHIThemeOrientationNormal);
bOK=true;
}
break;
case CTRL_SPINBOX:
{
if(nPart == PART_ENTIRE_CONTROL)
{
//text field:
HIThemeFrameDrawInfo aTextDrawInfo;
aTextDrawInfo.version=0;
aTextDrawInfo.kind=kHIThemeFrameTextFieldSquare;
aTextDrawInfo.state=getState( nState );
aTextDrawInfo.isFocused=false;
//rc.size.width contains the full size of the spinbox ie textfield + button
//so we remove the button width and the space between the button and the textfield
rc.size.width -= SPIN_BUTTON_SPACE + SPIN_BUTTON_WIDTH + 2*FOCUS_RING_WIDTH;
rc.origin.x += FOCUS_RING_WIDTH;
rc.origin.y += FOCUS_RING_WIDTH;
//CGContextSetFillColorWithColor
CGContextFillRect (mrContext, CGRectMake(rc.origin.x, rc.origin.y, rc.size.width, rc.size.height));
//fill a white background, because drawFrame only draws the border
HIThemeDrawFrame(&rc, &aTextDrawInfo, mrContext, kHIThemeOrientationNormal);
if(nState & ControlState::FOCUSED) HIThemeDrawFocusRect(&rc, true, mrContext, kHIThemeOrientationNormal);
//buttons:
const SpinbuttonValue* pSpinButtonVal = (aValue.getType() == CTRL_SPINBUTTONS) ? static_cast<const SpinbuttonValue*>(&aValue) : NULL;
ControlState nUpperState = ControlState::ENABLED;//state of the upper button
ControlState nLowerState = ControlState::ENABLED;//and of the lower button
if(pSpinButtonVal) {//pSpinButtonVal is sometimes null
nUpperState = (ControlState) pSpinButtonVal->mnUpperState;
nLowerState = (ControlState) pSpinButtonVal->mnLowerState;
HIThemeButtonDrawInfo aSpinInfo;
aSpinInfo.kind = kThemeIncDecButton;
aSpinInfo.state = kThemeStateActive;
if(nUpperState & ControlState::PRESSED)
aSpinInfo.state = kThemeStatePressedUp;
else if(nLowerState & ControlState::PRESSED)
aSpinInfo.state = kThemeStatePressedDown;
else if((nUpperState & ~ControlState::ENABLED)||(nLowerState & ~ControlState::ENABLED))
aSpinInfo.state = kThemeStateInactive;
else if((nUpperState & ControlState::ROLLOVER)||(nLowerState & ControlState::ROLLOVER))
aSpinInfo.state = kThemeStateRollover;
Rectangle aSpinRect( pSpinButtonVal->maUpperRect );
aSpinRect.Union( pSpinButtonVal->maLowerRect );
HIRect buttonRc = ImplGetHIRectFromRectangle(aSpinRect);
// FIXME: without this fuzz factor there is some unwanted clipping
if( AllSettings::GetLayoutRTL() )
CWS-TOOLING: integrate CWS vcl99 2009-01-29 15:34:04 +0100 hdu r267149 : #i77520# fix AquaSalGraphics::GetGlyphBoundRect() result y-sign 2009-01-29 10:14:23 +0100 hdu r267099 : #i77520# implement AquaSalGraphics::GetGlyphBoundRect() 2009-01-28 17:31:17 +0100 hdu r267071 : #i79046# restore MultiSalLayout components after drawing them 2009-01-28 12:02:19 +0100 tl r267050 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:54:21 +0100 tl r267049 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:43:44 +0100 tl r267047 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:17:42 +0100 tl r267041 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 11:14:30 +0100 tl r267038 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 10:33:03 +0100 tl r267032 : #i72073# auto spellcheck markups in RTL context fixed 2009-01-28 09:26:00 +0100 tl r267027 : #78466# default curreny listbox for Arabic builds fixed 2009-01-28 09:25:31 +0100 tl r267026 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:55:14 +0100 tl r267009 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:54:46 +0100 tl r267008 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:52:23 +0100 tl r267007 : #78466# default curreny listbox for Arabic builds fixed 2009-01-27 16:46:52 +0100 tl r267006 : #i72073# auto spellcheck markups in RTL context fixed 2009-01-27 11:53:53 +0100 pl r266975 : #i98515# fix a buffer overflow 2009-01-26 19:13:28 +0100 pl r266946 : #i98119# add static vcl object helper 2009-01-26 18:11:06 +0100 pl r266940 : #i94040# catch a corner case (thanks af) 2009-01-23 10:54:42 +0100 pl r266793 : #i92102# fix some RTL UI issues 2009-01-23 10:53:35 +0100 pl r266790 : #i98169# one more case of DrawWaveLine 2009-01-23 08:38:32 +0100 hdu r266768 : #i98139# prefer Tools->Options->FontSubstitution over PreMatchHook 2009-01-21 17:30:57 +0100 pl r266694 : #i92102# adjust spin buttons 2009-01-21 13:54:16 +0100 pl r266667 : #i97130# add Click handler 2009-01-21 13:32:47 +0100 os r266662 : #158646# set SwWrtShell in C'tor of SwIndexMarkDlg 2009-01-21 12:14:03 +0100 pl r266649 : #i98196# fix autospellchecking in writer 2009-01-19 14:25:28 +0100 pl r266497 : #i97130# implement functionality of ExplainButton
2009-02-17 10:33:03 +00:00
buttonRc.origin.x -= FOCUS_RING_WIDTH - CLIP_FUZZ;
else
buttonRc.origin.x += FOCUS_RING_WIDTH + CLIP_FUZZ;
switch( aValue.getTristateVal() )
{
case BUTTONVALUE_ON: aSpinInfo.value = kThemeButtonOn;
break;
case BUTTONVALUE_OFF: aSpinInfo.value = kThemeButtonOff;
break;
case BUTTONVALUE_MIXED:
case BUTTONVALUE_DONTKNOW:
default: aSpinInfo.value = kThemeButtonMixed;
break;
}
aSpinInfo.adornment = ( (nUpperState & ControlState::DEFAULT) ||
(nLowerState & ControlState::DEFAULT) ) ?
kThemeAdornmentDefault :
kThemeAdornmentNone;
if( (nUpperState & ControlState::FOCUSED) || (nLowerState & ControlState::FOCUSED))
aSpinInfo.adornment |= kThemeAdornmentFocus;
HIThemeDrawButton( &buttonRc, &aSpinInfo, mrContext, kHIThemeOrientationNormal, NULL );
}
bOK=true;
}
}
break;
case CTRL_FRAME:
{
DrawFrameFlags nStyle = static_cast<DrawFrameFlags>(aValue.getNumericVal());
if( nPart == PART_BORDER ) {
if(!( nStyle & DrawFrameFlags::Menu ) && !(nStyle & DrawFrameFlags::WindowBorder) )
{
// #i84756# strange effects start to happen when HIThemeDrawFrame
// meets the border of the window. These can be avoided by clipping
// to the boundary of the frame
if( rc.origin.y + rc.size.height >= mpFrame->maGeometry.nHeight-3 )
{
CGMutablePathRef rPath = CGPathCreateMutable();
CGPathAddRect( rPath, NULL, CGRectMake( 0, 0, mpFrame->maGeometry.nWidth-1, mpFrame->maGeometry.nHeight-1 ) );
CGContextBeginPath( mrContext );
CGContextAddPath( mrContext, rPath );
CGContextClip( mrContext );
CGPathRelease( rPath );
}
HIThemeFrameDrawInfo aTextDrawInfo;
aTextDrawInfo.version=0;
aTextDrawInfo.kind=kHIThemeFrameListBox;
aTextDrawInfo.state=kThemeStateActive;
aTextDrawInfo.isFocused=false;
HIThemeDrawFrame(&rc, &aTextDrawInfo, mrContext, kHIThemeOrientationNormal);
bOK=true;
}
}
}
break;
case CTRL_LISTNET:
{
//do nothing as there isn't net for listviews on macos
bOK=true;
}
break;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
}
CGContextRestoreGState( mrContext );
/* #i90291# in most cases invalidating the whole control region instead
of just the unclipped part of it is sufficient (and probably faster).
However for the window background we should not unnecessarily enlarge
the really changed rectangle since the difference is usually quite high
(the background is always drawn as a whole since we don't know anything
about its possible contents)
*/
if( nType == CTRL_WINDOW_BACKGROUND )
{
CGRect aRect = { { 0, 0 }, { 0, 0 } };
if( mxClipPath )
aRect = CGPathGetBoundingBox( mxClipPath );
if( aRect.size.width != 0 && aRect.size.height != 0 )
CWS-TOOLING: integrate CWS vcl103 2009-07-24 Jens-Heiner Rechtien #i10000#: merge with m53 2009-07-10 Philipp Lohmann merge 2009-07-10 hdu #i103417# ignore non-standard font styles 2009-07-07 Philipp Lohmann #i98789# add: Invalidate on StateChanged( STATE_CHANGE_ENABLE ) 2009-07-07 Philipp Lohmann #i102501# ExportFormFields should be persistent 2009-07-07 Philipp Lohmann merge 2009-07-07 Philipp Lohmann #i103319# there is no platform currently where we should beep on disabled controls 2009-07-02 Philipp Lohmann merge 2009-07-01 Philipp Lohmann #i93100# handle ListBox with no border a little more graceful on MacOSX 2009-07-01 Philipp Lohmann #i101307# don't crash due to unfortunate timing 2009-07-03 thb #i103145# Swapped HINT_DOCK for HINT_TOOLBAR for the presentation fullscreen window; anecdotal evidence suggests it works much better then for wide-spread window managers 2009-06-30 Philipp Lohmann #i103102# evaluate Cmd-Option key combinations 2009-06-29 Philipp Lohmann #i103148# catch exception from missing UCB (thanks thb) 2009-06-29 hdu #i102378# fix PDF-export on PPC (thanks cloph!) 2009-06-25 Philipp Lohmann fix another link problem 2009-06-24 Philipp Lohmann use correct method signature 2009-06-24 Philipp Lohmann fix a warning 2009-06-24 Philipp Lohmann fix a warning 2009-06-24 Philipp Lohmann #i100357# add: GDIMetaFile::GetBoundRect 2009-06-24 Philipp Lohmann merge 2009-06-24 hdu #i100357# extend GetTextBoundRect() to measure justified text too 2009-06-23 Philipp Lohmann #i101108# protect writer from itself, no one could ever use paper of size (0,0) 2009-06-22 Philipp Lohmann merge 2009-06-22 Philipp Lohmann #i92356# treat windows running a popup menu as modal 2009-06-22 hdu #i100000# remove sft.h again (CWS dba32b accidentially reintroduced it) 2009-06-17 Philipp Lohmann merge 2009-06-17 Philipp Lohmann remove warnings (thanks ericb) 2009-06-17 Philipp Lohmann merge 2009-06-17 Philipp Lohmann #i102133# free cursors (thanks cmc) 2009-06-17 Philipp Lohmann #i97293# catch exception 2009-06-17 Philipp Lohmann #i91240# fix images in menus, again 2009-06-15 Philipp Lohmann #i100586# fix a pure virtual method (thanks cmc) 2009-06-15 Philipp Lohmann fix an array delete issue 2009-06-15 Philipp Lohmann #i102228# fix a cleanup issue 2009-06-15 Philipp Lohmann #i97218# solve duplicate accelerator 2009-06-12 hdu #i102219# avoid void*->oslGenericFunction cast for MingW (thanks tono!)
2009-07-24 15:45:35 +00:00
buttonRect.Intersection( Rectangle( Point( static_cast<long int>(aRect.origin.x),
static_cast<long int>(aRect.origin.y) ),
Size( static_cast<long int>(aRect.size.width),
static_cast<long int>(aRect.size.height) ) ) );
}
RefreshRect( buttonRect.Left(), buttonRect.Top(), buttonRect.GetWidth(), buttonRect.GetHeight() );
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
return bOK;
}
/*
* GetNativeControlRegion()
*
* If the return value is true, rNativeBoundingRegion
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
* contains the true bounding region covered by the control
* including any adornment, while rNativeContentRegion contains the area
* within the control that can be safely drawn into without drawing over
* the borders of the control.
*
* rControlRegion: The bounding region of the control in VCL frame coordinates.
* aValue: An optional value (tristate/numerical/string)
* aCaption: A caption or title string (like button text etc)
*/
bool AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPart, const Rectangle& rControlRegion, ControlState /*nState*/,
const ImplControlValue& aValue, const OUString&,
Rectangle &rNativeBoundingRegion, Rectangle &rNativeContentRegion )
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
bool toReturn = false;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
Rectangle aCtrlBoundRect( rControlRegion );
short x = aCtrlBoundRect.Left();
short y = aCtrlBoundRect.Top();
short w, h;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
sal_uInt8 nBorderCleanup = 0;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
switch (nType)
{
case CTRL_SLIDER:
{
if( nPart == PART_THUMB_HORZ )
{
w = 19; // taken from HIG
h = aCtrlBoundRect.GetHeight();
rNativeBoundingRegion = rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h ) );
toReturn = true;
}
else if( nPart == PART_THUMB_VERT )
{
w = aCtrlBoundRect.GetWidth();
h = 18; // taken from HIG
rNativeBoundingRegion = rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h ) );
toReturn = true;
}
}
break;
case CTRL_SCROLLBAR:
{
Rectangle aRect;
if( AquaGetScrollRect( /* m_nScreen */ nPart, aCtrlBoundRect, aRect ) )
{
toReturn = true;
rNativeBoundingRegion = aRect;
rNativeContentRegion = aRect;
}
}
break;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
case CTRL_PUSHBUTTON:
case CTRL_RADIOBUTTON:
case CTRL_CHECKBOX:
{
if ( nType == CTRL_PUSHBUTTON )
{
w = aCtrlBoundRect.GetWidth();
h = aCtrlBoundRect.GetHeight();
}
else
{
// checkbox and radio borders need cleanup after unchecking them
nBorderCleanup = 4;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
// TEXT_SEPARATOR to respect Aqua HIG
w = BUTTON_WIDTH + TEXT_SEPARATOR;
h = BUTTON_HEIGHT;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
}
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h + nBorderCleanup) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h ) );
toReturn = true;
}
break;
case CTRL_PROGRESS:
{
Rectangle aRect( aCtrlBoundRect );
if( aRect.GetHeight() < 16 )
aRect.Bottom() = aRect.Top() + 9; // values taken from HIG for medium progress
else
aRect.Bottom() = aRect.Top() + 15; // values taken from HIG for large progress
rNativeBoundingRegion = aRect;
rNativeContentRegion = aRect;
toReturn = true;
}
break;
case CTRL_INTROPROGRESS:
{
Rectangle aRect( aCtrlBoundRect );
aRect.Bottom() = aRect.Top() + INTRO_PROGRESS_HEIGHT; // values taken from HIG for medium progress
rNativeBoundingRegion = aRect;
rNativeContentRegion = aRect;
toReturn = true;
}
break;
case CTRL_TAB_ITEM:
w = aCtrlBoundRect.GetWidth() + 2*TAB_TEXT_OFFSET - 2*VCL_TAB_TEXT_OFFSET;
h = TAB_HEIGHT_NORMAL+2;
2014-04-04 15:13:38 +02:00
rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h ) );
toReturn = true;
break;
case CTRL_EDITBOX:
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
w = aCtrlBoundRect.GetWidth();
if( w < 3+2*FOCUS_RING_WIDTH )
w = 3+2*FOCUS_RING_WIDTH;
h = TEXT_EDIT_HEIGHT_NORMAL+2*FOCUS_RING_WIDTH;
if( h < aCtrlBoundRect.GetHeight() )
h = aCtrlBoundRect.GetHeight();
rNativeContentRegion = Rectangle( Point( x+FOCUS_RING_WIDTH, y+FOCUS_RING_WIDTH ), Size( w-2*(FOCUS_RING_WIDTH+1), h-2*(FOCUS_RING_WIDTH+1) ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h ) );
toReturn = true;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
}
break;
case CTRL_LISTBOX:
case CTRL_COMBOBOX:
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
{
if( nPart == PART_ENTIRE_CONTROL )
{
w = aCtrlBoundRect.GetWidth();
h = COMBOBOX_HEIGHT_NORMAL;//listboxes and comboxes have the same height
rNativeContentRegion = Rectangle( Point( x+FOCUS_RING_WIDTH, y+FOCUS_RING_WIDTH ), Size( w-2*FOCUS_RING_WIDTH, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h+2*FOCUS_RING_WIDTH ) );
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
toReturn = true;
}
else if( nPart == PART_BUTTON_DOWN )
{
w = aCtrlBoundRect.GetWidth();
if( w < 3+2*FOCUS_RING_WIDTH )
w = 3+2*FOCUS_RING_WIDTH;
h = COMBOBOX_HEIGHT_NORMAL;//listboxes and comboxes have the same height
x += w-DROPDOWN_BUTTON_WIDTH - FOCUS_RING_WIDTH;
y += FOCUS_RING_WIDTH;
w = DROPDOWN_BUTTON_WIDTH;
rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w+FOCUS_RING_WIDTH, h+2*FOCUS_RING_WIDTH ) );
toReturn = true;
}
else if( nPart == PART_SUB_EDIT )
{
w = aCtrlBoundRect.GetWidth();
h = COMBOBOX_HEIGHT_NORMAL;//listboxes and comboxes have the same height
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
x += FOCUS_RING_WIDTH;
x += 3; // add an offset for rounded borders
y += 2; // don't draw into upper border
y += FOCUS_RING_WIDTH;
w -= 3 + DROPDOWN_BUTTON_WIDTH + 2*FOCUS_RING_WIDTH;
if( nType == CTRL_LISTBOX )
w -= 9; // HIG specifies 9 units distance between dropdown button area and content
h -= 4; // don't draw into lower border
rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w+FOCUS_RING_WIDTH, h+2*FOCUS_RING_WIDTH ) );
toReturn = true;
}
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
}
break;
case CTRL_SPINBOX:
if( nPart == PART_ENTIRE_CONTROL ) {
w = aCtrlBoundRect.GetWidth();
if( w < 3+2*FOCUS_RING_WIDTH+SPIN_BUTTON_SPACE+SPIN_BUTTON_WIDTH )
w = 3+2*FOCUS_RING_WIDTH+SPIN_BUTTON_SPACE+SPIN_BUTTON_WIDTH;
h = TEXT_EDIT_HEIGHT_NORMAL;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
rNativeContentRegion = Rectangle( Point( x+FOCUS_RING_WIDTH, y ), Size( w-2*FOCUS_RING_WIDTH, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h+2*FOCUS_RING_WIDTH ) );
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
toReturn = true;
}
else if( nPart == PART_SUB_EDIT ) {
w = aCtrlBoundRect.GetWidth() - SPIN_BUTTON_SPACE - SPIN_BUTTON_WIDTH;
h = TEXT_EDIT_HEIGHT_NORMAL;
x += 4; // add an offset for rounded borders
y += 2; // don't draw into upper border
w -= 8; // offset for left and right rounded border
h -= 4; // don't draw into upper or ower border
rNativeContentRegion = Rectangle( Point( x + FOCUS_RING_WIDTH, y + FOCUS_RING_WIDTH ), Size( w - 2* FOCUS_RING_WIDTH, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h+2*FOCUS_RING_WIDTH ) );
toReturn = true;
}
else if( nPart == PART_BUTTON_UP ) {
//aCtrlBoundRect.GetWidth() contains the width of the full control
//ie the width of the textfield + button
//x is the position of the left corner of the full control
x += aCtrlBoundRect.GetWidth() - SPIN_BUTTON_WIDTH - SPIN_BUTTON_SPACE - CLIP_FUZZ;
y += FOCUS_RING_WIDTH - CLIP_FUZZ;
w = SPIN_BUTTON_WIDTH + 2*CLIP_FUZZ;
h = SPIN_UPPER_BUTTON_HEIGHT + 2*CLIP_FUZZ;
rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h ) );
toReturn = true;
}
else if( nPart == PART_BUTTON_DOWN ) {
x += aCtrlBoundRect.GetWidth() - SPIN_BUTTON_WIDTH - SPIN_BUTTON_SPACE - CLIP_FUZZ;
y += SPIN_UPPER_BUTTON_HEIGHT + FOCUS_RING_WIDTH - CLIP_FUZZ;
w = SPIN_BUTTON_WIDTH + 2*CLIP_FUZZ;
h = SPIN_LOWER_BUTTON_HEIGHT + 2*CLIP_FUZZ;
rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h ) );
toReturn = true;
}
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
break;
case CTRL_FRAME:
{
DrawFrameStyle nStyle = static_cast<DrawFrameStyle>(aValue.getNumericVal() & 0x000f);
DrawFrameFlags nFlags = static_cast<DrawFrameFlags>(aValue.getNumericVal() & 0xfff0);
if( ( nPart == PART_BORDER ) &&
!( nFlags & (DrawFrameFlags::Menu | DrawFrameFlags::WindowBorder | DrawFrameFlags::BorderWindowBorder) ) )
{
Rectangle aRect(aCtrlBoundRect);
if( nStyle == DrawFrameStyle::DoubleIn )
{
aRect.Left() += 1;
aRect.Top() += 1;
//rRect.Right() -= 1;
//rRect.Bottom() -= 1;
}
else
{
aRect.Left() += 1;
aRect.Top() += 1;
aRect.Right() -= 1;
aRect.Bottom() -= 1;
}
rNativeContentRegion = aRect;
rNativeBoundingRegion = aRect;
toReturn = true;
}
}
break;
case CTRL_MENUBAR:
case CTRL_MENU_POPUP:
{
if(( nPart == PART_MENU_ITEM_CHECK_MARK )||( nPart == PART_MENU_ITEM_RADIO_MARK )) {
w=10;
h=10;//dimensions of the mark (10px font)
rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h ) );
toReturn = true;
}
}
break;
INTEGRATION: CWS aquavcl01 (1.1.2); FILE ADDED 2007/06/28 12:35:13 ericb 1.1.2.51: #i77551# improve metrics for listboxes buttons 2007/06/28 07:07:24 pjanik 1.1.2.50: whitespace cleanup 2007/06/28 07:01:06 pjanik 1.1.2.49: whitespace cleanup 2007/06/28 06:48:09 ericb 1.1.2.48: #i77551# add correct buttons for listboxes 2007/06/27 09:17:04 pl 1.1.2.47: #i78907# paint menubar, add a magical 2 pixel border offset 2007/06/22 12:13:33 pl 1.1.2.46: #i77552# enforce window update in in native background frames 2007/06/22 07:07:49 pl 1.1.2.45: #i77552# add: native window background 2007/06/20 19:00:27 pl 1.1.2.44: #i78510# enable native focus markers for selected controls 2007/06/14 01:49:21 ericb 1.1.2.43: fix typo in test 2007/06/14 01:41:40 ericb 1.1.2.42: draw correct button for Comboboxes (Ismael will complete) 2007/06/11 01:41:15 ekato 1.1.2.41: Don't pass NULL to CFRelease(). 2007/06/07 17:47:51 ericb 1.1.2.40: #i77549# be sure CFRelease every time 2007/06/07 17:10:00 ericb 1.1.2.39: #i77549# redesign how system preferencesare found 2007/06/05 21:22:49 ericb 1.1.2.38: #i77607# add selected button highlighted on main toolbar 2007/05/30 14:37:40 pl 1.1.2.37: save and restore to protect our context 2007/05/29 15:56:39 pl 1.1.2.36: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/26 20:54:33 ericb 1.1.2.35: #i75020# fix middle part of pushbutton swapped in About + CTRL SDT 2007/05/26 08:50:57 ericb 1.1.2.34: #i77552# make Aqua them appear for some control. Will need more work for the background 2007/05/23 13:22:40 pl 1.1.2.33: more convenient logging 2007/05/17 08:51:36 ericb 1.1.2.32: #i77450# fix bad parameter in HIThemeDrawMenuItem, and remove bad cases for CTRL_TOOLBAR in isNativeControlSupported() 2007/05/17 08:31:38 ericb 1.1.2.31: #i77450# add isOffScreen() case for toolbars 2007/05/16 21:49:34 ericb 1.1.2.30: cosmetic changes in code for NWF 2007/05/16 21:43:30 ericb 1.1.2.29: add Aqua look for toolbars and tooltips 2007/05/14 14:20:47 ericb 1.1.2.28: add pulse effect (it will help to verify refresh issues are fixed) 2007/03/10 09:58:42 pjanik 1.1.2.27: Add better debugging for native widgets. 2007/03/01 13:03:13 pjanik 1.1.2.26: #i74602#: Add offscreen drawing for native widgets. 2007/02/27 10:30:37 pjanik 1.1.2.25: #i74632#: fix native buttons jumping up when highlighted. 2007/02/18 23:14:25 ericb 1.1.2.24: #i74632# fix for pushbuttons offset 2007/02/17 09:53:45 pjanik 1.1.2.23: whitespace and partial indentation cleanup. 2007/02/17 09:15:16 ericb 1.1.2.22: fix little colored issue for radio buttons and checkbuttons 2007/02/16 19:10:33 ericb 1.1.2.21: code cleanup in native widgets (buttons) 2007/02/16 12:19:42 pjanik 1.1.2.20: Remove useless prototype just before definition of the function AquaGetScrollButtonRect. 2007/02/11 20:15:48 ericb 1.1.2.19: add native popups 2007/02/11 13:08:24 ericb 1.1.2.18: code cleanup in native scrollbar 2007/02/11 11:48:36 ericb 1.1.2.17: #i74417# fix scrollbar crash 2007/02/04 19:27:29 ericb 1.1.2.16: misc code changes 2007/02/04 17:41:23 ericb 1.1.2.15: add comments for Aqua* helpers 2007/02/04 17:33:12 ericb 1.1.2.14: allows to use system preferences for scrollbar + implement new scrollbar controls + code cleanup 2006/12/23 15:53:08 ericb 1.1.2.13: fix little error when radio button are checked 2006/12/23 09:06:51 ericb 1.1.2.12: cosmetic changes + fixed several little bugs in switch for pushbuttons 2006/12/22 23:29:11 ericb 1.1.2.11: fixes some pushbuttons bugs 2006/12/13 13:26:19 ericb 1.1.2.10: remove AQUA_NATIVE_CONTROLS to keep native controls as default (use SAL_NO_NWF instead) 2006/10/15 09:54:19 ericb 1.1.2.9: remove comments for AQUA_NATIVE_CONTROLS 2006/10/12 09:42:43 ericb 1.1.2.8: fix missing ; 2006/10/12 09:39:10 ericb 1.1.2.7: add cosmetic changes and default case in switch for hitTestNativeControl() 2006/10/11 21:58:02 ericb 1.1.2.6: fix control translation with aqua scrollbar. first working code 2006/10/06 11:51:01 ericb 1.1.2.5: fix buttons borders for native aqua controls 2006/10/04 21:16:11 pdefilippis 1.1.2.4: cws aquavcl01 added old native buttons support 2006/09/21 15:03:45 pdefilippis 1.1.2.3: cws aquavcl01 add aqua native scrollbar control 2006/08/21 16:22:37 pjanik 1.1.2.2: Define environment variable AQUA_NATIVE_CONTROLS to TRUE at runtime to get native controls. 2006/08/21 15:20:17 pjanik 1.1.2.1: Rename salgdinative.cxx file to salnativewidgets.cxx.
2007-07-05 07:28:31 +00:00
}
return toReturn;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */