summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-04-09 17:17:33 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-04-10 07:32:18 +0200
commitb51519bfd1c4643a7ce74e4b3934281460027703 (patch)
treeaea745cb324035de75c6179b0c0fef59af3d25da /writerfilter
parente789c7f0f15a6b571de95b81e77e3a323e9f540e (diff)
RTF: also import rectangles as Writer text frames
Change-Id: I5aae8cbc050187b1adf7757b112470a8e9e6160e
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/rtftok/rtfsdrimport.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/writerfilter/source/rtftok/rtfsdrimport.cxx b/writerfilter/source/rtftok/rtfsdrimport.cxx
index bbb6dd64ffe9..f5f53b2cf7f1 100644
--- a/writerfilter/source/rtftok/rtfsdrimport.cxx
+++ b/writerfilter/source/rtftok/rtfsdrimport.cxx
@@ -144,9 +144,10 @@ void RTFSdrImport::resolve(RTFShape& rShape)
nType = i->second.toInt32();
switch (nType)
{
- case 20: // Line
+ case ESCHER_ShpInst_Line:
createShape("com.sun.star.drawing.LineShape", xShape, xPropertySet);
break;
+ case ESCHER_ShpInst_Rectangle:
case ESCHER_ShpInst_TextBox:
{
createShape("com.sun.star.text.TextFrame", xShape, xPropertySet);
@@ -346,9 +347,7 @@ void RTFSdrImport::resolve(RTFShape& rShape)
else if (i->first == "dyWrapDistBottom")
xPropertySet->setPropertyValue("BottomMargin", uno::makeAny(i->second.toInt32() / 360));
else
- SAL_INFO("writerfilter", OSL_THIS_FUNC << ": TODO handle shape property '" <<
- OUStringToOString( i->first, RTL_TEXTENCODING_UTF8 ).getStr() << "':'" <<
- OUStringToOString( i->second, RTL_TEXTENCODING_UTF8 ).getStr() << "'");
+ SAL_INFO("writerfilter", "TODO handle shape property '" << i->first << "':'" << i->second << "'");
}
if (xPropertySet.is())