[Libreoffice-commits] core.git: cui/source fpicker/source unotools/source uui/source xmlsecurity/inc xmlsecurity/source

Thomas Arnhold thomas at arnhold.org
Fri Mar 29 16:57:14 PDT 2013


 cui/source/customize/cfgutil.cxx                                   |    1 
 fpicker/source/win32/filepicker/IVistaFilePickerInternalNotify.hxx |    8 -----
 fpicker/source/win32/filepicker/vistatypes.h                       |    8 -----
 unotools/source/config/useroptions.cxx                             |    3 -
 uui/source/secmacrowarnings.cxx                                    |    6 +--
 uui/source/sslwarndlg.cxx                                          |    2 -
 uui/source/sslwarndlg.hxx                                          |   14 +++-----
 uui/source/unknownauthdlg.cxx                                      |    2 -
 uui/source/unknownauthdlg.hxx                                      |   14 +++-----
 xmlsecurity/inc/xmlsecurity/certificatechooser.hxx                 |   13 +++-----
 xmlsecurity/inc/xmlsecurity/certificateviewer.hxx                  |   11 ++----
 xmlsecurity/inc/xmlsecurity/macrosecurity.hxx                      |   13 +++-----
 xmlsecurity/inc/xmlsecurity/warnings.hxx                           |   11 ++----
 xmlsecurity/source/component/documentdigitalsignatures.cxx         |    6 +--
 xmlsecurity/source/dialogs/certificatechooser.cxx                  |   10 +++---
 xmlsecurity/source/dialogs/certificateviewer.cxx                   |   12 +++----
 xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx             |    4 +-
 xmlsecurity/source/dialogs/macrosecurity.cxx                       |   16 +++++-----
 xmlsecurity/source/dialogs/warnings.cxx                            |    2 -
 19 files changed, 58 insertions(+), 98 deletions(-)

New commits:
commit 049ce78144650d92eb6bd73292868f73d37c9010
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Sat Mar 30 00:32:52 2013 +0100

    remove local css definitions
    
    follow-up of 66a175834c39ccde9475eac3adb72a843110d01f
    
    Change-Id: I1c495041ccc4db4dd9554d49b6324e989fa46c60

diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx
index ee6387e..742382d 100644
--- a/cui/source/customize/cfgutil.cxx
+++ b/cui/source/customize/cfgutil.cxx
@@ -65,7 +65,6 @@ using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::script;
 using namespace ::com::sun::star::frame;
 using namespace ::com::sun::star::document;
-namespace css = ::com::sun::star;
 
 static OUString SERVICE_UICATEGORYDESCRIPTION ("com.sun.star.ui.UICategoryDescription");
 
diff --git a/fpicker/source/win32/filepicker/IVistaFilePickerInternalNotify.hxx b/fpicker/source/win32/filepicker/IVistaFilePickerInternalNotify.hxx
index 2800b63..466061e 100644
--- a/fpicker/source/win32/filepicker/IVistaFilePickerInternalNotify.hxx
+++ b/fpicker/source/win32/filepicker/IVistaFilePickerInternalNotify.hxx
@@ -28,12 +28,6 @@
 
 #include <shobjidl.h>
 
-#ifdef css
-    #error "Clash on using CSS as namespace define."
-#else
-    #define css ::com::sun::star
-#endif
-
 namespace fpicker{
 namespace win32{
 namespace vista{
@@ -56,8 +50,6 @@ class IVistaFilePickerInternalNotify
 
 }}}
 
-#undef css
-
 #endif // FPICKER_WIN32_VISTA_FILEPICKER_INTERNALNOTIFY_HXX
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/fpicker/source/win32/filepicker/vistatypes.h b/fpicker/source/win32/filepicker/vistatypes.h
index 3f95918..f7ebd22 100644
--- a/fpicker/source/win32/filepicker/vistatypes.h
+++ b/fpicker/source/win32/filepicker/vistatypes.h
@@ -23,12 +23,6 @@
 #include "comptr.hxx"
 #include <shobjidl.h>
 
