Kaydet (Commit) 0a417711 authored tarafından gt's avatar gt

#i20883# call of macro security dialog

üst fb7533db
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: documentdigitalsignatures.cxx,v $ * $RCSfile: documentdigitalsignatures.cxx,v $
* *
* $Revision: 1.5 $ * $Revision: 1.6 $
* *
* last change: $Author: mt $ $Date: 2004-07-16 15:58:49 $ * last change: $Author: gt $ $Date: 2004-07-19 15:46:56 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
#include <documentdigitalsignatures.hxx> #include <documentdigitalsignatures.hxx>
#include <xmlsecurity/digitalsignaturesdialog.hxx> #include <xmlsecurity/digitalsignaturesdialog.hxx>
#include <xmlsecurity/macrosecurity.hxx>
#ifndef _COM_SUN_STAR_EMBED_XSTORAGE_HPP_ #ifndef _COM_SUN_STAR_EMBED_XSTORAGE_HPP_
#include <com/sun/star/embed/XStorage.hpp> #include <com/sun/star/embed/XStorage.hpp>
...@@ -69,6 +70,9 @@ ...@@ -69,6 +70,9 @@
#ifndef _COM_SUN_STAR_EMBED_ELEMENTMODES_HPP_ #ifndef _COM_SUN_STAR_EMBED_ELEMENTMODES_HPP_
#include <com/sun/star/embed/ElementModes.hpp> #include <com/sun/star/embed/ElementModes.hpp>
#endif #endif
#ifndef INCLUDED_SVTOOLS_SECURITYOPTIONS_HXX
#include <svtools/securityoptions.hxx>
#endif
...@@ -209,6 +213,10 @@ com::sun::star::uno::Sequence< ::com::sun::star::security::DocumentSignaturesInf ...@@ -209,6 +213,10 @@ com::sun::star::uno::Sequence< ::com::sun::star::security::DocumentSignaturesInf
void DocumentDigitalSignatures::manageTrustedSources( ) throw (::com::sun::star::uno::RuntimeException) void DocumentDigitalSignatures::manageTrustedSources( ) throw (::com::sun::star::uno::RuntimeException)
{ {
cssu::Reference< css::lang::XMultiServiceFactory > xMSF;
cssu::Reference< dcss::xml::crypto::XSecurityEnvironment > xSecurityEnvironment;
MacroSecurity aDlg( NULL, xMSF, xSecurityEnvironment );
aDlg.Execute();
} }
::sal_Bool DocumentDigitalSignatures::isAuthorTrusted( const ::com::sun::star::uno::Reference< ::com::sun::star::security::XCertificate >& Author ) throw (::com::sun::star::uno::RuntimeException) ::sal_Bool DocumentDigitalSignatures::isAuthorTrusted( const ::com::sun::star::uno::Reference< ::com::sun::star::security::XCertificate >& Author ) throw (::com::sun::star::uno::RuntimeException)
...@@ -227,6 +235,9 @@ void DocumentDigitalSignatures::addAuthorToTrustedSources( const ::com::sun::sta ...@@ -227,6 +235,9 @@ void DocumentDigitalSignatures::addAuthorToTrustedSources( const ::com::sun::sta
void DocumentDigitalSignatures::addLocationToTrustedSources( const ::rtl::OUString& Location ) throw (::com::sun::star::uno::RuntimeException) void DocumentDigitalSignatures::addLocationToTrustedSources( const ::rtl::OUString& Location ) throw (::com::sun::star::uno::RuntimeException)
{ {
SvtSecurityOptions aSecOpt;
// aSecOpt.AddSecureURL( Location );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment