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
commitb1fa0d8d431b2f08f5718600da401d622b65c96d (patch)
treee9d2b74bf17b9d3a940b611606340d121aef8780 /basic
parentf5fb701cc5904e524b86414aa7c8c4870c961049 (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 95a1f8c98564..df6d8f5cf1d2 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