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

#include <ww8par.hxx>

Collaboration diagram for WW8ListManager:
[legend]

Public Types

enum  ListLevel {
  nMinLevel =1,
  nMaxLevel =9
}
 

Public Member Functions

 WW8ListManager (SvStream &rSt_, SwWW8ImplReader &rReader_)
 
SwNumRuleGetNumRuleForActivation (sal_uInt16 nLFOPosition, const sal_uInt8 nLevel, std::vector< sal_uInt8 > &rParaSprms, SwTextNode *pNode=nullptr)
 
SwNumRuleCreateNextRule (bool bSimple)
 
 ~WW8ListManager () COVERITY_NOEXCEPT_FALSE
 
SwNumRuleGetNumRule (size_t i)
 
size_t GetWW8LSTInfoNum () const
 

Static Public Member Functions

static SvxNumType GetSvxNumTypeFromMSONFC (sal_uInt16 nMSONFC)
 

Private Types

typedef std::unique_ptr< SfxItemSetWW8aISet[nMaxLevel]
 
typedef SwCharFormatWW8aCFormat[nMaxLevel]
 

Private Member Functions

SprmResult GrpprlHasSprm (sal_uInt16 nId, sal_uInt8 &rSprms, sal_uInt8 nLen)
 
WW8LSTInfoGetLSTByListId (sal_uInt32 nIdLst) const
 
bool ReadLVL (SwNumFormat &rNumFormat, std::unique_ptr< SfxItemSet > &rpItemSet, sal_uInt16 nLevelStyle, bool bSetStartNo, sal_uInt16 nLevel, ww::bytes &rParaSprms)
 
void AdjustLVL (sal_uInt8 nLevel, SwNumRule &rNumRule, WW8aISet const &rListItemSet, WW8aCFormat &aCharFormat, bool &bNewCharFormatCreated, const OUString &aPrefix=OUString())
 
 WW8ListManager (const WW8ListManager &)=delete
 
WW8ListManageroperator= (const WW8ListManager &)=delete
 

Private Attributes

wwSprmParser maSprmParser
 
SwWW8ImplReaderrReader
 
SwDocrDoc
 
const WW8FibrFib
 
SvStreamrSt
 
std::vector< std::unique_ptr< WW8LSTInfo > > maLSTInfos
 
std::vector< std::unique_ptr< WW8LFOInfo > > m_LFOInfos
 
sal_uInt16 nUniqueList
 
sal_uInt16 nLastLFOPosition
 

Detailed Description

Definition at line 149 of file ww8par.hxx.

Member Typedef Documentation

typedef SwCharFormat* WW8ListManager::WW8aCFormat[nMaxLevel]
private

Definition at line 184 of file ww8par.hxx.

typedef std::unique_ptr<SfxItemSet> WW8ListManager::WW8aISet[nMaxLevel]
private

Definition at line 182 of file ww8par.hxx.

Member Enumeration Documentation

Enumerator
nMinLevel 
nMaxLevel 

Definition at line 154 of file ww8par.hxx.

Constructor & Destructor Documentation

WW8ListManager::WW8ListManager ( SvStream rSt_,
SwWW8ImplReader rReader_ 
)
WW8ListManager::~WW8ListManager ( )

Definition at line 1436 of file ww8par3.cxx.

References SwDoc::DelNumRule(), m_LFOInfos, maLSTInfos, and rDoc.

WW8ListManager::WW8ListManager ( const WW8ListManager )
privatedelete

Member Function Documentation

void WW8ListManager::AdjustLVL ( sal_uInt8  nLevel,
SwNumRule rNumRule,
WW8aISet const &  rListItemSet,
WW8aCFormat aCharFormat,
bool &  bNewCharFormatCreated,
const OUString &  aPrefix = OUString() 
)
private
SwNumRule * WW8ListManager::CreateNextRule ( bool  bSimple)
WW8LSTInfo * WW8ListManager::GetLSTByListId ( sal_uInt32  nIdLst) const
private

Definition at line 484 of file ww8par3.cxx.

References maLSTInfos.

Referenced by GetNumRuleForActivation(), and WW8ListManager().

SwNumRule * WW8ListManager::GetNumRule ( size_t  i)

Definition at line 1093 of file ww8par3.cxx.

References maLSTInfos.

SwNumRule * WW8ListManager::GetNumRuleForActivation ( sal_uInt16  nLFOPosition,
const sal_uInt8  nLevel,
std::vector< sal_uInt8 > &  rParaSprms,
SwTextNode pNode = nullptr 
)
SvxNumType WW8ListManager::GetSvxNumTypeFromMSONFC ( sal_uInt16  nMSONFC)
static
size_t WW8ListManager::GetWW8LSTInfoNum ( ) const
inline

Definition at line 162 of file ww8par.hxx.

References maLSTInfos.

