92 , m_pSilverBullet(nullptr)
93 , m_bBullContinue(false)
94 , m_SectionStyleName(
"")
95 , m_bHasDropcap(false)
98 , m_pDropcapLayout(nullptr)
121 const int DISK_SIMPLE = 1;
122 const int DISK_NOTIFY = 2;
124 Simple = (Flag & DISK_SIMPLE) != 0;
125 Notify = (Flag & DISK_NOTIFY) != 0;
224 xListItem->Add(xPara.get());
261 std::unique_ptr<XFParaStyle> xOverStyle(
new XFParaStyle);
262 *xOverStyle = *pBaseStyle;
282 if (pBaseStyle ==
nullptr)
return;
288 if (pParaStyle && pParaStyle->
GetIndent())
294 std::unique_ptr<XFParaStyle> xOverStyle;
295 bool noSpacing =
true;
300 bool noIndent =
true;
302 *xOverStyle = *pBaseStyle;
308 PropType = pProps->GetType();
320 std::unique_ptr<LwpAlignmentOverride>
const pAlign(
352 std::unique_ptr<LwpSpacingOverride>
const
371 pBulletProps = pProps.get();
376 pNumberingProps = pProps.get();
394 xOverStyle->SetBackImage(xXFBGImage);
402 xOverStyle->SetBackColor( aXFColor );
433 *xOverStyle = *pBaseStyle;
448 *xOverStyle = *pOldStyle;
482 OUString aPreBullStyleName;
488 sal_uInt16 nNum = 0, nLevel = 0, nFoundLevel = 0xffff, nFoundBound = 0;
490 nFoundBound = nLevel = pNumbering->
GetLevel();
500 bool bAlreadySeen = !aSeen.
insert(pPara).second;
502 throw std::runtime_error(
"loop in conversion");
508 if (!pParaSilverBullet)
517 if (pNumbering && bLesser && (!bHeading || pNumbering->
IsHeading()))
519 if (nFoundLevel != 0xffff)
521 if (pNumbering->
GetLevel() < nFoundLevel)
525 if ((pNumbering->
GetLevel() == nFoundLevel)
534 if (pNumbering->
GetLevel() < nFoundBound
538 nFoundBound = pNumbering->
GetLevel();
547 else if ( pParaSilverBullet
549 && pNumbering && nPosition == pNumbering->
GetPosition())
553 if (nFoundLevel != 0xffff)
555 if (nFoundLevel == pNumbering->
GetLevel())
561 else if (pNumbering->
GetLevel() <= nLevel)
563 if (pNumbering->
GetLevel() >= nFoundBound)
567 nFoundLevel = pNumbering->
GetLevel();
593 nNum = nNum ? nNum : 1;
608 std::unique_ptr<XFListStyle> xNewStyle(
new XFListStyle(*pOldStyle));
640 XFMargins* pMargin = &xOverStyle->GetMargins();
651 std::unique_ptr<XFParaStyle> xNewParaStyle(
new XFParaStyle);
670 std::unique_ptr<XFParaStyle> xStyle(
new XFParaStyle);
691 xSectStyle->SetColumns(pColumns);
765 pCont->
Add(xPara.get());
767 else if (
m_pBreaks->IsColumnBreakBefore())
771 pCont->
Add(xPara.get());
783 pCont->
Add(xPara.get());
785 else if (
m_pBreaks->IsColumnBreakAfter())
789 pCont->
Add(xPara.get());
806 if (!pBulletStyleMgr)
813 bool bOrdered =
false;
Stream wrapper for sax writer.
virtual OUString GetStyleName()=0
@descr: return the style name.
virtual LwpAlignmentOverride * clone() const override
LwpBackgroundStuff & GetBGStuff()
std::unique_ptr< XFBGImage > GetFillPattern()
LwpColor * GetFillColor()
bool IsPatternFill() const
bool IsTransparent() const
void SetContinueFlag(bool bFlag)
void SetCurrentSilverBullet(const LwpObjectID &rNewID)
rtl::Reference< XFContentContainer > AddBulletList(XFContentContainer *pCont, bool bIsOrdered, const OUString &rStyleName, sal_Int16 nLevel, bool bIsBulletSkiped)
OUString RegisterBulletStyle(LwpPara *pPara, const LwpBulletOverride *pBullOver, LwpIndentOverride const *pIndent)
Register bullet style to style-list.
lwpcolor class (red, green, blue, extra)
bool IsValidColor() const
sal_uInt32 To24Color()
@descr return the BGR format
Double Linked Virtual List.
LwpObjectID & GetPrevious()
void Read() override
@descr Read LwpDLVList data from object stream
XFParagraph * GetXFPara()
void Read(LwpObjectStream *pObjStrm)
LwpNotifyListPersistent & GetExtraList()
LwpNotifyListPersistent m_PersistentList
LwpDropcapMgr & GetDropcapMgr()
LwpBulletStyleMgr * GetBulletStyleMgr()
LwpStyleManager * GetStyleManager()
void ReadPara(LwpObjectStream *pObjStrm)
void SetPara(LwpPara *para)
LwpFrib * HasFrib(sal_uInt8 nType)
void SetXFPara(XFParagraph *Para)
XFStyleManager * GetXFStyleManager()
static LwpGlobalMgr * GetInstance(LwpSvStream *pSvStream=nullptr)
XFColumns * GetXFColumns()
@descr: Create and return XFColumns object
LwpTabOverride * GetTabOverride()
@descr: Add back color settings into xfpagemaster.
void Read(LwpObjectStream *pObjStrm)
sal_uInt16 GetPosition() const
sal_uInt16 GetLevel() const
void ReadIndexed(LwpSvStream *pStrm)
@descr Read object id with indexed format from stream if index>0, lowid is get from time table per th...
rtl::Reference< LwpObject > obj(VO_TYPE tag=VO_INVALID) const
@descr get object from object factory per the object id
stream class for LwpObject body data provide stream like interface to read object data
void SkipExtra()
@descr skip extra bytes
std::unique_ptr< LwpObjectStream > m_pObjStrm
LwpFoundry * GetFoundry()
LwpObjectID & GetObjectID()
LwpIndentOverride * GetIndent()
LwpSpacingOverride * GetSpacing()
LwpTabOverride * GetTabOverride() const
LwpAlignmentOverride * GetAlignment()
static void ApplyTab(XFParaStyle *pParaStyle, LwpTabOverride *pTab)
OUString m_BefColumnBreakName
OUString m_AftColumnBreakName
OUString m_SectionStyleName
void GatherDropcapInfo()
get drop cap info
rtl::Reference< XFSection > CreateXFSection()
void OverrideIndent(LwpIndentOverride *base, LwpIndentOverride *over, XFParaStyle *pOverStyle)
override indent attribute
virtual ~LwpPara() override
const OUString & GetBulletStyleName() const
void RegisterNewSectionStyle(LwpPageLayout *pLayout)
OUString m_aBulletStyleName
double GetBelowSpacing() const
std::unique_ptr< LwpBulletOverride > m_xBullOver
void OverrideParaBorder(LwpParaProperty *pProps, XFParaStyle *pOverStyle)
: Override paraborder style.
void RegisterStyle() override
register paragraph 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
rtl::Reference< XFContentContainer > AddBulletList(XFContentContainer *pCont)
void OverrideParaBreaks(LwpParaProperty *pProps, XFParaStyle *pOverStyle)
: Override parabreaks style.
void XFConvert(XFContentContainer *pCont) override
@descr default XFConvert function pCont is the XFContentContainer for the object conversion
std::unique_ptr< LwpNumberingOverride > m_xParaNumbering
void OverrideParaBullet(LwpParaProperty *pProps)
: Override bullet styles.
LwpPara * GetParent()
get parent paragraph
void ReadPropertyList(LwpObjectStream *pFile)
void AddBreakBefore(XFContentContainer *pCont)
add paragraph break attribute
OUString m_ParentStyleName
LwpNumberingOverride * GetParaNumbering()
LwpSilverBullet * m_pSilverBullet
LwpBulletStyleMgr * GetBulletStyleMgr()
LwpParaStyle * GetParaStyle()
: Get parastyle object according to the objID.
rtl::Reference< XFContentContainer > m_xXFContainer
std::unique_ptr< LwpIndentOverride > m_pIndentOverride
LwpSilverBullet * GetSilverBullet()
static void OverrideAlignment(LwpAlignmentOverride *base, LwpAlignmentOverride *over, XFParaStyle *pOverStyle)
override alignment
void Read() override
@descr Read LwpDLVList data from object stream
void Parse(IXFStream *pOutputStream) override
@descr default parse function
void RegisterTabStyle(XFParaStyle *pXFParaStyle)
OUString m_AftPageBreakName
void AddBreakAfter(XFContentContainer *pCont)
LwpTabOverride * GetLocalTabOverride()
void OverrideParaNumbering(LwpParaProperty const *pProps)
: Override paranumbering properties.
void ParseDropcapContent()
parse dropcap text
XFParaStyle * GetXFParaStyle()
get paragraph xfstyle
LwpPara(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
void OverrideSpacing(LwpSpacingOverride *base, LwpSpacingOverride *over, XFParaStyle *pOverStyle)
override spacing
LwpIndentOverride * GetIndent()
void RegisterMasterPage(XFParaStyle const *pBaseStyle)
void Read(LwpObjectStream *pStrm)
@descr read point from object stream
const OUString & GetBulletStyleName() const
bool IsBulletOrdered()
: To judge the silverbullet list is ordered or not.
bool IsLesserLevel(sal_uInt16 nPos)
virtual LwpSpacingOverride * clone() const override
bool IsPMModified() const
bool IsBullStyleUsedBefore(const OUString &rStyleName, sal_uInt8 nPos)
bool GetDropcapFlag() const
void AddXFContent(XFContent *pContent)
void AddBullStyleName2List(const OUString &rStyleName, sal_uInt8 nPos)
LwpMiddleLayout * GetTabLayout()
LwpPageLayout * GetCurrentLayout()
LwpPara * GetLastParaOfPreviousStory()
IXFStyle * GetStyle(const LwpObjectID &styleObjID)
encapsulate XInputStream to provide SvStream like interfaces
void Override(LwpTabOverride *pOther)
const OUString & GetStyleName() const
virtual void Add(XFContent *pContent)
@descr Add content.
Style object for aragraph.
bool GetNumberRight() const
void SetAlignType(enumXFAlignType eAlign)
@descr Set alignment property of the paragraph.
Paragraph object for SODC.
Style manager for the filter.
IXFStyle * FindStyle(std::u16string_view name)
IXFStyleRet AddStyle(std::unique_ptr< IXFStyle > pStyle)
XFParaStyle * FindParaStyle(std::u16string_view name)
virtual OUString GetStyleName() override
@descr get style name.
virtual void SetStyleName(const OUString &styleName) override
@descr set style name.
std::pair< const_iterator, bool > insert(Value &&x)
T * clone(T *const other)
Creates a new copy of the passed object.
#define PP_LOCAL_BACKGROUND
#define PP_LOCAL_NUMBERING