summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2017-11-17 11:29:33 +0900
committerTomaž Vajngerl <quikee@gmail.com>2017-11-17 10:14:06 +0100
commitef5fc3adfd73ea0a12fbc07083a9e37b2d02798b (patch)
treef6276edd911a587efdffb6abb07e3dd3f898510c /sw
parent6e686439291b4047a8c522ebf78d25632d349f62 (diff)
TSCP: add or delete watermark when set through class. dialog
Change-Id: Iedcf0ee7292b447bc2e2030335234aeb4eb14752 Reviewed-on: https://gerrit.libreoffice.org/44854 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/edit/edfcol.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx
index 48329c85a51e..59f9183340a4 100644
--- a/sw/source/core/edit/edfcol.cxx
+++ b/sw/source/core/edit/edfcol.cxx
@@ -833,6 +833,11 @@ void SwEditShell::ApplyAdvancedClassification(std::vector<svx::ClassificationRes
xPageStyle->getPropertyValue(UNO_NAME_FOOTER_TEXT) >>= xFooterText;
equaliseNumberOfParagraph(rResults, xFooterText);
+ // SET/DELETE WATERMARK
+ SfxWatermarkItem aWatermarkItem;
+ aWatermarkItem.SetText(aHelper.GetDocumentWatermark());
+ SetWatermark(aWatermarkItem);
+
uno::Reference<text::XParagraphCursor> xHeaderParagraphCursor(xHeaderText->createTextCursor(), uno::UNO_QUERY);
uno::Reference<text::XParagraphCursor> xFooterParagraphCursor(xFooterText->createTextCursor(), uno::UNO_QUERY);