summaryrefslogtreecommitdiff
path: root/package/source/xstor/xstorage.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'package/source/xstor/xstorage.hxx')
-rw-r--r--package/source/xstor/xstorage.hxx28
1 files changed, 25 insertions, 3 deletions
diff --git a/package/source/xstor/xstorage.hxx b/package/source/xstor/xstorage.hxx
index c0e69de91cf6..5e954193a290 100644
--- a/package/source/xstor/xstorage.hxx
+++ b/package/source/xstor/xstorage.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xstorage.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: hr $ $Date: 2004-05-10 17:29:11 $
+ * last change: $Author: hr $ $Date: 2004-07-23 11:13:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -180,7 +180,27 @@ typedef ::std::list< SotElement_Impl* > SotElementList_Impl;
// Main storage implementation
class OStorage;
-typedef ::std::list< OStorage* > OStorageList_Impl;
+
+struct StorageHolder_Impl
+{
+ OStorage* m_pPointer;
+ ::com::sun::star::uno::WeakReference< ::com::sun::star::embed::XStorage > m_xWeakRef;
+
+ StorageHolder_Impl( OStorage* pStorage )
+ : m_pPointer( pStorage )
+ , m_xWeakRef( ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >(
+ (::com::sun::star::embed::XStorage*)pStorage ) )
+ {
+ }
+
+ StorageHolder_Impl( const StorageHolder_Impl& aSH )
+ : m_pPointer( aSH.m_pPointer )
+ , m_xWeakRef( aSH.m_xWeakRef )
+ {
+ }
+};
+
+typedef ::std::list< StorageHolder_Impl > OStorageList_Impl;
struct OStorage_Impl
{
@@ -349,6 +369,8 @@ public:
void ChildIsDisposed( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xChild );
+ sal_Int32 GetRefCount_Impl() { return m_refCount; }
+
//____________________________________________________________________________________________________
// XInterface
//____________________________________________________________________________________________________