diff options
author | Thomas Benisch <tbe@openoffice.org> | 2002-04-25 08:34:09 +0000 |
---|---|---|
committer | Thomas Benisch <tbe@openoffice.org> | 2002-04-25 08:34:09 +0000 |
commit | a30b23d7470b915da21bc1d43777459dc8974da2 (patch) | |
tree | 44238c1cd6219d83b37295ece4d22a365e9b56e3 /basctl/source/basicide/objdlg.cxx | |
parent | ea80809eb68e014355a33f6b139fb80a6d07551f (diff) |
#98696# ACC: Unable to use the Object Catalog without mouse
Diffstat (limited to 'basctl/source/basicide/objdlg.cxx')
-rw-r--r-- | basctl/source/basicide/objdlg.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/basctl/source/basicide/objdlg.cxx b/basctl/source/basicide/objdlg.cxx index 3820f0154b16..3fbc5f8a70f1 100644 --- a/basctl/source/basicide/objdlg.cxx +++ b/basctl/source/basicide/objdlg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: objdlg.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: tbe $ $Date: 2001-10-11 13:41:28 $ + * last change: $Author: tbe $ $Date: 2002-04-25 09:34:09 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -70,6 +70,9 @@ #ifndef _SV_CMDEVT_HXX #include <vcl/cmdevt.hxx> #endif +#ifndef _SV_TASKPANELIST_HXX +#include <vcl/taskpanelist.hxx> +#endif #include <vcl/sound.hxx> #include <objdlg.hrc> #include <objdlg.hxx> @@ -196,8 +199,15 @@ ObjectCatalog::ObjectCatalog( Window * pParent ) SetOutputSizePixel( aSize ); Resize(); // damit der Resize-Handler die Controls anordnet + + // make object catalog keyboard accessible + pParent->GetSystemWindow()->GetTaskPaneList()->AddWindow( this ); } +ObjectCatalog::~ObjectCatalog() +{ + GetParent()->GetSystemWindow()->GetTaskPaneList()->RemoveWindow( this ); +} void __EXPORT ObjectCatalog::Move() { |