summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-08-27 14:58:02 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-08-27 14:58:02 +0000
commit0c713943a32e26622c0478851a8885c94ede7d5a (patch)
tree91694ed7417a498a1e957223bf6237ba9b2529dc /basic
parent250717f4a881b4592582f240dbcc10db5f3bffd8 (diff)
INTEGRATION: CWS ab60_DEV300 (1.6.22); FILE MERGED
2008/08/18 14:49:49 ab 1.6.22.1: #i92867# ScriptSubPackageIterator to support multiple extension libraries
Diffstat (limited to 'basic')
-rw-r--r--basic/source/inc/namecont.hxx37
1 files changed, 29 insertions, 8 deletions
diff --git a/basic/source/inc/namecont.hxx b/basic/source/inc/namecont.hxx
index 2d81bc559b..4c2b438543 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.6 $
+ * $Revision: 1.7 $
*
* This file is part of OpenOffice.org.
*
@@ -656,6 +656,28 @@ protected:
};
//===================================================================
+class ScriptSubPackageIterator
+{
+ com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > m_xMainPackage;
+
+ bool m_bIsValid;
+ bool m_bIsBundle;
+
+ com::sun::star::uno::Sequence< com::sun::star::uno::Reference
+ < com::sun::star::deployment::XPackage > > m_aSubPkgSeq;
+ sal_Int32 m_nSubPkgCount;
+ sal_Int32 m_iNextSubPkg;
+
+ com::sun::star::uno::Reference< com::sun::star::deployment::XPackage >
+ implDetectScriptPackage( const com::sun::star::uno::Reference
+ < com::sun::star::deployment::XPackage > xPackage, bool& rbPureDialogLib );
+
+public:
+ ScriptSubPackageIterator( com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > xMainPackage );
+
+ com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > getNextScriptSubPackage( bool& rbPureDialogLib );
+};
+
enum IteratorState
{
USER_EXTENSIONS,
@@ -672,16 +694,13 @@ public:
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::deployment::XPackage >
+ implGetNextUserScriptPackage( bool& rbPureDialogLib );
+ com::sun::star::uno::Reference< com::sun::star::deployment::XPackage >
+ implGetNextSharedScriptPackage( bool& rbPureDialogLib );
com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > m_xContext;
@@ -698,6 +717,8 @@ protected:
int m_iUserPackage;
int m_iSharedPackage;
+ ScriptSubPackageIterator* m_pScriptSubPackageIterator;
+
}; // end class ScriptExtensionIterator