summaryrefslogtreecommitdiff
path: root/drawinglayer/source
diff options
context:
space:
mode:
authorArtur Dorda <artur.dorda+libo@gmail.com>2012-06-11 00:53:24 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-07-12 03:10:10 +0200
commit360a938abdecb1db7a07e65a0bc8acbc99e6bd33 (patch)
treed6660f34d77742ca6914e7b58bbb71452b908db5 /drawinglayer/source
parente2b053854b291c9efd6f82408eebea34c172997a (diff)
Added dumping SizeProtect property
Change-Id: Ie0fc0e92522184caa3380443ea601a77101ac813
Diffstat (limited to 'drawinglayer/source')
-rw-r--r--drawinglayer/source/dumper/XShapeDumper.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/drawinglayer/source/dumper/XShapeDumper.cxx b/drawinglayer/source/dumper/XShapeDumper.cxx
index 2e047793c80a..2ba635a9f215 100644
--- a/drawinglayer/source/dumper/XShapeDumper.cxx
+++ b/drawinglayer/source/dumper/XShapeDumper.cxx
@@ -909,6 +909,14 @@ namespace {
rtl::OUStringToOString(sName, RTL_TEXTENCODING_UTF8).getStr());
}
+ void XShapeDumper::dumpSizeProtectAsAttribute(sal_Bool bSizeProtect, xmlTextWriterPtr xmlWriter)
+ {
+ if(bSizeProtect)
+ xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("sizeProtect"), "%s", "true");
+ else
+ xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("sizeProtect"), "%s", "false");
+ }
+
// --------------------------------
// ---------- XShape.idl ----------
// --------------------------------
@@ -1448,6 +1456,12 @@ namespace {
if(anotherAny >>= sName)
dumpNameAsAttribute(sName, xmlWriter);
}
+ {
+ uno::Any anotherAny = xPropSet->getPropertyValue("SizeProtect");
+ sal_Bool bSizeProtect;
+ if(anotherAny >>= bSizeProtect)
+ dumpSizeProtectAsAttribute(bSizeProtect, xmlWriter);
+ }
}
#if DEBUG_DUMPER