-#ifdef css
-    #error "Clash on using CSS as namespace define."
-#else
-    #define css ::com::sun::star
-#endif
-
 namespace fpicker{
 namespace win32{
 namespace vista{
@@ -47,8 +41,6 @@ typedef ComPtr< IFileDialogCustomize, IID_IFileDialogCustomize
 } // namespace win32
 } // namespace fpicker
 
-#undef css
-
 #endif // FPICKER_WIN32_VISTA_TYPES_HXX
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/source/config/useroptions.cxx b/unotools/source/config/useroptions.cxx
index fac2eca..54365f8 100644
--- a/unotools/source/config/useroptions.cxx
+++ b/unotools/source/config/useroptions.cxx
@@ -43,11 +43,8 @@
 
 using namespace utl;
 using namespace com::sun::star;
-//using namespace com::sun::star::uno;
 using rtl::OUString;
 
-//namespace css = ::com::sun::star;
-
 namespace
 {
 
diff --git a/uui/source/secmacrowarnings.cxx b/uui/source/secmacrowarnings.cxx
index 070cbc8..8ad4e22 100644
--- a/uui/source/secmacrowarnings.cxx
+++ b/uui/source/secmacrowarnings.cxx
@@ -323,9 +323,9 @@ void MacroWarning::FitControls()
     SetSizePixel( aNewSize );
 }
 
-void MacroWarning::SetStorage( const cssu::Reference < css::embed::XStorage >& rxStore,
+void MacroWarning::SetStorage( const css::uno::Reference < css::embed::XStorage >& rxStore,
                                const ::rtl::OUString& aODFVersion,
-                               const cssu::Sequence< security::DocumentSignatureInformation >& rInfos )
+                               const css::uno::Sequence< security::DocumentSignatureInformation >& rInfos )
 {
     mxStore = rxStore;
     maODFVersion = aODFVersion;
@@ -348,7 +348,7 @@ void MacroWarning::SetStorage( const cssu::Reference < css::embed::XStorage >& r
     }
 }
 
-void MacroWarning::SetCertificate( const cssu::Reference< css::security::XCertificate >& _rxCert )
+void MacroWarning::SetCertificate( const css::uno::Reference< css::security::XCertificate >& _rxCert )
 {
     mxCert = _rxCert;
     if( mxCert.is() )
diff --git a/uui/source/sslwarndlg.cxx b/uui/source/sslwarndlg.cxx
index 0a56d85..e4d108f 100644
--- a/uui/source/sslwarndlg.cxx
+++ b/uui/source/sslwarndlg.cxx
@@ -52,7 +52,7 @@ IMPL_LINK_NOARG(SSLWarnDialog, ViewCertHdl_Impl)
 SSLWarnDialog::SSLWarnDialog
 (
     Window*                                     pParent,
-    const cssu::Reference< dcss::security::XCertificate >& rXCert,
+    const css::uno::Reference< css::security::XCertificate >& rXCert,
     const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& xContext,
     ResMgr*                                     pResMgr
 ) :
diff --git a/uui/source/sslwarndlg.hxx b/uui/source/sslwarndlg.hxx
index 9cfa924..43363ca 100644
--- a/uui/source/sslwarndlg.hxx
+++ b/uui/source/sslwarndlg.hxx
@@ -28,10 +28,6 @@
 #include <com/sun/star/xml/crypto/XSecurityEnvironment.hpp>
 #include <com/sun/star/uno/XComponentContext.hpp>
 
-namespace cssu = com::sun::star::uno;
-namespace dcss = ::com::sun::star;
-
-
 using namespace com::sun::star;
 
 //=====================================================================
@@ -48,8 +44,8 @@ private:
     FixedImage      m_aWarnImage;
 
 
-    const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& m_xContext;
-    const cssu::Reference< dcss::security::XCertificate >& m_rXCert;
+    const css::uno::Reference< css::uno::XComponentContext >& m_xContext;
+    const css::uno::Reference< css::security::XCertificate >& m_rXCert;
     Window* m_pParent;
 
     DECL_LINK(OKHdl_Impl, void *);
@@ -57,11 +53,11 @@ private:
 
     public:
     SSLWarnDialog( Window* pParent,
-                       const cssu::Reference< dcss::security::XCertificate >& rXCert,
-                       const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& xContext,
+                       const css::uno::Reference< css::security::XCertificate >& rXCert,
+                       const css::uno::Reference< css::uno::XComponentContext >& xContext,
                        ResMgr * pResMgr );
 
-    cssu::Reference< dcss::security::XCertificate > getCert() { return m_rXCert; };
+    css::uno::Reference< css::security::XCertificate > getCert() { return m_rXCert; };
 
     Window* getParent() { return m_pParent; };
 
diff --git a/uui/source/unknownauthdlg.cxx b/uui/source/unknownauthdlg.cxx
index a28a4bf..98e712a 100644
--- a/uui/source/unknownauthdlg.cxx
+++ b/uui/source/unknownauthdlg.cxx
@@ -60,7 +60,7 @@ IMPL_LINK_NOARG(UnknownAuthDialog, ViewCertHdl_Impl)
 UnknownAuthDialog::UnknownAuthDialog
 (
     Window*                                     pParent,
-    const cssu::Reference< dcss::security::XCertificate >& rXCert,
+    const css::uno::Reference< css::security::XCertificate >& rXCert,
     const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& xContext,
     ResMgr*                                     pResMgr
 ) :
diff --git a/uui/source/unknownauthdlg.hxx b/uui/source/unknownauthdlg.hxx
index ea982fc..46a08e7 100644
--- a/uui/source/unknownauthdlg.hxx
+++ b/uui/source/unknownauthdlg.hxx
@@ -28,10 +28,6 @@
 #include <com/sun/star/xml/crypto/XSecurityEnvironment.hpp>
 #include <com/sun/star/uno/XComponentContext.hpp>
 
-namespace cssu = com::sun::star::uno;
-namespace dcss = ::com::sun::star;
-
-
 using namespace com::sun::star;
 
 //=====================================================================
@@ -50,8 +46,8 @@ private:
     FixedText   m_aLabel1;
     FixedImage  m_aWarnImage;
 
-    const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& m_xContext;
-    const cssu::Reference< dcss::security::XCertificate >& m_rXCert;
+    const css::uno::Reference< css::uno::XComponentContext >& m_xContext;
+    const css::uno::Reference< css::security::XCertificate >& m_rXCert;
     Window* m_pParent;
 
     DECL_LINK(OKHdl_Impl, void *);
@@ -59,11 +55,11 @@ private:
 
     public:
     UnknownAuthDialog( Window* pParent,
-                       const cssu::Reference< dcss::security::XCertificate >& rXCert,
-                       const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& xContext,
+                       const css::uno::Reference< css::security::XCertificate >& rXCert,
+                       const css::uno::Reference< css::uno::XComponentContext >& xContext,
                        ResMgr * pResMgr );
 
-    cssu::Reference< dcss::security::XCertificate > getCert() { return m_rXCert; };
+    css::uno::Reference< css::security::XCertificate > getCert() { return m_rXCert; };
 
     Window* getParent() { return m_pParent; };
 
diff --git a/xmlsecurity/inc/xmlsecurity/certificatechooser.hxx b/xmlsecurity/inc/xmlsecurity/certificatechooser.hxx
index 3ce61f2..51544c5 100644
--- a/xmlsecurity/inc/xmlsecurity/certificatechooser.hxx
+++ b/xmlsecurity/inc/xmlsecurity/certificatechooser.hxx
@@ -37,17 +37,14 @@ namespace xml { namespace crypto {
 #include <com/sun/star/uno/Sequence.hxx>
 #include <xmlsecurity/sigstruct.hxx>
 
-namespace cssu = com::sun::star::uno;
-namespace dcss = ::com::sun::star;
-
 class HeaderBar;
 
 class CertificateChooser : public ModalDialog
 {
 private:
-    cssu::Reference< cssu::XComponentContext > mxCtx;
-    cssu::Reference< dcss::xml::crypto::XSecurityEnvironment > mxSecurityEnvironment;
-    cssu::Sequence< cssu::Reference< dcss::security::XCertificate > > maCerts;
+    css::uno::Reference< css::uno::XComponentContext > mxCtx;
+    css::uno::Reference< css::xml::crypto::XSecurityEnvironment > mxSecurityEnvironment;
+    css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > maCerts;
     SignatureInformations maCertsToIgnore;
 
     SvxSimpleTable*     m_pCertLB;
@@ -65,12 +62,12 @@ private:
     void ImplInitialize();
 
 public:
-    CertificateChooser( Window* pParent, cssu::Reference< cssu::XComponentContext>& rxCtx, cssu::Reference< dcss::xml::crypto::XSecurityEnvironment >& rxSecurityEnvironment, const SignatureInformations& rCertsToIgnore );
+    CertificateChooser( Window* pParent, css::uno::Reference< css::uno::XComponentContext>& rxCtx, css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& rxSecurityEnvironment, const SignatureInformations& rCertsToIgnore );
     ~CertificateChooser();
 
     short Execute();
 
-    cssu::Reference< dcss::security::XCertificate > GetSelectedCertificate();
+    css::uno::Reference< css::security::XCertificate > GetSelectedCertificate();
 
 };
 
diff --git a/xmlsecurity/inc/xmlsecurity/certificateviewer.hxx b/xmlsecurity/inc/xmlsecurity/certificateviewer.hxx
index e7d50d1..78c6eb2 100644
--- a/xmlsecurity/inc/xmlsecurity/certificateviewer.hxx
+++ b/xmlsecurity/inc/xmlsecurity/certificateviewer.hxx
@@ -39,9 +39,6 @@ namespace xml { namespace crypto {
     class XSecurityEnvironment; }}
 }}}
 
-namespace cssu = com::sun::star::uno;
-namespace dcss = ::com::sun::star;
-
 class CertificateViewer : public TabDialog
 {
 private:
@@ -55,10 +52,10 @@ private:
 
     bool                mbCheckForPrivateKey;
 
-    cssu::Reference< dcss::xml::crypto::XSecurityEnvironment > mxSecurityEnvironment;
-    cssu::Reference< dcss::security::XCertificate > mxCert;
+    css::uno::Reference< css::xml::crypto::XSecurityEnvironment > mxSecurityEnvironment;
+    css::uno::Reference< css::security::XCertificate > mxCert;
 public:
-    CertificateViewer( Window* pParent, const cssu::Reference< dcss::xml::crypto::XSecurityEnvironment >& rxSecurityEnvironment, const cssu::Reference< dcss::security::XCertificate >& rXCert, bool bCheckForPrivateKey );
+    CertificateViewer( Window* pParent, const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& rxSecurityEnvironment, const css::uno::Reference< css::security::XCertificate >& rXCert, bool bCheckForPrivateKey );
     virtual             ~CertificateViewer();
 };
 
@@ -142,7 +139,7 @@ private:
     DECL_LINK(          CertSelectHdl, void* );
     void                Clear( void );
     SvTreeListEntry*        InsertCert( SvTreeListEntry* _pParent, const OUString& _rName,
-                                    cssu::Reference< dcss::security::XCertificate > rxCert,
+                                    css::uno::Reference< css::security::XCertificate > rxCert,
                                     bool bValid);
 
 public:
diff --git a/xmlsecurity/inc/xmlsecurity/macrosecurity.hxx b/xmlsecurity/inc/xmlsecurity/macrosecurity.hxx
index 9f79955..616e3fa 100644
--- a/xmlsecurity/inc/xmlsecurity/macrosecurity.hxx
+++ b/xmlsecurity/inc/xmlsecurity/macrosecurity.hxx
@@ -37,9 +37,6 @@ namespace xml { namespace crypto {
     class XSecurityEnvironment; }}
 }}}
 
