LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | List of all members
LwpSilverBullet Class Reference

#include <lwpsilverbullet.hxx>

Inheritance diagram for LwpSilverBullet:
[legend]
Collaboration diagram for LwpSilverBullet:
[legend]

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)
 
LwpParaGetBulletPara ()
 : 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)
 
LwpAtomHolderGetName ()
 
LwpObjectIDGetChildHead ()
 
LwpObjectIDGetChildTail ()
 
LwpObjectIDGetParent ()
 
- Public Member Functions inherited from LwpDLVList
 LwpDLVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
 
LwpObjectIDGetNext ()
 
LwpObjectIDGetPrevious ()
 
- 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)
 
LwpFoundryGetFoundry ()
 
void SetFoundry (LwpFoundry *pFoundry)
 
LwpObjectIDGetObjectID ()
 
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< LwpParam_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< LwpObjectStreamm_pObjStrm
 
LwpFoundrym_pFoundry
 
LwpSvStreamm_pStrm
 
bool m_bRegisteringStyle
 
bool m_bParsingStyle
 
bool m_bConvertingContent
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 89 of file lwpsilverbullet.hxx.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
LESSERLEVEL 
LESSERSPECIFIC 
NEWDIVISION 
NEWSECTION 
CUMULATIVE 

Definition at line 140 of file lwpsilverbullet.hxx.

Constructor & Destructor Documentation

◆ LwpSilverBullet()

LwpSilverBullet::LwpSilverBullet ( LwpObjectHeader const &  objHdr,
LwpSvStream pStrm 
)

Definition at line 73 of file lwpsilverbullet.cxx.

References m_nFlags, and m_pHideLevels.

◆ ~LwpSilverBullet()

LwpSilverBullet::~LwpSilverBullet ( )
overridevirtual

Definition at line 81 of file lwpsilverbullet.cxx.

Member Function Documentation

◆ GetAdditionalName()

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.

Parameters
nPos position of the numbering.
Returns
: Division or Section name.

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().

◆ GetBulletChar()

OUString const & LwpSilverBullet::GetBulletChar ( ) const

: Get bullet character of the bullet vo_para.

@descr:

Returns
: An UChar32 bullet character.

Definition at line 222 of file lwpsilverbullet.cxx.

References m_xBulletPara.

Referenced by LwpBulletStyleMgr::RegisterBulletStyle().

◆ GetBulletFontName()

OUString LwpSilverBullet::GetBulletFontName ( )

: Get the font name of the bullet.

@descr:

Returns
: Font name of the bullet.

Definition at line 193 of file lwpsilverbullet.cxx.

References LwpFoundry::GetFontManager(), LwpFontManager::GetNameByID(), LwpObject::m_pFoundry, and m_xBulletPara.

Referenced by LwpBulletStyleMgr::RegisterBulletStyle().

◆ GetBulletPara()

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().

◆ GetBulletStyleName()

const OUString & LwpSilverBullet::GetBulletStyleName ( ) const
inline

Definition at line 149 of file lwpsilverbullet.hxx.

References m_strStyleName.

Referenced by LwpPara::RegisterStyle().

◆ GetDisplayLevel()

sal_uInt16 LwpSilverBullet::GetDisplayLevel ( sal_uInt8  nPos)

: Calculate the displaylevel according to the position and hidelevels.

@descr:

Parameters
nPos position of the numbering.
Returns
: displaylevel of the position passed in.

Definition at line 334 of file lwpsilverbullet.cxx.

References nPos.

Referenced by RegisterStyle().

◆ GetDivisionName()

OUString LwpSilverBullet::GetDivisionName ( )

◆ GetNumCharByStyleID()

OUString LwpSilverBullet::GetNumCharByStyleID ( LwpFribParaNumber const *  pParaNumber)
static

: Get numbering character of the bullet vo_para.

@descr:

Parameters
pParaNumber a pointer to the structure LwpFribParaNumber which includes numbering prefix, format and suffix.
Returns
: An OUString object which store the numbering character.

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().

◆ GetPrefix()

static OUString LwpSilverBullet::GetPrefix ( )
inlinestatic

Definition at line 108 of file lwpsilverbullet.hxx.

Referenced by LwpBulletStyleMgr::RegisterBulletStyle().

◆ GetSectionName()

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().

◆ GetSuffix()

static OUString LwpSilverBullet::GetSuffix ( )
inlinestatic

Definition at line 110 of file lwpsilverbullet.hxx.

Referenced by LwpBulletStyleMgr::RegisterBulletStyle().

◆ HasName()

bool LwpSilverBullet::HasName ( )

◆ IsBulletOrdered()

bool LwpSilverBullet::IsBulletOrdered ( )

: To judge the silverbullet list is ordered or not.

@descr:

Returns
: sal_True if list is ordered, sal_False if list is unordered.

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().

◆ IsLesserLevel()

bool LwpSilverBullet::IsLesserLevel ( sal_uInt16  nPos)
inline

Definition at line 150 of file lwpsilverbullet.hxx.

References LESSERLEVEL, m_pResetPositionFlags, and nPos.

Referenced by LwpPara::RegisterStyle().

◆ Read()

void LwpSilverBullet::Read ( )
overridevirtual

◆ RegisterStyle()

void LwpSilverBullet::RegisterStyle ( )
overridevirtual

Member Data Documentation

◆ m_aAtomHolder

LwpAtomHolder LwpSilverBullet::m_aAtomHolder
private

Definition at line 133 of file lwpsilverbullet.hxx.

Referenced by Read().

◆ m_aStory

LwpObjectID LwpSilverBullet::m_aStory
private

Definition at line 130 of file lwpsilverbullet.hxx.

Referenced by GetBulletPara(), GetSectionName(), and Read().

◆ m_nFlags

sal_uInt16 LwpSilverBullet::m_nFlags
private

Definition at line 129 of file lwpsilverbullet.hxx.

Referenced by Read().

◆ m_nUseCount

sal_uInt32 LwpSilverBullet::m_nUseCount
private

Definition at line 132 of file lwpsilverbullet.hxx.

Referenced by Read().

◆ m_pHideLevels

sal_uInt16 LwpSilverBullet::m_pHideLevels[10]
private

Definition at line 137 of file lwpsilverbullet.hxx.

Referenced by LwpSilverBullet(), and RegisterStyle().

◆ m_pResetPositionFlags

sal_uInt8 LwpSilverBullet::m_pResetPositionFlags[MAXNUMBERPOSITIONS]
private

Definition at line 131 of file lwpsilverbullet.hxx.

Referenced by IsLesserLevel(), and Read().

◆ m_strStyleName

OUString LwpSilverBullet::m_strStyleName
private

Definition at line 136 of file lwpsilverbullet.hxx.

Referenced by GetBulletStyleName(), and RegisterStyle().

◆ m_xBulletPara

rtl::Reference<LwpPara> LwpSilverBullet::m_xBulletPara
private

The documentation for this class was generated from the following files: