diff options
author | Noel Grandin <noel@peralex.com> | 2013-01-31 17:08:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-02-11 08:02:17 +0200 |
commit | 834dcf3acde06389d57bec64c2cd6cca8189c079 (patch) | |
tree | 6c58716fa151198b9c96e17b8f0dd18ab4df4aaa /package/inc | |
parent | 5bef4dc30c3dc70bc4d4b2cfbd2d1f729d714dfe (diff) |
fdo#46808, Convert package module to XComponentContext
Change-Id: I1b322e57d27e16d177ffa87d3cd42a7d06f3dfab
Diffstat (limited to 'package/inc')
-rw-r--r-- | package/inc/ZipPackage.hxx | 5 | ||||
-rw-r--r-- | package/inc/ZipPackageFolder.hxx | 6 | ||||
-rw-r--r-- | package/inc/ZipPackageStream.hxx | 7 |
3 files changed, 9 insertions, 9 deletions
diff --git a/package/inc/ZipPackage.hxx b/package/inc/ZipPackage.hxx index c22976ec3e19..7aeb32f159cd 100644 --- a/package/inc/ZipPackage.hxx +++ b/package/inc/ZipPackage.hxx @@ -44,6 +44,7 @@ namespace com { namespace sun { namespace star { namespace container { class XNameContainer; } namespace io { class XStream; class XOutputStream; class XInputStream; class XSeekable; class XActiveDataStreamer; } namespace lang { class XMultiServiceFactory; } + namespace uno { class XComponentContext; } namespace task { class XInteractionHandler; } } } } enum SegmentEnum @@ -101,7 +102,7 @@ protected: ::com::sun::star::uno::Reference < com::sun::star::io::XStream > m_xStream; ::com::sun::star::uno::Reference < com::sun::star::io::XInputStream > m_xContentStream; ::com::sun::star::uno::Reference < com::sun::star::io::XSeekable > m_xContentSeek; - const ::com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory > m_xFactory; + const ::com::sun::star::uno::Reference < com::sun::star::uno::XComponentContext > m_xContext; ZipPackageFolder *m_pRootFolder; ZipFile *m_pZipFile; @@ -122,7 +123,7 @@ protected: const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xTempStream ); public: - ZipPackage( const ::com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory > &xNewFactory ); + ZipPackage( const ::com::sun::star::uno::Reference < com::sun::star::uno::XComponentContext > &xContext ); virtual ~ZipPackage( void ); ZipFile& getZipFile() { return *m_pZipFile;} sal_Int32 getFormat() const { return m_nFormat; } diff --git a/package/inc/ZipPackageFolder.hxx b/package/inc/ZipPackageFolder.hxx index 92ad93554f6c..a99813c15b58 100644 --- a/package/inc/ZipPackageFolder.hxx +++ b/package/inc/ZipPackageFolder.hxx @@ -49,16 +49,14 @@ class ZipPackageFolder : public cppu::ImplInheritanceHelper2 ::com::sun::star::container::XEnumerationAccess > { -protected: +private: ContentHash maContents; - const ::com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory > m_xFactory; sal_Int32 m_nFormat; ::rtl::OUString m_sVersion; public: - ZipPackageFolder( const ::com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& xFactory, - sal_Int32 nFormat, + ZipPackageFolder( sal_Int32 nFormat, sal_Bool bAllowRemoveOnInsert ); virtual ~ZipPackageFolder(); diff --git a/package/inc/ZipPackageStream.hxx b/package/inc/ZipPackageStream.hxx index a9943c19a7e0..70e8e13c03f8 100644 --- a/package/inc/ZipPackageStream.hxx +++ b/package/inc/ZipPackageStream.hxx @@ -23,6 +23,7 @@ #include <com/sun/star/io/XSeekable.hpp> #include <com/sun/star/beans/NamedValue.hpp> #include <com/sun/star/packages/XDataSinkEncrSupport.hpp> +#include <com/sun/star/uno/XComponentContext.hpp> #include <ZipPackageEntry.hxx> #include <rtl/ref.hxx> #include <cppuhelper/implbase2.hxx> @@ -45,9 +46,9 @@ class ZipPackageStream : public cppu::ImplInheritanceHelper2 ::com::sun::star::packages::XDataSinkEncrSupport > { -protected: +private: com::sun::star::uno::Reference < com::sun::star::io::XInputStream > xStream; - const ::com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory > m_xFactory; + const ::com::sun::star::uno::Reference < com::sun::star::uno::XComponentContext > m_xContext; ZipPackage &rZipPackage; sal_Bool bToBeCompressed, bToBeEncrypted, bHaveOwnKey, bIsEncrypted; @@ -140,7 +141,7 @@ public: void CloseOwnStreamIfAny(); ZipPackageStream ( ZipPackage & rNewPackage, - const ::com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& xFactory, + const ::com::sun::star::uno::Reference < com::sun::star::uno::XComponentContext >& xContext, sal_Bool bAllowRemoveOnInsert ); virtual ~ZipPackageStream( void ); |