implement boolean linestyle
This commit is contained in:
parent
c064ec80a0
commit
c2078710a6
1 changed files with 9 additions and 0 deletions
|
@ -46,6 +46,7 @@
|
|||
#include <com/sun/star/beans/XPropertySet.hpp>
|
||||
#include <com/sun/star/drawing/XEnhancedCustomShapeDefaulter.hpp>
|
||||
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
|
||||
#include <com/sun/star/drawing/LineStyle.hpp>
|
||||
|
||||
#define TWIP_TO_MM100(TWIP) ((TWIP) >= 0 ? (((TWIP)*127L+36L)/72L) : (((TWIP)*127L-36L)/72L))
|
||||
|
||||
|
@ -2484,6 +2485,14 @@ void RTFDocumentImpl::resolveShapeProperties(std::vector< std::pair<rtl::OUStrin
|
|||
xPropertySet->setPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("RotateAngle")), aAny);
|
||||
}
|
||||
}
|
||||
else if (i->first.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("fLine")))
|
||||
{
|
||||
if (i->second.toInt32() == 0)
|
||||
{
|
||||
aAny <<= drawing::LineStyle_NONE;
|
||||
xPropertySet->setPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("LineStyle")), aAny);
|
||||
}
|
||||
}
|
||||
else
|
||||
OSL_TRACE("%s: TODO handle shape property '%s':'%s'", OSL_THIS_FUNC,
|
||||
OUStringToOString( i->first, RTL_TEXTENCODING_UTF8 ).getStr(),
|
||||
|
|
Loading…
Reference in a new issue