-namespace cssu = com::sun::star::uno;
-namespace dcss = ::com::sun::star;
-
 class MacroSecurityTP;
 
 class XmlReadOnlyImage : public FixedImage
@@ -62,8 +59,8 @@ private:
     OKButton*           m_pOkBtn;
     PushButton*         m_pResetBtn;
 
-    cssu::Reference< cssu::XComponentContext >  mxCtx;
-    cssu::Reference< dcss::xml::crypto::XSecurityEnvironment >  mxSecurityEnvironment;
+    css::uno::Reference< css::uno::XComponentContext >  mxCtx;
+    css::uno::Reference< css::xml::crypto::XSecurityEnvironment >  mxSecurityEnvironment;
     SvtSecurityOptions                                          maSecOptions;
 
     sal_uInt16 m_nSecLevelId;
@@ -75,8 +72,8 @@ private:
     DECL_LINK(          OkBtnHdl, void* );
 public:
     MacroSecurity(Window* pParent,
-        const cssu::Reference< cssu::XComponentContext>& rxCtx,
-        const cssu::Reference< dcss::xml::crypto::XSecurityEnvironment >& rxSecurityEnvironment);
+        const css::uno::Reference< css::uno::XComponentContext>& rxCtx,
+        const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& rxSecurityEnvironment);
     virtual ~MacroSecurity();
 
     inline void EnableReset(bool _bEnable = true)
