21#include <ooxml/resourceids.hxx>
37m_bLeftMarginValid( false ),
39m_bRightMarginValid( false ),
41m_bTopMarginValid( false ),
43m_bBottomMarginValid( false )
53 sal_Int32 nIntValue = rVal.
getInt();
56 case NS_ooxml::LN_CT_TblWidth_w:
60 case NS_ooxml::LN_CT_TblWidth_type:
61 SAL_WARN_IF(NS_ooxml::LN_Value_ST_TblWidth_dxa != sal::static_int_cast<Id>(nIntValue),
"writerfilter",
"CellMarginHandler: cell margins work for absolute values only");
65 SAL_WARN(
"writerfilter",
"CellMarginHandler::lcl_attribute: unknown attribute");
74 beans::PropertyValue aRet;
80 case NS_ooxml::LN_Value_ST_TblWidth_nil:
sType =
"nil";
break;
81 case NS_ooxml::LN_Value_ST_TblWidth_pct:
sType =
"pct";
break;
82 case NS_ooxml::LN_Value_ST_TblWidth_dxa:
sType =
"dxa";
break;
83 case NS_ooxml::LN_Value_ST_TblWidth_auto:
sType =
"auto";
break;
99 pProperties->resolve( *
this );
100 const bool rtl =
false;
101 switch( rSprm.
getId() )
103 case NS_ooxml::LN_CT_TblCellMar_top:
104 case NS_ooxml::LN_CT_TcMar_top:
109 case NS_ooxml::LN_CT_TblCellMar_start:
110 case NS_ooxml::LN_CT_TcMar_start:
123 case NS_ooxml::LN_CT_TblCellMar_left:
124 case NS_ooxml::LN_CT_TcMar_left:
129 case NS_ooxml::LN_CT_TblCellMar_bottom:
130 case NS_ooxml::LN_CT_TcMar_bottom:
135 case NS_ooxml::LN_CT_TblCellMar_end:
136 case NS_ooxml::LN_CT_TcMar_end:
149 case NS_ooxml::LN_CT_TblCellMar_right:
150 case NS_ooxml::LN_CT_TcMar_right:
156 SAL_WARN(
"writerfilter",
"CellMarginHandler::lcl_sprm: unknown sprm");
169 beans::PropertyValue aRet;
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.
sal_Int32 m_nWidth
Original value.
virtual void lcl_sprm(Sprm &sprm) override
void createGrabBag(const OUString &aName)
void enableInteropGrabBag(const OUString &aName)
OUString m_aInteropGrabBagName
bool m_bBottomMarginValid
sal_Int32 m_nValue
Converted value.
sal_Int32 m_nType
Unit of the value (dxa, etc).
virtual ~CellMarginHandler() override
css::beans::PropertyValue getInteropGrabBag()
virtual void lcl_attribute(Id Name, Value &val) override
std::vector< css::beans::PropertyValue > m_aInteropGrabBag
sal_Int32 m_nBottomMargin
Sequence< sal_Int8 > aSeq
#define SAL_WARN_IF(condition, area, stream)
#define SAL_WARN(area, stream)
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
css::uno::Sequence< css::beans::PropertyValue > InitPropertySequence(::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
sal_uInt32 convertTwipToMM100Unsigned(sal_Int32 _t)