summaryrefslogtreecommitdiff
path: root/oox
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 /oox
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 'oox')
-rw-r--r--oox/source/vml/vmlshape.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx
index ee80a0cfbd98..eea8ffbca981 100644
--- a/oox/source/vml/vmlshape.cxx
+++ b/oox/source/vml/vmlshape.cxx
@@ -1256,6 +1256,7 @@ Reference< XShape > ComplexShape::implConvertAndInsert( const Reference< XShapes
if( getShapeModel().mbIsSignatureLine )
{
uno::Reference<graphic::XGraphic> xGraphic;
+ bool bIsSigned(false);
try
{
// Get the document signatures
@@ -1279,6 +1280,7 @@ Reference< XShape > ComplexShape::implConvertAndInsert( const Reference< XShapes
// then the signature line is not digitally signed.
if (xSignatureInfo[i].SignatureLineId == getShapeModel().maSignatureId)
{
+ bIsSigned = true;
if (xSignatureInfo[i].SignatureIsValid)
{
// Signature is valid, use the 'valid' image
@@ -1338,6 +1340,7 @@ Reference< XShape > ComplexShape::implConvertAndInsert( const Reference< XShapes
xPropertySet->setPropertyValue(
"SignatureLineCanAddComment",
uno::makeAny(getShapeModel().mbSignatureLineCanAddComment));
+ xPropertySet->setPropertyValue("SignatureLineIsSigned", uno::makeAny(bIsSigned));
if (!aGraphicPath.isEmpty())
{