92 sal_uInt16 nNumPos =
m_pObjStrm->QuickReaduInt16();
95 throw std::range_error(
"corrupt SilverBullet");
97 for (sal_uInt16 nC = 0; nC < nNumPos; nC++)
115 std::unique_ptr<XFListStyle> xListStyle(
new XFListStyle());
123 bool bCumulative =
false;
137 bCumulative = (nDisplayLevel > 1);
141 if (!bCumulative && aParaNumbering.
pPrefix)
154 xListStyle->SetListNumber(
nPos, aFmt, pParaNumber->
GetStart()+1);
156 if (bCumulative &&
nPos > 1)
158 xListStyle->SetDisplayLevel(
nPos, nDisplayLevel);
164 OUString aPrefix, aSuffix;
175 "Times New Roman", aPrefix, aSuffix);
178 xListStyle->SetListPosition(
nPos, 0.0, 0.635, 0.0);
179 aParaNumbering.
clear();
204 sal_uInt16 nFinalFont =
static_cast<sal_uInt16
>((nBulletFontID >> 16) & 0xFFFF);
207 if (nFinalFont > 255 || nFinalFont == 0)
213 OUString aFontName = rFontMgr.
GetNameByID(nBulletFontID);
261 OUString strNumChar(
"1");
262 sal_uInt16 nStyleID = pParaNumber->
GetStyleID();
288 static constexpr OUStringLiteral sBuf =
u"\u58f9\u002c\u0020\u8d30, \u53c1, ...";
289 strNumChar = OUString(sBuf);
294 static constexpr OUStringLiteral sBuf =
u"\u4e00, \u4e8c, \u4e09, ...";
295 strNumChar = OUString(sBuf);
300 static constexpr OUStringLiteral sBuf =
u"\u7532, \u4e59, \u4e19, ...";
301 strNumChar = OUString(sBuf);
338 sal_uInt16 nHideBit = (1 <<
nPos);
341 sal_uInt16 nAttrMask = ~m_pHideLevels[nC];
342 if (!(nAttrMask & nHideBit))
344 return static_cast<sal_uInt16
>(
nPos - nC);
349 return static_cast<sal_uInt16
>(
nPos);
362 sal_uInt16 nHideBit = (1 <<
nPos);
363 bool bDivisionName =
false;
364 bool bSectionName =
false;
384 if (~nHideLevels & nHideBit)
388 bDivisionName =
true;
390 else if (
nType == 0x000E)
396 pParaFrib = pParaFrib->
GetNext();
449 return (!rName.
str().isEmpty());
virtual OUString GetStyleName()=0
@descr: return the style name.
AtomHolder class of Word Pro to hold a string.
void Read(LwpObjectStream *pStrm)
@descr read atomholder from object stream the default encoding used in Word Pro is 1252
const OUString & str() const
Double Linked Named Family Virtual List.
void Read() override
@descr Read LwpDLNFVList data from object stream
LwpAtomHolder & GetName()
OUString const & GetDivName() const
Document object, represent document and division.
LwpObjectID & GetDivInfoID()
OUString GetNameByID(sal_uInt32 fontID)
LwpFontManager & GetFontManager()
LwpDocument * GetDocument()
sal_uInt16 GetNumberChar() const
sal_uInt16 GetStyleID() const
sal_uInt16 GetStart() const
LwpFrib * HasFrib(sal_uInt8 nType)
const OUString & GetText() const
sal_uInt8 GetType() const
ModifierInfo * GetModifiers()
XFStyleManager * GetXFStyleManager()
static LwpGlobalMgr * GetInstance(LwpSvStream *pSvStream=nullptr)
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
std::unique_ptr< LwpObjectStream > m_pObjStrm
rtl::Reference< LwpPara > m_xBulletPara
OUString const & GetBulletChar() const
: Get bullet character of the bullet vo_para.
void Read() override
@descr Read LwpDLNFVList data from object stream
virtual void RegisterStyle() override
: Register bullet or numbering style-list and store the returned name from XFStyleManager.
virtual ~LwpSilverBullet() override
LwpPara * GetBulletPara()
: Get the LwpPara object through story id.
sal_uInt8 m_pResetPositionFlags[MAXNUMBERPOSITIONS]
OUString GetBulletFontName()
: Get the font name of the bullet.
sal_uInt16 m_pHideLevels[10]
static OUString GetNumCharByStyleID(LwpFribParaNumber const *pParaNumber)
: Get numbering character of the bullet vo_para.
OUString GetDivisionName()
LwpSilverBullet(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
LwpAtomHolder m_aAtomHolder
sal_uInt16 GetDisplayLevel(sal_uInt8 nPos)
: Calculate the displaylevel according to the position and hidelevels.
bool IsBulletOrdered()
: To judge the silverbullet list is ordered or not.
OUString GetAdditionalName(sal_uInt8 nPos)
@descr: Get the additional information, "Division name" or "Section Name" from document variable frib...
OUString GetSectionName() const
const OUString & GetSectionName() const
LwpObjectID & GetFirstPara()
encapsulate XInputStream to provide SvStream like interfaces
sal_uInt16 GetHideLevels() const
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)
const sal_uInt16 NUMCHAR_A
const sal_uInt16 NUMCHAR_i
const sal_uInt16 NUMCHAR_Chinese1
const sal_uInt16 NUMCHAR_Chinese4
const sal_uInt16 NUMCHAR_a
const sal_uInt16 NUMCHAR_Chinese3
const sal_uInt16 NUMCHAR_none
const sal_uInt16 NUMCHAR_01
const sal_uInt16 NUMCHAR_I
const sal_uInt16 NUMCHAR_Chinese2
const sal_uInt16 NUMCHAR_1
const sal_uInt16 NUMCHAR_other
#define SAL_N_ELEMENTS(arr)
LwpTextAttributeOverride aTxtAttrOverride
LwpFribParaNumber * pParaNumber