summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2002-07-18 07:04:31 +0000
committerStephan Schäfer <ssa@openoffice.org>2002-07-18 07:04:31 +0000
commit8578c8d1dfe78b7595ba53c7937679f7ea1c7d97 (patch)
tree461a63c9263cfc60cb8709ec567f3ccd1f127dbd /vcl/source/window
parent8a42b215528278972debf0ac46ea78ad3eaae7d6 (diff)
#101115# support extended toolkit methods
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/window.cxx17
-rw-r--r--vcl/source/window/winproc.cxx9
2 files changed, 22 insertions, 4 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 69bcf4940735..3a9b3f0ee393 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: window.cxx,v $
*
- * $Revision: 1.114 $
+ * $Revision: 1.115 $
*
- * last change: $Author: ssa $ $Date: 2002-07-16 08:58:52 $
+ * last change: $Author: ssa $ $Date: 2002-07-18 08:04:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -4857,6 +4857,9 @@ void Window::ImplCallEventListeners( ULONG nEvent, void* pData )
{
VclWindowEvent aEvent( this, nEvent, pData );
+ ImplSVData* pSVData = ImplGetSVData();
+ pSVData->mpApp->ImplCallEventListeners( &aEvent );
+
if ( !maEventListeners.empty() )
maEventListeners.Call( &aEvent );
@@ -8130,3 +8133,13 @@ BOOL Window::IsScrollable() const
}
return false;
}
+
+BOOL Window::IsTopWindow() const
+{
+ // check for decorated frames
+ if( mbFrame && (mnStyle & (WB_MOVEABLE | WB_CLOSEABLE | WB_SIZEABLE)) )
+ return TRUE;
+ else
+ return FALSE;
+}
+
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index e78d31040d6d..06b0a85dd594 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: winproc.cxx,v $
*
- * $Revision: 1.55 $
+ * $Revision: 1.56 $
*
- * last change: $Author: ssa $ $Date: 2002-07-03 09:08:50 $
+ * last change: $Author: ssa $ $Date: 2002-07-18 08:04:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -963,6 +963,11 @@ static long ImplHandleKey( Window* pWindow, USHORT nSVEvent,
KeyCode aKeyCode( nKeyCode, nKeyCode );
USHORT nCode = aKeyCode.GetCode();
+ // allow application key listeners to remove the key event
+ KeyEvent aKeyEvent( (xub_Unicode)nCharCode, aKeyCode, nRepeat );
+ if( pSVData->mpApp->HandleKey( nSVEvent, pWindow, &aKeyEvent ) )
+ return 1;
+
BOOL bCtrlF6 = (aKeyCode.GetCode() == KEY_F6) && aKeyCode.IsMod1();
// determine last input time