Watermark: Insert watermark command

Desktop / LibreOffice - Szymon Kłos [collabora.com] - 17 May 2017 18:44 EDT

- added new command .uno:Watermark
- if no arguments are provided the dialog is opened where user can enter the text
- with provided Text argument the watermark is created
- created SfxWatermarkItem to transfer watermark properties
- dialog loads current setings
- SetClassification use SetWatermark

Change-Id: Ifc1319f5aa7c11bb141f8e4b5b9a5088613021c2 Reviewed-on: https://gerrit.libreoffice.org/37599

08de2c3 Watermark: Insert watermark command
include/sfx2/sfxsids.hrc | 2 +-
include/sfx2/watermarkitem.hxx | 35 +++
.../org/openoffice/Office/UI/WriterCommands.xcu | 8 +
sfx2/Library_sfx.mk | 1 +
sfx2/sdi/sfx.sdi | 17 ++
sfx2/sdi/sfxitems.sdi | 1 +
sfx2/source/doc/watermarkitem.cxx | 67 +++++
sw/Library_sw.mk | 1 +
sw/UIConfig_swriter.mk | 1 +
sw/inc/editsh.hxx | 4 +
sw/sdi/_basesh.sdi | 6 +
sw/source/core/edit/edfcol.cxx | 310 +++++++++++++--------
sw/source/uibase/app/docsh2.cxx | 22 ++
sw/source/uibase/app/docst.cxx | 9 +
sw/source/uibase/dialog/watermarkdialog.cxx | 91 ++++++
sw/source/uibase/inc/watermarkdialog.hxx | 39 +++
sw/source/uibase/shells/basesh.cxx | 5 +
sw/source/uibase/shells/slotadd.cxx | 1 +
sw/uiconfig/swriter/toolbar/classificationbar.xml | 1 +
sw/uiconfig/swriter/ui/watermarkdialog.ui | 133 +++++++++
20 files changed, 632 insertions(+), 122 deletions(-)

Upstream: cgit.freedesktop.org


  • Share