77 , m_bIsBulletSkipped(false)
97 if(!pPara || !pIndent || !pBullOver)
112 SAL_WARN(
"lwp",
"missing bullet para");
125 std::unique_ptr<LwpBulletOverride> pBulletOver(pBullOver->
clone());
127 sal_uInt16 nNameIndex = 0;
130 if (vIDsPair.first->GetSilverBullet() == aBulletID && vIDsPair.second == aIndentID
131 && vIDsPair.first->IsRightAligned() == pBullOver->
IsRightAligned())
153 std::unique_ptr<XFListStyle> pListStyle(
new XFListStyle());
165 pListStyle->SetListPosition(nC, 0.0,
170 pListStyle->SetListPosition(nC, 0.0,
210 pListStyle->SetListNumber(
nPos, aFmt, pParaNumber->
GetStart()+1);
215 OUString aPrefix, aSuffix;
226 "Times New Roman", aPrefix, aSuffix);
229 pListStyle->SetListPosition(
nPos, 0.0, 0.635, 0.0);
244 const OUString& rStyleName, sal_Int16 nLevel,
bool bIsBulletSkiped)
256 for (
sal_Int8 nC = nLevel - 1; nC >= 0; nC--)
260 theList->Add(theItem);
264 theList->SetOrdered(
true);
269 theList->SetOrdered(
false);
272 if (nC == nLevel - 1)
274 theList->SetContinueNumber(bContinue);
277 if (nC == 0 && pCont)
279 theList->SetStyleName(rStyleName);
280 theList->SetContinueNumber(bContinue);
281 pCont->
Add(theList.get());
284 if ((nC == 0) && bIsBulletSkiped)
286 theList->SetContinueNumber(
true);
289 if ((nC == nLevel - 1) && bIsBulletSkiped)
294 if (nC == nLevel - 1)
301 theItem->
Add(prevList.get());
virtual OUString GetStyleName()=0
@descr: return the style name.
virtual LwpBulletOverride * clone() const override
const LwpObjectID & GetSilverBullet() const
bool IsRightAligned() const
std::vector< OverridePair > m_vIDsPairList
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.
std::vector< OUString > m_vStyleNameList
sal_uInt16 GetStyleID() const
sal_uInt16 GetStart() const
LwpFrib * HasFrib(sal_uInt8 nType)
const OUString & GetText() const
XFStyleManager * GetXFStyleManager()
static LwpGlobalMgr * GetInstance(LwpSvStream *pSvStream=nullptr)
sal_Int32 GetMFirst() const
sal_Int32 GetMRest() const
const LwpObjectID & GetIndentID() const
LwpSilverBullet * GetSilverBullet()
LwpParaProperty * GetProperty(sal_uInt32 nPropType)
void GetParaNumber(sal_uInt16 nPosition, ParaNumbering *pParaNumbering)
: Offer prefix, paranumber and suffix according to position.
OUString const & GetBulletChar() const
: Get bullet character of the bullet vo_para.
LwpPara * GetBulletPara()
: Get the LwpPara object through story id.
OUString GetBulletFontName()
: Get the font name of the bullet.
static OUString GetSuffix()
static OUString GetNumCharByStyleID(LwpFribParaNumber const *pParaNumber)
: Get numbering character of the bullet vo_para.
static OUString GetPrefix()
virtual void Add(XFContent *pContent)
@descr Add content.
list object for order-list and unordered-list.
void SetFormat(const OUString &format)
void SetPrefix(const OUString &prefix)
void SetSuffix(const OUString &suffix)
Style manager for the filter.
IXFStyleRet AddStyle(std::unique_ptr< IXFStyle > pStyle)
#define SAL_WARN(area, stream)
const sal_uInt16 NUMCHAR_Chinese4
const sal_uInt16 NUMCHAR_01
const sal_uInt16 NUMCHAR_other
LwpFribParaNumber * pParaNumber