63#include <boost/cast.hpp>
81using boost::polymorphic_downcast;
137 sal_uInt16 otherlevel;
146 bool bAlreadySeen = !aSeen.
insert(pPara).second;
148 throw std::runtime_error(
"loop in conversion");
150 if ((otherlevel < level) || (otherlevel && (level == 0)))
170 sal_uInt16 nCurrentPos = 0;
189 if (nCurrentPos == nPosition)
226 if (nCurrentPos == nPosition)
327 std::unique_ptr<LwpParaBorderOverride> pFinalBorder(
329 ? polymorphic_downcast<LwpParaBorderOverride*>(pBorder->
clone())
337 std::unique_ptr<LwpParaBorderOverride> pLocalBorder(
338 polymorphic_downcast<LwpParaBorderOverride*>(pBorder->
clone()));
339 pLocalBorder->Override(pFinalBorder.get());
359 std::unique_ptr<LwpBreaksOverride> pFinalBreaks(
361 ? polymorphic_downcast<LwpBreaksOverride*>(pBreaks->
clone())
369 std::unique_ptr<LwpBreaksOverride>
const pLocalBreaks(
370 polymorphic_downcast<LwpBreaksOverride*>(pBreaks->
clone()));
371 pLocalBreaks->Override(pFinalBreaks.get());
375 m_pBreaks.reset( pFinalBreaks.release() );
384 std::unique_ptr<XFParaStyle> pStyle(
new XFParaStyle());
390 std::unique_ptr<XFParaStyle> pStyle(
new XFParaStyle());
396 std::unique_ptr<XFParaStyle> pStyle(
new XFParaStyle());
402 std::unique_ptr<XFParaStyle> pStyle(
new XFParaStyle());
434 if (aSilverBulletID.
IsNull())
443 std::unique_ptr<LwpBulletOverride> xFinalBullet(rBullet.
clone());
445 std::unique_ptr<LwpBulletOverride>
const pLocalBullet2(pLocalBullet->
clone());
446 pLocalBullet2->Override(xFinalBullet.get());
448 aSilverBulletID = xFinalBullet->GetSilverBullet();
450 if (!aSilverBulletID.
IsNull())
497 pOver.reset(pPropNumbering->
clone());
504 pOver.reset(pParaNumbering->
clone());
522 if(
i->GetType() == nPropType)
570 return xLayout.is() && xLayout->IsCell();
virtual OUString GetStyleName()=0
@descr: return the style name.
void Override(LwpAlignmentOverride *other)
virtual LwpBulletOverride * clone() const override
const LwpObjectID & GetSilverBullet() const
rtl::Reference< LwpVirtualLayout > GetLayout(LwpVirtualLayout const *pStartLayout)
LwpObjectID & GetPrevious()
sal_uInt32 GetChars() const
sal_uInt16 GetLines() const
void SetPara(LwpPara *para)
bool ComparePagePosition(LwpVirtualLayout const *pPreLayout, LwpVirtualLayout const *pNextLayout)
@descr: If the position of pPreLayout is earlier than pNextLayout, return true, or return false,...
sal_uInt8 GetType() const
ModifierInfo * GetModifiers()
XFStyleManager * GetXFStyleManager()
static LwpGlobalMgr * GetInstance(LwpSvStream *pSvStream=nullptr)
void Override(LwpIndentOverride *other)
virtual LwpNumberingOverride * clone() const override
rtl::Reference< LwpObject > obj(VO_TYPE tag=VO_INVALID) const
@descr get object from object factory per the object id
void SetFoundry(LwpFoundry *pFoundry)
virtual LwpOverride * clone() const =0
LwpParaBorderOverride * GetParaBorder() const
static void ApplyParaBorder(XFParaStyle *pParaStyle, LwpParaBorderOverride *pBorder)
LwpNumberingOverride * GetNumberingOverride() const
static void ApplyAlignment(XFParaStyle *pParaStyle, const LwpAlignmentOverride *pAlign)
static void ApplySpacing(LwpPara *pPara, XFParaStyle *pParaStyle, LwpSpacingOverride *pSpacing)
LwpBreaksOverride * GetBreaks() const
const LwpBulletOverride & GetBulletOverride() const
static void ApplyIndent(LwpPara *pPara, XFParaStyle *pParaStyle, const LwpIndentOverride *pIndent)
void SetAllText(std::u16string_view sText)
set text of paragraph
sal_uInt16 GetLevel() const
OUString m_BefColumnBreakName
bool ComparePagePosition(LwpVirtualLayout const *pPreLayout, LwpVirtualLayout const *pNextLayout)
@descr: If the two layouts in the same para, compare which layout is earlied according to frib order
OUString m_AftColumnBreakName
void GatherDropcapInfo()
get drop cap info
void OverrideIndent(LwpIndentOverride *base, LwpIndentOverride *over, XFParaStyle *pOverStyle)
override indent attribute
void SetFirstFrib(const OUString &Content, sal_uInt32 FontID)
set first frib content
LwpDropcapLayout * m_pDropcapLayout
std::unique_ptr< LwpBulletOverride > m_xBullOver
void OverrideParaBorder(LwpParaProperty *pProps, XFParaStyle *pOverStyle)
: Override paraborder style.
bool IsInCell()
check paragraph in cell or not
std::unique_ptr< LwpBreaksOverride > m_pBreaks
std::vector< std::unique_ptr< LwpParaProperty > > m_vProps
OUString m_BefPageBreakName
void OverrideParaBreaks(LwpParaProperty *pProps, XFParaStyle *pOverStyle)
: Override parabreaks style.
std::unique_ptr< LwpNumberingOverride > m_xParaNumbering
void OverrideParaBullet(LwpParaProperty *pProps)
: Override bullet styles.
LwpPara * GetParent()
get parent paragraph
bool operator<(LwpPara const &Other)
@descr: Determined which para is earlier in position
LwpSilverBullet * m_pSilverBullet
LwpParaStyle * GetParaStyle()
: Get parastyle object according to the objID.
static void OverrideAlignment(LwpAlignmentOverride *base, LwpAlignmentOverride *over, XFParaStyle *pOverStyle)
override alignment
OUString const & GetContentText(bool bAllText=false)
get text of paragraph
OUString m_AftPageBreakName
LwpTabOverride * GetLocalTabOverride()
LwpParaProperty * GetProperty(sal_uInt32 nPropType)
void OverrideParaNumbering(LwpParaProperty const *pProps)
: Override paranumbering properties.
LwpObjectID m_aSilverBulletID
XFParaStyle * GetXFParaStyle()
get paragraph xfstyle
void OverrideSpacing(LwpSpacingOverride *base, LwpSpacingOverride *over, XFParaStyle *pOverStyle)
override spacing
void GetParaNumber(sal_uInt16 nPosition, ParaNumbering *pParaNumbering)
: Offer prefix, paranumber and suffix according to position.
void Override(LwpSpacingOverride *other)
sal_uInt16 GetHideLevels() const
Style object for aragraph.
void SetBreaks(enumXFBreaks breaks)
descr You can only set one break property for every para style object.
Style manager for the filter.
IXFStyleRet AddStyle(std::unique_ptr< IXFStyle > pStyle)
XFParaStyle * FindParaStyle(std::u16string_view name)
std::pair< const_iterator, bool > insert(Value &&x)
LwpTextAttributeOverride aTxtAttrOverride
LwpFribParaNumber * pParaNumber
@ enumXFBreakKeepWithNext