summaryrefslogtreecommitdiff
path: root/basic/source/inc/namecont.hxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-07-07 10:59:05 +0000
committerRüdiger Timm <rt@openoffice.org>2008-07-07 10:59:05 +0000
commitd27a8a2f94cf0f40189ba76f086499538f06cec3 (patch)
treea929f529adc9e45e54a9109d689db5c1670fa1a9 /basic/source/inc/namecont.hxx
parent9aff5bfafccfe7452de999c8558c5173234af94d (diff)
INTEGRATION: CWS ab53 (1.4.26); FILE MERGED
2008/06/25 15:33:08 ab 1.4.26.1: #i70283# #i80433# Changed Basic/Dialog extension handling
Diffstat (limited to 'basic/source/inc/namecont.hxx')
-rw-r--r--basic/source/inc/namecont.hxx53
1 files changed, 51 insertions, 2 deletions
diff --git a/basic/source/inc/namecont.hxx b/basic/source/inc/namecont.hxx
index bc50152d7459..95a1f8c98564 100644
--- a/basic/source/inc/namecont.hxx
+++ b/basic/source/inc/namecont.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: namecont.hxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
@@ -57,6 +57,7 @@
#include <cppuhelper/basemutex.hxx>
#include <sot/storage.hxx>
#include <xmlscript/xmllib_imexp.hxx>
+#include <com/sun/star/deployment/XPackage.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/compbase6.hxx>
@@ -171,7 +172,6 @@ public:
virtual void SAL_CALL removeContainerListener( const ::com::sun::star::uno::Reference<
::com::sun::star::container::XContainerListener >& xListener )
throw (::com::sun::star::uno::RuntimeException);
-
};
//============================================================================
@@ -358,6 +358,8 @@ protected:
private:
sal_Bool init_Impl( const ::rtl::OUString& rInitialDocumentURL,
const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& _rxInitialStorage );
+ void implScanExtensions( void );
+
public:
SfxLibraryContainer( void );
~SfxLibraryContainer();
@@ -553,6 +555,7 @@ private:
::rtl::OUString maPassword;
sal_Bool mbSharedIndexFile;
+ sal_Bool mbExtension;
// Additional functionality for localisation
// Provide modify state including resources
@@ -652,6 +655,52 @@ protected:
virtual bool SAL_CALL isLibraryElementValid( ::com::sun::star::uno::Any aElement ) const = 0;
};
+//===================================================================
+enum IteratorState
+{
+ USER_EXTENSIONS,
+ SHARED_EXTENSIONS,
+ END_REACHED
+};
+
+class ScriptExtensionIterator
+{
+public:
+ ScriptExtensionIterator( void );
+ rtl::OUString nextBasicOrDialogLibrary( bool& rbPureDialogLib );
+
+private:
+ com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > implGetScriptPackageFromPackage
+ ( const com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > xPackage,
+ com::sun::star::uno::Reference< com::sun::star::deployment::XPackage >& o_xParentPackageBundle,
+ bool& rbPureDialogLib );
+
+protected:
+ com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > implGetNextUserScriptPackage
+ ( com::sun::star::uno::Reference< com::sun::star::deployment::XPackage >& o_xParentPackageBundle,
+ bool& rbPureDialogLib );
+ com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > implGetNextSharedScriptPackage
+ ( com::sun::star::uno::Reference< com::sun::star::deployment::XPackage >& o_xParentPackageBundle,
+ bool& rbPureDialogLib );
+
+ com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > m_xContext;
+
+ IteratorState m_eState;
+
+ com::sun::star::uno::Sequence< com::sun::star::uno::Reference
+ < com::sun::star::deployment::XPackage > > m_aUserPackagesSeq;
+ bool m_bUserPackagesLoaded;
+
+ com::sun::star::uno::Sequence< com::sun::star::uno::Reference
+ < com::sun::star::deployment::XPackage > > m_aSharedPackagesSeq;
+ bool m_bSharedPackagesLoaded;
+
+ int m_iUserPackage;
+ int m_iSharedPackage;
+
+}; // end class ScriptExtensionIterator
+
+
} // namespace basic