Some clean up of previous commit
Change-Id: I0ea6d6439f97fcf74162c19671483aaa17b5a6cb
This commit is contained in:
@@ -1711,7 +1711,7 @@ IMPL_LINK_NOARG( ImpPDFTabSigningPage, ClickmaPbSignCertSelect )
|
||||
|
||||
Reference< security::XDocumentDigitalSignatures > xSigner(
|
||||
security::DocumentDigitalSignatures::createWithVersion(
|
||||
comphelper::getProcessComponentContext(), rtl::OUString("1.2") ) );
|
||||
comphelper::getProcessComponentContext(), "1.2" ) );
|
||||
|
||||
maSignCertificate = xSigner->chooseCertificate();
|
||||
|
||||
|
@@ -214,9 +214,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/resource,\
|
||||
StringResourceWithLocation \
|
||||
StringResourceWithStorage \
|
||||
))
|
||||
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/security,\
|
||||
DocumentDigitalSignatures \
|
||||
))
|
||||
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/scanner,\
|
||||
ScannerManager \
|
||||
))
|
||||
@@ -244,6 +241,7 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/sdbc,\
|
||||
))
|
||||
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/security,\
|
||||
CertificateContainer \
|
||||
DocumentDigitalSignatures \
|
||||
SerialNumberAdapter \
|
||||
))
|
||||
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/sheet,\
|
||||
|
@@ -1261,7 +1261,7 @@ uno::Sequence< security::DocumentSignatureInformation > SfxObjectShell::ImplAnal
|
||||
{
|
||||
if ( !xLocSigner.is() )
|
||||
{
|
||||
::rtl::OUString aVersion;
|
||||
OUString aVersion;
|
||||
try
|
||||
{
|
||||
uno::Reference < beans::XPropertySet > xPropSet( GetStorage(), uno::UNO_QUERY_THROW );
|
||||
|
@@ -1538,7 +1538,7 @@ sal_Bool SfxObjectShell::SaveTo_Impl
|
||||
try
|
||||
{
|
||||
// get the ODF version of the new medium
|
||||
::rtl::OUString aVersion;
|
||||
OUString aVersion;
|
||||
try
|
||||
{
|
||||
uno::Reference < beans::XPropertySet > xPropSet( rMedium.GetStorage(), uno::UNO_QUERY_THROW );
|
||||
|
@@ -304,7 +304,7 @@ IMPL_LINK_NOARG(MyWin, DigitalSignaturesWithServiceHdl)
|
||||
aDocFileName, embed::ElementModes::READWRITE, comphelper::getProcessServiceFactory() );
|
||||
|
||||
uno::Reference< security::XDocumentDigitalSignatures > xD(
|
||||
security::DocumentDigitalSignatures::create(comphelper::getProcessComponentContext() );
|
||||
security::DocumentDigitalSignatures::createDefault(comphelper::getProcessComponentContext() );
|
||||
xD->signDocumentContent( xStore, NULL );
|
||||
|
||||
|
||||
@@ -318,7 +318,7 @@ IMPL_LINK_NOARG(MyWin, VerifyDigitalSignaturesHdl)
|
||||
aDocFileName, embed::ElementModes::READWRITE, comphelper::getProcessServiceFactory() );
|
||||
|
||||
uno::Reference< security::XDocumentDigitalSignatures > xD(
|
||||
security::DocumentDigitalSignatures::create(comphelper::getProcessComponentContext()) );
|
||||
security::DocumentDigitalSignatures::createDefault(comphelper::getProcessComponentContext()) );
|
||||
uno::Sequence< security::DocumentSignatureInformation > aInfos = xD->verifyDocumentContentSignatures( xStore, NULL );
|
||||
int nInfos = aInfos.getLength();
|
||||
for ( int n = 0; n < nInfos; n++ )
|
||||
|
Reference in New Issue
Block a user