Files
libreoffice/vcl/osx/salframe.cxx

1667 lines
55 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: Patches contributed by Pedro Giffuni: Avoid some uses of non portable #!/bin/bash in shell scripts. http://svn.apache.org/viewvc?view=revision&revision=1235297 Reduce the dependencies on non standard GNU copy. http://svn.apache.org/viewvc?view=revision&revision=1238684 Correct /usr/bin/env path. http://svn.apache.org/viewvc?view=revision&revision=1235619 Complex Toolbar Controls Extension from the SDK Patches contributed by Ariel Constenla-Haile http://svn.apache.org/viewvc?view=revision&revision=1190390 i118615 - make epm more verbose http://svn.apache.org/viewvc?view=revision&revision=1204288 Patches contributed by Mathias Bauer (and others) gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 Patches contributed by Juergen Schmidt: jsc341: i117327: take care if no dependency node in current description exists, create one http://svn.apache.org/viewvc?view=revision&revision=1172101 jsc341: i117327: add extra extension dependency check http://svn.apache.org/viewvc?view=revision&revision=1172098 make initial branding changes http://svn.apache.org/viewvc?view=revision&revision=1231878 Patches contributed by Ingo Schmidt native373: #i117733# no linux jre installation on 64 bit systems http://svn.apache.org/viewvc?view=revision&revision=1167536 native373: ##164464# improve debian support http://svn.apache.org/viewvc?view=revision&revision=1167537 Patch contribtued by Armin Le-Grand: Changed various aspects concerning usages of old vendor names http://svn.apache.org/viewvc?view=revision&revision=1293313 fix for neon webdav, remove coinmp bits, improve odk script, cleanup & remove OS/2 conditionals, system ucpp fixes, remove OS/2 conditionals, restore our license filenames.
2012-11-06 12:12:33 +00: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 .
*/
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
#include <string>
#include "rtl/ustrbuf.hxx"
#include "osl/file.h"
#include "vcl/svapp.hxx"
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
#include "vcl/window.hxx"
#include "vcl/syswin.hxx"
#include <vcl/settings.hxx>
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
#include "osx/saldata.hxx"
#include "quartz/salgdi.h"
#include "osx/salframe.h"
#include "osx/salmenu.h"
#include "osx/salinst.h"
#include "osx/salframeview.h"
#include "osx/a11yfactory.h"
#include "quartz/utils.h"
#include "salwtype.hxx"
#include "premac.h"
#include <objc/objc-runtime.h>
// needed for theming
// FIXME: move theming code to salnativewidgets.cxx
#include <Carbon/Carbon.h>
#include "postmac.h"
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
using namespace std;
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
AquaSalFrame* AquaSalFrame::s_pCaptureFrame = NULL;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
AquaSalFrame::AquaSalFrame( SalFrame* pParent, sal_uLong salFrameStyle ) :
mpNSWindow(nil),
mpNSView(nil),
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
mpDockMenuEntry(nil),
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
mpGraphics(NULL),
mpParent(NULL),
mnMinWidth(0),
mnMinHeight(0),
mnMaxWidth(0),
mnMaxHeight(0),
mbGraphics(false),
mbFullScreen( false ),
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
mbShown(false),
mbInitShow(true),
mbPositioned(false),
mbSized(false),
mbPresentation( false ),
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
mnStyle( salFrameStyle ),
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
mnStyleMask( 0 ),
mnLastEventTime( 0 ),
mnLastModifierFlags( 0 ),
mpMenu( NULL ),
mnExtStyle( 0 ),
mePointerStyle( PointerStyle::Arrow ),
mnTrackingRectTag( 0 ),
mrClippingPath( 0 ),
mnICOptions( InputContextFlags::NONE )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
maSysData.nSize = sizeof( SystemEnvData );
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
mpParent = dynamic_cast<AquaSalFrame*>(pParent);
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
initWindowAndView();
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
SalData* pSalData = GetSalData();
pSalData->maFrames.push_front( this );
pSalData->maFrameCheck.insert( this );
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
AquaSalFrame::~AquaSalFrame()
2000-09-18 16:07:07 +00:00
{
// if the frame is destroyed and has the current menubar
// set the default menubar
if( mpMenu && mpMenu->mbMenuBar && AquaSalMenu::pCurrentMenuBar == mpMenu )
AquaSalMenu::setDefaultMenu();
// cleanup clipping stuff
ResetClipRegion();
[SalFrameView unsetMouseFrame: this];
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
SalData* pSalData = GetSalData();
pSalData->maFrames.remove( this );
pSalData->maFrameCheck.erase( this );
pSalData->maPresentationFrames.remove( this );
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
DBG_ASSERT( this != s_pCaptureFrame, "capture frame destroyed" );
if( this == s_pCaptureFrame )
s_pCaptureFrame = NULL;
2011-11-07 12:49:03 +00:00
delete mpGraphics;
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( mpDockMenuEntry )
// life cycle comment: the menu has ownership of the item, so no release
[AquaSalInstance::GetDynamicDockMenu() removeItem: mpDockMenuEntry];
if ( mpNSView ) {
[AquaA11yFactory revokeView: mpNSView];
[mpNSView release];
}
if ( mpNSWindow )
[mpNSWindow release];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
}
void AquaSalFrame::initWindowAndView()
{
// initialize mirroring parameters
// FIXME: screens changing
NSScreen* pNSScreen = [mpNSWindow screen];
if( pNSScreen == nil )
pNSScreen = [NSScreen mainScreen];
maScreenRect = [pNSScreen frame];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
// calculate some default geometry
NSRect aVisibleRect = [pNSScreen visibleFrame];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
CocoaToVCL( aVisibleRect );
maGeometry.nX = static_cast<int>(aVisibleRect.origin.x + aVisibleRect.size.width / 10);
maGeometry.nY = static_cast<int>(aVisibleRect.origin.y + aVisibleRect.size.height / 10);
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
maGeometry.nWidth = static_cast<unsigned int>(aVisibleRect.size.width * 0.8);
maGeometry.nHeight = static_cast<unsigned int>(aVisibleRect.size.height * 0.8);
// calculate style mask
if( (mnStyle & SAL_FRAME_STYLE_FLOAT) ||
(mnStyle & SAL_FRAME_STYLE_OWNERDRAWDECORATION) )
mnStyleMask = NSBorderlessWindowMask;
else if( mnStyle & SAL_FRAME_STYLE_DEFAULT )
{
mnStyleMask = NSTitledWindowMask |
NSMiniaturizableWindowMask |
NSResizableWindowMask |
NSClosableWindowMask;
// make default window "maximized"
maGeometry.nX = static_cast<int>(aVisibleRect.origin.x);
maGeometry.nY = static_cast<int>(aVisibleRect.origin.y);
maGeometry.nWidth = static_cast<int>(aVisibleRect.size.width);
maGeometry.nHeight = static_cast<int>(aVisibleRect.size.height);
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
mbPositioned = mbSized = true;
}
else
{
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( (mnStyle & SAL_FRAME_STYLE_MOVEABLE) )
{
mnStyleMask |= NSTitledWindowMask;
if( mpParent == NULL )
mnStyleMask |= NSMiniaturizableWindowMask;
}
if( (mnStyle & SAL_FRAME_STYLE_SIZEABLE) )
mnStyleMask |= NSResizableWindowMask;
if( (mnStyle & SAL_FRAME_STYLE_CLOSEABLE) )
mnStyleMask |= NSClosableWindowMask;
// documentation says anything other than NSBorderlessWindowMask (=0)
// should also include NSTitledWindowMask;
if( mnStyleMask != 0 )
mnStyleMask |= NSTitledWindowMask;
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
2010-12-10 13:05:43 +01:00
// #i91990# support GUI-less (daemon) execution
@try
{
mpNSWindow = [[SalFrameWindow alloc] initWithSalFrame: this];
mpNSView = [[SalFrameView alloc] initWithSalFrame: this];
2010-12-10 13:05:43 +01:00
}
@catch ( id exception )
{
return;
}
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( (mnStyle & SAL_FRAME_STYLE_TOOLTIP) )
[mpNSWindow setIgnoresMouseEvents: YES];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
else
[mpNSWindow setAcceptsMouseMovedEvents: YES];
[mpNSWindow setHasShadow: YES];
[mpNSWindow setDelegate: static_cast<id<NSWindowDelegate> >(mpNSWindow)];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( [mpNSWindow respondsToSelector: @selector(setRestorable:)])
{
objc_msgSend(mpNSWindow, @selector(setRestorable:), NO);
}
const NSRect aRect = { NSZeroPoint, NSMakeSize( maGeometry.nWidth, maGeometry.nHeight )};
mnTrackingRectTag = [mpNSView addTrackingRect: aRect owner: mpNSView userData: nil assumeInside: NO];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
maSysData.mpNSView = mpNSView;
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
UpdateFrameGeometry();
[mpNSWindow setContentView: mpNSView];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
}
void AquaSalFrame::CocoaToVCL( NSRect& io_rRect, bool bRelativeToScreen )
{
if( bRelativeToScreen )
io_rRect.origin.y = maScreenRect.size.height - (io_rRect.origin.y+io_rRect.size.height);
else
io_rRect.origin.y = maGeometry.nHeight - (io_rRect.origin.y+io_rRect.size.height);
}
void AquaSalFrame::VCLToCocoa( NSRect& io_rRect, bool bRelativeToScreen )
{
if( bRelativeToScreen )
io_rRect.origin.y = maScreenRect.size.height - (io_rRect.origin.y+io_rRect.size.height);
else
io_rRect.origin.y = maGeometry.nHeight - (io_rRect.origin.y+io_rRect.size.height);
}
void AquaSalFrame::CocoaToVCL( NSPoint& io_rPoint, bool bRelativeToScreen )
{
if( bRelativeToScreen )
io_rPoint.y = maScreenRect.size.height - io_rPoint.y;
else
io_rPoint.y = maGeometry.nHeight - io_rPoint.y;
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
void AquaSalFrame::VCLToCocoa( NSPoint& io_rPoint, bool bRelativeToScreen )
{
if( bRelativeToScreen )
io_rPoint.y = maScreenRect.size.height - io_rPoint.y;
else
io_rPoint.y = maGeometry.nHeight - io_rPoint.y;
2000-09-18 16:07:07 +00:00
}
void AquaSalFrame::screenParametersChanged()
{
UpdateFrameGeometry();
if( mpGraphics )
mpGraphics->updateResolution();
CallCallback( SALEVENT_DISPLAYCHANGED, 0 );
}
SalGraphics* AquaSalFrame::AcquireGraphics()
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if ( mbGraphics )
return NULL;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if ( !mpGraphics )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
mpGraphics = new AquaSalGraphics;
mpGraphics->SetWindowGraphics( this );
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
mbGraphics = TRUE;
return mpGraphics;
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
void AquaSalFrame::ReleaseGraphics( SalGraphics *pGraphics )
2000-09-18 16:07:07 +00:00
{
2011-03-24 13:56:11 +01:00
(void)pGraphics;
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
DBG_ASSERT( pGraphics == mpGraphics, "graphics released on wrong frame" );
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
mbGraphics = FALSE;
2000-09-18 16:07:07 +00:00
}
bool AquaSalFrame::PostEvent( void *pData )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
GetSalData()->mpFirstInstance->PostUserEvent( this, SALEVENT_USEREVENT, pData );
return TRUE;
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
void AquaSalFrame::SetTitle(const OUString& rTitle)
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
return;
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
NSString* pTitle = CreateNSString( rTitle );
[mpNSWindow setTitle: pTitle];
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
// create an entry in the dock menu
const sal_uLong nAppWindowStyle = (SAL_FRAME_STYLE_CLOSEABLE | SAL_FRAME_STYLE_MOVEABLE);
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( mpParent == NULL &&
(mnStyle & nAppWindowStyle) == nAppWindowStyle )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( mpDockMenuEntry == NULL )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
NSMenu* pDock = AquaSalInstance::GetDynamicDockMenu();
mpDockMenuEntry = [pDock insertItemWithTitle: pTitle
action: @selector(dockMenuItemTriggered:)
keyEquivalent: @""
atIndex: 0];
[mpDockMenuEntry setTarget: mpNSWindow];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
// TODO: image (either the generic window image or an icon
// check mark (for "main" window ?)
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
else
[mpDockMenuEntry setTitle: pTitle];
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if (pTitle)
[pTitle release];
2000-09-18 16:07:07 +00:00
}
void AquaSalFrame::SetIcon( sal_uInt16 )
{
}
void AquaSalFrame::SetRepresentedURL( const OUString& i_rDocURL )
2000-09-18 16:07:07 +00:00
{
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
if( i_rDocURL.startsWith( "file:" ) )
{
OUString aSysPath;
osl_getSystemPathFromFileURL( i_rDocURL.pData, &aSysPath.pData );
NSString* pStr = CreateNSString( aSysPath );
if( pStr )
{
[pStr autorelease];
[mpNSWindow setRepresentedFilename: pStr];
}
}
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
void AquaSalFrame::initShow()
2000-11-20 22:32:57 +00:00
{
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
mbInitShow = false;
if( ! mbPositioned && ! mbFullScreen )
{
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
Rectangle aScreenRect;
GetWorkArea( aScreenRect );
if( mpParent ) // center relative to parent
{
// center on parent
long nNewX = mpParent->maGeometry.nX + ((long)mpParent->maGeometry.nWidth - (long)maGeometry.nWidth)/2;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if( nNewX < aScreenRect.Left() )
nNewX = aScreenRect.Left();
if( long(nNewX + maGeometry.nWidth) > aScreenRect.Right() )
nNewX = aScreenRect.Right() - maGeometry.nWidth-1;
long nNewY = mpParent->maGeometry.nY + ((long)mpParent->maGeometry.nHeight - (long)maGeometry.nHeight)/2;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if( nNewY < aScreenRect.Top() )
nNewY = aScreenRect.Top();
if( nNewY > aScreenRect.Bottom() )
nNewY = aScreenRect.Bottom() - maGeometry.nHeight-1;
SetPosSize( nNewX - mpParent->maGeometry.nX,
nNewY - mpParent->maGeometry.nY,
0, 0, SAL_FRAME_POSSIZE_X | SAL_FRAME_POSSIZE_Y );
}
else if( ! (mnStyle & SAL_FRAME_STYLE_SIZEABLE) )
{
// center on screen
long nNewX = (aScreenRect.GetWidth() - maGeometry.nWidth)/2;
long nNewY = (aScreenRect.GetHeight() - maGeometry.nHeight)/2;
SetPosSize( nNewX, nNewY, 0, 0, SAL_FRAME_POSSIZE_X | SAL_FRAME_POSSIZE_Y );
}
}
// make sure the view is present in the wrapper list before any children receive focus
[AquaA11yFactory registerView: mpNSView];
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
void AquaSalFrame::SendPaintEvent( const Rectangle* pRect )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
SalPaintEvent aPaintEvt( 0, 0, maGeometry.nWidth, maGeometry.nHeight, true );
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( pRect )
{
aPaintEvt.mnBoundX = pRect->Left();
aPaintEvt.mnBoundY = pRect->Top();
aPaintEvt.mnBoundWidth = pRect->GetWidth();
aPaintEvt.mnBoundHeight = pRect->GetHeight();
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
CallCallback(SALEVENT_PAINT, &aPaintEvt);
}
void AquaSalFrame::Show(bool bVisible, bool bNoActivate)
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
return;
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
mbShown = bVisible;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if(bVisible)
2000-11-20 22:32:57 +00:00
{
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if( mbInitShow )
initShow();
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
CallCallback(SALEVENT_RESIZE, 0);
// trigger filling our backbuffer
SendPaintEvent();
if( bNoActivate || [mpNSWindow canBecomeKeyWindow] == NO )
[mpNSWindow orderFront: NSApp];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
else
[mpNSWindow makeKeyAndOrderFront: NSApp];
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
CWS-TOOLING: integrate CWS vcl97 2008-12-11 20:47:52 +0100 pl r265361 : #i93173# revert change, event listeners on the toolbar can lead to crashes 2008-12-11 17:55:54 +0100 pl r265344 : #i92715# fix some border cases 2008-12-11 16:36:01 +0100 pl r265334 : remove forgotten debug printf 2008-12-11 15:54:25 +0100 pl r265323 : add missing pointer initializer 2008-12-11 14:08:44 +0100 as r265297 : #i86520# dont show start module twice 2008-12-11 12:56:34 +0100 as r265289 : #i86520# dont show start module twice 2008-12-11 12:22:18 +0100 pl r265280 : fix a snafu 2008-12-11 12:15:27 +0100 hdu r265279 : #i96549# change some dbg_assert to dbg_warn 2008-12-11 11:57:22 +0100 pl r265276 : #i86520# startcenter on dock item click for mac 2008-12-11 11:31:47 +0100 pl r265271 : #i96964# fix a wrong condition 2008-12-11 11:21:49 +0100 as r265268 : #i86520# new framework slot for ShowStartModule 2008-12-11 10:17:32 +0100 hdu r265251 : #i97127# use fontconfig fallbacks for psprinting too (thanks CMC!) 2008-12-09 10:18:41 +0100 hdu r265060 : #i96549# workaround MAC_OS_X_VERSION_* macros not defined in older SDKs 2008-12-09 09:39:47 +0100 hdu r265057 : #i89650# workaround bogus device resolutions 2008-12-09 09:14:23 +0100 hdu r265054 : #i96549# set MAC_OS_X_VERSION_MIN_REQUIRED=1040 2008-12-08 19:17:42 +0100 pl r265016 : CWS-TOOLING: rebase CWS vcl97 to trunk@264807 (milestone: DEV300:m37) 2008-12-08 16:06:58 +0100 hdu r265004 : #i96549# set MAC_OS_X_VERSION_MIN_REQUIRED=1040 only for the Aqua port 2008-12-08 12:16:26 +0100 hdu r264988 : #i96549# prepare for MAC_OS_X_VERSION_MIN_REQUIRED>=1050 2008-12-08 11:59:25 +0100 hdu r264982 : #i96549# set MAC_OS_X_VERSION_MIN_REQUIRED=1040 2008-12-04 18:19:43 +0100 pl r264866 : #i86520# install a handler to be called on dock icon clicked 2008-12-03 13:04:32 +0100 pl r264769 : #i96551# on quartz build neither gtk nor cups in psprint is needed 2008-11-26 15:07:07 +0100 hdu r264400 : #i96317# adjust to extented SAL_DISABLE_FC_SUBST semantic 2008-11-21 16:15:31 +0100 pl r264147 : #i94443# generalize focus behavior when a child window becomes invisible 2008-11-21 15:45:03 +0100 pl r264144 : #i96433# improve torn off toolbar behavior 2008-11-21 11:50:01 +0100 pl r264119 : #i90083# improve key event dispatching 2008-11-20 17:28:03 +0100 pl r264076 : #i92715# do not execute app events during document recovery 2008-11-20 15:04:32 +0100 pl r264057 : #i92224# #i93249# more aqua key codes 2008-11-20 14:03:00 +0100 pl r264052 : #i92224# #i93249# remove debug printf 2008-11-20 14:00:29 +0100 pl r264049 : #i92224# #i93249# more aqua key codes 2008-11-20 13:59:34 +0100 pl r264048 : #i92224# #i93249# more aqua key codes 2008-11-20 13:52:38 +0100 pl r264047 : #i92224# #i93249# more aqua key codes 2008-11-19 18:42:17 +0100 pl r264017 : #i93249# support some mac specifc key codes: select to line end/begin 2008-11-19 18:40:26 +0100 pl r264016 : #i93249# support some mac specifc key codes: select to line end/begin 2008-11-19 18:32:31 +0100 pl r264014 : #i92224# support some mac specifc key codes: select to line end/begin 2008-11-19 17:34:50 +0100 pl r264009 : #i92224# some more needed keycodes 2008-11-19 16:11:33 +0100 pl r264003 : #i93249# support some mac specifc key codes 2008-11-19 16:10:31 +0100 pl r264002 : #i93249# support some mac specifc key codes 2008-11-19 15:50:03 +0100 pl r264000 : #i93249# support some mac specifc key codes 2008-11-19 14:17:41 +0100 pl r263993 : #i90015# strip appended parenthese entries from menubar 2008-11-17 18:30:37 +0100 pl r263737 : #i94601# emulate menu functionality for non vcl dialogs 2008-11-17 17:31:12 +0100 pl r263731 : #i95263# set inactive tab color on mac more distinct from the active tab color 2008-11-17 17:13:38 +0100 pl r263729 : #i93173# delete toolbar window in a more stack aware manner
2009-01-02 15:26:18 +00:00
if( mpParent )
{
/* #i92674# #i96433# we do not want an invisible parent to show up (which adding a visible
child implicitly does). However we also do not want a parentless toolbar.
HACK: try to decide when we should not insert a child to its parent
floaters and ownerdraw windows have not yet shown up in cases where
we don't want the parent to become visible
*/
if( mpParent->mbShown || (mnStyle & (SAL_FRAME_STYLE_OWNERDRAWDECORATION | SAL_FRAME_STYLE_FLOAT) ) )
{
[mpParent->mpNSWindow addChildWindow: mpNSWindow ordered: NSWindowAbove];
CWS-TOOLING: integrate CWS vcl97 2008-12-11 20:47:52 +0100 pl r265361 : #i93173# revert change, event listeners on the toolbar can lead to crashes 2008-12-11 17:55:54 +0100 pl r265344 : #i92715# fix some border cases 2008-12-11 16:36:01 +0100 pl r265334 : remove forgotten debug printf 2008-12-11 15:54:25 +0100 pl r265323 : add missing pointer initializer 2008-12-11 14:08:44 +0100 as r265297 : #i86520# dont show start module twice 2008-12-11 12:56:34 +0100 as r265289 : #i86520# dont show start module twice 2008-12-11 12:22:18 +0100 pl r265280 : fix a snafu 2008-12-11 12:15:27 +0100 hdu r265279 : #i96549# change some dbg_assert to dbg_warn 2008-12-11 11:57:22 +0100 pl r265276 : #i86520# startcenter on dock item click for mac 2008-12-11 11:31:47 +0100 pl r265271 : #i96964# fix a wrong condition 2008-12-11 11:21:49 +0100 as r265268 : #i86520# new framework slot for ShowStartModule 2008-12-11 10:17:32 +0100 hdu r265251 : #i97127# use fontconfig fallbacks for psprinting too (thanks CMC!) 2008-12-09 10:18:41 +0100 hdu r265060 : #i96549# workaround MAC_OS_X_VERSION_* macros not defined in older SDKs 2008-12-09 09:39:47 +0100 hdu r265057 : #i89650# workaround bogus device resolutions 2008-12-09 09:14:23 +0100 hdu r265054 : #i96549# set MAC_OS_X_VERSION_MIN_REQUIRED=1040 2008-12-08 19:17:42 +0100 pl r265016 : CWS-TOOLING: rebase CWS vcl97 to trunk@264807 (milestone: DEV300:m37) 2008-12-08 16:06:58 +0100 hdu r265004 : #i96549# set MAC_OS_X_VERSION_MIN_REQUIRED=1040 only for the Aqua port 2008-12-08 12:16:26 +0100 hdu r264988 : #i96549# prepare for MAC_OS_X_VERSION_MIN_REQUIRED>=1050 2008-12-08 11:59:25 +0100 hdu r264982 : #i96549# set MAC_OS_X_VERSION_MIN_REQUIRED=1040 2008-12-04 18:19:43 +0100 pl r264866 : #i86520# install a handler to be called on dock icon clicked 2008-12-03 13:04:32 +0100 pl r264769 : #i96551# on quartz build neither gtk nor cups in psprint is needed 2008-11-26 15:07:07 +0100 hdu r264400 : #i96317# adjust to extented SAL_DISABLE_FC_SUBST semantic 2008-11-21 16:15:31 +0100 pl r264147 : #i94443# generalize focus behavior when a child window becomes invisible 2008-11-21 15:45:03 +0100 pl r264144 : #i96433# improve torn off toolbar behavior 2008-11-21 11:50:01 +0100 pl r264119 : #i90083# improve key event dispatching 2008-11-20 17:28:03 +0100 pl r264076 : #i92715# do not execute app events during document recovery 2008-11-20 15:04:32 +0100 pl r264057 : #i92224# #i93249# more aqua key codes 2008-11-20 14:03:00 +0100 pl r264052 : #i92224# #i93249# remove debug printf 2008-11-20 14:00:29 +0100 pl r264049 : #i92224# #i93249# more aqua key codes 2008-11-20 13:59:34 +0100 pl r264048 : #i92224# #i93249# more aqua key codes 2008-11-20 13:52:38 +0100 pl r264047 : #i92224# #i93249# more aqua key codes 2008-11-19 18:42:17 +0100 pl r264017 : #i93249# support some mac specifc key codes: select to line end/begin 2008-11-19 18:40:26 +0100 pl r264016 : #i93249# support some mac specifc key codes: select to line end/begin 2008-11-19 18:32:31 +0100 pl r264014 : #i92224# support some mac specifc key codes: select to line end/begin 2008-11-19 17:34:50 +0100 pl r264009 : #i92224# some more needed keycodes 2008-11-19 16:11:33 +0100 pl r264003 : #i93249# support some mac specifc key codes 2008-11-19 16:10:31 +0100 pl r264002 : #i93249# support some mac specifc key codes 2008-11-19 15:50:03 +0100 pl r264000 : #i93249# support some mac specifc key codes 2008-11-19 14:17:41 +0100 pl r263993 : #i90015# strip appended parenthese entries from menubar 2008-11-17 18:30:37 +0100 pl r263737 : #i94601# emulate menu functionality for non vcl dialogs 2008-11-17 17:31:12 +0100 pl r263731 : #i95263# set inactive tab color on mac more distinct from the active tab color 2008-11-17 17:13:38 +0100 pl r263729 : #i93173# delete toolbar window in a more stack aware manner
2009-01-02 15:26:18 +00:00
}
}
if( mbPresentation )
[mpNSWindow makeMainWindow];
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
else
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
{
// if the frame holding the current menubar gets hidden
// show the default menubar
if( mpMenu && mpMenu->mbMenuBar && AquaSalMenu::pCurrentMenuBar == mpMenu )
AquaSalMenu::setDefaultMenu();
2008-03-05 16:01:43 +00:00
CWS-TOOLING: integrate CWS vcl97 2008-12-11 20:47:52 +0100 pl r265361 : #i93173# revert change, event listeners on the toolbar can lead to crashes 2008-12-11 17:55:54 +0100 pl r265344 : #i92715# fix some border cases 2008-12-11 16:36:01 +0100 pl r265334 : remove forgotten debug printf 2008-12-11 15:54:25 +0100 pl r265323 : add missing pointer initializer 2008-12-11 14:08:44 +0100 as r265297 : #i86520# dont show start module twice 2008-12-11 12:56:34 +0100 as r265289 : #i86520# dont show start module twice 2008-12-11 12:22:18 +0100 pl r265280 : fix a snafu 2008-12-11 12:15:27 +0100 hdu r265279 : #i96549# change some dbg_assert to dbg_warn 2008-12-11 11:57:22 +0100 pl r265276 : #i86520# startcenter on dock item click for mac 2008-12-11 11:31:47 +0100 pl r265271 : #i96964# fix a wrong condition 2008-12-11 11:21:49 +0100 as r265268 : #i86520# new framework slot for ShowStartModule 2008-12-11 10:17:32 +0100 hdu r265251 : #i97127# use fontconfig fallbacks for psprinting too (thanks CMC!) 2008-12-09 10:18:41 +0100 hdu r265060 : #i96549# workaround MAC_OS_X_VERSION_* macros not defined in older SDKs 2008-12-09 09:39:47 +0100 hdu r265057 : #i89650# workaround bogus device resolutions 2008-12-09 09:14:23 +0100 hdu r265054 : #i96549# set MAC_OS_X_VERSION_MIN_REQUIRED=1040 2008-12-08 19:17:42 +0100 pl r265016 : CWS-TOOLING: rebase CWS vcl97 to trunk@264807 (milestone: DEV300:m37) 2008-12-08 16:06:58 +0100 hdu r265004 : #i96549# set MAC_OS_X_VERSION_MIN_REQUIRED=1040 only for the Aqua port 2008-12-08 12:16:26 +0100 hdu r264988 : #i96549# prepare for MAC_OS_X_VERSION_MIN_REQUIRED>=1050 2008-12-08 11:59:25 +0100 hdu r264982 : #i96549# set MAC_OS_X_VERSION_MIN_REQUIRED=1040 2008-12-04 18:19:43 +0100 pl r264866 : #i86520# install a handler to be called on dock icon clicked 2008-12-03 13:04:32 +0100 pl r264769 : #i96551# on quartz build neither gtk nor cups in psprint is needed 2008-11-26 15:07:07 +0100 hdu r264400 : #i96317# adjust to extented SAL_DISABLE_FC_SUBST semantic 2008-11-21 16:15:31 +0100 pl r264147 : #i94443# generalize focus behavior when a child window becomes invisible 2008-11-21 15:45:03 +0100 pl r264144 : #i96433# improve torn off toolbar behavior 2008-11-21 11:50:01 +0100 pl r264119 : #i90083# improve key event dispatching 2008-11-20 17:28:03 +0100 pl r264076 : #i92715# do not execute app events during document recovery 2008-11-20 15:04:32 +0100 pl r264057 : #i92224# #i93249# more aqua key codes 2008-11-20 14:03:00 +0100 pl r264052 : #i92224# #i93249# remove debug printf 2008-11-20 14:00:29 +0100 pl r264049 : #i92224# #i93249# more aqua key codes 2008-11-20 13:59:34 +0100 pl r264048 : #i92224# #i93249# more aqua key codes 2008-11-20 13:52:38 +0100 pl r264047 : #i92224# #i93249# more aqua key codes 2008-11-19 18:42:17 +0100 pl r264017 : #i93249# support some mac specifc key codes: select to line end/begin 2008-11-19 18:40:26 +0100 pl r264016 : #i93249# support some mac specifc key codes: select to line end/begin 2008-11-19 18:32:31 +0100 pl r264014 : #i92224# support some mac specifc key codes: select to line end/begin 2008-11-19 17:34:50 +0100 pl r264009 : #i92224# some more needed keycodes 2008-11-19 16:11:33 +0100 pl r264003 : #i93249# support some mac specifc key codes 2008-11-19 16:10:31 +0100 pl r264002 : #i93249# support some mac specifc key codes 2008-11-19 15:50:03 +0100 pl r264000 : #i93249# support some mac specifc key codes 2008-11-19 14:17:41 +0100 pl r263993 : #i90015# strip appended parenthese entries from menubar 2008-11-17 18:30:37 +0100 pl r263737 : #i94601# emulate menu functionality for non vcl dialogs 2008-11-17 17:31:12 +0100 pl r263731 : #i95263# set inactive tab color on mac more distinct from the active tab color 2008-11-17 17:13:38 +0100 pl r263729 : #i93173# delete toolbar window in a more stack aware manner
2009-01-02 15:26:18 +00:00
// #i90440# #i94443# work around the focus going back to some other window
// if a child gets hidden for a parent window
if( mpParent && mpParent->mbShown && [mpNSWindow isKeyWindow] )
[mpParent->mpNSWindow makeKeyAndOrderFront: NSApp];
[SalFrameView unsetMouseFrame: this];
if( mpParent && [mpNSWindow parentWindow] == mpParent->mpNSWindow )
[mpParent->mpNSWindow removeChildWindow: mpNSWindow];
2008-03-05 16:01:43 +00:00
[mpNSWindow orderOut: NSApp];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
void AquaSalFrame::SetMinClientSize( long nWidth, long nHeight )
2000-09-18 16:07:07 +00:00
{
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
mnMinWidth = nWidth;
mnMinHeight = nHeight;
if( mpNSWindow )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
// Always add the decoration as the dimension concerns only
// the content rectangle
nWidth += maGeometry.nLeftDecoration + maGeometry.nRightDecoration;
nHeight += maGeometry.nTopDecoration + maGeometry.nBottomDecoration;
NSSize aSize = { static_cast<CGFloat>(nWidth), static_cast<CGFloat>(nHeight) };
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
// Size of full window (content+structure) although we only
// have the client size in arguments
[mpNSWindow setMinSize: aSize];
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
void AquaSalFrame::SetMaxClientSize( long nWidth, long nHeight )
2000-09-18 16:07:07 +00:00
{
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
mnMaxWidth = nWidth;
mnMaxHeight = nHeight;
if( mpNSWindow )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
// Always add the decoration as the dimension concerns only
// the content rectangle
nWidth += maGeometry.nLeftDecoration + maGeometry.nRightDecoration;
nHeight += maGeometry.nTopDecoration + maGeometry.nBottomDecoration;
// Carbon windows can't have a size greater than 32767x32767
if (nWidth>32767) nWidth=32767;
if (nHeight>32767) nHeight=32767;
NSSize aSize = { static_cast<CGFloat>(nWidth), static_cast<CGFloat>(nHeight) };
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
// Size of full window (content+structure) although we only
// have the client size in arguments
[mpNSWindow setMaxSize: aSize];
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
void AquaSalFrame::GetClientSize( long& rWidth, long& rHeight )
2000-09-18 16:07:07 +00:00
{
if( mbShown || mbInitShow )
{
rWidth = maGeometry.nWidth;
rHeight = maGeometry.nHeight;
}
else
{
rWidth = 0;
rHeight = 0;
}
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
void AquaSalFrame::SetWindowState( const SalFrameState* pState )
2000-09-18 16:07:07 +00:00
{
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
if ( mpNSWindow )
2010-12-10 13:05:43 +01:00
{
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
// set normal state
NSRect aStateRect = [mpNSWindow frame];
aStateRect = [NSWindow contentRectForFrameRect: aStateRect styleMask: mnStyleMask];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
CocoaToVCL( aStateRect );
if( pState->mnMask & WINDOWSTATE_MASK_X )
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
aStateRect.origin.x = float(pState->mnX);
if( pState->mnMask & WINDOWSTATE_MASK_Y )
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
aStateRect.origin.y = float(pState->mnY);
if( pState->mnMask & WINDOWSTATE_MASK_WIDTH )
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
aStateRect.size.width = float(pState->mnWidth);
if( pState->mnMask & WINDOWSTATE_MASK_HEIGHT )
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
aStateRect.size.height = float(pState->mnHeight);
VCLToCocoa( aStateRect );
aStateRect = [NSWindow frameRectForContentRect: aStateRect styleMask: mnStyleMask];
2008-03-05 16:01:43 +00:00
[mpNSWindow setFrame: aStateRect display: NO];
if( pState->mnState == WINDOWSTATE_STATE_MINIMIZED )
[mpNSWindow miniaturize: NSApp];
else if( [mpNSWindow isMiniaturized] )
[mpNSWindow deminiaturize: NSApp];
/* ZOOMED is not really maximized (actually it toggles between a user set size and
the program specified one), but comes closest since the default behavior is
"maximized" if the user did not intervene
*/
if( pState->mnState == WINDOWSTATE_STATE_MAXIMIZED )
2008-03-05 16:01:43 +00:00
{
if(! [mpNSWindow isZoomed])
[mpNSWindow zoom: NSApp];
}
else
{
if( [mpNSWindow isZoomed] )
[mpNSWindow zoom: NSApp];
2008-03-05 16:01:43 +00:00
}
2010-12-10 13:05:43 +01:00
}
// get new geometry
UpdateFrameGeometry();
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
sal_uInt16 nEvent = 0;
if( pState->mnMask & (WINDOWSTATE_MASK_X | WINDOWSTATE_MASK_Y) )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
mbPositioned = true;
nEvent = SALEVENT_MOVE;
}
if( pState->mnMask & (WINDOWSTATE_MASK_WIDTH | WINDOWSTATE_MASK_HEIGHT) )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
mbSized = true;
nEvent = (nEvent == SALEVENT_MOVE) ? SALEVENT_MOVERESIZE : SALEVENT_RESIZE;
}
// send event that we were moved/sized
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if( nEvent )
CallCallback( nEvent, NULL );
if( mbShown && mpNSWindow )
{
// trigger filling our backbuffer
SendPaintEvent();
// tell the system the views need to be updated
[mpNSWindow display];
}
2000-09-18 16:07:07 +00:00
}
bool AquaSalFrame::GetWindowState( SalFrameState* pState )
2000-09-18 16:07:07 +00:00
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
return FALSE;
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
pState->mnMask = WINDOWSTATE_MASK_X |
WINDOWSTATE_MASK_Y |
WINDOWSTATE_MASK_WIDTH |
WINDOWSTATE_MASK_HEIGHT |
WINDOWSTATE_MASK_STATE;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
NSRect aStateRect = [mpNSWindow frame];
aStateRect = [NSWindow contentRectForFrameRect: aStateRect styleMask: mnStyleMask];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
CocoaToVCL( aStateRect );
pState->mnX = long(aStateRect.origin.x);
pState->mnY = long(aStateRect.origin.y);
pState->mnWidth = long(aStateRect.size.width);
pState->mnHeight = long(aStateRect.size.height);
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if( [mpNSWindow isMiniaturized] )
pState->mnState = WINDOWSTATE_STATE_MINIMIZED;
else if( ! [mpNSWindow isZoomed] )
pState->mnState = WINDOWSTATE_STATE_NORMAL;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
else
pState->mnState = WINDOWSTATE_STATE_MAXIMIZED;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
return TRUE;
2000-09-18 16:07:07 +00:00
}
void AquaSalFrame::SetScreenNumber(unsigned int nScreen)
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
return;
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
NSArray* pScreens = [NSScreen screens];
NSScreen* pScreen = nil;
if( pScreens && nScreen < [pScreens count] )
{
// get new screen frame
pScreen = [pScreens objectAtIndex: nScreen];
NSRect aNewScreen = [pScreen frame];
// get current screen frame
pScreen = [mpNSWindow screen];
if( pScreen )
{
NSRect aCurScreen = [pScreen frame];
if( aCurScreen.origin.x != aNewScreen.origin.x ||
aCurScreen.origin.y != aNewScreen.origin.y )
{
NSRect aFrameRect = [mpNSWindow frame];
aFrameRect.origin.x += aNewScreen.origin.x - aCurScreen.origin.x;
aFrameRect.origin.y += aNewScreen.origin.y - aCurScreen.origin.y;
[mpNSWindow setFrame: aFrameRect display: NO];
UpdateFrameGeometry();
}
}
}
}
void AquaSalFrame::SetApplicationID( const OUString &/*rApplicationID*/ )
{
}
void AquaSalFrame::ShowFullScreen( bool bFullScreen, sal_Int32 nDisplay )
2000-09-18 16:07:07 +00:00
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
return;
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
SAL_INFO("vcl.osx", OSL_THIS_FUNC << ": mbFullScreen=" << mbFullScreen << ", bFullScreen=" << bFullScreen);
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if( mbFullScreen == bFullScreen )
return;
mbFullScreen = bFullScreen;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if( bFullScreen )
{
// hide the dock and the menubar if we are on the menu screen
// which is always on index 0 according to documentation
bool bHideMenu = (nDisplay == 0);
NSRect aNewContentRect = NSZeroRect;
// get correct screen
NSScreen* pScreen = nil;
NSArray* pScreens = [NSScreen screens];
if( pScreens )
{
if( nDisplay >= 0 && (unsigned int)nDisplay < [pScreens count] )
pScreen = [pScreens objectAtIndex: nDisplay];
else
{
// this means span all screens
bHideMenu = true;
NSEnumerator* pEnum = [pScreens objectEnumerator];
while( (pScreen = [pEnum nextObject]) != nil )
{
NSRect aScreenRect = [pScreen frame];
if( aScreenRect.origin.x < aNewContentRect.origin.x )
{
aNewContentRect.size.width += aNewContentRect.origin.x - aScreenRect.origin.x;
aNewContentRect.origin.x = aScreenRect.origin.x;
}
if( aScreenRect.origin.y < aNewContentRect.origin.y )
{
aNewContentRect.size.height += aNewContentRect.origin.y - aScreenRect.origin.y;
aNewContentRect.origin.y = aScreenRect.origin.y;
}
if( aScreenRect.origin.x + aScreenRect.size.width > aNewContentRect.origin.x + aNewContentRect.size.width )
aNewContentRect.size.width = aScreenRect.origin.x + aScreenRect.size.width - aNewContentRect.origin.x;
if( aScreenRect.origin.y + aScreenRect.size.height > aNewContentRect.origin.y + aNewContentRect.size.height )
aNewContentRect.size.height = aScreenRect.origin.y + aScreenRect.size.height - aNewContentRect.origin.y;
}
}
}
if( aNewContentRect.size.width == 0 && aNewContentRect.size.height == 0 )
{
if( pScreen == nil )
pScreen = [mpNSWindow screen];
if( pScreen == nil )
pScreen = [NSScreen mainScreen];
aNewContentRect = [pScreen frame];
}
if( bHideMenu )
[NSMenu setMenuBarVisible:NO];
maFullScreenRect = [mpNSWindow frame];
2008-03-05 16:01:43 +00:00
{
[mpNSWindow setFrame: [NSWindow frameRectForContentRect: aNewContentRect styleMask: mnStyleMask] display: mbShown ? YES : NO];
2008-03-05 16:01:43 +00:00
}
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
UpdateFrameGeometry();
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( mbShown )
CallCallback( SALEVENT_MOVERESIZE, NULL );
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
else
{
2008-03-05 16:01:43 +00:00
{
[mpNSWindow setFrame: maFullScreenRect display: mbShown ? YES : NO];
2008-03-05 16:01:43 +00:00
}
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
UpdateFrameGeometry();
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( mbShown )
CallCallback( SALEVENT_MOVERESIZE, NULL );
// show the dock and the menubar
[NSMenu setMenuBarVisible:YES];
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
if( mbShown )
// trigger filling our backbuffer
SendPaintEvent();
}
2000-09-18 16:07:07 +00:00
void AquaSalFrame::StartPresentation( bool bStart )
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
return;
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
if( bStart )
{
GetSalData()->maPresentationFrames.push_back( this );
IOPMAssertionCreateWithName(kIOPMAssertionTypeNoDisplaySleep,
kIOPMAssertionLevelOn,
CFSTR("LibreOffice presentation running"),
&mnAssertionID);
[mpNSWindow setLevel: NSPopUpMenuWindowLevel];
if( mbShown )
[mpNSWindow makeMainWindow];
}
else
{
GetSalData()->maPresentationFrames.remove( this );
IOPMAssertionRelease(mnAssertionID);
[mpNSWindow setLevel: NSNormalWindowLevel];
}
}
2000-09-18 16:07:07 +00:00
void AquaSalFrame::SetAlwaysOnTop( bool )
{
2000-09-18 16:07:07 +00:00
}
void AquaSalFrame::ToTop(sal_uInt16 nFlags)
2000-09-18 16:07:07 +00:00
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
return;
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if( ! (nFlags & SAL_FRAME_TOTOP_RESTOREWHENMIN) )
{
if( ! [mpNSWindow isVisible] || [mpNSWindow isMiniaturized] )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
return;
}
if( nFlags & SAL_FRAME_TOTOP_GRABFOCUS )
[mpNSWindow makeKeyAndOrderFront: NSApp];
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
else
[mpNSWindow orderFront: NSApp];
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
NSCursor* AquaSalFrame::getCurrentCursor() const
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
NSCursor* pCursor = nil;
switch( mePointerStyle )
{
case PointerStyle::Text: pCursor = [NSCursor IBeamCursor]; break;
case PointerStyle::Cross: pCursor = [NSCursor crosshairCursor]; break;
case PointerStyle::Hand:
case PointerStyle::Move: pCursor = [NSCursor openHandCursor]; break;
case PointerStyle::NSize: pCursor = [NSCursor resizeUpCursor]; break;
case PointerStyle::SSize: pCursor = [NSCursor resizeDownCursor]; break;
case PointerStyle::ESize: pCursor = [NSCursor resizeRightCursor]; break;
case PointerStyle::WSize: pCursor = [NSCursor resizeLeftCursor]; break;
case PointerStyle::Arrow: pCursor = [NSCursor arrowCursor]; break;
case PointerStyle::VSplit:
case PointerStyle::VSizeBar:
case PointerStyle::WindowNSize:
case PointerStyle::WindowSSize:
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
pCursor = [NSCursor resizeUpDownCursor]; break;
case PointerStyle::HSplit:
case PointerStyle::HSizeBar:
case PointerStyle::WindowESize:
case PointerStyle::WindowWSize:
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
pCursor = [NSCursor resizeLeftRightCursor]; break;
case PointerStyle::RefHand: pCursor = [NSCursor pointingHandCursor]; break;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
default:
pCursor = GetSalData()->getCursor( mePointerStyle );
if( pCursor == nil )
{
2011-03-01 19:08:19 +01:00
OSL_FAIL( "unmapped cursor" );
pCursor = [NSCursor arrowCursor];
}
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
break;
}
return pCursor;
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
void AquaSalFrame::SetPointer( PointerStyle ePointerStyle )
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
return;
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
if( ePointerStyle == mePointerStyle )
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
return;
mePointerStyle = ePointerStyle;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
[mpNSWindow invalidateCursorRectsForView: mpNSView];
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
void AquaSalFrame::SetPointerPos( long nX, long nY )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
// FIXME: use Cocoa functions
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
// FIXME: multiscreen support
CGPoint aPoint = { static_cast<CGFloat>(nX + maGeometry.nX), static_cast<CGFloat>(nY + maGeometry.nY) };
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
CGDirectDisplayID mainDisplayID = CGMainDisplayID();
CGDisplayMoveCursorToPoint( mainDisplayID, aPoint );
2000-09-18 16:07:07 +00:00
}
void AquaSalFrame::Flush()
2008-03-05 16:01:43 +00:00
{
if( !(mbGraphics && mpGraphics && mpNSView && mbShown) )
2008-03-05 16:01:43 +00:00
return;
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
[mpNSView setNeedsDisplay: YES];
2008-03-05 16:01:43 +00:00
// outside of the application's event loop (e.g. IntroWindow)
// nothing would trigger paint event handling
// => fall back to synchronous painting
if( ImplGetSVData()->maAppData.mnDispatchLevel <= 0 )
{
[mpNSView display];
2008-03-05 16:01:43 +00:00
}
}
void AquaSalFrame::Flush( const Rectangle& rRect )
2000-09-18 16:07:07 +00:00
{
if( !(mbGraphics && mpGraphics && mpNSView && mbShown) )
2008-03-05 16:01:43 +00:00
return;
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
NSRect aNSRect = { { static_cast<CGFloat>(rRect.Left()), static_cast<CGFloat>(rRect.Top()) }, { static_cast<CGFloat>(rRect.GetWidth()), static_cast<CGFloat>(rRect.GetHeight()) } };
2008-03-05 16:01:43 +00:00
VCLToCocoa( aNSRect, false );
[mpNSView setNeedsDisplayInRect: aNSRect];
2008-03-05 16:01:43 +00:00
// outside of the application's event loop (e.g. IntroWindow)
// nothing would trigger paint event handling
// => fall back to synchronous painting
if( ImplGetSVData()->maAppData.mnDispatchLevel <= 0 )
{
[mpNSView display];
2008-03-05 16:01:43 +00:00
}
}
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
void AquaSalFrame::Sync()
2000-09-18 16:07:07 +00:00
{
if( mbGraphics && mpGraphics && mpNSView && mbShown )
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
{
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
2008-03-05 16:01:43 +00:00
[mpNSView setNeedsDisplay: YES];
[mpNSView display];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
}
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
void AquaSalFrame::SetInputContext( SalInputContext* pContext )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if (!pContext)
{
mnICOptions = InputContextFlags::NONE;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
return;
}
mnICOptions = pContext->mnOptions;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if(!(pContext->mnOptions & InputContextFlags::Text))
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
return;
2000-09-18 16:07:07 +00:00
}
void AquaSalFrame::EndExtTextInput( EndExtTextInputFlags )
2000-09-18 16:07:07 +00:00
{
}
OUString AquaSalFrame::GetKeyName( sal_uInt16 nKeyCode )
2000-09-18 16:07:07 +00:00
{
static std::map< sal_uInt16, OUString > aKeyMap;
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( aKeyMap.empty() )
{
sal_uInt16 i;
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
for( i = KEY_A; i <= KEY_Z; i++ )
aKeyMap[ i ] = OUString( sal_Unicode( 'A' + (i - KEY_A) ) );
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
for( i = KEY_0; i <= KEY_9; i++ )
aKeyMap[ i ] = OUString( sal_Unicode( '0' + (i - KEY_0) ) );
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
for( i = KEY_F1; i <= KEY_F26; i++ )
{
OUStringBuffer aKey( 3 );
aKey.append( 'F' );
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
aKey.append( sal_Int32( i - KEY_F1 + 1 ) );
aKeyMap[ i ] = aKey.makeStringAndClear();
}
aKeyMap[ KEY_DOWN ] = OUString( sal_Unicode( 0x21e3 ) );
aKeyMap[ KEY_UP ] = OUString( sal_Unicode( 0x21e1 ) );
aKeyMap[ KEY_LEFT ] = OUString( sal_Unicode( 0x21e0 ) );
aKeyMap[ KEY_RIGHT ] = OUString( sal_Unicode( 0x21e2 ) );
aKeyMap[ KEY_HOME ] = OUString( sal_Unicode( 0x2196 ) );
aKeyMap[ KEY_END ] = OUString( sal_Unicode( 0x2198 ) );
aKeyMap[ KEY_PAGEUP ] = OUString( sal_Unicode( 0x21de ) );
aKeyMap[ KEY_PAGEDOWN ] = OUString( sal_Unicode( 0x21df ) );
aKeyMap[ KEY_RETURN ] = OUString( sal_Unicode( 0x21a9 ) );
aKeyMap[ KEY_ESCAPE ] = "esc";
aKeyMap[ KEY_TAB ] = OUString( sal_Unicode( 0x21e5 ) );
aKeyMap[ KEY_BACKSPACE ]= OUString( sal_Unicode( 0x232b ) );
aKeyMap[ KEY_SPACE ] = OUString( sal_Unicode( 0x2423 ) );
aKeyMap[ KEY_DELETE ] = OUString( sal_Unicode( 0x2326 ) );
aKeyMap[ KEY_ADD ] = "+";
aKeyMap[ KEY_SUBTRACT ] = "-";
aKeyMap[ KEY_DIVIDE ] = "/";
aKeyMap[ KEY_MULTIPLY ] = "*";
aKeyMap[ KEY_POINT ] = ".";
aKeyMap[ KEY_COMMA ] = ",";
aKeyMap[ KEY_LESS ] = "<";
aKeyMap[ KEY_GREATER ] = ">";
aKeyMap[ KEY_EQUAL ] = "=";
aKeyMap[ KEY_OPEN ] = OUString( sal_Unicode( 0x23cf ) );
aKeyMap[ KEY_TILDE ] = "~";
aKeyMap[ KEY_BRACKETLEFT ] = "[";
aKeyMap[ KEY_BRACKETRIGHT ] = "]";
aKeyMap[ KEY_SEMICOLON ] = ";";
aKeyMap[ KEY_QUOTERIGHT ] = "'";
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
/* yet unmapped KEYCODES:
aKeyMap[ KEY_INSERT ] = OUString( sal_Unicode( ) );
aKeyMap[ KEY_CUT ] = OUString( sal_Unicode( ) );
aKeyMap[ KEY_COPY ] = OUString( sal_Unicode( ) );
aKeyMap[ KEY_PASTE ] = OUString( sal_Unicode( ) );
aKeyMap[ KEY_UNDO ] = OUString( sal_Unicode( ) );
aKeyMap[ KEY_REPEAT ] = OUString( sal_Unicode( ) );
aKeyMap[ KEY_FIND ] = OUString( sal_Unicode( ) );
aKeyMap[ KEY_PROPERTIES ] = OUString( sal_Unicode( ) );
aKeyMap[ KEY_FRONT ] = OUString( sal_Unicode( ) );
aKeyMap[ KEY_CONTEXTMENU ] = OUString( sal_Unicode( ) );
aKeyMap[ KEY_MENU ] = OUString( sal_Unicode( ) );
aKeyMap[ KEY_HELP ] = OUString( sal_Unicode( ) );
aKeyMap[ KEY_HANGUL_HANJA ] = OUString( sal_Unicode( ) );
aKeyMap[ KEY_DECIMAL ] = OUString( sal_Unicode( ) );
aKeyMap[ KEY_QUOTELEFT ]= OUString( sal_Unicode( ) );
aKeyMap[ KEY_CAPSLOCK ]= OUString( sal_Unicode( ) );
aKeyMap[ KEY_NUMLOCK ]= OUString( sal_Unicode( ) );
aKeyMap[ KEY_SCROLLLOCK ]= OUString( sal_Unicode( ) );
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
*/
}
OUStringBuffer aResult( 16 );
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
sal_uInt16 nUnmodifiedCode = (nKeyCode & KEY_CODE_MASK);
std::map< sal_uInt16, OUString >::const_iterator it = aKeyMap.find( nUnmodifiedCode );
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( it != aKeyMap.end() )
{
if( (nKeyCode & KEY_SHIFT) != 0 )
aResult.append( sal_Unicode( 0x21e7 ) );
if( (nKeyCode & KEY_MOD1) != 0 )
aResult.append( sal_Unicode( 0x2318 ) );
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
// we do not really handle Alt (see below)
// we map it to MOD3, whichis actually Command
if( (nKeyCode & (KEY_MOD2|KEY_MOD3)) != 0 )
aResult.append( sal_Unicode( 0x2325 ) );
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
aResult.append( it->second );
}
return aResult.makeStringAndClear();
2000-09-18 16:07:07 +00:00
}
static void getAppleScrollBarVariant(StyleSettings &rSettings)
{
bool bIsScrollbarDoubleMax = true; // default is DoubleMax
CFStringRef AppleScrollBarType = CFSTR("AppleScrollBarVariant");
2008-03-05 16:01:43 +00:00
if( AppleScrollBarType )
{
CFStringRef ScrollBarVariant = static_cast<CFStringRef>(CFPreferencesCopyAppValue( AppleScrollBarType, kCFPreferencesCurrentApplication ));
2008-03-05 16:01:43 +00:00
if( ScrollBarVariant )
{
2008-03-05 16:01:43 +00:00
if( CFGetTypeID( ScrollBarVariant ) == CFStringGetTypeID() )
{
2008-03-05 16:01:43 +00:00
// TODO: check for the less important variants "DoubleMin" and "DoubleBoth" too
CFStringRef DoubleMax = CFSTR("DoubleMax");
if (DoubleMax)
{
if ( !CFStringCompare(ScrollBarVariant, DoubleMax, kCFCompareCaseInsensitive) )
bIsScrollbarDoubleMax = true;
else
bIsScrollbarDoubleMax = false;
CFRelease(DoubleMax);
}
}
CFRelease( ScrollBarVariant );
}
CFRelease(AppleScrollBarType);
}
GetSalData()->mbIsScrollbarDoubleMax = bIsScrollbarDoubleMax;
2008-03-05 16:01:43 +00:00
CFStringRef jumpScroll = CFSTR("AppleScrollerPagingBehavior");
if( jumpScroll )
{
CFBooleanRef jumpStr = static_cast<CFBooleanRef>(CFPreferencesCopyAppValue( jumpScroll, kCFPreferencesCurrentApplication ));
2008-03-05 16:01:43 +00:00
if( jumpStr )
{
if( CFGetTypeID( jumpStr ) == CFBooleanGetTypeID() )
rSettings.SetPrimaryButtonWarpsSlider(jumpStr == kCFBooleanTrue);
2008-03-05 16:01:43 +00:00
CFRelease( jumpStr );
}
CFRelease( jumpScroll );
}
}
static Color getColor( NSColor* pSysColor, const Color& rDefault, NSWindow* pWin )
{
Color aRet( rDefault );
if( pSysColor )
{
// transform to RGB
NSColor* pRBGColor = [pSysColor colorUsingColorSpaceName: NSDeviceRGBColorSpace device: [pWin deviceDescription]];
if( pRBGColor )
{
CGFloat r = 0, g = 0, b = 0, a = 0;
[pRBGColor getRed: &r green: &g blue: &b alpha: &a];
aRet = Color( int(r*255.999), int(g*255.999), int(b*255.999) );
/*
do not release here; leads to duplicate free in yield
it seems the converted color comes out autoreleased, although this
is not documented
[pRBGColor release];
*/
}
}
return aRet;
}
static vcl::Font getFont( NSFont* pFont, long nDPIY, const vcl::Font& rDefault )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
vcl::Font aResult( rDefault );
if( pFont )
{
aResult.SetName( GetOUString( [pFont familyName] ) );
aResult.SetHeight( static_cast<int>(([pFont pointSize] * 72.0 / (float)nDPIY)+0.5) );
aResult.SetItalic( ([pFont italicAngle] != 0.0) ? ITALIC_NORMAL : ITALIC_NONE );
// FIMXE: bold ?
}
return aResult;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
void AquaSalFrame::getResolution( sal_Int32& o_rDPIX, sal_Int32& o_rDPIY )
{
if( ! mpGraphics )
{
AcquireGraphics();
ReleaseGraphics( mpGraphics );
}
mpGraphics->GetResolution( o_rDPIX, o_rDPIY );
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
// on OSX-Aqua the style settings are independent of the frame, so it does
// not really belong here. Since the connection to the Appearance_Manager
// is currently done in salnativewidgets.cxx this would be a good place.
// On the other hand VCL's platform independent code currently only asks
// SalFrames for system settings anyway, so moving the code somewhere else
// doesn't make the anything cleaner for now
void AquaSalFrame::UpdateSettings( AllSettings& rSettings )
2000-09-18 16:07:07 +00:00
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
return;
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
[mpNSView lockFocus];
2008-03-05 16:01:43 +00:00
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
StyleSettings aStyleSettings = rSettings.GetStyleSettings();
// Background Color
Color aBackgroundColor = Color( 0xEC, 0xEC, 0xEC );
aStyleSettings.Set3DColors( aBackgroundColor );
aStyleSettings.SetFaceColor( aBackgroundColor );
CWS-TOOLING: integrate CWS vcl97 2008-12-11 20:47:52 +0100 pl r265361 : #i93173# revert change, event listeners on the toolbar can lead to crashes 2008-12-11 17:55:54 +0100 pl r265344 : #i92715# fix some border cases 2008-12-11 16:36:01 +0100 pl r265334 : remove forgotten debug printf 2008-12-11 15:54:25 +0100 pl r265323 : add missing pointer initializer 2008-12-11 14:08:44 +0100 as r265297 : #i86520# dont show start module twice 2008-12-11 12:56:34 +0100 as r265289 : #i86520# dont show start module twice 2008-12-11 12:22:18 +0100 pl r265280 : fix a snafu 2008-12-11 12:15:27 +0100 hdu r265279 : #i96549# change some dbg_assert to dbg_warn 2008-12-11 11:57:22 +0100 pl r265276 : #i86520# startcenter on dock item click for mac 2008-12-11 11:31:47 +0100 pl r265271 : #i96964# fix a wrong condition 2008-12-11 11:21:49 +0100 as r265268 : #i86520# new framework slot for ShowStartModule 2008-12-11 10:17:32 +0100 hdu r265251 : #i97127# use fontconfig fallbacks for psprinting too (thanks CMC!) 2008-12-09 10:18:41 +0100 hdu r265060 : #i96549# workaround MAC_OS_X_VERSION_* macros not defined in older SDKs 2008-12-09 09:39:47 +0100 hdu r265057 : #i89650# workaround bogus device resolutions 2008-12-09 09:14:23 +0100 hdu r265054 : #i96549# set MAC_OS_X_VERSION_MIN_REQUIRED=1040 2008-12-08 19:17:42 +0100 pl r265016 : CWS-TOOLING: rebase CWS vcl97 to trunk@264807 (milestone: DEV300:m37) 2008-12-08 16:06:58 +0100 hdu r265004 : #i96549# set MAC_OS_X_VERSION_MIN_REQUIRED=1040 only for the Aqua port 2008-12-08 12:16:26 +0100 hdu r264988 : #i96549# prepare for MAC_OS_X_VERSION_MIN_REQUIRED>=1050 2008-12-08 11:59:25 +0100 hdu r264982 : #i96549# set MAC_OS_X_VERSION_MIN_REQUIRED=1040 2008-12-04 18:19:43 +0100 pl r264866 : #i86520# install a handler to be called on dock icon clicked 2008-12-03 13:04:32 +0100 pl r264769 : #i96551# on quartz build neither gtk nor cups in psprint is needed 2008-11-26 15:07:07 +0100 hdu r264400 : #i96317# adjust to extented SAL_DISABLE_FC_SUBST semantic 2008-11-21 16:15:31 +0100 pl r264147 : #i94443# generalize focus behavior when a child window becomes invisible 2008-11-21 15:45:03 +0100 pl r264144 : #i96433# improve torn off toolbar behavior 2008-11-21 11:50:01 +0100 pl r264119 : #i90083# improve key event dispatching 2008-11-20 17:28:03 +0100 pl r264076 : #i92715# do not execute app events during document recovery 2008-11-20 15:04:32 +0100 pl r264057 : #i92224# #i93249# more aqua key codes 2008-11-20 14:03:00 +0100 pl r264052 : #i92224# #i93249# remove debug printf 2008-11-20 14:00:29 +0100 pl r264049 : #i92224# #i93249# more aqua key codes 2008-11-20 13:59:34 +0100 pl r264048 : #i92224# #i93249# more aqua key codes 2008-11-20 13:52:38 +0100 pl r264047 : #i92224# #i93249# more aqua key codes 2008-11-19 18:42:17 +0100 pl r264017 : #i93249# support some mac specifc key codes: select to line end/begin 2008-11-19 18:40:26 +0100 pl r264016 : #i93249# support some mac specifc key codes: select to line end/begin 2008-11-19 18:32:31 +0100 pl r264014 : #i92224# support some mac specifc key codes: select to line end/begin 2008-11-19 17:34:50 +0100 pl r264009 : #i92224# some more needed keycodes 2008-11-19 16:11:33 +0100 pl r264003 : #i93249# support some mac specifc key codes 2008-11-19 16:10:31 +0100 pl r264002 : #i93249# support some mac specifc key codes 2008-11-19 15:50:03 +0100 pl r264000 : #i93249# support some mac specifc key codes 2008-11-19 14:17:41 +0100 pl r263993 : #i90015# strip appended parenthese entries from menubar 2008-11-17 18:30:37 +0100 pl r263737 : #i94601# emulate menu functionality for non vcl dialogs 2008-11-17 17:31:12 +0100 pl r263731 : #i95263# set inactive tab color on mac more distinct from the active tab color 2008-11-17 17:13:38 +0100 pl r263729 : #i93173# delete toolbar window in a more stack aware manner
2009-01-02 15:26:18 +00:00
Color aInactiveTabColor( aBackgroundColor );
aInactiveTabColor.DecreaseLuminance( 32 );
aStyleSettings.SetInactiveTabColor( aInactiveTabColor );
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
aStyleSettings.SetDialogColor( aBackgroundColor );
aStyleSettings.SetLightBorderColor( aBackgroundColor );
Color aShadowColor( aStyleSettings.GetShadowColor() );
aShadowColor.IncreaseLuminance( 32 );
aStyleSettings.SetShadowColor( aShadowColor );
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
// get the system font settings
vcl::Font aAppFont = aStyleSettings.GetAppFont();
sal_Int32 nDPIX = 72, nDPIY = 72;
getResolution( nDPIX, nDPIY );
aAppFont = getFont( [NSFont systemFontOfSize: 0], nDPIY, aAppFont );
aStyleSettings.SetToolbarIconSize( ToolbarIconSize::Large );
// TODO: better mapping of OS X<->LibreOffice font settings
aStyleSettings.SetAppFont( aAppFont );
aStyleSettings.SetHelpFont( aAppFont );
aStyleSettings.SetPushButtonFont( aAppFont );
vcl::Font aTitleFont( getFont( [NSFont titleBarFontOfSize: 0], nDPIY, aAppFont ) );
aStyleSettings.SetTitleFont( aTitleFont );
aStyleSettings.SetFloatTitleFont( aTitleFont );
vcl::Font aMenuFont( getFont( [NSFont menuFontOfSize: 0], nDPIY, aAppFont ) );
aStyleSettings.SetMenuFont( aMenuFont );
aStyleSettings.SetToolFont( aAppFont );
vcl::Font aLabelFont( getFont( [NSFont labelFontOfSize: 0], nDPIY, aAppFont ) );
aStyleSettings.SetLabelFont( aLabelFont );
aStyleSettings.SetInfoFont( aLabelFont );
aStyleSettings.SetRadioCheckFont( aLabelFont );
aStyleSettings.SetFieldFont( aLabelFont );
aStyleSettings.SetGroupFont( aLabelFont );
aStyleSettings.SetTabFont( aLabelFont );
aStyleSettings.SetIconFont( aLabelFont );
Color aHighlightColor( getColor( [NSColor selectedTextBackgroundColor],
aStyleSettings.GetHighlightColor(), mpNSWindow ) );
aStyleSettings.SetHighlightColor( aHighlightColor );
Color aHighlightTextColor( getColor( [NSColor selectedTextColor],
aStyleSettings.GetHighlightTextColor(), mpNSWindow ) );
aStyleSettings.SetHighlightTextColor( aHighlightTextColor );
Color aMenuHighlightColor( getColor( [NSColor selectedMenuItemColor],
aStyleSettings.GetMenuHighlightColor(), mpNSWindow ) );
aStyleSettings.SetMenuHighlightColor( aMenuHighlightColor );
Color aMenuHighlightTextColor( getColor( [NSColor selectedMenuItemTextColor],
aStyleSettings.GetMenuHighlightTextColor(), mpNSWindow ) );
aStyleSettings.SetMenuHighlightTextColor( aMenuHighlightTextColor );
aStyleSettings.SetMenuColor( aBackgroundColor );
Color aMenuTextColor( getColor( [NSColor textColor],
aStyleSettings.GetMenuTextColor(), mpNSWindow ) );
aStyleSettings.SetMenuTextColor( aMenuTextColor );
2009-09-08 10:44:42 +00:00
aStyleSettings.SetMenuBarTextColor( aMenuTextColor );
aStyleSettings.SetMenuBarRolloverTextColor( aMenuTextColor );
aStyleSettings.SetMenuBarHighlightTextColor(aStyleSettings.GetMenuHighlightTextColor());
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
aStyleSettings.SetCursorBlinkTime( 500 );
// no mnemonics on OS X
aStyleSettings.SetOptions( aStyleSettings.GetOptions() | StyleSettingsOptions::NoMnemonics );
getAppleScrollBarVariant(aStyleSettings);
2008-03-05 16:01:43 +00:00
// set scrollbar size
aStyleSettings.SetScrollBarSize( static_cast<long int>([NSScroller scrollerWidthForControlSize:NSRegularControlSize scrollerStyle:NSScrollerStyleLegacy]) );
// images in menus false for MacOSX
2010-10-01 20:40:46 +01:00
aStyleSettings.SetPreferredUseImagesInMenus( false );
aStyleSettings.SetHideDisabledMenuItems( true );
aStyleSettings.SetAcceleratorsInContextMenus( false );
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
rSettings.SetStyleSettings( aStyleSettings );
2008-03-05 16:01:43 +00:00
// don't draw frame around each and every toolbar
ImplGetSVData()->maNWFData.mbDockingAreaAvoidTBFrames = true;
[mpNSView unlockFocus];
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
const SystemEnvData* AquaSalFrame::GetSystemData() const
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
return &maSysData;
2000-09-18 16:07:07 +00:00
}
void AquaSalFrame::Beep()
{
NSBeep();
}
void AquaSalFrame::SetPosSize(long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags)
2000-09-18 16:07:07 +00:00
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
return;
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
sal_uInt16 nEvent = 0;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if( [mpNSWindow isMiniaturized] )
[mpNSWindow deminiaturize: NSApp]; // expand the window
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if (nFlags & (SAL_FRAME_POSSIZE_X | SAL_FRAME_POSSIZE_Y))
{
mbPositioned = true;
nEvent = SALEVENT_MOVE;
}
if (nFlags & (SAL_FRAME_POSSIZE_WIDTH | SAL_FRAME_POSSIZE_HEIGHT))
{
mbSized = true;
nEvent = (nEvent == SALEVENT_MOVE) ? SALEVENT_MOVERESIZE : SALEVENT_RESIZE;
}
NSRect aFrameRect = [mpNSWindow frame];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
NSRect aContentRect = [NSWindow contentRectForFrameRect: aFrameRect styleMask: mnStyleMask];
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
// position is always relative to parent frame
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
NSRect aParentContentRect;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if( mpParent )
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
{
if( AllSettings::GetLayoutRTL() )
2008-03-05 16:01:43 +00:00
{
if( (nFlags & SAL_FRAME_POSSIZE_WIDTH) != 0 )
nX = mpParent->maGeometry.nWidth - nWidth-1 - nX;
else
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
nX = mpParent->maGeometry.nWidth - static_cast<long int>( aContentRect.size.width-1) - nX;
2008-03-05 16:01:43 +00:00
}
NSRect aParentFrameRect = [mpParent->mpNSWindow frame];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
aParentContentRect = [NSWindow contentRectForFrameRect: aParentFrameRect styleMask: mpParent->mnStyleMask];
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
else
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
aParentContentRect = maScreenRect; // use screen if no parent
CocoaToVCL( aContentRect );
CocoaToVCL( aParentContentRect );
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
bool bPaint = false;
if( (nFlags & (SAL_FRAME_POSSIZE_WIDTH | SAL_FRAME_POSSIZE_HEIGHT)) != 0 )
{
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( nWidth != aContentRect.size.width || nHeight != aContentRect.size.height )
bPaint = true;
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
// use old window pos if no new pos requested
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( (nFlags & SAL_FRAME_POSSIZE_X) != 0 )
aContentRect.origin.x = nX + aParentContentRect.origin.x;
if( (nFlags & SAL_FRAME_POSSIZE_Y) != 0)
aContentRect.origin.y = nY + aParentContentRect.origin.y;
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
// use old size if no new size requested
if( (nFlags & SAL_FRAME_POSSIZE_WIDTH) != 0 )
aContentRect.size.width = nWidth;
if( (nFlags & SAL_FRAME_POSSIZE_HEIGHT) != 0)
aContentRect.size.height = nHeight;
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
VCLToCocoa( aContentRect );
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
// do not display yet, we need to update our backbuffer
2008-03-05 16:01:43 +00:00
{
[mpNSWindow setFrame: [NSWindow frameRectForContentRect: aContentRect styleMask: mnStyleMask] display: NO];
2008-03-05 16:01:43 +00:00
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
UpdateFrameGeometry();
if (nEvent)
CallCallback(nEvent, NULL);
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( mbShown && bPaint )
{
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
// trigger filling our backbuffer
SendPaintEvent();
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
// now inform the system that the views need to be drawn
[mpNSWindow display];
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
void AquaSalFrame::GetWorkArea( Rectangle& rRect )
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
return;
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
NSScreen* pScreen = [mpNSWindow screen];
if( pScreen == nil )
pScreen = [NSScreen mainScreen];
NSRect aRect = [pScreen visibleFrame];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
CocoaToVCL( aRect );
rRect.Left() = static_cast<long>(aRect.origin.x);
rRect.Top() = static_cast<long>(aRect.origin.y);
rRect.Right() = static_cast<long>(aRect.origin.x + aRect.size.width - 1);
rRect.Bottom() = static_cast<long>(aRect.origin.y + aRect.size.height - 1);
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
SalPointerState AquaSalFrame::GetPointerState()
{
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
SalPointerState state;
state.mnState = 0;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
// get position
NSPoint aPt = [mpNSWindow mouseLocationOutsideOfEventStream];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
CocoaToVCL( aPt, false );
state.maPos = Point(static_cast<long>(aPt.x), static_cast<long>(aPt.y));
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
NSEvent* pCur = [NSApp currentEvent];
bool bMouseEvent = false;
if( pCur )
{
bMouseEvent = true;
switch( [pCur type] )
{
case NSLeftMouseDown: state.mnState |= MOUSE_LEFT; break;
case NSLeftMouseUp: break;
case NSRightMouseDown: state.mnState |= MOUSE_RIGHT; break;
case NSRightMouseUp: break;
case NSOtherMouseDown: state.mnState |= ([pCur buttonNumber] == 2) ? MOUSE_MIDDLE : 0; break;
case NSOtherMouseUp: break;
case NSMouseMoved: break;
case NSLeftMouseDragged: state.mnState |= MOUSE_LEFT; break;
case NSRightMouseDragged: state.mnState |= MOUSE_RIGHT; break;
case NSOtherMouseDragged: state.mnState |= ([pCur buttonNumber] == 2) ? MOUSE_MIDDLE : 0; break;
break;
default:
bMouseEvent = false;
break;
}
}
if( bMouseEvent )
{
unsigned int nMask = (unsigned int)[pCur modifierFlags];
if( (nMask & NSShiftKeyMask) != 0 )
state.mnState |= KEY_SHIFT;
if( (nMask & NSControlKeyMask) != 0 )
state.mnState |= KEY_MOD3;
if( (nMask & NSAlternateKeyMask) != 0 )
state.mnState |= KEY_MOD2;
if( (nMask & NSCommandKeyMask) != 0 )
state.mnState |= KEY_MOD1;
}
else
{
// FIXME: replace Carbon by Cocoa
// Cocoa does not have an equivalent for GetCurrentEventButtonState
// and GetCurrentEventKeyModifiers.
// we could try to get away with tracking all events for modifierKeys
// and all mouse events for button state in VCL_NSApllication::sendEvent,
// but it is unclear whether this will get us the same result.
// leave in GetCurrentEventButtonState and GetCurrentEventKeyModifiers for now
// fill in button state
UInt32 nState = GetCurrentEventButtonState();
state.mnState = 0;
if( nState & 1 )
state.mnState |= MOUSE_LEFT; // primary button
if( nState & 2 )
state.mnState |= MOUSE_RIGHT; // secondary button
if( nState & 4 )
state.mnState |= MOUSE_MIDDLE; // tertiary button
// fill in modifier state
nState = GetCurrentEventKeyModifiers();
if( nState & shiftKey )
state.mnState |= KEY_SHIFT;
if( nState & controlKey )
state.mnState |= KEY_MOD3;
if( nState & optionKey )
state.mnState |= KEY_MOD2;
if( nState & cmdKey )
state.mnState |= KEY_MOD1;
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
return state;
}
KeyIndicatorState AquaSalFrame::GetIndicatorState()
{
return KeyIndicatorState::NONE;
}
Merge commit 'ooo/DEV300_m101' into intm101 The following builds for me: basebmp, basegfx, comphelper, dtrans, i18npool, i18nutil, l10ntools, o3tl, psprint_config, regexp, rsc, sax, sot, tools, ucbhelper, unotools, vcl The rest still needs fixing ;-) Conflicts: canvas/prj/build.lst canvas/source/cairo/cairo_textlayout.cxx canvas/source/directx/dx_winstuff.hxx canvas/source/tools/image.cxx canvas/source/vcl/canvashelper.cxx comphelper/inc/comphelper/documentconstants.hxx comphelper/inc/comphelper/optionalvalue.hxx comphelper/inc/comphelper/querydeep.hxx comphelper/prj/build.lst comphelper/qa/complex/makefile.mk comphelper/qa/string/test_string_noadditional.cxx comphelper/source/misc/componentmodule.cxx comphelper/source/misc/mimeconfighelper.cxx comphelper/source/misc/querydeep.cxx comphelper/source/misc/uieventslogger.cxx comphelper/source/property/TypeGeneration.cxx comphelper/test/uno_iterators/uno_iterators.cxx comphelper/util/makefile.mk cppcanvas/source/mtfrenderer/implrenderer.cxx dtrans/prj/build.lst dtrans/source/generic/dtrans.cxx dtrans/source/win32/dtobj/FmtFilter.cxx i18npool/prj/build.lst i18npool/source/localedata/data/localedata_others.map i18npool/source/localedata/data/makefile.mk i18npool/source/localedata/localedata.cxx i18npool/source/localedata/saxparser.cxx i18npool/source/registerservices/registerservices.cxx i18npool/source/search/textsearch.cxx l10ntools/inc/cfgmerge.hxx l10ntools/inc/export.hxx l10ntools/inc/gsicheck.hxx l10ntools/inc/l10ntools/vosapp.hxx l10ntools/inc/tagtest.hxx l10ntools/inc/xmlparse.hxx l10ntools/layout/layoutparse.cxx l10ntools/layout/tralay.cxx l10ntools/source/cfgmerge.cxx l10ntools/source/export.cxx l10ntools/source/export2.cxx l10ntools/source/gsicheck.cxx l10ntools/source/help/HelpLinker.cxx l10ntools/source/lngex.cxx l10ntools/source/lngmerge.cxx l10ntools/source/merge.cxx l10ntools/source/tagtest.cxx l10ntools/source/xmlparse.cxx padmin/source/fontentry.cxx padmin/source/padialog.cxx padmin/source/padialog.src padmin/source/pamain.cxx rsc/inc/rscarray.hxx rsc/inc/rscclass.hxx rsc/inc/rscclobj.hxx rsc/inc/rsccont.hxx rsc/inc/rscdb.hxx rsc/inc/rscdef.hxx rsc/inc/rscmgr.hxx rsc/inc/rscrange.hxx rsc/inc/rsctop.hxx rsc/inc/vclrsc.hxx rsc/source/parser/rscdb.cxx rsc/source/parser/rscicpx.cxx rsc/source/parser/rscinit.cxx rsc/source/prj/start.cxx rsc/source/res/rscarray.cxx rsc/source/res/rscclass.cxx rsc/source/res/rscclobj.cxx rsc/source/res/rsccont.cxx rsc/source/res/rscmgr.cxx rsc/source/res/rscrange.cxx rsc/source/res/rsctop.cxx rsc/source/rsc/rsc.cxx rsc/source/tools/rscdef.cxx rsc/source/tools/rsctools.cxx sax/source/expatwrap/sax_expat.cxx sax/source/fastparser/facreg.cxx sax/source/tools/fastserializer.cxx sot/inc/sot/filelist.hxx sot/inc/sot/object.hxx sot/source/base/factory.cxx sot/source/base/filelist.cxx sot/source/sdstor/stg.cxx sot/source/sdstor/stgcache.cxx sot/source/sdstor/stgole.cxx sot/source/sdstor/stgstrms.cxx sot/source/sdstor/storage.cxx sot/source/sdstor/ucbstorage.cxx svl/inc/svl/cenumitm.hxx svl/inc/svl/cintitem.hxx svl/inc/svl/cntwall.hxx svl/inc/svl/ctypeitm.hxx svl/inc/svl/custritm.hxx svl/inc/svl/dateitem.hxx svl/inc/svl/filerec.hxx svl/inc/svl/globalnameitem.hxx svl/inc/svl/ilstitem.hxx svl/inc/svl/imageitm.hxx svl/inc/svl/intitem.hxx svl/inc/svl/itempool.hxx svl/inc/svl/itemset.hxx svl/inc/svl/lckbitem.hxx svl/inc/svl/poolitem.hxx svl/inc/svl/ptitem.hxx svl/inc/svl/rectitem.hxx svl/inc/svl/sfontitm.hxx svl/inc/svl/slstitm.hxx svl/inc/svl/srchitem.hxx svl/inc/svl/svarray.hxx svl/inc/svl/svdde.hxx svl/inc/svl/svstdarr.hxx svl/inc/svl/szitem.hxx svl/inc/svl/visitem.hxx svl/inc/svl/zforlist.hxx svl/inc/svl/zformat.hxx svl/prj/build.lst svl/qa/complex/ConfigItems/helper/ConfigItemTest.cxx svl/qa/complex/ConfigItems/helper/makefile.mk svl/qa/makefile.mk svl/source/filepicker/pickerhelper.cxx svl/source/filerec/filerec.cxx svl/source/items/cenumitm.cxx svl/source/items/cintitem.cxx svl/source/items/cntwall.cxx svl/source/items/ctypeitm.cxx svl/source/items/custritm.cxx svl/source/items/dateitem.cxx svl/source/items/globalnameitem.cxx svl/source/items/ilstitem.cxx svl/source/items/imageitm.cxx svl/source/items/intitem.cxx svl/source/items/itempool.cxx svl/source/items/itemprop.cxx svl/source/items/itemset.cxx svl/source/items/lckbitem.cxx svl/source/items/poolio.cxx svl/source/items/poolitem.cxx svl/source/items/ptitem.cxx svl/source/items/rectitem.cxx svl/source/items/slstitm.cxx svl/source/items/srchitem.cxx svl/source/items/style.cxx svl/source/items/szitem.cxx svl/source/items/visitem.cxx svl/source/items/whiter.cxx svl/source/memtools/svarray.cxx svl/source/misc/PasswordHelper.cxx svl/source/misc/adrparse.cxx svl/source/misc/lngmisc.cxx svl/source/notify/brdcst.cxx svl/source/notify/listener.cxx svl/source/notify/listenerbase.cxx svl/source/numbers/makefile.mk svl/source/numbers/nbdll.cxx svl/source/numbers/zforfind.cxx svl/source/numbers/zforlist.cxx svl/source/numbers/zformat.cxx svl/source/numbers/zforscan.cxx svl/source/passwordcontainer/passwordcontainer.cxx svl/source/svdde/ddecli.cxx svl/source/svdde/ddeimp.hxx svl/source/svdde/ddemlos2.h svl/source/svdde/ddesvr.cxx svl/source/undo/undo.cxx svl/source/uno/registerservices.cxx svl/util/makefile.mk svtools/bmpmaker/bmpsum.cxx svtools/bmpmaker/g2g.cxx svtools/bmpmaker/makefile.mk svtools/inc/borderhelper.hxx svtools/inc/svtools/accessiblefactory.hxx svtools/inc/svtools/apearcfg.hxx svtools/inc/svtools/brwbox.hxx svtools/inc/svtools/ctrlbox.hxx svtools/inc/svtools/ctrltool.hxx svtools/inc/svtools/editbrowsebox.hxx svtools/inc/svtools/ehdl.hxx svtools/inc/svtools/embedhlp.hxx svtools/inc/svtools/filter.hxx svtools/inc/svtools/ivctrl.hxx svtools/inc/svtools/parhtml.hxx svtools/inc/svtools/printdlg.hxx svtools/inc/svtools/rtftoken.h svtools/inc/svtools/ruler.hxx svtools/inc/svtools/svicnvw.hxx svtools/inc/svtools/svlbitm.hxx svtools/inc/svtools/svlbox.hxx svtools/inc/svtools/svtreebx.hxx svtools/inc/svtools/tabbar.hxx svtools/inc/svtools/table/abstracttablecontrol.hxx svtools/inc/svtools/taskbar.hxx svtools/inc/svtools/textview.hxx svtools/inc/svtools/valueset.hxx svtools/source/brwbox/brwbox1.cxx svtools/source/brwbox/brwbox2.cxx svtools/source/brwbox/datwin.cxx svtools/source/brwbox/datwin.hxx svtools/source/brwbox/makefile.mk svtools/source/config/apearcfg.cxx svtools/source/config/htmlcfg.cxx svtools/source/config/menuoptions.cxx svtools/source/config/miscopt.cxx svtools/source/contnr/cont_pch.cxx svtools/source/contnr/ctrdll.cxx svtools/source/contnr/fileview.cxx svtools/source/contnr/imivctl1.cxx svtools/source/contnr/ivctrl.cxx svtools/source/contnr/makefile.mk svtools/source/contnr/svcontnr.src svtools/source/contnr/svicnvw.cxx svtools/source/contnr/svimpbox.cxx svtools/source/contnr/svimpicn.cxx svtools/source/contnr/svlbitm.cxx svtools/source/contnr/svtreebx.cxx svtools/source/contnr/templwin.cxx svtools/source/contnr/templwin.hxx svtools/source/control/asynclink.cxx svtools/source/control/ctrlbox.cxx svtools/source/control/ctrldll.cxx svtools/source/control/ctrltool.cxx svtools/source/control/filectrl.cxx svtools/source/control/filectrl.src svtools/source/control/headbar.cxx svtools/source/control/inettbc.cxx svtools/source/control/makefile.mk svtools/source/control/prgsbar.cxx svtools/source/control/roadmap.cxx svtools/source/control/ruler.cxx svtools/source/control/scriptedtext.cxx svtools/source/control/stdmenu.cxx svtools/source/control/tabbar.cxx svtools/source/control/taskbar.cxx svtools/source/control/taskbox.cxx svtools/source/control/taskmisc.cxx svtools/source/control/taskstat.cxx svtools/source/control/valueacc.cxx svtools/source/control/valueset.cxx svtools/source/dialogs/addresstemplate.cxx svtools/source/dialogs/addresstemplate.src svtools/source/dialogs/colrdlg.src svtools/source/dialogs/filedlg2.cxx svtools/source/dialogs/filedlg2.hxx svtools/source/dialogs/makefile.mk svtools/source/dialogs/printdlg.cxx svtools/source/dialogs/printdlg.src svtools/source/dialogs/propctrl.cxx svtools/source/dialogs/propctrl.hxx svtools/source/dialogs/property.cxx svtools/source/edit/makefile.mk svtools/source/edit/sychconv.cxx svtools/source/edit/syntaxhighlight.cxx svtools/source/edit/textdoc.cxx svtools/source/edit/texteng.cxx svtools/source/edit/textundo.cxx svtools/source/edit/textview.cxx svtools/source/filter.vcl/filter/SvFilterOptionsDialog.cxx svtools/source/filter.vcl/filter/dlgejpg.cxx svtools/source/filter.vcl/filter/dlgejpg.hxx svtools/source/filter.vcl/filter/dlgejpg.src svtools/source/filter.vcl/filter/dlgepng.cxx svtools/source/filter.vcl/filter/dlgepng.hxx svtools/source/filter.vcl/filter/dlgepng.src svtools/source/filter.vcl/filter/dlgexpor.cxx svtools/source/filter.vcl/filter/dlgexpor.hxx svtools/source/filter.vcl/filter/dlgexpor.src svtools/source/filter.vcl/filter/filter2.cxx svtools/source/filter.vcl/filter/makefile.mk svtools/source/filter.vcl/filter/sgfbram.cxx svtools/source/filter.vcl/filter/sgvmain.cxx svtools/source/filter.vcl/filter/sgvspln.cxx svtools/source/filter.vcl/filter/strings.src svtools/source/filter.vcl/jpeg/makefile.mk svtools/source/filter.vcl/wmf/emfwr.cxx svtools/source/filter.vcl/wmf/emfwr.hxx svtools/source/filter.vcl/wmf/enhwmf.cxx svtools/source/filter.vcl/wmf/winmtf.hxx svtools/source/filter.vcl/wmf/wmfwr.cxx svtools/source/filter.vcl/wmf/wmfwr.hxx svtools/source/graphic/grfcache.cxx svtools/source/graphic/grfcache.hxx svtools/source/graphic/grfmgr.cxx svtools/source/graphic/makefile.mk svtools/source/inc/accessibletableimp.hxx svtools/source/inc/svimpbox.hxx svtools/source/java/patchjavaerror.src svtools/source/misc/ehdl.cxx svtools/source/misc/errtxt.src svtools/source/misc/helpagentwindow.cxx svtools/source/misc/imagemgr.cxx svtools/source/misc/imagemgr.src svtools/source/misc/imageresourceaccess.cxx svtools/source/misc/imap.cxx svtools/source/misc/langtab.src svtools/source/misc/makefile.mk svtools/source/misc/svtdata.cxx svtools/source/misc/templatefoldercache.cxx svtools/source/misc/transfer2.cxx svtools/source/misc/undo.src svtools/source/plugapp/commtest.cxx svtools/source/plugapp/commtest.src svtools/source/plugapp/makefile.mk svtools/source/plugapp/testtool.src svtools/source/productregistration/productregistration.cxx svtools/source/svhtml/htmlkywd.cxx svtools/source/svhtml/parhtml.cxx svtools/source/svrtf/rtfkey2.cxx svtools/source/svrtf/rtfkeywd.cxx svtools/source/table/defaultinputhandler.cxx svtools/source/table/makefile.mk svtools/source/table/tablecontrol.cxx svtools/source/table/tablecontrol_impl.cxx svtools/source/table/tablecontrol_impl.hxx svtools/source/table/tabledatawindow.cxx svtools/source/table/tablegeometry.cxx svtools/source/table/tablegeometry.hxx svtools/source/toolpanel/makefile.mk svtools/source/toolpanel/toolpaneldrawer.cxx svtools/source/uno/addrtempuno.cxx svtools/source/uno/miscservices.cxx svtools/source/uno/svtxgridcontrol.cxx svtools/source/uno/svtxgridcontrol.hxx svtools/source/uno/toolboxcontroller.cxx svtools/source/uno/treecontrolpeer.cxx svtools/source/uno/unocontroltablemodel.cxx svtools/source/uno/unocontroltablemodel.hxx svtools/source/uno/unoimap.cxx svtools/source/urlobj/inetimg.cxx svtools/util/makefile.mk svtools/workben/browser.cxx svtools/workben/cui/makefile.mk svtools/workben/makefile.mk svtools/workben/stest.cxx svtools/workben/toolpanel/makefile.mk svtools/workben/urange.cxx toolkit/inc/toolkit/awt/vclxdevice.hxx toolkit/inc/toolkit/awt/vclxgraphics.hxx toolkit/inc/toolkit/awt/vclxwindows.hxx toolkit/inc/toolkit/controls/dialogcontrol.hxx toolkit/inc/toolkit/helper/property.hxx toolkit/inc/toolkit/helper/servicenames.hxx toolkit/inc/toolkit/helper/throbberimpl.hxx toolkit/qa/complex/toolkit/accessibility/_XAccessibleComponent.java toolkit/source/awt/asynccallback.cxx toolkit/source/awt/vclxgraphics.cxx toolkit/source/awt/vclxtoolkit.cxx toolkit/source/awt/vclxwindow.cxx toolkit/source/awt/xsimpleanimation.cxx toolkit/source/awt/xthrobber.cxx toolkit/source/controls/dialogcontrol.cxx toolkit/source/controls/grid/defaultgridcolumnmodel.cxx toolkit/source/controls/grid/defaultgriddatamodel.cxx toolkit/source/controls/grid/gridcontrol.cxx toolkit/source/controls/grid/initguard.hxx toolkit/source/controls/unocontrol.cxx toolkit/source/controls/unocontrolcontainer.cxx toolkit/source/controls/unocontrols.cxx toolkit/source/helper/listenermultiplexer.cxx toolkit/source/helper/property.cxx toolkit/source/helper/registerservices.cxx toolkit/source/helper/servicenames.cxx toolkit/source/helper/throbberimpl.cxx toolkit/source/helper/tkresmgr.cxx tools/StaticLibrary_ooopathutils.mk tools/bootstrp/addexes/makefile.mk tools/bootstrp/addexes2/makefile.mk tools/bootstrp/addexes2/mkfilt.cxx tools/bootstrp/command.cxx tools/bootstrp/cppdep.cxx tools/bootstrp/iserver.cxx tools/bootstrp/makefile.mk tools/bootstrp/mkcreate.cxx tools/bootstrp/prj.cxx tools/bootstrp/rscdep.cxx tools/bootstrp/sstring.cxx tools/inc/bootstrp/command.hxx tools/inc/bootstrp/mkcreate.hxx tools/inc/bootstrp/prj.hxx tools/inc/bootstrp/sstring.hxx tools/inc/tools/agapi.hxx tools/inc/tools/agitem.hxx tools/inc/tools/chapi.hxx tools/inc/tools/download.hxx tools/inc/tools/eacopier.hxx tools/inc/tools/fract.hxx tools/inc/tools/fsys.hxx tools/inc/tools/geninfo.hxx tools/inc/tools/globname.hxx tools/inc/tools/inetmime.hxx tools/inc/tools/multisel.hxx tools/inc/tools/poly.hxx tools/inc/tools/postsys.h tools/inc/tools/postwin.h tools/inc/tools/presys.h tools/inc/tools/prewin.h tools/inc/tools/pstm.hxx tools/inc/tools/ref.hxx tools/inc/tools/simplerm.hxx tools/inc/tools/solar.h tools/inc/tools/table.hxx tools/inc/tools/urlkeys.hxx tools/inc/tools/urlobj.hxx tools/prj/build.lst tools/prj/d.lst tools/qa/makefile.mk tools/source/communi/geninfo.cxx tools/source/debug/debug.cxx tools/source/fsys/dirent.cxx tools/source/fsys/tdir.cxx tools/source/fsys/unx.cxx tools/source/fsys/urlobj.cxx tools/source/generic/color.cxx tools/source/generic/config.cxx tools/source/generic/fract.cxx tools/source/inet/inetmime.cxx tools/source/memtools/multisel.cxx tools/source/memtools/table.cxx tools/source/rc/resmgr.cxx tools/source/ref/globname.cxx tools/source/ref/pstm.cxx tools/source/solar/solar.c tools/source/stream/strmos2.cxx tools/source/stream/strmunx.cxx tools/source/stream/strmwnt.cxx tools/source/string/makefile.mk tools/source/testtoolloader/testtoolloader.cxx tools/test/makefile.mk tools/util/makefile.mk tools/win/inc/dll.hxx tools/win/inc/parser.hxx tools/win/inc/shellex.h tools/win/inc/shutil.h tools/win/inc/toolsdll.hxx tools/win/inc/winshell.hxx tools/workben/makefile.mk ucbhelper/source/client/proxydecider.cxx ucbhelper/workben/ucbexplorer/ucbexplorer.hrc unotools/inc/unotools/unotunnelhelper.hxx unotools/source/config/fltrcfg.cxx unotools/source/config/lingucfg.cxx unotools/source/config/misccfg.cxx unotools/source/config/pathoptions.cxx unotools/source/config/searchopt.cxx unotools/source/i18n/localedatawrapper.cxx unotools/source/ucbhelper/localfilehelper.cxx unotools/source/ucbhelper/ucbhelper.cxx unotools/source/ucbhelper/xtempfile.cxx vcl/aqua/inc/salbmp.h vcl/aqua/inc/salgdi.h vcl/aqua/inc/salinst.h vcl/aqua/source/app/salinst.cxx vcl/aqua/source/gdi/aquaprintaccessoryview.mm vcl/aqua/source/gdi/salgdi.cxx vcl/aqua/source/gdi/salprn.cxx vcl/aqua/source/window/salframeview.mm vcl/aqua/source/window/salobj.cxx vcl/inc/vcl/bitmap.hxx vcl/inc/vcl/brdwin.hxx vcl/inc/vcl/button.hxx vcl/inc/vcl/cmdevt.hxx vcl/inc/vcl/cvtgrf.hxx vcl/inc/vcl/dialog.hxx vcl/inc/vcl/dockwin.hxx vcl/inc/vcl/event.hxx vcl/inc/vcl/fixed.hxx vcl/inc/vcl/fldunit.hxx vcl/inc/vcl/floatwin.hxx vcl/inc/vcl/gdimtf.hxx vcl/inc/vcl/glyphcache.hxx vcl/inc/vcl/graphite_adaptors.hxx vcl/inc/vcl/graphite_features.hxx vcl/inc/vcl/graphite_layout.hxx vcl/inc/vcl/ilstbox.hxx vcl/inc/vcl/image.h vcl/inc/vcl/imgctrl.hxx vcl/inc/vcl/impbmpconv.hxx vcl/inc/vcl/impprn.hxx vcl/inc/vcl/jobset.h vcl/inc/vcl/keycodes.hxx vcl/inc/vcl/lstbox.hxx vcl/inc/vcl/mapunit.hxx vcl/inc/vcl/menu.hxx vcl/inc/vcl/msgbox.hxx vcl/inc/vcl/outdev.hxx vcl/inc/vcl/prndlg.hxx vcl/inc/vcl/salatype.hxx vcl/inc/vcl/salbmp.hxx vcl/inc/vcl/salgdi.hxx vcl/inc/vcl/salinst.hxx vcl/inc/vcl/seleng.hxx vcl/inc/vcl/settings.hxx vcl/inc/vcl/smartid.hxx vcl/inc/vcl/status.hxx vcl/inc/vcl/strhelper.hxx vcl/inc/vcl/svapp.hxx vcl/inc/vcl/svdata.hxx vcl/inc/vcl/syschild.hxx vcl/inc/vcl/sysdata.hxx vcl/inc/vcl/taskpanelist.hxx vcl/inc/vcl/toolbox.hxx vcl/inc/vcl/vclevent.hxx vcl/inc/vcl/windata.hxx vcl/inc/vcl/window.hxx vcl/inc/vcl/wintypes.hxx vcl/os2/source/app/salinst.cxx vcl/os2/source/gdi/salgdi.cxx vcl/os2/source/window/salmenu.cxx vcl/os2/source/window/salobj.cxx vcl/prj/build.lst vcl/source/app/dbggui.cxx vcl/source/app/help.cxx vcl/source/app/idlemgr.cxx vcl/source/app/settings.cxx vcl/source/app/svapp.cxx vcl/source/app/svdata.cxx vcl/source/app/svmain.cxx vcl/source/app/svmainhook.cxx vcl/source/app/unohelp.cxx vcl/source/app/vclevent.cxx vcl/source/control/button.cxx vcl/source/control/combobox.cxx vcl/source/control/edit.cxx vcl/source/control/field.cxx vcl/source/control/fixed.cxx vcl/source/control/ilstbox.cxx vcl/source/control/imgctrl.cxx vcl/source/control/makefile.mk vcl/source/control/tabctrl.cxx vcl/source/gdi/bitmap.cxx vcl/source/gdi/bitmap2.cxx vcl/source/gdi/bitmap4.cxx vcl/source/gdi/bmpconv.cxx vcl/source/gdi/cvtsvm.cxx vcl/source/gdi/font.cxx vcl/source/gdi/gdimtf.cxx vcl/source/gdi/image.cxx vcl/source/gdi/impimage.cxx vcl/source/gdi/jobset.cxx vcl/source/gdi/makefile.mk vcl/source/gdi/metaact.cxx vcl/source/gdi/outdev.cxx vcl/source/gdi/outdev3.cxx vcl/source/gdi/outdev4.cxx vcl/source/gdi/outdevnative.cxx vcl/source/gdi/pdfwriter.cxx vcl/source/gdi/pdfwriter_impl.cxx vcl/source/gdi/print3.cxx vcl/source/gdi/salmisc.cxx vcl/source/glyphs/gcach_ftyp.cxx vcl/source/glyphs/gcach_ftyp.hxx vcl/source/glyphs/glyphcache.cxx vcl/source/glyphs/graphite_cache.cxx vcl/source/glyphs/graphite_layout.cxx vcl/source/glyphs/graphite_textsrc.hxx vcl/source/helper/canvasbitmap.cxx vcl/source/helper/smartid.cxx vcl/source/helper/xconnection.cxx vcl/source/src/btntext.src vcl/source/src/images.src vcl/source/src/print.src vcl/source/window/accel.cxx vcl/source/window/accmgr.cxx vcl/source/window/brdwin.cxx vcl/source/window/btndlg.cxx vcl/source/window/dlgctrl.cxx vcl/source/window/javachild.cxx vcl/source/window/menu.cxx vcl/source/window/msgbox.cxx vcl/source/window/printdlg.cxx vcl/source/window/status.cxx vcl/source/window/syschild.cxx vcl/source/window/toolbox.cxx vcl/source/window/toolbox2.cxx vcl/source/window/window.cxx vcl/source/window/window2.cxx vcl/source/window/wrkwin.cxx vcl/unx/gtk/app/gtkdata.cxx vcl/unx/gtk/app/gtkinst.cxx vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx vcl/unx/gtk/window/gtkframe.cxx vcl/unx/gtk/window/gtkobject.cxx vcl/unx/headless/svpbmp.hxx vcl/unx/headless/svpgdi.cxx vcl/unx/headless/svpgdi.hxx vcl/unx/headless/svpinst.cxx vcl/unx/headless/svpinst.hxx vcl/unx/headless/svpprn.cxx vcl/unx/headless/svpprn.hxx vcl/unx/headless/svppspgraphics.cxx vcl/unx/headless/svppspgraphics.hxx vcl/unx/headless/svptext.cxx vcl/unx/inc/dtint.hxx vcl/unx/inc/plugins/gtk/gtkdata.hxx vcl/unx/inc/pspgraphics.h vcl/unx/inc/salbmp.h vcl/unx/inc/saldata.hxx vcl/unx/inc/saldisp.hxx vcl/unx/inc/salgdi.h vcl/unx/inc/salinst.h vcl/unx/inc/xfont.hxx vcl/unx/kde/kdedata.cxx vcl/unx/kde4/KDESalGraphics.cxx vcl/unx/source/app/keysymnames.cxx vcl/unx/source/app/saldata.cxx vcl/unx/source/app/saldisp.cxx vcl/unx/source/app/salinst.cxx vcl/unx/source/app/wmadaptor.cxx vcl/unx/source/dtrans/X11_selection.cxx vcl/unx/source/dtrans/X11_service.cxx vcl/unx/source/gdi/makefile.mk vcl/unx/source/gdi/pspgraphics.cxx vcl/unx/source/gdi/salgdi.cxx vcl/unx/source/gdi/salgdi3.cxx vcl/unx/source/gdi/salprnpsp.cxx vcl/unx/source/gdi/xfont.cxx vcl/unx/source/gdi/xlfd_attr.cxx vcl/unx/source/gdi/xlfd_attr.hxx vcl/unx/source/gdi/xlfd_extd.cxx vcl/unx/source/gdi/xlfd_extd.hxx vcl/unx/source/gdi/xlfd_smpl.cxx vcl/unx/source/gdi/xlfd_smpl.hxx vcl/unx/source/printer/ppdparser.cxx vcl/unx/source/printer/printerinfomanager.cxx vcl/unx/source/window/salframe.cxx vcl/unx/source/window/salmenu.cxx vcl/unx/source/window/salobj.cxx vcl/util/makefile2.pmk vcl/win/inc/salbmp.h vcl/win/inc/saldata.hxx vcl/win/inc/salgdi.h vcl/win/inc/salinst.h vcl/win/source/app/saldata.cxx vcl/win/source/app/salinst.cxx vcl/win/source/gdi/salgdi.cxx vcl/win/source/gdi/salgdi3.cxx vcl/win/source/gdi/salprn.cxx vcl/win/source/gdi/winlayout.cxx vcl/win/source/window/salframe.cxx vcl/win/source/window/salobj.cxx vcl/workben/outdevgrind.cxx vos/inc/vos/execabl.hxx vos/inc/vos/macros.hxx vos/inc/vos/pipe.hxx vos/inc/vos/process.hxx vos/inc/vos/refernce.hxx vos/inc/vos/signal.hxx vos/inc/vos/socket.hxx vos/inc/vos/stream.hxx vos/inc/vos/thread.hxx vos/source/pipe.cxx vos/source/process.cxx vos/source/signal.cxx vos/source/thread.cxx vos/source/timer.cxx
2011-03-11 14:24:23 +01:00
void AquaSalFrame::SimulateKeyPress( sal_uInt16 /*nKeyCode*/ )
{
}
2011-02-15 16:39:25 +01:00
bool AquaSalFrame::SetPluginParent( SystemParentData* )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
// plugin parent may be killed unexpectedly by
// plugging process;
//TODO: implement
return false;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
bool AquaSalFrame::MapUnicodeToKeyCode( sal_Unicode , LanguageType , vcl::KeyCode& )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
// not supported yet
return FALSE;
}
LanguageType AquaSalFrame::GetInputLanguage()
{
//TODO: implement
return LANGUAGE_DONTKNOW;
}
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
void AquaSalFrame::DrawMenuBar()
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
void AquaSalFrame::SetMenu( SalMenu* pSalMenu )
{
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
AquaSalMenu* pMenu = static_cast<AquaSalMenu*>(pSalMenu);
DBG_ASSERT( ! pMenu || pMenu->mbMenuBar, "setting non menubar on frame" );
mpMenu = pMenu;
if( mpMenu )
mpMenu->setMainMenu();
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
void AquaSalFrame::SetExtendedFrameStyle( SalExtStyle nStyle )
{
if ( mpNSWindow )
2010-12-10 13:05:43 +01:00
{
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
2008-03-05 16:01:43 +00:00
if( (mnExtStyle & SAL_FRAME_EXT_STYLE_DOCMODIFIED) != (nStyle & SAL_FRAME_EXT_STYLE_DOCMODIFIED) )
[mpNSWindow setDocumentEdited: (nStyle & SAL_FRAME_EXT_STYLE_DOCMODIFIED) ? YES : NO];
2010-12-10 13:05:43 +01:00
}
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
mnExtStyle = nStyle;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
SalFrame* AquaSalFrame::GetParent() const
{
return mpParent;
}
void AquaSalFrame::SetParent( SalFrame* pNewParent )
{
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
bool bShown = mbShown;
// remove from child list
Show( FALSE );
mpParent = static_cast<AquaSalFrame*>(pNewParent);
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
// insert to correct parent and paint
Show( bShown );
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
void AquaSalFrame::UpdateFrameGeometry()
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
{
return;
}
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
// keep in mind that view and window coordinates are lower left
// whereas vcl's are upper left
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
// update screen rect
NSScreen * pScreen = [mpNSWindow screen];
if( pScreen )
{
maScreenRect = [pScreen frame];
NSArray* pScreens = [NSScreen screens];
if( pScreens )
maGeometry.nDisplayScreenNumber = [pScreens indexOfObject: pScreen];
}
NSRect aFrameRect = [mpNSWindow frame];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
NSRect aContentRect = [NSWindow contentRectForFrameRect: aFrameRect styleMask: mnStyleMask];
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
// release old track rect
[mpNSView removeTrackingRect: mnTrackingRectTag];
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
// install the new track rect
NSRect aTrackRect = { NSZeroPoint, aContentRect.size };
mnTrackingRectTag = [mpNSView addTrackingRect: aTrackRect owner: mpNSView userData: nil assumeInside: NO];
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
// convert to vcl convention
CocoaToVCL( aFrameRect );
CocoaToVCL( aContentRect );
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
maGeometry.nX = static_cast<int>(aContentRect.origin.x);
maGeometry.nY = static_cast<int>(aContentRect.origin.y);
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
maGeometry.nLeftDecoration = static_cast<unsigned int>(aContentRect.origin.x - aFrameRect.origin.x);
maGeometry.nRightDecoration = static_cast<unsigned int>((aFrameRect.origin.x + aFrameRect.size.width) -
(aContentRect.origin.x + aContentRect.size.width));
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
maGeometry.nTopDecoration = static_cast<unsigned int>(aContentRect.origin.y - aFrameRect.origin.y);
maGeometry.nBottomDecoration = static_cast<unsigned int>((aFrameRect.origin.y + aFrameRect.size.height) -
(aContentRect.origin.y + aContentRect.size.height));
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
maGeometry.nWidth = static_cast<unsigned int>(aContentRect.size.width);
maGeometry.nHeight = static_cast<unsigned int>(aContentRect.size.height);
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
void AquaSalFrame::CaptureMouse( bool bCapture )
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
{
/* Remark:
we'll try to use a pidgin version of capture mouse
on MacOSX (neither carbon nor cocoa) there is a
CaptureMouse equivalent (in Carbon there is TrackMouseLocation
but this is useless to use since it is blocking)
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
However on cocoa the active frame seems to get mouse events
also outside the window, so we'll try to forward mouse events
to the capture frame in the hope that one of our frames
gets a mouse event.
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
This will break as soon as the user activates another app, but
a mouse click will normally lead to a release of the mouse anyway.
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
Let's see how far we get this way. Alternatively we could use one
large overlay window like we did for the carbon implementation,
however that is resource intensive.
*/
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
if( bCapture )
s_pCaptureFrame = this;
else if( ! bCapture && s_pCaptureFrame == this )
s_pCaptureFrame = NULL;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
void AquaSalFrame::ResetClipRegion()
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
{
return;
}
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
// release old path and indicate no clipping
CGPathRelease( mrClippingPath );
mrClippingPath = NULL;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
if( mpNSView && mbShown )
[mpNSView setNeedsDisplay: YES];
if( mpNSWindow )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
[mpNSWindow setOpaque: YES];
[mpNSWindow invalidateShadow];
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
}
void AquaSalFrame::BeginSetClipRegion( sal_uLong nRects )
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
{
return;
}
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
// release old path
if( mrClippingPath )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
CGPathRelease( mrClippingPath );
mrClippingPath = NULL;
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
if( maClippingRects.size() > SAL_CLIPRECT_COUNT && nRects < maClippingRects.size() )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
std::vector<CGRect> aEmptyVec;
maClippingRects.swap( aEmptyVec );
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
maClippingRects.clear();
maClippingRects.reserve( nRects );
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
void AquaSalFrame::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
{
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
if( nWidth && nHeight )
{
NSRect aRect = { { static_cast<CGFloat>(nX), static_cast<CGFloat>(nY) }, { static_cast<CGFloat>(nWidth), static_cast<CGFloat>(nHeight) } };
VCLToCocoa( aRect, false );
maClippingRects.push_back( CGRectMake(aRect.origin.x, aRect.origin.y, aRect.size.width, aRect.size.height) );
}
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
void AquaSalFrame::EndSetClipRegion()
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
if ( !mpNSWindow )
2010-12-10 13:05:43 +01:00
{
return;
}
// #i113170# may not be the main thread if called from UNO API
SalData::ensureThreadAutoreleasePool();
if( ! maClippingRects.empty() )
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
{
mrClippingPath = CGPathCreateMutable();
CGPathAddRects( mrClippingPath, NULL, &maClippingRects[0], maClippingRects.size() );
INTEGRATION: CWS aquavcl01 (1.46.112); FILE MERGED 2007/06/29 02:09:19 msicotte 1.46.112.111: #i78982# numeric keypad ENTER == RETURN in GetKeyCode 2007/06/28 13:17:50 pl 1.46.112.110: fix key up handling 2007/06/28 09:17:45 ericb 1.46.112.109: #i78847# use MOD5 instead of MOD2 to fix formulas issue with ALT 2007/06/28 04:34:26 ekato 1.46.112.108: Fix crash with SALEVENT_KEYUP on non text widget. 2007/06/26 06:33:21 pjanik 1.46.112.107: #i78712#: Add events for entering and leaving, send MOUSELEAVE event to prevent "aggressive tooltips". 2007/06/21 08:24:39 ekato 1.46.112.106: issue #77846: use appropriate text attributes for input method 2007/06/21 02:00:33 ekato 1.46.112.105: Call SALEVENT_{GETFOCUS,LOSEFOCUS} in HandleWindowActivatedEvent(). 2007/06/21 01:37:30 ekato 1.46.112.104: Handle window activate and deactivate events properly. 2007/06/05 14:24:44 pl 1.46.112.103: implement SetPointerPos 2007/06/05 13:23:08 pl 1.46.112.102: CFString <-> OUString conversion 2007/06/04 13:43:22 pl 1.46.112.101: implement AquaSalFrame::SnapShot 2007/06/02 11:23:13 ekato 1.46.112.100: Use kFontFamilyName if it is appropriate. 2007/06/02 10:36:50 ekato 1.46.112.99: Consider an user language setting with GetSystemFontSetting(). 2007/05/31 07:45:19 pl 1.46.112.98: implement CaptureMouse using overlay window 2007/05/30 14:47:54 hdu 1.46.112.97: do not override font size from OSX Appearence Manager 2007/05/29 15:56:39 pl 1.46.112.96: simplify AquaSalGraphics, paint to window from backbuffer 2007/05/29 13:35:18 pl 1.46.112.95: preferences and about entries in application menu 2007/05/28 11:59:17 ekato 1.46.112.94: Fix invalid comment. 2007/05/28 11:49:13 ekato 1.46.112.93: Fix to erase preedit text when its length is zero. 2007/05/28 07:43:01 ekato 1.46.112.92: Implement preedit text drawing from input method. Need to fix using hiliteStyle later. 2007/05/27 07:28:39 ericb 1.46.112.91: #i77552# reversing to X11 colors, because Color( 0xb5, 0xd5, 0xff ) must be for modifiable text item only 2007/05/27 00:34:38 ericb 1.46.112.90: #i77552# better colors (not complete, needs work) 2007/05/26 08:54:38 ericb 1.46.112.89: #i77552# change highlighted colors in controls (text) and replace (temporarly) awfull grey 2007/05/24 15:05:19 hdu 1.46.112.88: connect to OSX-AppearenceManager to get some system style settings 2007/05/24 12:52:36 pl 1.46.112.87: fix window state with position only 2007/05/24 11:58:46 pl 1.46.112.86: resize event in SetWindowState 2007/05/24 10:43:39 pl 1.46.112.85: implement flush 2007/05/23 18:05:57 pl 1.46.112.84: implement GetPointerState 2007/05/23 16:44:44 pl 1.46.112.83: fix toolbar drag crash 2007/05/23 16:39:31 pl 1.46.112.82: Get/SetWindowState 2007/05/23 14:38:34 pl 1.46.112.81: handle introbitmap 2007/05/23 14:25:33 pl 1.46.112.80: normal centering on parent 2007/05/23 13:21:42 pl 1.46.112.79: more convenient logging 2007/05/22 17:39:22 pl 1.46.112.78: fix SAL_FRAME_STYLE_FLOAT window style 2007/05/22 16:39:33 pl 1.46.112.77: implement ToTop semantics 2007/05/22 16:01:11 pl 1.46.112.76: just formatting 2007/05/22 11:46:53 pl 1.46.112.75: fix long standing paint issue (thanks to hdu for pointing me in the right direction) 2007/05/17 10:19:16 pjanik 1.46.112.74: Remove debug fprintf. 2007/05/14 17:40:00 msicotte 1.46.112.73: #77317# - fix for wrong menu displayed when last Writer window closed 2007/05/14 12:51:49 pl 1.46.112.72: safer yield mutex protection through guards 2007/05/14 11:38:49 pl 1.46.112.71: protect against dispatching to dead or dying AquaSalFrames 2007/05/12 19:17:53 msicotte 1.46.112.70: Fix for issue 74392 - aquavcl01: tooltip crash 2007/05/12 19:13:25 msicotte 1.46.112.69: Fix for issue 77261 - Menu disappears when you hover over tooltip 2007/05/11 20:25:03 pjanik 1.46.112.68: Reformat for easier reading (according to OOo C++ rules). 2007/05/11 13:17:21 pl 1.46.112.67: preliminary Quit handling 2007/05/11 12:32:15 pl 1.46.112.66: preliminary Quit handling 2007/05/11 12:30:36 pl 1.46.112.65: preliminary Quit handling 2007/05/11 11:37:58 pl 1.46.112.64: #i73689# force window update after show 2007/05/10 17:56:19 pl 1.46.112.63: #i73689# fix writer initial draw problem 2007/05/08 14:10:20 ericb 1.46.112.62: fix warnings in SetMinClientSize 2007/05/08 13:22:08 ericb 1.46.112.61: #i74626# fix for popup menus drawn under the dock or main menubar 2007/05/07 18:44:15 isma87 1.46.112.60: implementation of SetmaxClientSize and SetMinClientSize 2007/05/07 18:38:16 isma87 1.46.112.59: add utility windows 2007/04/18 20:34:24 isma87 1.46.112.58: Add cursors (the main 18 out of 94) 2007/03/24 18:34:44 ekato 1.46.112.57: Support kEventTextInputOffsetToPos event. 2007/03/18 12:17:15 ekato 1.46.112.56: Send KEYUP event too for Unicode keyboard input. 2007/03/11 22:23:39 ericb 1.46.112.55: use pSalFrame->mnWidth / mnHeight is better 2007/03/11 22:20:15 ericb 1.46.112.54: replace obsolete NewRgn() DisposeRgn() ... etc 2007/03/10 10:00:29 pjanik 1.46.112.53: Minor reformatting, fix commented code. 2007/03/10 06:55:51 pjanik 1.46.112.52: Add blinking cursor. 2007/03/09 23:04:25 pjanik 1.46.112.51: Add TSM TextInput events handling. 2007/02/26 22:23:23 pjanik 1.46.112.50: Comment wrong code. 2007/02/18 21:19:46 pjanik 1.46.112.49: #i73199#: Add Focus events. 2007/02/13 09:16:30 pjanik 1.46.112.48: Use errval instead of err to prevent problems, add more fprintf's. 2007/02/12 08:21:05 pjanik 1.46.112.47: CFRelease should receive only non NULL arguments. 2007/02/02 13:52:21 pjanik 1.46.112.46: Mark deprecated funtions as such. 2007/02/02 13:34:17 pjanik 1.46.112.45: Prevent warnings - "initialized after" and "err shadowing". 2007/01/11 09:38:08 ericb 1.46.112.44: simplify SetPosSize 2007/01/10 20:54:44 ericb 1.46.112.43: replace deprecated SetRect() and do some cleanup in salframe.cxx 2007/01/07 20:03:07 pjanik 1.46.112.42: Add MouseDragged events. 2006/12/30 19:32:58 pjanik 1.46.112.41: #i72385#: Add Quartz/AQUA specific parts. 2006/12/30 15:51:46 pjanik 1.46.112.40: Minor formatting changes. 2006/12/30 15:01:21 ericb 1.46.112.39: Add some changes in GetOptimalWindowSize() 2006/12/30 14:16:37 pjanik 1.46.112.38: Remove redundant callback procedure. 2006/12/29 20:19:05 ericb 1.46.112.37: fix right mouse button bug 2006/12/13 09:40:24 pjanik 1.46.112.36: Add SALEVENT_MOUSEMOVE event. 2006/12/03 16:29:49 ssa 1.46.112.35: update repeat count in KeyEvt 2006/11/08 06:53:29 pjanik 1.46.112.34: Add empty methods for shaped system windows. 2006/10/14 13:26:17 pjanik 1.46.112.33: Fix resync problems. 2006/10/13 21:56:41 tra 1.46.112.32: RESYNC: (1.46-1.48); FILE MERGED 2006/09/08 15:27:53 pjanik 1.46.112.31: Add NumLock and Fn keys debug printf. 2006/09/04 08:42:27 pjanik 1.46.112.30: Add basic support for mouse wheel events. 2006/09/04 08:25:52 pjanik 1.46.112.29: Add basic (not complete) support for keyboard events. 2006/08/28 19:05:26 pjanik 1.46.112.28: Implement AquaSalFrame::DrawMenuBar. Use it when window is activated to show the menubar for the current window. 2006/08/23 05:17:49 pjanik 1.46.112.27: Send proper menu activation events. 2006/08/20 15:18:12 pjanik 1.46.112.26: *** empty log message *** 2006/08/08 19:53:29 pjanik 1.46.112.25: fix typo 2006/08/07 18:51:43 pjanik 1.46.112.24: Add support for native menus. 2006/08/05 15:21:20 ssa 1.46.112.23: initial support for system settings (font size) 2006/07/31 18:42:52 fheckl 1.46.112.22: Basic fullscreen method (working on main monitor) implemented 2006/07/19 10:22:11 pjanik 1.46.112.21: #i10000#: Change the prototype of Yield to reflect the changes done in SRC680_m176. 2006/07/13 14:02:33 pjanik 1.46.112.20: fix typo reisze -> resize 2006/06/25 19:27:54 ssa 1.46.112.19: proper mapping of window attributes (closeable, sizeable, moveable) and correct window positioning and sizing for child windows 2006/04/27 20:47:02 tra 1.46.112.18: *** empty log message *** 2006/03/19 11:53:19 ssa 1.46.112.17: remove old QuickDraw implementation, AquaSalGraphics members now protected, use RGB color space, general code cleanup 2006/03/16 20:45:00 tra 1.46.112.16: GetWorkArea implementation 2006/03/14 14:24:13 ssa 1.46.112.15: call Yield only once for each resize and not until the queue is empty, this fixes the problem with resizes after the mouse button was released 2006/03/13 19:37:54 tra 1.46.112.14: small correction in SetPosSize 2006/03/09 23:53:35 ssa 1.46.112.13: create root control if required, code cleanup 2006/03/09 08:03:23 ssa 1.46.112.12: post timer events to main thread, improve live resizing, use solar mutex 2006/03/08 21:37:14 tra 1.46.112.11: UpdateFrameGeometry, SetPosSize implemented partially 2006/03/03 05:55:56 tra 1.46.112.10: GetEventTime returns seconds so the concersion factor to ms is 1000 :) 2006/03/02 21:33:42 tra 1.46.112.9: a slightly improved mouse up/down event handler 2006/03/02 00:32:25 ssa 1.46.112.8: provide initial version of resize and update handler, change window attributes to use non compositing windows, force live resize 2006/02/27 21:33:55 fheckl 1.46.112.7: Replacing VCLVIEW with CarbonViewRef 2006/02/27 20:29:30 tra 1.46.112.6: basic Carbon message handling stuff 2006/02/19 21:02:33 tra 1.46.112.5: some cleanup 2006/02/18 14:13:34 tra 1.46.112.4: *** empty log message *** 2006/02/16 21:36:37 fheckl 1.46.112.3: Removing Cocoa code and replacing most of it with Carbon calls 2006/01/31 01:14:17 fheckl 1.46.112.2: *** empty log message *** 2005/11/27 09:48:40 fheckl 1.46.112.1: Integrating aqua changes for OOo 2.0
2007-07-05 09:24:01 +00:00
}
if( mpNSView && mbShown )
[mpNSView setNeedsDisplay: YES];
if( mpNSWindow )
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
{
[mpNSWindow setOpaque: (mrClippingPath != NULL) ? NO : YES];
[mpNSWindow setBackgroundColor: [NSColor clearColor]];
// shadow is invalidated when view gets drawn again
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
}
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS aquavcl03 (1.50.4); FILE MERGED 2007/10/02 14:31:37 pl 1.50.4.36: #i80027# prevent tons of empty dock menu entries in smoketest 2007/10/01 13:45:55 pl 1.50.4.35: #i80230# shortcut forwarding with native menus, preparations for menu disabling in modal case 2007/10/01 08:31:36 pl 1.50.4.34: #i80027# report command modifier 2007/09/28 15:10:15 pl 1.50.4.33: blinking default button 2007/09/28 14:52:02 pl 1.50.4.32: fix a typo 2007/09/27 18:15:47 pl 1.50.4.31: #i80027# preliminary GetKeyName implementation 2007/09/27 12:35:02 pl 1.50.4.30: #i80027# correct parent <-> child stacking 2007/09/17 17:24:50 pl 1.50.4.29: RESYNC: (1.51-1.52); FILE MERGED 2007/09/10 07:41:53 ericb 1.50.4.28: backport of getHighlightColorFromPrefs() from aquavclcarbonfixes to simplify the resync + some cosmetic change 2007/09/06 14:46:57 pl 1.50.4.27: #i80027# remove carbon event handlers 2007/09/06 14:35:56 pl 1.50.4.26: #i80027# GetPointerState slightly cocoafied 2007/09/05 17:11:04 pl 1.50.4.25: #i80027# SetPointer method using NSCursor objects 2007/08/31 14:42:37 pl 1.50.4.24: #i80027# implement pidgin mouse capture 2007/08/30 15:24:41 pl 1.50.4.23: #i80027# use tracking rect to receive mouse enter/leave events 2007/08/13 15:00:27 hdu 1.50.4.22: Aqua: correct height of system theme font for device resolution 2007/08/10 11:06:18 pl 1.50.4.21: #i80027# need shortcuts like Ctrl-a and Ctrl-Alt-Shift-d 2007/08/10 09:57:17 pl 1.50.4.20: #i80230# change menu to that of the active frame 2007/08/08 16:47:44 pl 1.50.4.19: #i80460# move cursor in ext text input event 2007/08/08 09:57:06 ekato 1.50.4.18: #i80027# fix support NSTextInputprotocol 2007/08/08 09:27:50 pl 1.50.4.17: some header cleanup 2007/08/08 07:57:15 ekato 1.50.4.16: #i80027# Support NSTextInput protocol 2007/08/07 10:33:17 pl 1.50.4.15: RESYNC: (1.50-1.51); FILE MERGED 2007/08/06 14:59:07 pl 1.50.4.14: #i80027# mod2 -> mod5 workaround only for key events 2007/08/06 14:55:56 pl 1.50.4.13: #i80027# mod2 -> mod5 workaround 2007/08/06 09:46:50 pl 1.50.4.12: #i80027# default geometry for frame 2007/08/03 12:29:02 pl 1.50.4.11: #i80027# dock menu entries for frames 2007/08/02 18:17:15 pl 1.50.4.10: #i80027# backing store type NSBackingStoreBuffered is important; also enable shadows on all our windows 2007/08/02 17:13:12 pl 1.50.4.9: #i80027# activate mouse move events 2007/08/01 17:54:13 pl 1.50.4.8: #i80230# multiple documents 2007/07/31 13:25:52 pl 1.50.4.7: #i80027# simple key handling 2007/07/30 18:24:32 pl 1.50.4.6: #i80027# key input: function keys 2007/07/30 16:01:39 pl 1.50.4.5: #i80027# wheel mouse 2007/07/30 15:37:32 pl 1.50.4.4: #i80027# very rudimentary key input implementation 2007/07/26 15:47:41 pl 1.50.4.3: #i80027# correction for window style 2007/07/26 14:06:01 pl 1.50.4.2: #i80027# correction for ShowFullScreen 2007/07/26 11:02:26 pl 1.50.4.1: #i80025# initial checking for carbon to cocoa migration
2007-10-09 14:16:48 +00:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */