23#include <com/sun/star/table/BorderLine2.hpp>
26#include <ooxml/resourceids.hxx>
55 sal_Int32 nIntValue = rVal.
getInt();
58 case NS_ooxml::LN_CT_Border_sz:
63 case NS_ooxml::LN_CT_Border_val:
67 case NS_ooxml::LN_CT_Border_color:
71 case NS_ooxml::LN_CT_Border_space:
75 case NS_ooxml::LN_CT_Border_shadow:
78 case NS_ooxml::LN_CT_Border_frame:
81 case NS_ooxml::LN_CT_Border_themeTint:
85 case NS_ooxml::LN_CT_Border_themeShade:
89 case NS_ooxml::LN_CT_Border_themeColor:
94 OSL_FAIL(
"unknown attribute");
101 const bool rtl =
false;
103 switch( rSprm.
getId())
105 case NS_ooxml::LN_CT_TblBorders_top:
109 case NS_ooxml::LN_CT_TblBorders_start:
111 aBorderPos =
"start";
113 case NS_ooxml::LN_CT_TblBorders_left:
117 case NS_ooxml::LN_CT_TblBorders_bottom:
119 aBorderPos =
"bottom";
121 case NS_ooxml::LN_CT_TblBorders_end:
125 case NS_ooxml::LN_CT_TblBorders_right:
127 aBorderPos =
"right";
129 case NS_ooxml::LN_CT_TblBorders_insideH:
131 aBorderPos =
"insideH";
133 case NS_ooxml::LN_CT_TblBorders_insideV:
135 aBorderPos =
"insideV";
143 std::vector<beans::PropertyValue> aSavedGrabBag;
149 pProperties->resolve(*
this);
188 table::BorderLine2 aBorderLine;
201 beans::PropertyValue aRet;
213 beans::PropertyValue aProperty;
214 aProperty.Name = aKey;
215 aProperty.Value <<= aValue;
223 return aComplexColor;
229 sal_Int16 nTint = sal_Int16((255.0 -
m_nThemeTint) * 10000.0 / 255.0);
234 sal_Int16 nShade = sal_Int16((255.0 -
m_nThemeShade) * 10000 / 255.0);
238 return aComplexColor;
void setSchemeColor(ThemeColorType eType)
void addTransformation(Transformation const &rTransform)
An SPRM: Section, Paragraph and Run Modifier.
virtual sal_uInt32 getId() const =0
Returns id of the SPRM.
virtual writerfilter::Reference< Properties >::Pointer_t getProps()=0
Returns reference to properties contained in the SPRM.
virtual int getInt() const =0
Returns integer representation of the value.
model::ThemeColorType m_eThemeColorType
css::beans::PropertyValue getInteropGrabBag(const OUString &aName=OUString())
std::vector< css::beans::PropertyValue > m_aInteropGrabBag
void appendGrabBag(const OUString &aKey, const OUString &aValue)
css::table::BorderLine2 getBorderLine()
virtual void lcl_attribute(Id Name, Value &val) override
OUString m_aInteropGrabBagName
BorderHandler(bool bOOXML)
sal_Int32 m_nLineDistance
o3tl::enumarray< BorderPosition, css::table::BorderLine2 > m_aBorderLines
virtual void lcl_sprm(Sprm &sprm) override
PropertyMapPtr getProperties()
model::ComplexColor getComplexColor() const
void enableInteropGrabBag(const OUString &aName)
o3tl::enumarray< BorderPosition, bool > m_aFilledLines
virtual ~BorderHandler() override
static OUString getBorderTypeString(sal_Int32 nType)
static model::ThemeColorType getThemeColorTypeIndex(sal_Int32 nType)
static OUString getThemeColorTypeString(sal_Int32 nType)
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
OUString ConvertColorOU(const Color &rColor)
void MakeBorderLine(sal_Int32 nLineThickness, sal_Int32 nLineToken, sal_Int32 nLineColor, table::BorderLine2 &rToFill, bool bIsOOXML)
sal_Int32 convertTwipToMM100(sal_Int32 _t)
@ META_PROP_HORIZONTAL_BORDER
@ META_PROP_VERTICAL_BORDER
const PropertyStruct aPropNames[]