Kaydet (Commit) 1eaab77c authored tarafından Miklos Vajna's avatar Miklos Vajna

fdo#60722 import RTF_SHPZ

Change-Id: I6c572d44d93f812d50376ec05ae94bdabadb3f1e
üst cf2a1277
...@@ -251,7 +251,8 @@ sal_Int32 GraphicZOrderHelper::findZOrder( sal_Int32 relativeHeight ) ...@@ -251,7 +251,8 @@ sal_Int32 GraphicZOrderHelper::findZOrder( sal_Int32 relativeHeight )
while( it != items.end()) while( it != items.end())
{ {
// std::map is iterated sorted by key // std::map is iterated sorted by key
if( it->first > relativeHeight ) // if there is an item that has the same z-order, we belong under it
if( it->first >= relativeHeight )
break; // this is the first one higher, we belong right before it break; // this is the first one higher, we belong right before it
else else
++it; ++it;
......
...@@ -3187,6 +3187,9 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) ...@@ -3187,6 +3187,9 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
case RTF_SHPBOTTOM: case RTF_SHPBOTTOM:
m_aStates.top().aShape.nBottom = TWIP_TO_MM100(nParam); m_aStates.top().aShape.nBottom = TWIP_TO_MM100(nParam);
break; break;
case RTF_SHPZ:
m_aStates.top().aShape.oZ.reset(nParam);
break;
case RTF_FFTYPE: case RTF_FFTYPE:
switch (nParam) switch (nParam)
{ {
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <stack> #include <stack>
#include <queue> #include <queue>
#include <boost/optional.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
...@@ -259,6 +260,7 @@ namespace writerfilter { ...@@ -259,6 +260,7 @@ namespace writerfilter {
sal_Int32 nTop; sal_Int32 nTop;
sal_Int32 nRight; sal_Int32 nRight;
sal_Int32 nBottom; sal_Int32 nBottom;
boost::optional<sal_Int32> oZ; ///< Z-Order of the shape.
sal_Int16 nHoriOrientRelation; sal_Int16 nHoriOrientRelation;
sal_Int16 nVertOrientRelation; sal_Int16 nVertOrientRelation;
int nWrap; int nWrap;
......
...@@ -298,6 +298,8 @@ void RTFSdrImport::resolve(RTFShape& rShape) ...@@ -298,6 +298,8 @@ void RTFSdrImport::resolve(RTFShape& rShape)
{ {
xPropertySet->setPropertyValue("LineColor", aLineColor); xPropertySet->setPropertyValue("LineColor", aLineColor);
xPropertySet->setPropertyValue("LineWidth", aLineWidth); xPropertySet->setPropertyValue("LineWidth", aLineWidth);
if (rShape.oZ)
resolveDhgt(xPropertySet, *rShape.oZ);
} }
if (nType == ESCHER_ShpInst_PictureFrame) // picture frame if (nType == ESCHER_ShpInst_PictureFrame) // picture frame
......
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