summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-09-04 11:42:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-04 16:41:37 +0200
commit197a79e57131c976a489882479a679ba2ab61b82 (patch)
treea97c4d81a9a2549b9463ad9a06ba5ebf10cf02bc /filter
parentba425a1788421b63caa84ac364341bac2f88f103 (diff)
fdo#46808, Adapt DocumentDigitalSignatures UNO service to new style
Rename service from "Decryptor" to "DocumentDigitalSignatures" to be consistent with the other UNO services, and with it's own header file name. Add service constructor for passing in arguments. Change-Id: Iaca0c40bb2f1a1af2ef9ca29361bfd023ade2678
Diffstat (limited to 'filter')
-rw-r--r--filter/source/pdf/impdialog.cxx14
1 files changed, 3 insertions, 11 deletions
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index d19c87e47820..7ef26b1d3e55 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -43,7 +43,7 @@
#include "com/sun/star/container/XIndexAccess.hpp"
#include "com/sun/star/frame/XController.hpp"
#include "com/sun/star/view/XSelectionSupplier.hpp"
-#include "com/sun/star/security/XDocumentDigitalSignatures.hpp"
+#include "com/sun/star/security/DocumentDigitalSignatures.hpp"
#include "com/sun/star/security/XCertificate.hpp"
#include <boost/shared_ptr.hpp>
@@ -1709,17 +1709,9 @@ ImpPDFTabSigningPage::~ImpPDFTabSigningPage()
IMPL_LINK_NOARG( ImpPDFTabSigningPage, ClickmaPbSignCertSelect )
{
- uno::Sequence< uno::Any > aArgs( 2 );
- aArgs[0] <<= rtl::OUString("1.2");
- aArgs[1] <<= sal_False;
-
Reference< security::XDocumentDigitalSignatures > xSigner(
- comphelper::getProcessServiceFactory()->createInstanceWithArguments(
- rtl::OUString( "com.sun.star.security.DocumentDigitalSignatures" ), aArgs ),
- uno::UNO_QUERY );
-
- if ( !xSigner.is() )
- return 0;
+ security::DocumentDigitalSignatures::createWithVersion(
+ comphelper::getProcessComponentContext(), rtl::OUString("1.2") ) );
maSignCertificate = xSigner->chooseCertificate();