summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-11-06 10:16:25 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-11-06 15:00:58 +0100
commit7b6f477799d55d80775b6120ba0b5ce1bb45fb3c (patch)
tree94ad09d469dd609da0eef4a9dba3929113e931cc /xmloff
parentff8fdc310a13e677dfc97151f0752d7e88356b84 (diff)
tdf#118582 Disable signature line signing once it is signed
Change-Id: I720d7d4920ae9c2f5d74ad827e1e214a62fe81a9 Reviewed-on: https://gerrit.libreoffice.org/62947 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/SignatureLineContext.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmloff/source/draw/SignatureLineContext.cxx b/xmloff/source/draw/SignatureLineContext.cxx
index b22a7465c46d..c95dfc8c72da 100644
--- a/xmloff/source/draw/SignatureLineContext.cxx
+++ b/xmloff/source/draw/SignatureLineContext.cxx
@@ -61,6 +61,7 @@ SignatureLineContext::SignatureLineContext(SvXMLImport& rImport, sal_uInt16 nPrf
xPropSet->setPropertyValue("SignatureLineCanAddComment", Any(bCanAddComment));
Reference<XGraphic> xGraphic;
+ bool bIsSigned(false);
try
{
// Get the document signatures
@@ -87,6 +88,7 @@ SignatureLineContext::SignatureLineContext(SvXMLImport& rImport, sal_uInt16 nPrf
// then the signature line is not digitally signed.
if (xSignatureInfo[i].SignatureLineId == xAttrList->getValueByName("loext:id"))
{
+ bIsSigned = true;
if (xSignatureInfo[i].SignatureIsValid)
{
// Signature is valid, use the 'valid' image
@@ -112,6 +114,7 @@ SignatureLineContext::SignatureLineContext(SvXMLImport& rImport, sal_uInt16 nPrf
break;
}
}
+ xPropSet->setPropertyValue("SignatureLineIsSigned", Any(bIsSigned));
}
catch (css::uno::Exception&)
{