LibreOffice Module lotuswordpro (master) 1
|
#include <lwpsilverbullet.hxx>
Public Member Functions | |
LwpSilverBullet (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
virtual | ~LwpSilverBullet () override |
virtual void | RegisterStyle () override |
: Register bullet or numbering style-list and store the returned name from XFStyleManager. More... | |
void | Read () override |
@descr Read LwpDLNFVList data from object stream More... | |
bool | IsBulletOrdered () |
: To judge the silverbullet list is ordered or not. More... | |
OUString | GetBulletFontName () |
: Get the font name of the bullet. More... | |
const OUString & | GetBulletStyleName () const |
OUString const & | GetBulletChar () const |
: Get bullet character of the bullet vo_para. More... | |
bool | HasName () |
bool | IsLesserLevel (sal_uInt16 nPos) |
LwpPara * | GetBulletPara () |
: Get the LwpPara object through story id. More... | |
sal_uInt16 | GetDisplayLevel (sal_uInt8 nPos) |
: Calculate the displaylevel according to the position and hidelevels. More... | |
OUString | GetAdditionalName (sal_uInt8 nPos) |
@descr: Get the additional information, "Division name" or "Section Name" from document variable frib according to numbering position. More... | |
OUString | GetDivisionName () |
OUString | GetSectionName () const |
Public Member Functions inherited from LwpDLNFVList | |
LwpDLNFVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
LwpAtomHolder & | GetName () |
LwpObjectID & | GetChildHead () |
LwpObjectID & | GetChildTail () |
LwpObjectID & | GetParent () |
Public Member Functions inherited from LwpDLVList | |
LwpDLVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
LwpObjectID & | GetNext () |
LwpObjectID & | GetPrevious () |
Public Member Functions inherited from LwpObject | |
LwpObject (LwpObjectHeader objHdr, LwpSvStream *pStrm) | |
@descr construct lwpobject from stream More... | |
void | QuickRead () |
@descr QuickRead template More... | |
void | DoRegisterStyle () |
void | DoParse (IXFStream *pOutputStream) |
void | DoXFConvert (XFContentContainer *pCont) |
LwpFoundry * | GetFoundry () |
void | SetFoundry (LwpFoundry *pFoundry) |
LwpObjectID & | GetObjectID () |
sal_uInt32 | GetTag () const |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Static Public Member Functions | |
static OUString | GetPrefix () |
static OUString | GetSuffix () |
static OUString | GetNumCharByStyleID (LwpFribParaNumber const *pParaNumber) |
: Get numbering character of the bullet vo_para. More... | |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
static void | operator delete (void *pPtr) |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Private Types | |
enum | { LESSERLEVEL = 0x01 , LESSERSPECIFIC = 0x02 , NEWDIVISION = 0x04 , NEWSECTION = 0x08 , CUMULATIVE = 0x10 } |
Private Attributes | |
sal_uInt16 | m_nFlags |
LwpObjectID | m_aStory |
sal_uInt8 | m_pResetPositionFlags [MAXNUMBERPOSITIONS] |
sal_uInt32 | m_nUseCount |
LwpAtomHolder | m_aAtomHolder |
rtl::Reference< LwpPara > | m_xBulletPara |
OUString | m_strStyleName |
sal_uInt16 | m_pHideLevels [10] |
Additional Inherited Members | |
Protected Member Functions inherited from LwpDLNFVList | |
virtual | ~LwpDLNFVList () override |
void | Read () override |
@descr Read LwpDLNFVList data from object stream More... | |
void | ReadName (LwpObjectStream *pObjStrm) |
@descr Read name of LwpDLNFVList from object stream More... | |
Protected Member Functions inherited from LwpDLVList | |
virtual | ~LwpDLVList () override |
void | Read () override |
@descr Read LwpDLVList data from object stream More... | |
Protected Member Functions inherited from LwpObject | |
virtual | ~LwpObject () override |
@descr dtor() More... | |
virtual void | Read () |
@descr default read function More... | |
virtual void | RegisterStyle () |
@descr default register style function More... | |
virtual void | Parse (IXFStream *pOutputStream) |
@descr default parse function More... | |
virtual void | XFConvert (XFContentContainer *pCont) |
@descr default XFConvert function pCont is the XFContentContainer for the object conversion More... | |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Protected Attributes inherited from LwpDLNFVList | |
LwpObjectID | m_ChildHead |
LwpObjectID | m_ChildTail |
LwpObjectID | m_Parent |
LwpAtomHolder | m_Name |
Protected Attributes inherited from LwpObject | |
LwpObjectHeader | m_ObjHdr |
std::unique_ptr< LwpObjectStream > | m_pObjStrm |
LwpFoundry * | m_pFoundry |
LwpSvStream * | m_pStrm |
bool | m_bRegisteringStyle |
bool | m_bParsingStyle |
bool | m_bConvertingContent |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
Definition at line 89 of file lwpsilverbullet.hxx.
|
private |
Enumerator | |
---|---|
LESSERLEVEL | |
LESSERSPECIFIC | |
NEWDIVISION | |
NEWSECTION | |
CUMULATIVE |
Definition at line 140 of file lwpsilverbullet.hxx.
LwpSilverBullet::LwpSilverBullet | ( | LwpObjectHeader const & | objHdr, |
LwpSvStream * | pStrm | ||
) |
Definition at line 73 of file lwpsilverbullet.cxx.
References m_nFlags, and m_pHideLevels.
|
overridevirtual |
Definition at line 81 of file lwpsilverbullet.cxx.
OUString LwpSilverBullet::GetAdditionalName | ( | sal_uInt8 | nPos | ) |
@descr: Get the additional information, "Division name" or "Section Name" from document variable frib according to numbering position.
Whether we should add a Division/Section name or not is determined by the hidelevels of the frib.
nPos position of the numbering. |
Definition at line 359 of file lwpsilverbullet.cxx.
References ModifierInfo::aTxtAttrOverride, FRIB_TAG_DOCVAR, GetDivisionName(), LwpTextAttributeOverride::GetHideLevels(), LwpFrib::GetModifiers(), LwpFrib::GetNext(), GetSectionName(), LwpFrib::GetType(), m_xBulletPara, nPos, and nType.
Referenced by RegisterStyle().
OUString const & LwpSilverBullet::GetBulletChar | ( | ) | const |
: Get bullet character of the bullet vo_para.
@descr:
Definition at line 222 of file lwpsilverbullet.cxx.
References m_xBulletPara.
Referenced by LwpBulletStyleMgr::RegisterBulletStyle().
OUString LwpSilverBullet::GetBulletFontName | ( | ) |
: Get the font name of the bullet.
@descr:
Definition at line 193 of file lwpsilverbullet.cxx.
References LwpFoundry::GetFontManager(), LwpFontManager::GetNameByID(), LwpObject::m_pFoundry, and m_xBulletPara.
Referenced by LwpBulletStyleMgr::RegisterBulletStyle().
LwpPara * LwpSilverBullet::GetBulletPara | ( | ) |
: Get the LwpPara object through story id.
Definition at line 230 of file lwpsilverbullet.cxx.
References LwpStory::GetFirstPara(), m_aStory, m_xBulletPara, LwpObjectID::obj(), VO_PARA, and VO_STORY.
Referenced by LwpBulletStyleMgr::RegisterBulletStyle(), and RegisterStyle().
|
inline |
Definition at line 149 of file lwpsilverbullet.hxx.
References m_strStyleName.
Referenced by LwpPara::RegisterStyle().
sal_uInt16 LwpSilverBullet::GetDisplayLevel | ( | sal_uInt8 | nPos | ) |
: Calculate the displaylevel according to the position and hidelevels.
@descr:
nPos position of the numbering. |
Definition at line 334 of file lwpsilverbullet.cxx.
References nPos.
Referenced by RegisterStyle().
OUString LwpSilverBullet::GetDivisionName | ( | ) |
Definition at line 411 of file lwpsilverbullet.cxx.
References LwpDocument::GetDivInfoID(), LwpDivInfo::GetDivName(), LwpFoundry::GetDocument(), LwpObjectID::IsNull(), LwpObject::m_pFoundry, LwpObjectID::obj(), and VO_DIVISIONINFO.
Referenced by GetAdditionalName().
|
static |
: Get numbering character of the bullet vo_para.
@descr:
pParaNumber a pointer to the structure LwpFribParaNumber which includes numbering prefix, format and suffix. |
Definition at line 253 of file lwpsilverbullet.cxx.
References LwpFribParaNumber::GetNumberChar(), LwpFribParaNumber::GetStyleID(), NUMCHAR_01, NUMCHAR_1, NUMCHAR_A, NUMCHAR_a, NUMCHAR_Chinese1, NUMCHAR_Chinese2, NUMCHAR_Chinese3, NUMCHAR_Chinese4, NUMCHAR_I, NUMCHAR_i, NUMCHAR_none, NUMCHAR_other, and u.
Referenced by LwpBulletStyleMgr::RegisterBulletStyle(), and RegisterStyle().
|
inlinestatic |
Definition at line 108 of file lwpsilverbullet.hxx.
Referenced by LwpBulletStyleMgr::RegisterBulletStyle().
OUString LwpSilverBullet::GetSectionName | ( | ) | const |
Definition at line 435 of file lwpsilverbullet.cxx.
References LwpStory::GetSectionName(), m_aStory, LwpObjectID::obj(), and VO_STORY.
Referenced by GetAdditionalName().
|
inlinestatic |
Definition at line 110 of file lwpsilverbullet.hxx.
Referenced by LwpBulletStyleMgr::RegisterBulletStyle().
bool LwpSilverBullet::HasName | ( | ) |
Definition at line 446 of file lwpsilverbullet.cxx.
References LwpDLNFVList::GetName(), and LwpAtomHolder::str().
Referenced by LwpPara::AddBulletList(), LwpPara::RegisterStyle(), and RegisterStyle().
bool LwpSilverBullet::IsBulletOrdered | ( | ) |
: To judge the silverbullet list is ordered or not.
@descr:
Definition at line 318 of file lwpsilverbullet.cxx.
References FRIB_TAG_PARANUMBER, LwpFribPtr::HasFrib(), and m_xBulletPara.
Referenced by LwpPara::AddBulletList(), LwpPara::RegisterStyle(), and RegisterStyle().
|
inline |
Definition at line 150 of file lwpsilverbullet.hxx.
References LESSERLEVEL, m_pResetPositionFlags, and nPos.
Referenced by LwpPara::RegisterStyle().
|
overridevirtual |
@descr Read LwpDLNFVList data from object stream
Reimplemented from LwpDLNFVList.
Definition at line 85 of file lwpsilverbullet.cxx.
References m_aAtomHolder, m_aStory, m_nFlags, m_nUseCount, LwpObject::m_pObjStrm, m_pResetPositionFlags, LwpDLNFVList::Read(), LwpAtomHolder::Read(), LwpObjectID::ReadIndexed(), and SAL_N_ELEMENTS.
|
overridevirtual |
: Register bullet or numbering style-list and store the returned name from XFStyleManager.
@descr:
Reimplemented from LwpObject.
Definition at line 113 of file lwpsilverbullet.cxx.
References XFStyleManager::AddStyle(), ParaNumbering::clear(), GetAdditionalName(), GetBulletPara(), GetDisplayLevel(), LwpGlobalMgr::GetInstance(), GetNumCharByStyleID(), LwpFribParaNumber::GetStart(), LwpFribParaNumber::GetStyleID(), IXFStyle::GetStyleName(), LwpFribText::GetText(), LwpGlobalMgr::GetXFStyleManager(), HasName(), IsBulletOrdered(), m_pHideLevels, IXFStyleRet::m_pStyle, m_strStyleName, m_xBulletPara, ParaNumbering::nNumLevel, nPos, NUMCHAR_other, ParaNumbering::pParaNumber, ParaNumbering::pPrefix, ParaNumbering::pSuffix, XFNumFmt::SetFormat(), XFNumFmt::SetPrefix(), and XFNumFmt::SetSuffix().
Referenced by LwpDocument::RegisterBulletStyles().
|
private |
Definition at line 133 of file lwpsilverbullet.hxx.
Referenced by Read().
|
private |
Definition at line 130 of file lwpsilverbullet.hxx.
Referenced by GetBulletPara(), GetSectionName(), and Read().
|
private |
Definition at line 129 of file lwpsilverbullet.hxx.
Referenced by Read().
|
private |
Definition at line 132 of file lwpsilverbullet.hxx.
Referenced by Read().
|
private |
Definition at line 137 of file lwpsilverbullet.hxx.
Referenced by LwpSilverBullet(), and RegisterStyle().
|
private |
Definition at line 131 of file lwpsilverbullet.hxx.
Referenced by IsLesserLevel(), and Read().
|
private |
Definition at line 136 of file lwpsilverbullet.hxx.
Referenced by GetBulletStyleName(), and RegisterStyle().
|
private |
Definition at line 135 of file lwpsilverbullet.hxx.
Referenced by GetAdditionalName(), GetBulletChar(), GetBulletFontName(), GetBulletPara(), IsBulletOrdered(), and RegisterStyle().