summaryrefslogtreecommitdiff
path: root/sc/source/filter/inc/xlroot.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-06 16:33:19 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-07 11:05:04 +0200
commitdc47b2e5136f0f767273dc5fdba5c822575e194b (patch)
tree128ac4f7f3aca38d0928b76e529ae7fae021f7c3 /sc/source/filter/inc/xlroot.hxx
parente14b7660f622a83fe97635649674ade05fe1eb72 (diff)
Unwind SotStorageRef typedef
Change-Id: I8d5363bb2ad813ef29b4078848914f4b0989b9f1
Diffstat (limited to 'sc/source/filter/inc/xlroot.hxx')
-rw-r--r--sc/source/filter/inc/xlroot.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/filter/inc/xlroot.hxx b/sc/source/filter/inc/xlroot.hxx
index a29e6e8beaef..7c0e0213d3c8 100644
--- a/sc/source/filter/inc/xlroot.hxx
+++ b/sc/source/filter/inc/xlroot.hxx
@@ -79,7 +79,7 @@ struct XclRootData
XclBiff meBiff; /// Current BIFF version.
XclOutput meOutput; /// Current Output format.
SfxMedium& mrMedium; /// The medium to import from.
- SotStorageRef mxRootStrg; /// The root OLE storage of imported/exported file.
+ tools::SvRef<SotStorage> mxRootStrg; /// The root OLE storage of imported/exported file.
ScDocument& mrDoc; /// The source or destination document.
ScDocumentImport maDocImport;
OUString maDocUrl; /// Document URL of imported/exported file.
@@ -113,7 +113,7 @@ struct XclRootData
const bool mbExport; /// false = Import, true = Export.
explicit XclRootData( XclBiff eBiff, SfxMedium& rMedium,
- SotStorageRef xRootStrg, ScDocument& rDoc,
+ tools::SvRef<SotStorage> xRootStrg, ScDocument& rDoc,
rtl_TextEncoding eTextEnc, bool bExport );
virtual ~XclRootData();
};
@@ -190,16 +190,16 @@ public:
/** Returns the OLE2 root storage of the imported/exported file.
@return Pointer to root storage or 0, if the file is a simple stream. */
- inline SotStorageRef GetRootStorage() const { return mrData.mxRootStrg; }
+ inline tools::SvRef<SotStorage> GetRootStorage() const { return mrData.mxRootStrg; }
/** Returns true, if the document contains a VBA storage. */
bool HasVbaStorage() const;
/** Tries to open a storage as child of the specified storage for reading or writing. */
- SotStorageRef OpenStorage( SotStorageRef xStrg, const OUString& rStrgName ) const;
+ tools::SvRef<SotStorage> OpenStorage( tools::SvRef<SotStorage> xStrg, const OUString& rStrgName ) const;
/** Tries to open a storage as child of the root storage for reading or writing. */
- SotStorageRef OpenStorage( const OUString& rStrgName ) const;
+ tools::SvRef<SotStorage> OpenStorage( const OUString& rStrgName ) const;
/** Tries to open a new stream in the specified storage for reading or writing. */
- SotStorageStreamRef OpenStream( SotStorageRef xStrg, const OUString& rStrmName ) const;
+ SotStorageStreamRef OpenStream( tools::SvRef<SotStorage> xStrg, const OUString& rStrmName ) const;
/** Tries to open a new stream in the root storage for reading or writing. */
SotStorageStreamRef OpenStream( const OUString& rStrmName ) const;