diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-10-31 10:08:28 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-11-01 07:23:47 +0100 |
commit | 62d34ffaef1ec248d8c67138064155b23f8c7645 (patch) | |
tree | c8378ec81015620b0545cf1139aabc8bec8c7b34 /sw/source/core/edit | |
parent | 4995e2b316f4c5c5028a0df1b2e8aad7218fb976 (diff) |
Watermark: set Auto size
Change-Id: I8800094387ec5fdc49e21c7c02bfc419f13998ed
Reviewed-on: https://gerrit.libreoffice.org/44105
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sw/source/core/edit')
-rw-r--r-- | sw/source/core/edit/edfcol.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx index 6d8ac2eb87e6..2201ada112c3 100644 --- a/sw/source/core/edit/edfcol.cxx +++ b/sw/source/core/edit/edfcol.cxx @@ -61,6 +61,7 @@ #include <sfx2/watermarkitem.hxx> #define WATERMARK_NAME "PowerPlusWaterMarkObject" +#define WATERMARK_AUTO_SIZE sal_uInt32(1) namespace { @@ -466,6 +467,7 @@ void lcl_placeWatermarkInHeader(const SfxWatermarkItem& rWatermark, xPropertySet->setPropertyValue(UNO_NAME_TEXT_WRAP, uno::makeAny(text::WrapTextMode_THROUGHT)); xPropertySet->setPropertyValue(UNO_NAME_VERT_ORIENT_RELATION, uno::makeAny(static_cast<sal_Int16>(text::RelOrientation::PAGE_PRINT_AREA))); xPropertySet->setPropertyValue(UNO_NAME_CHAR_FONT_NAME, uno::makeAny(sFont)); + xPropertySet->setPropertyValue(UNO_NAME_CHAR_HEIGHT, uno::makeAny(WATERMARK_AUTO_SIZE)); xPropertySet->setPropertyValue("Transformation", uno::makeAny(aMatrix)); xPropertySet->setPropertyValue(UNO_NAME_HORI_ORIENT, uno::makeAny(static_cast<sal_Int16>(text::HoriOrientation::CENTER))); xPropertySet->setPropertyValue(UNO_NAME_VERT_ORIENT, uno::makeAny(static_cast<sal_Int16>(text::VertOrientation::CENTER))); |