From 43e7cb1e5df0671e95e649c52c3c45db54235ea7 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Mon, 18 Aug 2008 12:12:20 +0000 Subject: [PATCH] INTEGRATION: CWS cmcfixes48 (1.12.16); FILE MERGED 2008/08/01 13:54:30 cmc 1.12.16.1: #i92247# remove duplication of object code, link only the single library to libxmlsec1, and update some stuff to new api --- xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx | 5 +++-- xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx | 9 ++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx b/xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx index 942df5cf4e85..9e1f8d1667c2 100644 --- a/xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx +++ b/xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: digitalsignaturesdialog.hxx,v $ - * $Revision: 1.12 $ + * $Revision: 1.13 $ * * This file is part of OpenOffice.org. * @@ -63,6 +63,7 @@ class HeaderBar; class DigitalSignaturesDialog : public ModalDialog { private: + cssu::Reference< cssu::XComponentContext >& mxCtx; XMLSignatureHelper maSignatureHelper; css::uno::Reference < css::embed::XStorage > mxStore; @@ -112,7 +113,7 @@ private: public: DigitalSignaturesDialog( Window* pParent, cssu::Reference< - css::lang::XMultiServiceFactory >& rxMSF, DocumentSignatureMode eMode, + cssu::XComponentContext >& rxCtx, DocumentSignatureMode eMode, sal_Bool bReadOnly ); ~DigitalSignaturesDialog(); diff --git a/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx b/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx index 0feae0e5ad77..0b98ae55306f 100644 --- a/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx +++ b/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xmlsignaturehelper.hxx,v $ - * $Revision: 1.12 $ + * $Revision: 1.13 $ * * This file is part of OpenOffice.org. * @@ -41,6 +41,7 @@ #include +#include #include #include #include @@ -55,8 +56,6 @@ class Time; namespace com { namespace sun { namespace star { -namespace lang { - class XMultiServiceFactory; } namespace io { class XOutputStream; class XInputStream; } @@ -109,7 +108,7 @@ typedef ::std::vector XMLSignatureVerifyResults; class XMLSignatureHelper { private: - ::com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory> mxMSF; + ::com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxCtx; ::com::sun::star::uno::Reference< com::sun::star::xml::crypto::sax::XSecurityController > mxSecurityController; ::com::sun::star::uno::Reference< com::sun::star::xml::crypto::XUriBinding > mxUriBinding; @@ -133,7 +132,7 @@ private: XMLSignatureHelper(const XMLSignatureHelper&); public: - XMLSignatureHelper(const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory>& rxMSF ); + XMLSignatureHelper(const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& mrCtx ); ~XMLSignatureHelper(); // Initialize the security context with given crypto token.