SprmResult WW8ListManager::GrpprlHasSprm ( sal_uInt16  nId,
sal_uInt8 rSprms,
sal_uInt8  nLen 
)
private

Definition at line 463 of file ww8par3.cxx.

References wwSprmParser::findSprmData(), and maSprmParser.

Referenced by ReadLVL().

WW8ListManager& WW8ListManager::operator= ( const WW8ListManager )
privatedelete
bool WW8ListManager::ReadLVL ( SwNumFormat rNumFormat,
std::unique_ptr< SfxItemSet > &  rpItemSet,
sal_uInt16  nLevelStyle,
bool  bSetStartNo,
sal_uInt16  nLevel,
ww::bytes rParaSprms 
)
private

Definition at line 619 of file ww8par3.cxx.

References WW8SprmIter::advance(), ERRCODE_NONE, SwDoc::GetAttrPool(), SwWW8ImplReader::GetCurrentColl(), WW8SprmIter::GetCurrentId(), SvStream::GetError(), SvxNumberFormat::GetPositionAndSpaceMode(), WW8SprmIter::GetRemLen(), WW8SprmIter::GetSprms(), GetSvxNumTypeFromMSONFC(), SwWW8ImplReader::GetToggleAttrFlags(), SwWW8ImplReader::GetToggleBiDiAttrFlags(), comphelper::string::getTokenCount(), GrpprlHasSprm(), i, SwWW8ImplReader::ImportSprm(), SvxNumberFormat::LABEL_WIDTH_AND_POSITION, SvxNumberFormat::LISTTAB, maSprmParser, nMaxLevel, SvxNumberFormat::NOTHING, SprmResult::nRemainingData, nType, SprmResult::pSprm, rDoc, read_uInt16_PascalString(), SvStream::ReadBytes(), SvStream::ReadInt32(), SvStream::ReadUChar(), RES_CHRATR_BEGIN(), RES_CHRATR_END(), rReader, rSt, SAL_WARN, sanitizeString(), SvStream::SeekRel(), SvxNumberFormat::SetAbsLSpace(), SvxNumberFormat::SetBulletChar(), SvxNumberFormat::SetCharTextDistance(), SwWW8ImplReader::SetCurrentItemSet(), SvxNumberFormat::SetFirstLineIndent(), SvxNumberFormat::SetFirstLineOffset(), SwNumFormat::SetGrfBulletCP(), SvxNumberFormat::SetIncludeUpperLevels(), SvxNumberFormat::SetIndentAt(), SvxNumberFormat::SetLabelFollowedBy(), SvxNumberFormat::SetListFormat(), SvxNumberFormat::SetListtabPos(), SwWW8ImplReader::SetNCurrentColl(), SvxNumberFormat::SetNumAdjust(), SvxNumberType::SetNumberingType(), SvxNumberFormat::SetStart(), SwWW8ImplReader::SetToggleAttrFlags(), SwWW8ImplReader::SetToggleBiDiAttrFlags(), SvxNumberFormat::SPACE, NS_sprm::sprmCPbiGrf, NS_sprm::sprmCPbiIBullet, ww::stiNil, SVX_NUM_ARABIC, SVX_NUM_BITMAP, and USHRT_MAX.

Referenced by WW8ListManager().

Member Data Documentation

std::vector<std::unique_ptr<WW8LFOInfo> > WW8ListManager::m_LFOInfos
private

Definition at line 172 of file ww8par.hxx.

Referenced by GetNumRuleForActivation(), WW8ListManager(), and ~WW8ListManager().

std::vector<std::unique_ptr<WW8LSTInfo> > WW8ListManager::maLSTInfos
private
wwSprmParser WW8ListManager::maSprmParser
private

Definition at line 166 of file ww8par.hxx.

Referenced by GrpprlHasSprm(), and ReadLVL().

sal_uInt16 WW8ListManager::nLastLFOPosition
private

Definition at line 192 of file ww8par.hxx.

Referenced by GetNumRuleForActivation().

sal_uInt16 WW8ListManager::nUniqueList
private

Definition at line 173 of file ww8par.hxx.

Referenced by CreateNextRule().

SwDoc& WW8ListManager::rDoc
private

Definition at line 168 of file ww8par.hxx.

Referenced by AdjustLVL(), CreateNextRule(), ReadLVL(), WW8ListManager(), and ~WW8ListManager().

const WW8Fib& WW8ListManager::rFib
private

Definition at line 169 of file ww8par.hxx.

Referenced by WW8ListManager().

SwWW8ImplReader& WW8ListManager::rReader
private

Definition at line 167 of file ww8par.hxx.

Referenced by GetNumRuleForActivation(), ReadLVL(), and WW8ListManager().

SvStream& WW8ListManager::rSt
private

Definition at line 170 of file ww8par.hxx.

Referenced by ReadLVL(), and WW8ListManager().


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