summaryrefslogtreecommitdiffstats
path: root/vcl/source/window/taskpanelist.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-03-18 16:52:48 +0000
committerKurt Zenker <kz@openoffice.org>2005-03-18 16:52:48 +0000
commit4c5b46d26fc0bc271c2c0f95ad49d63627396afa (patch)
treec07719febc50675ebdaca90f9a326d576b29079e /vcl/source/window/taskpanelist.cxx
parentINTEGRATION: CWS vcl36 (1.40.10); FILE MERGED (diff)
downloadcore-4c5b46d26fc0bc271c2c0f95ad49d63627396afa.tar.gz
core-4c5b46d26fc0bc271c2c0f95ad49d63627396afa.zip
INTEGRATION: CWS vcl36 (1.16.92); FILE MERGED
2005/02/11 07:23:15 dv 1.16.92.1: #i42067# Support for looking for deleted windows in TaskPanelList
Diffstat (limited to 'vcl/source/window/taskpanelist.cxx')
-rw-r--r--vcl/source/window/taskpanelist.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/vcl/source/window/taskpanelist.cxx b/vcl/source/window/taskpanelist.cxx
index 31ea1a502cc2..733c46c32bc5 100644
--- a/vcl/source/window/taskpanelist.cxx
+++ b/vcl/source/window/taskpanelist.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: taskpanelist.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: pjunck $ $Date: 2004-10-22 12:14:28 $
+ * last change: $Author: kz $ $Date: 2005-03-18 17:52:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -211,6 +211,18 @@ void TaskPaneList::RemoveWindow( Window *pWindow )
// --------------------------------------------------
+BOOL TaskPaneList::IsInList( Window *pWindow )
+{
+ ::std::vector< Window* >::iterator p;
+ p = ::std::find( mTaskPanes.begin(), mTaskPanes.end(), pWindow );
+ if( p != mTaskPanes.end() )
+ return TRUE;
+ else
+ return FALSE;
+}
+
+// --------------------------------------------------
+
BOOL TaskPaneList::HandleKeyEvent( KeyEvent aKeyEvent )
{