summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/baside3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basctl/source/basicide/baside3.cxx')
-rw-r--r--basctl/source/basicide/baside3.cxx21
1 files changed, 9 insertions, 12 deletions
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx
index 528e3acc9133..0f4c9b7463ab 100644
--- a/basctl/source/basicide/baside3.cxx
+++ b/basctl/source/basicide/baside3.cxx
@@ -1415,6 +1415,15 @@ DialogWindowLayout::DialogWindowLayout (Window* pParent, ObjectCatalog& rObjectC
ShowPropertyBrowser();
}
+DialogWindowLayout::~DialogWindowLayout()
+{
+ if (pPropertyBrowser != 0)
+ {
+ Remove(pPropertyBrowser);
+ delete pPropertyBrowser;
+ }
+}
+
// shows the property browser (and creates if necessary)
void DialogWindowLayout::ShowPropertyBrowser ()
{
@@ -1451,18 +1460,6 @@ void DialogWindowLayout::UpdatePropertyBrowser ()
pPropertyBrowser->Update(GetShell());
}
-// Removes the property browser from the layout.
-// Called by PropBrw when closed. It'll destroy itself.
-void DialogWindowLayout::RemovePropertyBrowser ()
-{
- if (pPropertyBrowser)
- Remove(pPropertyBrowser);
- pPropertyBrowser = 0;
- // refreshing the button state
- if (SfxBindings* pBindings = GetBindingsPtr())
- pBindings->Invalidate(SID_SHOW_PROPERTYBROWSER);
-}
-
void DialogWindowLayout::Activating (BaseWindow& rChild)
{
assert(dynamic_cast<DialogWindow*>(&rChild));