summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-10-09 14:22:43 +0000
committerKurt Zenker <kz@openoffice.org>2007-10-09 14:22:43 +0000
commit5696ec0b082f4525bfb40251389950b84fe0045f (patch)
tree0d1f4f80a487eb96144f50bf7b70db91ae44a2fb /basctl
parentf6d2887c7c25267866e020cd43fe80b813bf661f (diff)
INTEGRATION: CWS basmgr03 (1.12.12); FILE MERGED
2007/09/24 11:07:20 fs 1.12.12.3: during #i81767# +GetLibraryType 2007/07/31 08:52:40 fs 1.12.12.2: #i73331# +onDocumentModeChanged 2007/07/30 13:40:00 fs 1.12.12.1: #i73331# be a DocumentEventListener, which is independent from SFX notifications, but works with the GlobalEventBroadcaster instead
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/bastype2.hxx29
1 files changed, 22 insertions, 7 deletions
diff --git a/basctl/source/basicide/bastype2.hxx b/basctl/source/basicide/bastype2.hxx
index 704fdc9c5126..a9410fe9b1a3 100644
--- a/basctl/source/basicide/bastype2.hxx
+++ b/basctl/source/basicide/bastype2.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: bastype2.hxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: obo $ $Date: 2007-03-15 15:55:20 $
+ * last change: $Author: kz $ $Date: 2007-10-09 15:22:43 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -35,6 +35,8 @@
#ifndef _BASTYPE2_HXX
#define _BASTYPE2_HXX
+#include "doceventnotifier.hxx"
+
#include <memory>
#ifndef _SOLAR_H
@@ -163,10 +165,12 @@ public:
******************************************/
-class BasicTreeListBox : public SvTreeListBox, public SfxListener
+class BasicTreeListBox :public SvTreeListBox
+ ,public ::basctl::DocumentEventListener
{
private:
- USHORT nMode;
+ USHORT nMode;
+ ::basctl::DocumentEventNotifier m_aNotifier;
void SetEntryBitmaps( SvLBoxEntry * pEntry, const Image& rImage, const Image& rImageHC );
@@ -180,8 +184,16 @@ protected:
void ImpCreateLibEntries( SvLBoxEntry* pShellRootEntry, const ScriptDocument& rDocument, LibraryLocation eLocation );
void ImpCreateLibSubEntries( SvLBoxEntry* pLibRootEntry, const ScriptDocument& rDocument, const String& rLibName );
- using Control::Notify;
- virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, const SfxHint& rHint, const TypeId& rHintType );
+ // DocumentEventListener
+ virtual void onDocumentCreated( const ScriptDocument& _rDocument );
+ virtual void onDocumentOpened( const ScriptDocument& _rDocument );
+ virtual void onDocumentSave( const ScriptDocument& _rDocument );
+ virtual void onDocumentSaveDone( const ScriptDocument& _rDocument );
+ virtual void onDocumentSaveAs( const ScriptDocument& _rDocument );
+ virtual void onDocumentSaveAsDone( const ScriptDocument& _rDocument );
+ virtual void onDocumentClosed( const ScriptDocument& _rDocument );
+ virtual void onDocumentTitleChanged( const ScriptDocument& _rDocument );
+ virtual void onDocumentModeChanged( const ScriptDocument& _rDocument );
public:
BasicTreeListBox( Window* pParent, const ResId& rRes );
@@ -212,10 +224,13 @@ public:
SvLBoxEntry* pParent, bool bChildrenOnDemand,
std::auto_ptr< BasicEntry > aUserData );
- String GetRootEntryName( const ScriptDocument& rDocument, LibraryLocation eLocation );
+ String GetRootEntryName( const ScriptDocument& rDocument, LibraryLocation eLocation ) const;
void GetRootEntryBitmaps( const ScriptDocument& rDocument, Image& rImage, Image& rImageHC );
void SetCurrentEntry( BasicEntryDescriptor& rDesc );
+
+private:
+ LibraryType GetLibraryType() const;
};
#endif // _BASTYPE2_HXX