Kaydet (Commit) 5022553e authored tarafından Artur Dorda's avatar Artur Dorda Kaydeden (comit) Markus Mohrhard

Added dumping TextAutoGrowHeight & TextAutoGrowWidth properties

Change-Id: I03c8786d1cfce2f05ead5fabd58f5f24cd567aff
üst cace1220
...@@ -110,6 +110,8 @@ private: ...@@ -110,6 +110,8 @@ private:
// TextProperties.idl // TextProperties.idl
void dumpIsNumberingAsAttribute(sal_Bool bIsNumbering, xmlTextWriterPtr xmlWriter); void dumpIsNumberingAsAttribute(sal_Bool bIsNumbering, xmlTextWriterPtr xmlWriter);
void dumpTextAutoGrowHeightAsAttribute(sal_Bool bTextAutoGrowHeight, xmlTextWriterPtr xmlWriter);
void dumpTextAutoGrowWidthAsAttribute(sal_Bool bTextAutoGrowWidth, xmlTextWriterPtr xmlWriter);
// XShape.idl // XShape.idl
void dumpPositionAsAttribute(const com::sun::star::awt::Point& rPoint, xmlTextWriterPtr xmlWriter); void dumpPositionAsAttribute(const com::sun::star::awt::Point& rPoint, xmlTextWriterPtr xmlWriter);
......
...@@ -606,6 +606,22 @@ namespace { ...@@ -606,6 +606,22 @@ namespace {
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("isNumbering"), "%s", "false"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("isNumbering"), "%s", "false");
} }
void XShapeDumper::dumpTextAutoGrowHeightAsAttribute(sal_Bool bTextAutoGrowHeight, xmlTextWriterPtr xmlWriter)
{
if(bTextAutoGrowHeight)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAutoGrowHeight"), "%s", "true");
else
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAutoGrowHeight"), "%s", "false");
}
void XShapeDumper::dumpTextAutoGrowWidthAsAttribute(sal_Bool bTextAutoGrowWidth, xmlTextWriterPtr xmlWriter)
{
if(bTextAutoGrowWidth)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAutoGrowWidth"), "%s", "true");
else
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAutoGrowWidth"), "%s", "false");
}
// -------------------------------- // --------------------------------
// ---------- XShape.idl ---------- // ---------- XShape.idl ----------
// -------------------------------- // --------------------------------
...@@ -666,6 +682,18 @@ namespace { ...@@ -666,6 +682,18 @@ namespace {
if(anotherAny >>= bIsNumbering) if(anotherAny >>= bIsNumbering)
dumpIsNumberingAsAttribute(bIsNumbering, xmlWriter); dumpIsNumberingAsAttribute(bIsNumbering, xmlWriter);
} }
{
uno::Any anotherAny = xPropSet->getPropertyValue("TextAutoGrowHeight");
sal_Bool bTextAutoGrowHeight;
if(anotherAny >>= bTextAutoGrowHeight)
dumpTextAutoGrowHeightAsAttribute(bTextAutoGrowHeight, xmlWriter);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("TextAutoGrowWidth");
sal_Bool bTextAutoGrowWidth;
if(anotherAny >>= bTextAutoGrowWidth)
dumpTextAutoGrowWidthAsAttribute(bTextAutoGrowWidth, xmlWriter);
}
} }
else if(xServiceInfo->supportsService("com.sun.star.drawing.GroupShape")) else if(xServiceInfo->supportsService("com.sun.star.drawing.GroupShape"))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment