2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
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>
|
|
|
|
|
2011-01-24 16:34:14 +01:00
|
|
|
#include "rtl/ustrbuf.hxx"
|
|
|
|
|
|
|
|
#include "osl/file.h"
|
|
|
|
|
|
|
|
#include "vcl/svapp.hxx"
|
2007-10-09 14:16:48 +00:00
|
|
|
#include "vcl/window.hxx"
|
2013-03-27 08:38:16 +02:00
|
|
|
#include "vcl/syswin.hxx"
|
2014-02-20 19:40:39 +01:00
|
|
|
#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
|
|
|
|
2013-12-05 22:01:05 +02: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"
|
2013-03-20 09:07:52 +02:00
|
|
|
#include "quartz/utils.h"
|
2011-01-24 16:34:14 +01:00
|
|
|
|
|
|
|
#include "salwtype.hxx"
|
|
|
|
|
2007-12-07 10:49:23 +00:00
|
|
|
#include "premac.h"
|
2011-09-28 17:19:40 +03:00
|
|
|
#include <objc/objc-runtime.h>
|
2007-12-07 10:49:23 +00:00
|
|
|
// needed for theming
|
|
|
|
// FIXME: move theming code to salnativewidgets.cxx
|
|
|
|
#include <Carbon/Carbon.h>
|
|
|
|
#include "postmac.h"
|
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
using namespace std;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
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
|
|
|
|
2011-01-19 15:42:25 +01:00
|
|
|
AquaSalFrame::AquaSalFrame( SalFrame* pParent, sal_uLong salFrameStyle ) :
|
2013-12-02 16:06:37 +00:00
|
|
|
mpNSWindow(nil),
|
|
|
|
mpNSView(nil),
|
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),
|
2008-01-14 15:18:51 +00:00
|
|
|
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),
|
2008-07-17 10:28:26 +00:00
|
|
|
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 ),
|
2007-10-09 14:16:48 +00:00
|
|
|
mnStyleMask( 0 ),
|
|
|
|
mnLastEventTime( 0 ),
|
|
|
|
mnLastModifierFlags( 0 ),
|
|
|
|
mpMenu( NULL ),
|
|
|
|
mnExtStyle( 0 ),
|
2015-05-20 14:05:50 +02:00
|
|
|
mePointerStyle( PointerStyle::Arrow ),
|
2008-01-14 15:18:51 +00:00
|
|
|
mnTrackingRectTag( 0 ),
|
2008-05-30 07:04:26 +00:00
|
|
|
mrClippingPath( 0 ),
|
2015-05-14 12:00:19 +02:00
|
|
|
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);
|
2007-10-09 14:16:48 +00:00
|
|
|
|
|
|
|
initWindowAndView();
|
2000-12-01 17:03:08 +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
|
|
|
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
|
|
|
{
|
2008-07-01 22:08:20 +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();
|
|
|
|
|
2008-01-14 15:18:51 +00:00
|
|
|
// 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 );
|
2011-04-06 11:56:51 +02:00
|
|
|
pSalData->maPresentationFrames.remove( this );
|
2000-11-27 00:47:45 +00:00
|
|
|
|
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;
|
2000-12-01 17:03:08 +00:00
|
|
|
|
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];
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( mpNSView ) {
|
|
|
|
[AquaA11yFactory revokeView: mpNSView];
|
|
|
|
[mpNSView release];
|
2008-04-15 12:20:50 +00:00
|
|
|
}
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( mpNSWindow )
|
|
|
|
[mpNSWindow release];
|
2007-10-09 14:16:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void AquaSalFrame::initWindowAndView()
|
|
|
|
{
|
|
|
|
// initialize mirroring parameters
|
2008-01-14 15:18:51 +00:00
|
|
|
// FIXME: screens changing
|
2013-12-02 16:06:37 +00:00
|
|
|
NSScreen* pNSScreen = [mpNSWindow screen];
|
|
|
|
if( pNSScreen == nil )
|
|
|
|
pNSScreen = [NSScreen mainScreen];
|
|
|
|
maScreenRect = [pNSScreen frame];
|
2007-10-09 14:16:48 +00:00
|
|
|
|
|
|
|
// calculate some default geometry
|
2013-12-02 16:06:37 +00:00
|
|
|
NSRect aVisibleRect = [pNSScreen visibleFrame];
|
2007-10-09 14:16:48 +00:00
|
|
|
CocoaToVCL( aVisibleRect );
|
|
|
|
|
2008-01-14 15:18:51 +00:00
|
|
|
maGeometry.nX = static_cast<int>(aVisibleRect.origin.x + aVisibleRect.size.width / 10);
|
|
|
|
maGeometry.nY = static_cast<int>(aVisibleRect.origin.y + aVisibleRect.size.height / 10);
|
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"
|
2008-01-14 15:18:51 +00:00
|
|
|
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);
|
2007-10-09 14:16:48 +00:00
|
|
|
mbPositioned = mbSized = true;
|
|
|
|
}
|
|
|
|
else
|
2000-12-01 17:03:08 +00:00
|
|
|
{
|
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;
|
2000-12-01 17:03:08 +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
|
|
|
|
2010-12-10 13:05:43 +01:00
|
|
|
// #i91990# support GUI-less (daemon) execution
|
|
|
|
@try
|
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
mpNSWindow = [[SalFrameWindow alloc] initWithSalFrame: this];
|
|
|
|
mpNSView = [[SalFrameView alloc] initWithSalFrame: this];
|
2010-12-10 13:05:43 +01:00
|
|
|
}
|
|
|
|
@catch ( id exception )
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
if( (mnStyle & SAL_FRAME_STYLE_TOOLTIP) )
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow setIgnoresMouseEvents: YES];
|
2007-10-09 14:16:48 +00:00
|
|
|
else
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow setAcceptsMouseMovedEvents: YES];
|
|
|
|
[mpNSWindow setHasShadow: YES];
|
2014-02-24 15:00:31 -05:00
|
|
|
|
2014-01-23 16:56:03 +00:00
|
|
|
[mpNSWindow setDelegate: static_cast<id<NSWindowDelegate> >(mpNSWindow)];
|
2007-10-09 14:16:48 +00:00
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
if( [mpNSWindow respondsToSelector: @selector(setRestorable:)])
|
2012-09-13 05:13:26 -05:00
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
objc_msgSend(mpNSWindow, @selector(setRestorable:), NO);
|
2012-09-13 05:13:26 -05:00
|
|
|
}
|
2014-02-24 09:08:02 +00:00
|
|
|
const NSRect aRect = { NSZeroPoint, NSMakeSize( maGeometry.nWidth, maGeometry.nHeight )};
|
2013-12-05 13:57:05 +02:00
|
|
|
mnTrackingRectTag = [mpNSView addTrackingRect: aRect owner: mpNSView userData: nil assumeInside: NO];
|
2007-10-09 14:16:48 +00:00
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
maSysData.mpNSView = mpNSView;
|
2007-12-07 10:49:23 +00:00
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
UpdateFrameGeometry();
|
2008-07-17 10:28:26 +00:00
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow setContentView: mpNSView];
|
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
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2008-01-14 15:18:51 +00:00
|
|
|
void AquaSalFrame::screenParametersChanged()
|
|
|
|
{
|
|
|
|
UpdateFrameGeometry();
|
|
|
|
|
|
|
|
if( mpGraphics )
|
|
|
|
mpGraphics->updateResolution();
|
|
|
|
CallCallback( SALEVENT_DISPLAYCHANGED, 0 );
|
|
|
|
}
|
|
|
|
|
2014-02-15 19:51:04 +11:00
|
|
|
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 )
|
2000-11-19 01:37:03 +00:00
|
|
|
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
|
|
|
{
|
2007-10-09 14:16:48 +00:00
|
|
|
mpGraphics = new AquaSalGraphics;
|
|
|
|
mpGraphics->SetWindowGraphics( this );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
2000-11-17 06:35:39 +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;
|
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
|
|
|
}
|
|
|
|
|
2014-02-21 13:08:35 +01:00
|
|
|
bool AquaSalFrame::PostEvent( void *pData )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
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
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
void AquaSalFrame::SetTitle(const OUString& rTitle)
|
2007-10-09 14:16:48 +00:00
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
return;
|
|
|
|
|
2010-07-15 19:24:32 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
NSString* pTitle = CreateNSString( rTitle );
|
2013-12-02 16:06:37 +00:00
|
|
|
[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
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
// create an entry in the dock menu
|
2011-01-19 15:42:25 +01:00
|
|
|
const sal_uLong nAppWindowStyle = (SAL_FRAME_STYLE_CLOSEABLE | SAL_FRAME_STYLE_MOVEABLE);
|
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
|
|
|
{
|
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
|
|
|
{
|
2007-10-09 14:16:48 +00:00
|
|
|
NSMenu* pDock = AquaSalInstance::GetDynamicDockMenu();
|
|
|
|
mpDockMenuEntry = [pDock insertItemWithTitle: pTitle
|
|
|
|
action: @selector(dockMenuItemTriggered:)
|
|
|
|
keyEquivalent: @""
|
2008-05-30 07:04:26 +00:00
|
|
|
atIndex: 0];
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpDockMenuEntry setTarget: mpNSWindow];
|
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
|
|
|
}
|
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
|
|
|
}
|
2000-11-13 23:18:56 +00:00
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
if (pTitle)
|
|
|
|
[pTitle release];
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
2011-01-19 15:42:25 +01:00
|
|
|
void AquaSalFrame::SetIcon( sal_uInt16 )
|
2009-11-09 18:22:51 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
void AquaSalFrame::SetRepresentedURL( const OUString& i_rDocURL )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2013-10-25 16:43:20 +02:00
|
|
|
if( i_rDocURL.startsWith( "file:" ) )
|
2009-11-09 18:22:51 +01:00
|
|
|
{
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString aSysPath;
|
2009-11-09 18:22:51 +01:00
|
|
|
osl_getSystemPathFromFileURL( i_rDocURL.pData, &aSysPath.pData );
|
|
|
|
NSString* pStr = CreateNSString( aSysPath );
|
|
|
|
if( pStr )
|
|
|
|
{
|
|
|
|
[pStr autorelease];
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow setRepresentedFilename: pStr];
|
2009-11-09 18:22:51 +01: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::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;
|
2008-01-14 15:18:51 +00:00
|
|
|
if( ! mbPositioned && ! mbFullScreen )
|
2000-11-20 21:14:52 +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
|
|
|
Rectangle aScreenRect;
|
|
|
|
GetWorkArea( aScreenRect );
|
|
|
|
if( mpParent ) // center relative to parent
|
|
|
|
{
|
|
|
|
// center on parent
|
2010-08-02 17:30:58 +02:00
|
|
|
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;
|
2010-08-02 17:30:58 +02:00
|
|
|
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 );
|
|
|
|
}
|
|
|
|
}
|
2008-04-15 12:20:50 +00:00
|
|
|
|
|
|
|
// make sure the view is present in the wrapper list before any children receive focus
|
2013-12-02 16:06:37 +00:00
|
|
|
[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
|
|
|
}
|
|
|
|
|
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
|
|
|
{
|
2007-08-03 13:03:49 +00:00
|
|
|
SalPaintEvent aPaintEvt( 0, 0, maGeometry.nWidth, maGeometry.nHeight, true );
|
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);
|
|
|
|
}
|
|
|
|
|
2014-02-28 13:52:09 +02:00
|
|
|
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
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
return;
|
|
|
|
|
2010-07-23 13:29:06 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2007-08-03 13:03:49 +00:00
|
|
|
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();
|
2007-08-03 13:03:49 +00:00
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
CallCallback(SALEVENT_RESIZE, 0);
|
2007-08-03 13:03:49 +00:00
|
|
|
// trigger filling our backbuffer
|
|
|
|
SendPaintEvent();
|
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
if( bNoActivate || [mpNSWindow canBecomeKeyWindow] == NO )
|
|
|
|
[mpNSWindow orderFront: NSApp];
|
2007-10-09 14:16:48 +00:00
|
|
|
else
|
2013-12-02 16:06:37 +00:00
|
|
|
[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
|
|
|
|
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) ) )
|
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpParent->mpNSWindow addChildWindow: mpNSWindow ordered: NSWindowAbove];
|
2009-01-02 15:26:18 +00:00
|
|
|
}
|
|
|
|
}
|
2008-07-17 10:28:26 +00:00
|
|
|
|
|
|
|
if( mbPresentation )
|
2013-12-02 16:06:37 +00:00
|
|
|
[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
|
2007-10-09 14:16:48 +00:00
|
|
|
{
|
2008-07-01 22:08:20 +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
|
|
|
|
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
|
2013-12-02 16:06:37 +00:00
|
|
|
if( mpParent && mpParent->mbShown && [mpNSWindow isKeyWindow] )
|
|
|
|
[mpParent->mpNSWindow makeKeyAndOrderFront: NSApp];
|
2008-07-17 10:28:26 +00:00
|
|
|
|
2008-07-01 22:08:20 +00:00
|
|
|
[SalFrameView unsetMouseFrame: this];
|
2013-12-02 16:06:37 +00:00
|
|
|
if( mpParent && [mpNSWindow parentWindow] == mpParent->mpNSWindow )
|
|
|
|
[mpParent->mpNSWindow removeChildWindow: mpNSWindow];
|
2008-03-05 16:01:43 +00:00
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow orderOut: NSApp];
|
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
|
|
|
{
|
2010-07-23 16:31:08 +02: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;
|
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
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;
|
|
|
|
|
2012-12-10 01:08:40 +02:00
|
|
|
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
|
2013-12-02 16:06:37 +00:00
|
|
|
[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
|
|
|
{
|
2010-07-23 16:31:08 +02: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;
|
2000-12-02 01:33:11 +00:00
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
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;
|
|
|
|
|
2012-12-10 01:08:40 +02:00
|
|
|
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
|
2013-12-02 16:06:37 +00:00
|
|
|
[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
|
|
|
{
|
2009-07-06 12:37:58 +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
|
|
|
{
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
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
|
2013-12-02 16:06:37 +00:00
|
|
|
NSRect aStateRect = [mpNSWindow frame];
|
2008-01-14 15:18:51 +00:00
|
|
|
aStateRect = [NSWindow contentRectForFrameRect: aStateRect styleMask: mnStyleMask];
|
2007-10-09 14:16:48 +00:00
|
|
|
CocoaToVCL( aStateRect );
|
2013-03-27 01:20:01 +02:00
|
|
|
if( pState->mnMask & WINDOWSTATE_MASK_X )
|
2007-10-09 14:16:48 +00:00
|
|
|
aStateRect.origin.x = float(pState->mnX);
|
2013-03-27 01:20:01 +02:00
|
|
|
if( pState->mnMask & WINDOWSTATE_MASK_Y )
|
2007-10-09 14:16:48 +00:00
|
|
|
aStateRect.origin.y = float(pState->mnY);
|
2013-03-27 01:20:01 +02:00
|
|
|
if( pState->mnMask & WINDOWSTATE_MASK_WIDTH )
|
2007-10-09 14:16:48 +00:00
|
|
|
aStateRect.size.width = float(pState->mnWidth);
|
2013-03-27 01:20:01 +02:00
|
|
|
if( pState->mnMask & WINDOWSTATE_MASK_HEIGHT )
|
2007-10-09 14:16:48 +00:00
|
|
|
aStateRect.size.height = float(pState->mnHeight);
|
|
|
|
VCLToCocoa( aStateRect );
|
2008-01-14 15:18:51 +00:00
|
|
|
aStateRect = [NSWindow frameRectForContentRect: aStateRect styleMask: mnStyleMask];
|
2008-03-05 16:01:43 +00:00
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow setFrame: aStateRect display: NO];
|
2013-03-27 01:20:01 +02:00
|
|
|
if( pState->mnState == WINDOWSTATE_STATE_MINIMIZED )
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow miniaturize: NSApp];
|
|
|
|
else if( [mpNSWindow isMiniaturized] )
|
|
|
|
[mpNSWindow deminiaturize: NSApp];
|
2010-10-13 14:05:18 +02:00
|
|
|
|
|
|
|
/* 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
|
|
|
|
*/
|
2013-03-27 01:20:01 +02:00
|
|
|
if( pState->mnState == WINDOWSTATE_STATE_MAXIMIZED )
|
2008-03-05 16:01:43 +00:00
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if(! [mpNSWindow isZoomed])
|
|
|
|
[mpNSWindow zoom: NSApp];
|
2010-10-13 14:05:18 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if( [mpNSWindow isZoomed] )
|
|
|
|
[mpNSWindow zoom: NSApp];
|
2008-03-05 16:01:43 +00:00
|
|
|
}
|
2010-12-10 13:05:43 +01:00
|
|
|
}
|
2008-01-14 15:18:51 +00: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
|
|
|
|
2011-01-19 15:42:25 +01:00
|
|
|
sal_uInt16 nEvent = 0;
|
2013-03-27 01:20:01 +02:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2013-03-27 01:20:01 +02:00
|
|
|
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;
|
|
|
|
}
|
2008-01-14 15:18:51 +00:00
|
|
|
// 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 );
|
2008-01-14 15:18:51 +00:00
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
if( mbShown && mpNSWindow )
|
2008-07-01 22:08:20 +00:00
|
|
|
{
|
2008-01-14 15:18:51 +00:00
|
|
|
// trigger filling our backbuffer
|
|
|
|
SendPaintEvent();
|
|
|
|
|
2008-07-01 22:08:20 +00:00
|
|
|
// tell the system the views need to be updated
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow display];
|
2008-07-01 22:08:20 +00:00
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
2014-02-21 13:08:35 +01:00
|
|
|
bool AquaSalFrame::GetWindowState( SalFrameState* pState )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
return FALSE;
|
|
|
|
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2013-03-27 01:20:01 +02:00
|
|
|
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
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
NSRect aStateRect = [mpNSWindow frame];
|
2008-01-14 15:18:51 +00:00
|
|
|
aStateRect = [NSWindow contentRectForFrameRect: aStateRect styleMask: mnStyleMask];
|
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
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
if( [mpNSWindow isMiniaturized] )
|
2013-03-27 01:20:01 +02:00
|
|
|
pState->mnState = WINDOWSTATE_STATE_MINIMIZED;
|
2013-12-02 16:06:37 +00:00
|
|
|
else if( ! [mpNSWindow isZoomed] )
|
2013-03-27 01:20:01 +02:00
|
|
|
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
|
2013-03-27 01:20:01 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2008-05-30 07:04:26 +00:00
|
|
|
void AquaSalFrame::SetScreenNumber(unsigned int nScreen)
|
2008-04-07 08:07:53 +00:00
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
return;
|
|
|
|
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2008-05-30 07:04:26 +00:00
|
|
|
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
|
2013-12-02 16:06:37 +00:00
|
|
|
pScreen = [mpNSWindow screen];
|
2008-05-30 07:04:26 +00:00
|
|
|
if( pScreen )
|
|
|
|
{
|
|
|
|
NSRect aCurScreen = [pScreen frame];
|
|
|
|
if( aCurScreen.origin.x != aNewScreen.origin.x ||
|
|
|
|
aCurScreen.origin.y != aNewScreen.origin.y )
|
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
NSRect aFrameRect = [mpNSWindow frame];
|
2008-05-30 07:04:26 +00:00
|
|
|
aFrameRect.origin.x += aNewScreen.origin.x - aCurScreen.origin.x;
|
|
|
|
aFrameRect.origin.y += aNewScreen.origin.y - aCurScreen.origin.y;
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow setFrame: aFrameRect display: NO];
|
2008-05-30 07:04:26 +00:00
|
|
|
UpdateFrameGeometry();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2008-04-07 08:07:53 +00:00
|
|
|
}
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
void AquaSalFrame::SetApplicationID( const OUString &/*rApplicationID*/ )
|
2010-10-27 23:05:06 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-02-21 23:46:33 +01:00
|
|
|
void AquaSalFrame::ShowFullScreen( bool bFullScreen, sal_Int32 nDisplay )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
return;
|
|
|
|
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2014-02-21 23:46:33 +01:00
|
|
|
SAL_INFO("vcl.osx", OSL_THIS_FUNC << ": mbFullScreen=" << mbFullScreen << ", bFullScreen=" << bFullScreen);
|
2012-12-21 15:26:36 +02: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( mbFullScreen == bFullScreen )
|
|
|
|
return;
|
|
|
|
|
|
|
|
mbFullScreen = bFullScreen;
|
2012-12-21 15:26:36 +02: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( bFullScreen )
|
|
|
|
{
|
2008-01-14 15:18:51 +00:00
|
|
|
// 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);
|
|
|
|
|
2014-02-24 09:08:02 +00:00
|
|
|
NSRect aNewContentRect = NSZeroRect;
|
2008-01-14 15:18:51 +00:00
|
|
|
// 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 )
|
2013-12-02 16:06:37 +00:00
|
|
|
pScreen = [mpNSWindow screen];
|
2008-01-14 15:18:51 +00:00
|
|
|
if( pScreen == nil )
|
|
|
|
pScreen = [NSScreen mainScreen];
|
|
|
|
|
|
|
|
aNewContentRect = [pScreen frame];
|
|
|
|
}
|
2007-12-07 10:49:23 +00:00
|
|
|
|
2008-01-14 15:18:51 +00:00
|
|
|
if( bHideMenu )
|
|
|
|
[NSMenu setMenuBarVisible:NO];
|
2007-12-07 10:49:23 +00:00
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
maFullScreenRect = [mpNSWindow frame];
|
2008-03-05 16:01:43 +00:00
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow setFrame: [NSWindow frameRectForContentRect: aNewContentRect styleMask: mnStyleMask] display: mbShown ? YES : NO];
|
2008-03-05 16:01:43 +00:00
|
|
|
}
|
2007-10-09 14:16:48 +00:00
|
|
|
|
|
|
|
UpdateFrameGeometry();
|
2007-12-07 10:49:23 +00:00
|
|
|
|
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
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow setFrame: maFullScreenRect display: mbShown ? YES : NO];
|
2008-03-05 16:01:43 +00:00
|
|
|
}
|
2007-10-09 14:16:48 +00:00
|
|
|
UpdateFrameGeometry();
|
2007-12-07 10:49:23 +00:00
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
if( mbShown )
|
|
|
|
CallCallback( SALEVENT_MOVERESIZE, NULL );
|
|
|
|
|
2007-12-07 10:49:23 +00:00
|
|
|
// 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-11-01 21:12:34 +00:00
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2014-02-28 13:52:09 +02:00
|
|
|
void AquaSalFrame::StartPresentation( bool bStart )
|
2000-11-01 21:12:34 +00:00
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
return;
|
|
|
|
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2008-07-17 10:28:26 +00:00
|
|
|
if( bStart )
|
|
|
|
{
|
2011-04-06 11:56:51 +02:00
|
|
|
GetSalData()->maPresentationFrames.push_back( this );
|
2013-06-16 20:19:07 +03:00
|
|
|
IOPMAssertionCreateWithName(kIOPMAssertionTypeNoDisplaySleep,
|
|
|
|
kIOPMAssertionLevelOn,
|
|
|
|
CFSTR("LibreOffice presentation running"),
|
|
|
|
&mnAssertionID);
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow setLevel: NSPopUpMenuWindowLevel];
|
2008-07-17 10:28:26 +00:00
|
|
|
if( mbShown )
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow makeMainWindow];
|
2008-07-17 10:28:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2011-04-06 11:56:51 +02:00
|
|
|
GetSalData()->maPresentationFrames.remove( this );
|
2013-06-16 20:19:07 +03:00
|
|
|
IOPMAssertionRelease(mnAssertionID);
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow setLevel: NSNormalWindowLevel];
|
2008-07-17 10:28:26 +00:00
|
|
|
}
|
2000-11-01 21:12:34 +00:00
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2014-02-28 13:52:09 +02:00
|
|
|
void AquaSalFrame::SetAlwaysOnTop( bool )
|
2000-11-01 21:12:34 +00:00
|
|
|
{
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
2011-01-19 15:42:25 +01:00
|
|
|
void AquaSalFrame::ToTop(sal_uInt16 nFlags)
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
return;
|
|
|
|
|
2010-07-15 19:24:32 +02: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
|
|
|
if( ! (nFlags & SAL_FRAME_TOTOP_RESTOREWHENMIN) )
|
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
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 )
|
2013-12-02 16:06:37 +00:00
|
|
|
[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
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow orderFront: NSApp];
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
NSCursor* AquaSalFrame::getCurrentCursor() const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2007-10-09 14:16:48 +00:00
|
|
|
NSCursor* pCursor = nil;
|
|
|
|
switch( mePointerStyle )
|
|
|
|
{
|
2015-05-20 14:05:50 +02:00
|
|
|
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:
|
2007-10-09 14:16:48 +00:00
|
|
|
pCursor = [NSCursor resizeUpDownCursor]; break;
|
2015-05-20 14:05:50 +02:00
|
|
|
case PointerStyle::HSplit:
|
|
|
|
case PointerStyle::HSizeBar:
|
|
|
|
case PointerStyle::WindowESize:
|
|
|
|
case PointerStyle::WindowWSize:
|
2007-10-09 14:16:48 +00:00
|
|
|
pCursor = [NSCursor resizeLeftRightCursor]; break;
|
2015-05-20 14:05:50 +02:00
|
|
|
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
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
default:
|
2008-01-14 15:18:51 +00:00
|
|
|
pCursor = GetSalData()->getCursor( mePointerStyle );
|
|
|
|
if( pCursor == nil )
|
|
|
|
{
|
2011-03-01 19:08:19 +01:00
|
|
|
OSL_FAIL( "unmapped cursor" );
|
2008-01-14 15:18:51 +00:00
|
|
|
pCursor = [NSCursor arrowCursor];
|
|
|
|
}
|
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
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
void AquaSalFrame::SetPointer( PointerStyle ePointerStyle )
|
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
return;
|
|
|
|
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2015-05-20 14:05:50 +02:00
|
|
|
if( ePointerStyle == mePointerStyle )
|
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
|
|
|
|
2013-12-02 16:06:37 +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
|
|
|
{
|
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
|
2012-12-10 01:08:40 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2015-04-14 12:44:47 +02:00
|
|
|
void AquaSalFrame::Flush()
|
2008-03-05 16:01:43 +00:00
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if( !(mbGraphics && mpGraphics && mpNSView && mbShown) )
|
2008-03-05 16:01:43 +00:00
|
|
|
return;
|
|
|
|
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
[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 )
|
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSView display];
|
2008-03-05 16:01:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void AquaSalFrame::Flush( const Rectangle& rRect )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if( !(mbGraphics && mpGraphics && mpNSView && mbShown) )
|
2008-03-05 16:01:43 +00:00
|
|
|
return;
|
|
|
|
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2012-12-10 01:08:40 +02:00
|
|
|
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 );
|
2013-12-02 16:06:37 +00:00
|
|
|
[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 )
|
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSView display];
|
2008-03-05 16:01:43 +00:00
|
|
|
}
|
2000-11-01 21:12:34 +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
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if( mbGraphics && mpGraphics && mpNSView && mbShown )
|
2007-10-09 14:16:48 +00:00
|
|
|
{
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
2008-03-05 16:01:43 +00:00
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSView setNeedsDisplay: YES];
|
|
|
|
[mpNSView display];
|
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)
|
2008-05-30 07:04:26 +00:00
|
|
|
{
|
2015-05-14 12:00:19 +02:00
|
|
|
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;
|
2008-05-30 07:04:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
2015-05-14 12:00:19 +02:00
|
|
|
if(!(pContext->mnOptions & InputContextFlags::Text))
|
2007-10-09 14:16:48 +00:00
|
|
|
return;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
2015-05-26 09:30:27 +02:00
|
|
|
void AquaSalFrame::EndExtTextInput( EndExtTextInputFlags )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString AquaSalFrame::GetKeyName( sal_uInt16 nKeyCode )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2013-04-07 12:06:47 +02:00
|
|
|
static std::map< sal_uInt16, OUString > aKeyMap;
|
2007-10-09 14:16:48 +00:00
|
|
|
if( aKeyMap.empty() )
|
|
|
|
{
|
2011-01-19 15:42:25 +01:00
|
|
|
sal_uInt16 i;
|
2007-10-09 14:16:48 +00:00
|
|
|
for( i = KEY_A; i <= KEY_Z; i++ )
|
2013-04-07 12:06:47 +02:00
|
|
|
aKeyMap[ i ] = OUString( sal_Unicode( 'A' + (i - KEY_A) ) );
|
2007-10-09 14:16:48 +00:00
|
|
|
for( i = KEY_0; i <= KEY_9; i++ )
|
2013-04-07 12:06:47 +02:00
|
|
|
aKeyMap[ i ] = OUString( sal_Unicode( '0' + (i - KEY_0) ) );
|
2007-10-09 14:16:48 +00:00
|
|
|
for( i = KEY_F1; i <= KEY_F26; i++ )
|
|
|
|
{
|
2013-04-07 12:06:47 +02:00
|
|
|
OUStringBuffer aKey( 3 );
|
2013-11-13 15:59:38 +02:00
|
|
|
aKey.append( 'F' );
|
2007-10-09 14:16:48 +00:00
|
|
|
aKey.append( sal_Int32( i - KEY_F1 + 1 ) );
|
|
|
|
aKeyMap[ i ] = aKey.makeStringAndClear();
|
|
|
|
}
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
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 ) );
|
2014-12-18 13:39:25 +01:00
|
|
|
aKeyMap[ KEY_ESCAPE ] = "esc";
|
2013-04-07 12:06:47 +02:00
|
|
|
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 ) );
|
2014-12-18 13:39:25 +01:00
|
|
|
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 ] = "=";
|
2013-04-07 12:06:47 +02:00
|
|
|
aKeyMap[ KEY_OPEN ] = OUString( sal_Unicode( 0x23cf ) );
|
2014-12-18 13:39:25 +01:00
|
|
|
aKeyMap[ KEY_TILDE ] = "~";
|
|
|
|
aKeyMap[ KEY_BRACKETLEFT ] = "[";
|
|
|
|
aKeyMap[ KEY_BRACKETRIGHT ] = "]";
|
|
|
|
aKeyMap[ KEY_SEMICOLON ] = ";";
|
|
|
|
aKeyMap[ KEY_QUOTERIGHT ] = "'";
|
2007-10-09 14:16:48 +00:00
|
|
|
|
|
|
|
/* yet unmapped KEYCODES:
|
2013-04-07 12:06:47 +02:00
|
|
|
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( ) );
|
2014-05-05 19:16:54 +03:00
|
|
|
aKeyMap[ KEY_CAPSLOCK ]= OUString( sal_Unicode( ) );
|
|
|
|
aKeyMap[ KEY_NUMLOCK ]= OUString( sal_Unicode( ) );
|
|
|
|
aKeyMap[ KEY_SCROLLLOCK ]= OUString( sal_Unicode( ) );
|
2007-10-09 14:16:48 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
OUStringBuffer aResult( 16 );
|
2007-10-09 14:16:48 +00:00
|
|
|
|
2014-11-06 10:19:44 +02:00
|
|
|
sal_uInt16 nUnmodifiedCode = (nKeyCode & KEY_CODE_MASK);
|
2013-04-07 12:06:47 +02:00
|
|
|
std::map< sal_uInt16, OUString >::const_iterator it = aKeyMap.find( nUnmodifiedCode );
|
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 )
|
2008-04-17 07:03:36 +00:00
|
|
|
aResult.append( sal_Unicode( 0x2318 ) );
|
2007-10-09 14:16:48 +00:00
|
|
|
// we do not really handle Alt (see below)
|
2008-01-14 15:18:51 +00:00
|
|
|
// we map it to MOD3, whichis actually Command
|
|
|
|
if( (nKeyCode & (KEY_MOD2|KEY_MOD3)) != 0 )
|
2014-07-28 23:14:40 +02:00
|
|
|
aResult.append( sal_Unicode( 0x2325 ) );
|
2007-10-09 14:16:48 +00:00
|
|
|
|
|
|
|
aResult.append( it->second );
|
|
|
|
}
|
|
|
|
|
|
|
|
return aResult.makeStringAndClear();
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
2012-11-06 23:21:06 +00:00
|
|
|
static void getAppleScrollBarVariant(StyleSettings &rSettings)
|
2007-09-13 15:31:54 +00:00
|
|
|
{
|
|
|
|
bool bIsScrollbarDoubleMax = true; // default is DoubleMax
|
|
|
|
|
|
|
|
CFStringRef AppleScrollBarType = CFSTR("AppleScrollBarVariant");
|
2008-03-05 16:01:43 +00:00
|
|
|
if( AppleScrollBarType )
|
2007-09-13 15:31:54 +00:00
|
|
|
{
|
2015-03-29 20:04:58 +02:00
|
|
|
CFStringRef ScrollBarVariant = static_cast<CFStringRef>(CFPreferencesCopyAppValue( AppleScrollBarType, kCFPreferencesCurrentApplication ));
|
2008-03-05 16:01:43 +00:00
|
|
|
if( ScrollBarVariant )
|
2007-09-13 15:31:54 +00:00
|
|
|
{
|
2008-03-05 16:01:43 +00:00
|
|
|
if( CFGetTypeID( ScrollBarVariant ) == CFStringGetTypeID() )
|
2007-09-13 15:31:54 +00:00
|
|
|
{
|
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);
|
|
|
|
}
|
2007-09-13 15:31:54 +00:00
|
|
|
}
|
|
|
|
CFRelease( ScrollBarVariant );
|
|
|
|
}
|
|
|
|
CFRelease(AppleScrollBarType);
|
|
|
|
}
|
|
|
|
|
|
|
|
GetSalData()->mbIsScrollbarDoubleMax = bIsScrollbarDoubleMax;
|
2008-03-05 16:01:43 +00:00
|
|
|
|
|
|
|
CFStringRef jumpScroll = CFSTR("AppleScrollerPagingBehavior");
|
|
|
|
if( jumpScroll )
|
|
|
|
{
|
2015-03-29 20:04:58 +02:00
|
|
|
CFBooleanRef jumpStr = static_cast<CFBooleanRef>(CFPreferencesCopyAppValue( jumpScroll, kCFPreferencesCurrentApplication ));
|
2008-03-05 16:01:43 +00:00
|
|
|
if( jumpStr )
|
|
|
|
{
|
|
|
|
if( CFGetTypeID( jumpStr ) == CFBooleanGetTypeID() )
|
2012-11-06 23:21:06 +00:00
|
|
|
rSettings.SetPrimaryButtonWarpsSlider(jumpStr == kCFBooleanTrue);
|
2008-03-05 16:01:43 +00:00
|
|
|
CFRelease( jumpStr );
|
|
|
|
}
|
|
|
|
CFRelease( jumpScroll );
|
|
|
|
}
|
2007-09-13 15:31:54 +00:00
|
|
|
}
|
|
|
|
|
2008-01-14 15:18:51 +00:00
|
|
|
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 )
|
|
|
|
{
|
2012-09-20 00:54:36 +03:00
|
|
|
CGFloat r = 0, g = 0, b = 0, a = 0;
|
2008-01-14 15:18:51 +00:00
|
|
|
[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;
|
|
|
|
}
|
|
|
|
|
2014-09-16 10:09:58 +02:00
|
|
|
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
|
|
|
{
|
2014-09-16 10:09:58 +02:00
|
|
|
vcl::Font aResult( rDefault );
|
2008-01-14 15:18:51 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2012-09-20 00:54:36 +03:00
|
|
|
void AquaSalFrame::getResolution( sal_Int32& o_rDPIX, sal_Int32& o_rDPIY )
|
2010-02-26 20:50:25 +01:00
|
|
|
{
|
|
|
|
if( ! mpGraphics )
|
|
|
|
{
|
2014-02-15 19:51:04 +11:00
|
|
|
AcquireGraphics();
|
2010-02-26 20:50:25 +01:00
|
|
|
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
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
return;
|
|
|
|
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
[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 );
|
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 );
|
2008-04-04 09:59:30 +00:00
|
|
|
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
|
2014-09-16 10:09:58 +02:00
|
|
|
vcl::Font aAppFont = aStyleSettings.GetAppFont();
|
2012-09-20 00:54:36 +03:00
|
|
|
sal_Int32 nDPIX = 72, nDPIY = 72;
|
2010-02-26 20:50:25 +01:00
|
|
|
getResolution( nDPIX, nDPIY );
|
2008-01-14 15:18:51 +00:00
|
|
|
aAppFont = getFont( [NSFont systemFontOfSize: 0], nDPIY, aAppFont );
|
|
|
|
|
2015-05-20 14:46:54 +02:00
|
|
|
aStyleSettings.SetToolbarIconSize( ToolbarIconSize::Large );
|
2010-11-25 00:25:02 +01:00
|
|
|
|
2013-12-05 22:01:05 +02:00
|
|
|
// TODO: better mapping of OS X<->LibreOffice font settings
|
2008-01-14 15:18:51 +00:00
|
|
|
aStyleSettings.SetAppFont( aAppFont );
|
|
|
|
aStyleSettings.SetHelpFont( aAppFont );
|
|
|
|
aStyleSettings.SetPushButtonFont( aAppFont );
|
|
|
|
|
2014-09-16 10:09:58 +02:00
|
|
|
vcl::Font aTitleFont( getFont( [NSFont titleBarFontOfSize: 0], nDPIY, aAppFont ) );
|
2008-01-14 15:18:51 +00:00
|
|
|
aStyleSettings.SetTitleFont( aTitleFont );
|
|
|
|
aStyleSettings.SetFloatTitleFont( aTitleFont );
|
|
|
|
|
2014-09-16 10:09:58 +02:00
|
|
|
vcl::Font aMenuFont( getFont( [NSFont menuFontOfSize: 0], nDPIY, aAppFont ) );
|
2008-01-14 15:18:51 +00:00
|
|
|
aStyleSettings.SetMenuFont( aMenuFont );
|
|
|
|
|
|
|
|
aStyleSettings.SetToolFont( aAppFont );
|
|
|
|
|
2014-09-16 10:09:58 +02:00
|
|
|
vcl::Font aLabelFont( getFont( [NSFont labelFontOfSize: 0], nDPIY, aAppFont ) );
|
2008-01-14 15:18:51 +00:00
|
|
|
aStyleSettings.SetLabelFont( aLabelFont );
|
|
|
|
aStyleSettings.SetInfoFont( aLabelFont );
|
|
|
|
aStyleSettings.SetRadioCheckFont( aLabelFont );
|
|
|
|
aStyleSettings.SetFieldFont( aLabelFont );
|
|
|
|
aStyleSettings.SetGroupFont( aLabelFont );
|
2015-04-27 21:04:07 +01:00
|
|
|
aStyleSettings.SetTabFont( aLabelFont );
|
2008-01-14 15:18:51 +00:00
|
|
|
aStyleSettings.SetIconFont( aLabelFont );
|
|
|
|
|
|
|
|
Color aHighlightColor( getColor( [NSColor selectedTextBackgroundColor],
|
2013-12-02 16:06:37 +00:00
|
|
|
aStyleSettings.GetHighlightColor(), mpNSWindow ) );
|
2008-01-14 15:18:51 +00:00
|
|
|
aStyleSettings.SetHighlightColor( aHighlightColor );
|
|
|
|
Color aHighlightTextColor( getColor( [NSColor selectedTextColor],
|
2013-12-02 16:06:37 +00:00
|
|
|
aStyleSettings.GetHighlightTextColor(), mpNSWindow ) );
|
2008-01-14 15:18:51 +00:00
|
|
|
aStyleSettings.SetHighlightTextColor( aHighlightTextColor );
|
|
|
|
|
|
|
|
Color aMenuHighlightColor( getColor( [NSColor selectedMenuItemColor],
|
2013-12-02 16:06:37 +00:00
|
|
|
aStyleSettings.GetMenuHighlightColor(), mpNSWindow ) );
|
2008-01-14 15:18:51 +00:00
|
|
|
aStyleSettings.SetMenuHighlightColor( aMenuHighlightColor );
|
|
|
|
Color aMenuHighlightTextColor( getColor( [NSColor selectedMenuItemTextColor],
|
2013-12-02 16:06:37 +00:00
|
|
|
aStyleSettings.GetMenuHighlightTextColor(), mpNSWindow ) );
|
2008-01-14 15:18:51 +00:00
|
|
|
aStyleSettings.SetMenuHighlightTextColor( aMenuHighlightTextColor );
|
|
|
|
|
|
|
|
aStyleSettings.SetMenuColor( aBackgroundColor );
|
|
|
|
Color aMenuTextColor( getColor( [NSColor textColor],
|
2013-12-02 16:06:37 +00:00
|
|
|
aStyleSettings.GetMenuTextColor(), mpNSWindow ) );
|
2008-01-14 15:18:51 +00:00
|
|
|
aStyleSettings.SetMenuTextColor( aMenuTextColor );
|
2009-09-08 10:44:42 +00:00
|
|
|
aStyleSettings.SetMenuBarTextColor( aMenuTextColor );
|
2013-05-17 11:00:39 +00:00
|
|
|
aStyleSettings.SetMenuBarRolloverTextColor( aMenuTextColor );
|
2015-05-15 17:19:24 +01:00
|
|
|
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 );
|
|
|
|
|
2013-12-05 22:01:05 +02:00
|
|
|
// no mnemonics on OS X
|
2015-05-20 14:46:54 +02:00
|
|
|
aStyleSettings.SetOptions( aStyleSettings.GetOptions() | StyleSettingsOptions::NoMnemonics );
|
2007-08-03 13:03:49 +00:00
|
|
|
|
2012-11-06 23:21:06 +00:00
|
|
|
getAppleScrollBarVariant(aStyleSettings);
|
2007-09-13 15:31:54 +00:00
|
|
|
|
2008-03-05 16:01:43 +00:00
|
|
|
// set scrollbar size
|
2014-06-03 10:21:38 +03:00
|
|
|
aStyleSettings.SetScrollBarSize( static_cast<long int>([NSScroller scrollerWidthForControlSize:NSRegularControlSize scrollerStyle:NSScrollerStyleLegacy]) );
|
2009-04-14 17:47:15 +00:00
|
|
|
// images in menus false for MacOSX
|
2010-10-01 20:40:46 +01:00
|
|
|
aStyleSettings.SetPreferredUseImagesInMenus( false );
|
2014-02-21 23:46:33 +01:00
|
|
|
aStyleSettings.SetHideDisabledMenuItems( true );
|
|
|
|
aStyleSettings.SetAcceleratorsInContextMenus( false );
|
2009-04-14 17:47:15 +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
|
|
|
rSettings.SetStyleSettings( aStyleSettings );
|
2008-03-05 16:01:43 +00:00
|
|
|
|
2014-02-04 18:50:27 +01:00
|
|
|
// don't draw frame around each and every toolbar
|
|
|
|
ImplGetSVData()->maNWFData.mbDockingAreaAvoidTBFrames = true;
|
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
[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
|
|
|
}
|
|
|
|
|
2013-03-30 14:55:24 +01:00
|
|
|
void AquaSalFrame::Beep()
|
|
|
|
{
|
|
|
|
NSBeep();
|
|
|
|
}
|
|
|
|
|
2011-01-19 15:42:25 +01:00
|
|
|
void AquaSalFrame::SetPosSize(long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags)
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
return;
|
|
|
|
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2011-01-19 15:42:25 +01:00
|
|
|
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
|
|
|
|
2013-12-02 16:06:37 +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;
|
|
|
|
}
|
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
NSRect aFrameRect = [mpNSWindow frame];
|
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
|
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 )
|
2007-10-09 14:16:48 +00:00
|
|
|
{
|
2015-04-01 16:23:59 +02: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
|
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
|
|
|
}
|
2013-12-02 16:06:37 +00:00
|
|
|
NSRect aParentFrameRect = [mpParent->mpNSWindow frame];
|
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
|
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
|
|
|
|
2007-08-03 13:03:49 +00:00
|
|
|
bool bPaint = false;
|
|
|
|
if( (nFlags & (SAL_FRAME_POSSIZE_WIDTH | SAL_FRAME_POSSIZE_HEIGHT)) != 0 )
|
|
|
|
{
|
2007-10-09 14:16:48 +00:00
|
|
|
if( nWidth != aContentRect.size.width || nHeight != aContentRect.size.height )
|
2007-08-03 13:03:49 +00:00
|
|
|
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
|
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;
|
2007-08-03 13:03:49 +00:00
|
|
|
|
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;
|
2007-08-03 13:03:49 +00:00
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
VCLToCocoa( aContentRect );
|
2007-08-03 13:03:49 +00:00
|
|
|
|
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
|
|
|
{
|
2013-12-02 16:06:37 +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);
|
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
if( mbShown && bPaint )
|
2008-07-01 22:08:20 +00:00
|
|
|
{
|
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
|
|
|
|
2008-07-01 22:08:20 +00:00
|
|
|
// now inform the system that the views need to be drawn
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow display];
|
2008-07-01 22:08:20 +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::GetWorkArea( Rectangle& rRect )
|
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
return;
|
|
|
|
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
NSScreen* pScreen = [mpNSWindow screen];
|
2008-01-14 15:18:51 +00:00
|
|
|
if( pScreen == nil )
|
|
|
|
pScreen = [NSScreen mainScreen];
|
|
|
|
NSRect aRect = [pScreen visibleFrame];
|
2007-10-09 14:16:48 +00:00
|
|
|
CocoaToVCL( aRect );
|
2012-10-28 23:23:53 +01:00
|
|
|
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()
|
|
|
|
{
|
2010-07-23 16:31:08 +02: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
|
|
|
SalPointerState state;
|
2010-03-25 18:16:13 +01:00
|
|
|
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
|
2013-12-02 16:06:37 +00:00
|
|
|
NSPoint aPt = [mpNSWindow mouseLocationOutsideOfEventStream];
|
2007-10-09 14:16:48 +00:00
|
|
|
CocoaToVCL( aPt, false );
|
2008-01-14 15:18:51 +00:00
|
|
|
state.maPos = Point(static_cast<long>(aPt.x), static_cast<long>(aPt.y));
|
2007-10-09 14:16:48 +00:00
|
|
|
|
2010-03-25 18:16:13 +01: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;
|
|
|
|
}
|
|
|
|
|
2014-12-31 18:39:32 +02:00
|
|
|
KeyIndicatorState AquaSalFrame::GetIndicatorState()
|
2010-09-29 16:21:04 -04:00
|
|
|
{
|
2014-12-31 18:39:32 +02:00
|
|
|
return KeyIndicatorState::NONE;
|
2010-09-29 16:21:04 -04:00
|
|
|
}
|
|
|
|
|
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*/ )
|
2010-09-29 16:21:04 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
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
|
2014-02-21 23:46:33 +01:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2014-08-23 22:22:32 +03: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;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
{
|
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
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
void AquaSalFrame::SetMenu( SalMenu* pSalMenu )
|
|
|
|
{
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
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 )
|
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
{
|
2010-07-23 16:31:08 +02: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) )
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow setDocumentEdited: (nStyle & SAL_FRAME_EXT_STYLE_DOCMODIFIED) ? YES : NO];
|
2010-12-10 13:05:43 +01:00
|
|
|
}
|
|
|
|
|
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 )
|
|
|
|
{
|
2007-10-09 14:16:48 +00:00
|
|
|
bool bShown = mbShown;
|
|
|
|
// remove from child list
|
|
|
|
Show( FALSE );
|
2014-12-04 08:47:31 +01:00
|
|
|
mpParent = static_cast<AquaSalFrame*>(pNewParent);
|
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()
|
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2008-01-14 15:18:51 +00:00
|
|
|
// update screen rect
|
2013-12-02 16:06:37 +00:00
|
|
|
NSScreen * pScreen = [mpNSWindow screen];
|
2008-01-14 15:18:51 +00:00
|
|
|
if( pScreen )
|
2008-05-30 07:04:26 +00:00
|
|
|
{
|
2008-01-14 15:18:51 +00:00
|
|
|
maScreenRect = [pScreen frame];
|
2008-05-30 07:04:26 +00:00
|
|
|
NSArray* pScreens = [NSScreen screens];
|
2008-07-01 22:08:20 +00:00
|
|
|
if( pScreens )
|
2012-01-14 23:25:55 +00:00
|
|
|
maGeometry.nDisplayScreenNumber = [pScreens indexOfObject: pScreen];
|
2008-05-30 07:04:26 +00:00
|
|
|
}
|
2008-01-14 15:18:51 +00:00
|
|
|
|
2013-12-02 16:06:37 +00:00
|
|
|
NSRect aFrameRect = [mpNSWindow frame];
|
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
|
|
|
|
2007-10-09 14:16:48 +00:00
|
|
|
// release old track rect
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSView removeTrackingRect: mnTrackingRectTag];
|
2007-10-09 14:16:48 +00:00
|
|
|
// install the new track rect
|
2014-02-24 09:08:02 +00:00
|
|
|
NSRect aTrackRect = { NSZeroPoint, aContentRect.size };
|
2013-12-02 16:06:37 +00:00
|
|
|
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
|
|
|
|
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
|
|
|
|
2008-01-14 15:18:51 +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
|
|
|
|
2008-01-14 15:18:51 +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
|
|
|
|
2008-01-14 15:18:51 +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
|
|
|
|
2008-01-14 15:18:51 +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
|
|
|
}
|
|
|
|
|
2014-02-28 13:52:09 +02:00
|
|
|
void AquaSalFrame::CaptureMouse( bool bCapture )
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
}
|
|
|
|
|
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
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2008-01-14 15:18:51 +00:00
|
|
|
// 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
|
|
|
|
2013-12-02 16:06:37 +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
|
|
|
{
|
2013-12-02 16:06:37 +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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-01-19 15:42:25 +01:00
|
|
|
void AquaSalFrame::BeginSetClipRegion( sal_uLong nRects )
|
2007-10-09 14:16:48 +00:00
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2008-01-14 15:18:51 +00:00
|
|
|
// 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
|
|
|
{
|
2008-01-14 15:18:51 +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
|
|
|
}
|
|
|
|
|
2008-01-14 15:18:51 +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
|
|
|
{
|
2008-01-14 15:18:51 +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
|
|
|
}
|
2008-01-14 15:18:51 +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
|
|
|
}
|
|
|
|
|
2008-01-14 15:18:51 +00:00
|
|
|
void AquaSalFrame::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
|
2007-10-09 14:16:48 +00:00
|
|
|
{
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2008-01-14 15:18:51 +00:00
|
|
|
if( nWidth && nHeight )
|
2008-08-18 12:29:17 +00:00
|
|
|
{
|
2012-12-10 01:08:40 +02:00
|
|
|
NSRect aRect = { { static_cast<CGFloat>(nX), static_cast<CGFloat>(nY) }, { static_cast<CGFloat>(nWidth), static_cast<CGFloat>(nHeight) } };
|
2008-08-18 12:29:17 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2008-01-14 15:18:51 +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
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
if ( !mpNSWindow )
|
2010-12-10 13:05:43 +01:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2010-07-23 16:31:08 +02:00
|
|
|
// #i113170# may not be the main thread if called from UNO API
|
|
|
|
SalData::ensureThreadAutoreleasePool();
|
|
|
|
|
2008-01-14 15:18:51 +00:00
|
|
|
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
|
|
|
{
|
2008-01-14 15:18:51 +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
|
|
|
}
|
2013-12-02 16:06:37 +00:00
|
|
|
if( mpNSView && mbShown )
|
|
|
|
[mpNSView setNeedsDisplay: YES];
|
|
|
|
if( mpNSWindow )
|
2007-10-09 14:16:48 +00:00
|
|
|
{
|
2013-12-02 16:06:37 +00:00
|
|
|
[mpNSWindow setOpaque: (mrClippingPath != NULL) ? NO : YES];
|
|
|
|
[mpNSWindow setBackgroundColor: [NSColor clearColor]];
|
2008-01-14 15:18:51 +00:00
|
|
|
// shadow is invalidated when view gets drawn again
|
2007-10-09 14:16:48 +00:00
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
2007-10-09 14:16:48 +00:00
|
|
|
|
2010-10-14 08:27:31 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|