@@ -133,7 +130,7 @@ private:
     PushButton*         m_pAddLocPB;
     PushButton*         m_pRemoveLocPB;
 
-    cssu::Sequence< SvtSecurityOptions::Certificate > maTrustedAuthors;
+    css::uno::Sequence< SvtSecurityOptions::Certificate > maTrustedAuthors;
 
     bool                mbAuthorsReadonly;
     bool                mbURLsReadonly;
diff --git a/xmlsecurity/inc/xmlsecurity/warnings.hxx b/xmlsecurity/inc/xmlsecurity/warnings.hxx
index a3690b2..ec1b0f0 100644
--- a/xmlsecurity/inc/xmlsecurity/warnings.hxx
+++ b/xmlsecurity/inc/xmlsecurity/warnings.hxx
@@ -37,19 +37,16 @@ namespace xml { namespace crypto {
 #include <com/sun/star/uno/Sequence.hxx>
 #include <xmlsecurity/sigstruct.hxx>
 
-namespace cssu = com::sun::star::uno;
-namespace dcss = ::com::sun::star;
-
 class HeaderBar;
 
 class MacroWarning : public ModalDialog
 {
 private:
     // XSecurityEnvironment is needed for building the certification path
-    cssu::Reference< dcss::xml::crypto::XSecurityEnvironment > mxSecurityEnvironment;
+    css::uno::Reference< css::xml::crypto::XSecurityEnvironment > mxSecurityEnvironment;
 
-//  cssu::Sequence< cssu::Reference< dcss::security::XCertificate > > maCerts;
-    cssu::Reference< dcss::security::XCertificate > mxCert;
+//  css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > maCerts;
+    css::uno::Reference< css::security::XCertificate > mxCert;
 
 //  FixedImage          maQuestionMarkFI;
     FixedInfo           maDocNameFI;
@@ -71,7 +68,7 @@ private:
 //  DECL_LINK(          DisableBtnHdl, void* );
 
 public:
-    MacroWarning( Window* pParent, cssu::Reference< dcss::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment, cssu::Reference< dcss::security::XCertificate >& _rxCert );
+    MacroWarning( Window* pParent, css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment, css::uno::Reference< css::security::XCertificate >& _rxCert );
     MacroWarning( Window* pParent );
     ~MacroWarning();
 };
diff --git a/xmlsecurity/source/component/documentdigitalsignatures.cxx b/xmlsecurity/source/component/documentdigitalsignatures.cxx
index afb6c36..5425189 100644
--- a/xmlsecurity/source/component/documentdigitalsignatures.cxx
+++ b/xmlsecurity/source/component/documentdigitalsignatures.cxx
@@ -363,7 +363,7 @@ void DocumentDigitalSignatures::manageTrustedSources(  ) throw (RuntimeException
     // Macro Security also has some options where no security environment is needed, so raise dialog anyway.
     // Later I should change the code so the Dialog creates the SecEnv on demand...
 
-    Reference< dcss::xml::crypto::XSecurityEnvironment > xSecEnv;
+    Reference< css::xml::crypto::XSecurityEnvironment > xSecEnv;
 
     XMLSignatureHelper aSignatureHelper( mxCtx );
     if ( aSignatureHelper.Init() )
@@ -418,7 +418,7 @@ void DocumentDigitalSignatures::showCertificate(
 
 Reference< css::security::XCertificate > DocumentDigitalSignatures::chooseCertificate() throw (RuntimeException)
 {
-    Reference< dcss::xml::crypto::XSecurityEnvironment > xSecEnv;
+    Reference< css::xml::crypto::XSecurityEnvironment > xSecEnv;
 
     XMLSignatureHelper aSignatureHelper( mxCtx );
     if ( aSignatureHelper.Init() )
@@ -495,7 +495,7 @@ rtl::OUString DocumentDigitalSignatures::GetImplementationName() throw (RuntimeE
     return rtl::OUString( "com.sun.star.security.DocumentDigitalSignatures" );
 }
 
-Sequence< rtl::OUString > DocumentDigitalSignatures::GetSupportedServiceNames() throw (cssu::RuntimeException)
+Sequence< rtl::OUString > DocumentDigitalSignatures::GetSupportedServiceNames() throw (css::uno::RuntimeException)
 {
     Sequence < rtl::OUString > aRet(1);
     rtl::OUString* pArray = aRet.getArray();
diff --git a/xmlsecurity/source/dialogs/certificatechooser.cxx b/xmlsecurity/source/dialogs/certificatechooser.cxx
index be940fb..f57ab56 100644
--- a/xmlsecurity/source/dialogs/certificatechooser.cxx
+++ b/xmlsecurity/source/dialogs/certificatechooser.cxx
@@ -48,7 +48,7 @@ sal_uInt16 CertificateChooser::GetSelectedEntryPos( void ) const
     return (sal_uInt16) nSel;
 }
 
-CertificateChooser::CertificateChooser( Window* _pParent, uno::Reference< uno::XComponentContext>& _rxCtx, uno::Reference< dcss::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment, const SignatureInformations& _rCertsToIgnore )
+CertificateChooser::CertificateChooser( Window* _pParent, uno::Reference< uno::XComponentContext>& _rxCtx, uno::Reference< css::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment, const SignatureInformations& _rCertsToIgnore )
     : ModalDialog(_pParent, "SelectCertificateDialog", "xmlsec/ui/selectcertificatedialog.ui")
     , maCertsToIgnore( _rCertsToIgnore )
 {
@@ -128,7 +128,7 @@ void CertificateChooser::ImplInitialize()
         {
         }
 
-        uno::Reference< dcss::security::XSerialNumberAdapter> xSerialNumberAdapter =
+        uno::Reference< css::security::XSerialNumberAdapter> xSerialNumberAdapter =
             ::com::sun::star::security::SerialNumberAdapter::create(mxCtx);
 
         sal_Int32 nCertificates = maCerts.getLength();
@@ -190,9 +190,9 @@ void CertificateChooser::ImplInitialize()
 }
 
 
-uno::Reference< dcss::security::XCertificate > CertificateChooser::GetSelectedCertificate()
+uno::Reference< css::security::XCertificate > CertificateChooser::GetSelectedCertificate()
 {
-    uno::Reference< dcss::security::XCertificate > xCert;
+    uno::Reference< css::security::XCertificate > xCert;
     sal_uInt16  nSelected = GetSelectedEntryPos();
     if ( nSelected < maCerts.getLength() )
         xCert = maCerts[ nSelected ];
@@ -221,7 +221,7 @@ IMPL_LINK_NOARG(CertificateChooser, ViewButtonHdl)
 
 void CertificateChooser::ImplShowCertificateDetails()
 {
-    uno::Reference< dcss::security::XCertificate > xCert = GetSelectedCertificate();
+    uno::Reference< css::security::XCertificate > xCert = GetSelectedCertificate();
     if( xCert.is() )
     {
         CertificateViewer aViewer( this, mxSecurityEnvironment, xCert, sal_True );
diff --git a/xmlsecurity/source/dialogs/certificateviewer.cxx b/xmlsecurity/source/dialogs/certificateviewer.cxx
index dd4d219..3703542 100644
--- a/xmlsecurity/source/dialogs/certificateviewer.cxx
+++ b/xmlsecurity/source/dialogs/certificateviewer.cxx
@@ -49,8 +49,8 @@ namespace
 
 CertificateViewer::CertificateViewer(
         Window* _pParent,
-        const cssu::Reference< dcss::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment,
-        const cssu::Reference< dcss::security::XCertificate >& _rXCert, bool bCheckForPrivateKey )
+        const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment,
+        const css::uno::Reference< css::security::XCertificate >& _rXCert, bool bCheckForPrivateKey )
     :TabDialog      ( _pParent, XMLSEC_RES( RID_XMLSECDLG_CERTVIEWER ) )
     ,maTabCtrl      ( this, XMLSEC_RES( 1 ) )
     ,maOkBtn        ( this, XMLSEC_RES( BTN_OK ) )
@@ -139,7 +139,7 @@ CertificateViewerGeneralTP::CertificateViewerGeneralTP( Window* _pParent, Certif
     maValidDateFI.SetFont( aFnt );
 
     // insert data
-    cssu::Reference< dcss::security::XCertificate > xCert = mpDlg->mxCert;
+    css::uno::Reference< css::security::XCertificate > xCert = mpDlg->mxCert;
 
     maIssuedToFI.SetText( XmlSec::GetContentPart( xCert->getSubjectName() ) );
     maIssuedByFI.SetText( XmlSec::GetContentPart( xCert->getIssuerName() ) );
@@ -355,11 +355,11 @@ IMPL_LINK_NOARG(CertificateViewerDetailsTP, ElementSelectHdl)
 
 struct CertPath_UserData
 {
-    cssu::Reference< dcss::security::XCertificate > mxCert;
+    css::uno::Reference< css::security::XCertificate > mxCert;
     OUString                                        maStatus;
     bool mbValid;
 
-    CertPath_UserData( cssu::Reference< dcss::security::XCertificate > xCert, bool bValid):
+    CertPath_UserData( css::uno::Reference< css::security::XCertificate > xCert, bool bValid):
         mxCert(xCert),
         mbValid(bValid)
     {
@@ -494,7 +494,7 @@ void CertificateViewerCertPathTP::Clear( void )
 }
 
 SvTreeListEntry* CertificateViewerCertPathTP::InsertCert(
-    SvTreeListEntry* _pParent, const OUString& _rName, cssu::Reference< dcss::security::XCertificate > rxCert,
+    SvTreeListEntry* _pParent, const OUString& _rName, css::uno::Reference< css::security::XCertificate > rxCert,
     bool bValid)
 {
     Image aImage = bValid ? maCertImage : maCertNotValidatedImage;
diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
index 3adc177..58c5e8b 100644
--- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
+++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
@@ -279,7 +279,7 @@ void DigitalSignaturesDialog::SetStorage( const com::sun::star::uno::Reference <
     m_manifest = xReader->readManifestSequence(xStream);
 }
 
-void DigitalSignaturesDialog::SetSignatureStream( const cssu::Reference < css::io::XStream >& rxStream )
+void DigitalSignaturesDialog::SetSignatureStream( const css::uno::Reference < css::io::XStream >& rxStream )
 {
     mxSignatureStream = rxStream;
 }
@@ -744,7 +744,7 @@ void DigitalSignaturesDialog::ImplShowSignaturesDetails()
         css::uno::Reference<com::sun::star::security::XSerialNumberAdapter> xSerialNumberAdapter =
             ::com::sun::star::security::SerialNumberAdapter::create(mxCtx);
         // Use Certificate from doc, not from key store
-        uno::Reference< dcss::security::XCertificate > xCert;
+        uno::Reference< css::security::XCertificate > xCert;
         if (!rInfo.ouX509Certificate.isEmpty())
             xCert = xSecEnv->createCertificateFromAscii(rInfo.ouX509Certificate);
         //fallback if no certificate is embedded, get if from store
diff --git a/xmlsecurity/source/dialogs/macrosecurity.cxx b/xmlsecurity/source/dialogs/macrosecurity.cxx
index 0063b0f..ab8cd6d 100644
--- a/xmlsecurity/source/dialogs/macrosecurity.cxx
+++ b/xmlsecurity/source/dialogs/macrosecurity.cxx
@@ -64,8 +64,8 @@ IMPL_LINK_NOARG(MacroSecurity, OkBtnHdl)
 }
 
 MacroSecurity::MacroSecurity( Window* _pParent,
-    const cssu::Reference< cssu::XComponentContext> &_rxCtx,
-    const cssu::Reference< dcss::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment)
+    const css::uno::Reference< css::uno::XComponentContext> &_rxCtx,
+    const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment)
     : TabDialog(_pParent, "MacroSecurityDialog", "xmlsec/ui/macrosecuritydialog.ui")
     , mxCtx(_rxCtx)
     , mxSecurityEnvironment(_rxSecurityEnvironment)
@@ -194,10 +194,10 @@ IMPL_LINK_NOARG(MacroSecurityTrustedSourcesTP, ViewCertPBHdl)
     {
         sal_uInt16 nSelected = sal_uInt16( sal_uIntPtr( m_pTrustCertLB->FirstSelected()->GetUserData() ) );
 
-        uno::Reference< dcss::security::XSerialNumberAdapter > xSerialNumberAdapter =
+        uno::Reference< css::security::XSerialNumberAdapter > xSerialNumberAdapter =
             ::com::sun::star::security::SerialNumberAdapter::create(mpDlg->mxCtx);
 
-        uno::Reference< dcss::security::XCertificate > xCert = mpDlg->mxSecurityEnvironment->getCertificate( maTrustedAuthors[nSelected][0], xSerialNumberAdapter->toSequence( maTrustedAuthors[nSelected][1] ) );
+        uno::Reference< css::security::XCertificate > xCert = mpDlg->mxSecurityEnvironment->getCertificate( maTrustedAuthors[nSelected][0], xSerialNumberAdapter->toSequence( maTrustedAuthors[nSelected][1] ) );
 
         // If we don't get it, create it from signature data:
         if ( !xCert.is() )
@@ -311,7 +311,7 @@ void MacroSecurityTrustedSourcesTP::FillCertLB( void )
     {
         for( sal_uInt32 nEntry = 0 ; nEntry < nEntries ; ++nEntry )
         {
-            cssu::Sequence< ::rtl::OUString >&              rEntry = maTrustedAuthors[ nEntry ];
+            css::uno::Sequence< ::rtl::OUString >&              rEntry = maTrustedAuthors[ nEntry ];
             uno::Reference< css::security::XCertificate >   xCert;
 
             // create from RawData
@@ -384,7 +384,7 @@ MacroSecurityTrustedSourcesTP::MacroSecurityTrustedSourcesTP(Window* _pParent, M
 
     FillCertLB();
 
-    cssu::Sequence< rtl::OUString > aSecureURLs = mpDlg->maSecOptions.GetSecureURLs();
+    css::uno::Sequence< rtl::OUString > aSecureURLs = mpDlg->maSecOptions.GetSecureURLs();
     mbURLsReadonly = mpDlg->maSecOptions.IsReadOnly( SvtSecurityOptions::E_SECUREURLS );
     m_pTrustFileROFI->Show( mbURLsReadonly );
     m_pTrustFileLocLB->Enable( !mbURLsReadonly );
@@ -415,7 +415,7 @@ void MacroSecurityTrustedSourcesTP::ClosePage( void )
     sal_uInt16  nEntryCnt = m_pTrustFileLocLB->GetEntryCount();
     if( nEntryCnt )
     {
-        cssu::Sequence< rtl::OUString > aSecureURLs( nEntryCnt );
+        css::uno::Sequence< rtl::OUString > aSecureURLs( nEntryCnt );
         for( sal_uInt16 i = 0 ; i < nEntryCnt ; ++i )
         {
             ::rtl::OUString aURL( m_pTrustFileLocLB->GetEntry( i ) );
@@ -428,7 +428,7 @@ void MacroSecurityTrustedSourcesTP::ClosePage( void )
     // Trusted Path could not be removed (#i33584#)
     // don't forget to remove the old saved SecureURLs
     else
-        mpDlg->maSecOptions.SetSecureURLs( cssu::Sequence< rtl::OUString >() );
+        mpDlg->maSecOptions.SetSecureURLs( css::uno::Sequence< rtl::OUString >() );
 
     mpDlg->maSecOptions.SetTrustedAuthors( maTrustedAuthors );
 }
diff --git a/xmlsecurity/source/dialogs/warnings.cxx b/xmlsecurity/source/dialogs/warnings.cxx
index 0320910..ac441dc 100644
--- a/xmlsecurity/source/dialogs/warnings.cxx
+++ b/xmlsecurity/source/dialogs/warnings.cxx
@@ -40,7 +40,7 @@ using namespace ::com::sun::star::security;
 using namespace ::com::sun::star;
 
 
-MacroWarning::MacroWarning( Window* _pParent, uno::Reference< dcss::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment, cssu::Reference< dcss::security::XCertificate >& _rxCert )
+MacroWarning::MacroWarning( Window* _pParent, uno::Reference< css::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment, css::uno::Reference< css::security::XCertificate >& _rxCert )
     :ModalDialog        ( _pParent, XMLSEC_RES( RID_XMLSECTP_MACROWARN ) )
     ,maDocNameFI        ( this, ResId( FI_DOCNAME ) )
     ,maDescr1aFI        ( this, ResId( FI_DESCR1A ) )


More information about the Libreoffice-commits mailing list