[Libreoffice-commits] core.git: sw/source

Tomaž Vajngerl tomaz.vajngerl at collabora.co.uk
Fri Nov 17 09:14:27 UTC 2017


 sw/source/core/edit/edfcol.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit ef5fc3adfd73ea0a12fbc07083a9e37b2d02798b
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date:   Fri Nov 17 11:29:33 2017 +0900

    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 at gmail.com>
    Tested-by: Tomaž Vajngerl <quikee at gmail.com>

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);
 


More information about the Libreoffice-commits mailing list