LibreOffice Module sw (master) 1
|
#include <ww8par.hxx>
Public Types | |
enum | ListLevel { nMinLevel =1 , nMaxLevel =9 } |
Public Member Functions | |
WW8ListManager (SvStream &rSt_, SwWW8ImplReader &rReader_) | |
SwNumRule * | GetNumRuleForActivation (sal_uInt16 nLFOPosition, const sal_uInt8 nLevel, std::vector< sal_uInt8 > &rParaSprms, SwTextNode *pNode=nullptr) |
SwNumRule * | CreateNextRule (bool bSimple) |
~WW8ListManager () | |
SwNumRule * | GetNumRule (size_t i) |
size_t | GetWW8LSTInfoNum () const |
Static Public Member Functions | |
static SvxNumType | GetSvxNumTypeFromMSONFC (sal_uInt16 nMSONFC) |
Private Types | |
typedef std::unique_ptr< SfxItemSet > | WW8aISet[nMaxLevel] |
typedef SwCharFormat * | WW8aCFormat[nMaxLevel] |
Private Member Functions | |
SprmResult | GrpprlHasSprm (sal_uInt16 nId, sal_uInt8 &rSprms, sal_uInt8 nLen) |
WW8LSTInfo * | GetLSTByListId (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()) |
void | ImplDestroy () |
WW8ListManager (const WW8ListManager &)=delete | |
WW8ListManager & | operator= (const WW8ListManager &)=delete |
Private Attributes | |
wwSprmParser | maSprmParser |
SwWW8ImplReader & | m_rReader |
SwDoc & | m_rDoc |
const WW8Fib & | m_rFib |
SvStream & | m_rSt |
std::vector< std::unique_ptr< WW8LSTInfo > > | maLSTInfos |
std::vector< std::unique_ptr< WW8LFOInfo > > | m_LFOInfos |
sal_uInt16 | m_nUniqueList |
sal_uInt16 | m_nLastLFOPosition |
Definition at line 152 of file ww8par.hxx.
|
private |
Definition at line 187 of file ww8par.hxx.
|
private |
Definition at line 185 of file ww8par.hxx.
Enumerator | |
---|---|
nMinLevel | |
nMaxLevel |
Definition at line 157 of file ww8par.hxx.
WW8ListManager::WW8ListManager | ( | SvStream & | rSt_, |
SwWW8ImplReader & | rReader_ | ||
) |
Definition at line 1124 of file ww8par3.cxx.
References WW8LSTInfo::aCharFormat, AdjustLVL(), WW8LSTInfo::aIdSty, WW8LFOInfo::bOverride, WW8LSTInfo::bSimpleList, cbLSTF, checkSeek(), CreateNextRule(), SwNumRule::Get(), SvStream::GetError(), GetLSTByListId(), SwDoc::GetNumRuleTable(), SwDoc::GetUniqueNumRuleName(), SvStream::good(), i, WW8Fib::m_fcPlcfLst, WW8Fib::m_fcPlfLfo, WW8Fib::m_lcbPlcfLst, WW8Fib::m_lcbPlfLfo, m_LFOInfos, WW8Fib::m_nVersion, m_rDoc, m_rFib, m_rReader, m_rSt, SwDoc::MakeNumRule(), maLSTInfos, WW8LFOInfo::maOverrides, WW8LSTInfo::maParaSprms, WW8LFOInfo::maParaSprms, WW8LFOInfo::nIdLst, WW8LFOInfo::nLfoLvl, nMaxLevel, nMinLevel, WW8LSTInfo::pNumRule, WW8LFOInfo::pNumRule, SvStream::ReadInt32(), ReadLVL(), SvStream::ReadUChar(), SvStream::ReadUInt16(), SvStream::ReadUInt32(), SvStream::remainingSize(), SAL_WARN, SvStream::Seek(), SvStream::SeekRel(), SwNumRule::Set(), SwNumRule::SetAutoRule(), SvxNumberFormat::SetStart(), sPrefix, SwWW8ImplReader::StyleUsingLFO(), and SvStream::Tell().
WW8ListManager::~WW8ListManager | ( | ) |
Definition at line 1484 of file ww8par3.cxx.
References ImplDestroy(), and suppress_fun_call_w_exception.
|
privatedelete |
|
private |
Definition at line 1001 of file ww8par3.cxx.
References aName, SfxItemSet::Count(), SwNumRule::Get(), SwNumFormat::GetCharFormat(), SvxFontItem::GetCharSet(), SfxItemIter::GetCurItem(), numfunc::GetDefBulletFont(), SwDoc::GetDfltCharFormat(), SvxFontItem::GetFamily(), SvxFontItem::GetFamilyName(), SwFormat::GetFont(), SfxItemSet::GetItemState(), SwNumRule::GetName(), SvxNumberType::GetNumberingType(), SvxFontItem::GetPitch(), SvxFontItem::GetStyleName(), m_rDoc, SwDoc::MakeCharFormat(), SfxItemIter::NextItem(), nMaxLevel, SwNumRule::Set(), SvxNumberFormat::SetBulletFont(), SwNumFormat::SetCharFormat(), vcl::Font::SetCharSet(), vcl::Font::SetFamily(), vcl::Font::SetFamilyName(), SwFormat::SetFormatAttr(), vcl::Font::SetPitch(), vcl::Font::SetStyleName(), sPrefix, SVX_NUM_CHAR_SPECIAL, and SfxPoolItem::Which().
Referenced by WW8ListManager().
SwNumRule * WW8ListManager::CreateNextRule | ( | bool | bSimple | ) |
Definition at line 1100 of file ww8par3.cxx.
References SwDoc::GetNumRuleTable(), SwDoc::GetUniqueNumRuleName(), SvxNumberFormat::LABEL_ALIGNMENT, m_nUniqueList, m_rDoc, SwDoc::MakeNumRule(), SwNumRule::SetAutoRule(), SwNumRule::SetContinusNum(), and sPrefix.
Referenced by WW8ListManager().
|
private |
Definition at line 483 of file ww8par3.cxx.
References maLSTInfos.
Referenced by GetNumRuleForActivation(), and WW8ListManager().
SwNumRule * WW8ListManager::GetNumRule | ( | size_t | i | ) |
Definition at line 1114 of file ww8par3.cxx.
References i, and maLSTInfos.
SwNumRule * WW8ListManager::GetNumRuleForActivation | ( | sal_uInt16 | nLFOPosition, |
const sal_uInt8 | nLevel, | ||
std::vector< sal_uInt8 > & | rParaSprms, | ||
SwTextNode * | pNode = nullptr |
||
) |
Definition at line 1518 of file ww8par3.cxx.
References WW8LFOInfo::bLSTbUIDSet, WW8LFOInfo::bOverride, WW8LSTInfo::bUsedInDoc, WW8LFOInfo::bUsedInDoc, SwNumRule::Get(), GetLSTByListId(), SvxNumberFormat::GetNumAdjust(), SvxNumberFormat::GetStart(), SwNumRule::IsContinusNum(), IsEqualFormatting(), SwWW8ImplReader::IsRightToLeft(), m_LFOInfos, m_nLastLFOPosition, m_rReader, WW8LFOInfo::maOverrides, WW8LFOInfo::maParaSprms, WW8LFOInfo::nIdLst, WW8LFOInfo::nLfoLvl, WW8LSTInfo::pNumRule, WW8LFOInfo::pNumRule, SwNumRule::Set(), SwTextNode::SetAttrListLevel(), SwTextNode::SetAttrListRestartValue(), SwNumRule::SetContinusNum(), SwTextNode::SetListRestart(), and SvxNumberFormat::SetNumAdjust().
|
static |
Definition at line 492 of file ww8par3.cxx.
References nType, SVX_NUM_AIU_FULLWIDTH_JA, SVX_NUM_AIU_HALFWIDTH_JA, SVX_NUM_ARABIC, SVX_NUM_ARABIC_ZERO, SVX_NUM_CHAR_SPECIAL, SVX_NUM_CHARS_ARABIC, SVX_NUM_CHARS_ARABIC_ABJAD, SVX_NUM_CHARS_CYRILLIC_LOWER_LETTER_RU, SVX_NUM_CHARS_CYRILLIC_UPPER_LETTER_RU, SVX_NUM_CHARS_HEBREW, SVX_NUM_CHARS_LOWER_LETTER_N, SVX_NUM_CHARS_NEPALI, SVX_NUM_CHARS_THAI, SVX_NUM_CHARS_UPPER_LETTER_N, SVX_NUM_CIRCLE_NUMBER, SVX_NUM_DI_ZI_ZH, SVX_NUM_FULL_WIDTH_ARABIC, SVX_NUM_HANGUL_JAMO_KO, SVX_NUM_HANGUL_SYLLABLE_KO, SVX_NUM_IROHA_FULLWIDTH_JA, SVX_NUM_IROHA_HALFWIDTH_JA, SVX_NUM_NUMBER_HANGUL_KO, SVX_NUM_NUMBER_HEBREW, SVX_NUM_NUMBER_LOWER_ZH, SVX_NUM_NUMBER_NONE, SVX_NUM_NUMBER_TRADITIONAL_JA, SVX_NUM_NUMBER_UPPER_KO, SVX_NUM_NUMBER_UPPER_ZH, SVX_NUM_NUMBER_UPPER_ZH_TW, SVX_NUM_ROMAN_LOWER, SVX_NUM_ROMAN_UPPER, SVX_NUM_SYMBOL_CHICAGO, SVX_NUM_TEXT_CARDINAL, SVX_NUM_TEXT_NUMBER, SVX_NUM_TEXT_ORDINAL, and SVX_NUM_TIAN_GAN_ZH.
Referenced by SwWW8ImplReader::CoreLoad(), and ReadLVL().
|
inline |
Definition at line 165 of file ww8par.hxx.
References maLSTInfos.
|
private |
Definition at line 462 of file ww8par3.cxx.
References wwSprmParser::findSprmData(), maSprmParser, and nId.
Referenced by ReadLVL().
|
private |
Definition at line 1457 of file ww8par3.cxx.
References SwDoc::DelNumRule(), m_LFOInfos, m_rDoc, and maLSTInfos.
Referenced by ~WW8ListManager().
|
privatedelete |
|
private |
Definition at line 647 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, m_rDoc, m_rReader, m_rSt, maSprmParser, nMaxLevel, SvxNumberFormat::NOTHING, SprmResult::nRemainingData, nType, SprmResult::pSprm, read_uInt16_PascalString(), SvStream::ReadBytes(), SvStream::ReadInt32(), SvStream::ReadUChar(), SAL_WARN, comphelper::string::sanitizeStringSurrogates(), 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, ww::stiNil, SVX_NUM_ARABIC, SVX_NUM_BITMAP, o3tl::temporary(), and NS_sprm::sprm< ispmd, fSpec, sgc, spra >::val.
Referenced by WW8ListManager().
|
private |
Definition at line 175 of file ww8par.hxx.
Referenced by GetNumRuleForActivation(), ImplDestroy(), and WW8ListManager().
|
private |
Definition at line 197 of file ww8par.hxx.
Referenced by GetNumRuleForActivation().
|
private |
Definition at line 176 of file ww8par.hxx.
Referenced by CreateNextRule().
|
private |
Definition at line 171 of file ww8par.hxx.
Referenced by AdjustLVL(), CreateNextRule(), ImplDestroy(), ReadLVL(), and WW8ListManager().
|
private |
Definition at line 172 of file ww8par.hxx.
Referenced by WW8ListManager().
|
private |
Definition at line 170 of file ww8par.hxx.
Referenced by GetNumRuleForActivation(), ReadLVL(), and WW8ListManager().
|
private |
Definition at line 173 of file ww8par.hxx.
Referenced by ReadLVL(), and WW8ListManager().
|
private |
Definition at line 174 of file ww8par.hxx.
Referenced by GetLSTByListId(), GetNumRule(), GetWW8LSTInfoNum(), ImplDestroy(), and WW8ListManager().
|
private |
Definition at line 169 of file ww8par.hxx.
Referenced by GrpprlHasSprm(), and ReadLVL().