summaryrefslogtreecommitdiff
path: root/sw/inc/editsh.hxx
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-10-03 05:53:28 -0400
committerAshod Nakashian <ashnakash@gmail.com>2019-01-03 19:12:07 +0100
commit5d6102ce297f12a81e1d21b4ffc9df1d97d0b847 (patch)
treececcb733e926c69d9ef75fe078c6f28ba6a3e2b4 /sw/inc/editsh.hxx
parentdd2972d4c323afddc1eca90c88fe6240f40685dd (diff)
sw: paragraph-sign: process signatures in one pass on loading
This combines the metadata field restoration logic with validation/update of said field in one pass upon loading docs. This cuts down overheads and makes the code more readable. In addition, now that paragraph signature validation is quite cheap (separate commits), esp. when no signatures exist, we validate and update signatures (where applicable) when fields are updated. Change-Id: I4adcea579c591f9be457ed742d2cf54fa308163d Reviewed-on: https://gerrit.libreoffice.org/63008 Tested-by: Jenkins Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'sw/inc/editsh.hxx')
-rw-r--r--sw/inc/editsh.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx
index fba31cf0e9f0..fc804550f887 100644
--- a/sw/inc/editsh.hxx
+++ b/sw/inc/editsh.hxx
@@ -375,8 +375,11 @@ public:
/// Validate all paragraph signatures.
void ValidateAllParagraphSignatures(bool updateDontRemove);
- /// Restore the metadata fields, if missing, from the RDF metadata.
- void RestoreMetadataFields();
+ /// Restore the metadata fields, if missing, from the RDF metadata
+ /// and validate the signatures and update the signature metadata fields.
+ /// Needed since deleting the metadata field doesn't remove the RDF
+ /// and editing docs using software that don't support paragraph signing.
+ void RestoreMetadataFieldsAndValidateParagraphSignatures();
/// Ensure that the classification of the doc is never lower than
/// the paragraph with the highest classification.