23#include <ooxml/resourceids.hxx>
47 int nIntValue = rVal.
getInt( );
50 case NS_ooxml::LN_CT_PageBorders_display:
55 case NS_ooxml::LN_Value_doc_ST_PageBorderDisplay_allPages:
58 case NS_ooxml::LN_Value_doc_ST_PageBorderDisplay_firstPage:
61 case NS_ooxml::LN_Value_doc_ST_PageBorderDisplay_notFirstPage:
67 case NS_ooxml::LN_CT_PageBorders_offsetFrom:
72 case NS_ooxml::LN_Value_doc_ST_PageBorderOffset_page:
75 case NS_ooxml::LN_Value_doc_ST_PageBorderOffset_text:
87 switch ( rSprm.
getId( ) )
89 case NS_ooxml::LN_CT_PageBorders_top:
90 case NS_ooxml::LN_CT_PageBorders_left:
91 case NS_ooxml::LN_CT_PageBorders_bottom:
92 case NS_ooxml::LN_CT_PageBorders_right:
97 auto pBorderHandler = std::make_shared<BorderHandler>(
true );
98 pProperties->resolve(*pBorderHandler);
100 switch( rSprm.
getId( ) )
102 case NS_ooxml::LN_CT_PageBorders_top:
105 case NS_ooxml::LN_CT_PageBorders_left:
108 case NS_ooxml::LN_CT_PageBorders_bottom:
111 case NS_ooxml::LN_CT_PageBorders_right:
118 aPgBorder.
m_rLine = pBorderHandler->getBorderLine( );
119 aPgBorder.
m_nDistance = pBorderHandler->getLineDistance( );
121 aPgBorder.
m_bShadow = pBorderHandler->getShadow();
122 if (pBorderHandler->getLineType() != NS_ooxml::LN_Value_ST_Border_none)
137 pSectContext->
SetBorder( rBorder.m_ePos, rBorder.m_nDistance, rBorder.m_rLine, rBorder.m_bShadow );
css::chart::ChartAxisLabelPosition ePos
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.
virtual ~PageBordersHandler() override
void SetBorders(SectionPropertyMap *pSectContext)
SectionPropertyMap::BorderOffsetFrom m_eOffsetFrom
virtual void lcl_attribute(Id eName, Value &rVal) override
SectionPropertyMap::BorderApply m_eBorderApply
std::vector< PgBorder > m_aBorders
virtual void lcl_sprm(Sprm &rSprm) override
css::table::BorderLine2 m_rLine
void SetBorder(BorderPosition ePos, sal_Int32 nLineDistance, const css::table::BorderLine2 &rBorderLine, bool bShadow)
void SetBorderApply(BorderApply nSet)
void SetBorderOffsetFrom(BorderOffsetFrom nSet)