From ef5fc3adfd73ea0a12fbc07083a9e37b2d02798b Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Fri, 17 Nov 2017 11:29:33 +0900 Subject: TSCP: add or delete watermark when set through class. dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iedcf0ee7292b447bc2e2030335234aeb4eb14752 Reviewed-on: https://gerrit.libreoffice.org/44854 Reviewed-by: Tomaž Vajngerl Tested-by: Tomaž Vajngerl --- sw/source/core/edit/edfcol.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sw') 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::vectorgetPropertyValue(UNO_NAME_FOOTER_TEXT) >>= xFooterText; equaliseNumberOfParagraph(rResults, xFooterText); + // SET/DELETE WATERMARK + SfxWatermarkItem aWatermarkItem; + aWatermarkItem.SetText(aHelper.GetDocumentWatermark()); + SetWatermark(aWatermarkItem); + uno::Reference xHeaderParagraphCursor(xHeaderText->createTextCursor(), uno::UNO_QUERY); uno::Reference xFooterParagraphCursor(xFooterText->createTextCursor(), uno::UNO_QUERY); -- cgit