LibreOffice Module sw (master) 1
|
#include <numrule.hxx>
Classes | |
struct | Extremities |
Public Types | |
typedef std::vector< SwTextNode * > | tTextNodeList |
typedef std::vector< SwTextFormatColl * > | tParagraphStyleList |
Public Member Functions | |
SwNumRule (OUString aNm, const SvxNumberFormat::SvxNumPositionAndSpaceMode eDefaultNumberFormatPositionAndSpaceMode, SwNumRuleType=NUM_RULE) | |
add parameter <eDefaultNumberFormatPositionAndSpaceMode> More... | |
SwNumRule (const SwNumRule &) | |
~SwNumRule () | |
SwNumRule & | operator= (const SwNumRule &) |
bool | operator== (const SwNumRule &) const |
bool | operator!= (const SwNumRule &r) const |
void | Reset (const OUString &rName) |
const SwNumFormat * | GetNumFormat (sal_uInt16 i) const |
const SwNumFormat & | Get (sal_uInt16 i) const |
bool | IsHidden () const |
void | SetHidden (bool bValue) |
void | Set (sal_uInt16 i, const SwNumFormat *) |
void | Set (sal_uInt16 i, const SwNumFormat &) |
OUString | MakeNumString (const SwNodeNum &, bool bInclStrings=true) const |
OUString | MakeNumString (const SwNumberTree::tNumberVector &rNumVector, const bool bInclStrings=true, const unsigned int _nRestrictToThisLevel=MAXLEVEL, Extremities *pExtremities=nullptr, LanguageType nLang=LANGUAGE_SYSTEM) const |
OUString | MakeRefNumString (const SwNodeNum &rNodeNum, const bool bInclSuperiorNumLabels, const int nRestrictInclToThisLevel) const |
OUString | MakeParagraphStyleListString () const |
void | GetTextNodeList (SwNumRule::tTextNodeList &rTextNodeList) const |
SwNumRule::tTextNodeList::size_type | GetTextNodeListSize () const |
void | AddTextNode (SwTextNode &rTextNode) |
void | RemoveTextNode (SwTextNode &rTextNode) |
SwNumRule::tParagraphStyleList::size_type | GetParagraphStyleListSize () const |
void | AddParagraphStyle (SwTextFormatColl &rTextFormatColl) |
void | RemoveParagraphStyle (SwTextFormatColl &rTextFormatColl) |
void | SetDefaultListId (const OUString &sDefaultListId) |
const OUString & | GetDefaultListId () const |
void | SetNumRuleMap (std::unordered_map< OUString, SwNumRule * > *pNumRuleMap) |
Register this rule in a "name->numrule" map. More... | |
SwNumRuleType | GetRuleType () const |
void | SetRuleType (SwNumRuleType eNew) |
SwNumRule & | CopyNumRule (SwDoc &, const SwNumRule &) |
A kind of copy-constructor to make sure the num formats are attached to the correctCharFormats of a document!! (Copies the NumFormats and returns itself). More... | |
void | CheckCharFormats (SwDoc &rDoc) |
Tests whether the CharFormats are from the given doc and copies them if appropriate. More... | |
const OUString & | GetName () const |
void | SetName (const OUString &rNm, IDocumentListsAccess &rDocListAccess) |
bool | IsAutoRule () const |
void | SetAutoRule (bool bFlag) |
bool | IsInvalidRule () const |
void | SetInvalidRule (bool bFlag) |
bool | IsContinusNum () const |
void | SetContinusNum (bool bFlag) |
bool | IsAbsSpaces () const |
void | SetAbsSpaces (bool bFlag) |
bool | IsOutlineRule () const |
bool | IsCountPhantoms () const |
void | SetCountPhantoms (bool bCountPhantoms) |
bool | IsUsedByRedline () const |
void | SetUsedByRedline (bool bUsed) |
sal_uInt16 | GetPoolFormatId () const |
Query and set PoolFormat IDs. More... | |
void | SetPoolFormatId (sal_uInt16 nId) |
sal_uInt16 | GetPoolHelpId () const |
Query and set Help-IDs for document styles. More... | |
void | SetPoolHelpId (sal_uInt16 nId) |
sal_uInt8 | GetPoolHlpFileId () const |
void | SetPoolHlpFileId (sal_uInt8 nId) |
void | SetSvxRule (const SvxNumRule &, SwDoc *pDoc) |
SvxNumRule | MakeSvxNumRule () const |
void | ChangeIndent (const sal_Int32 nDiff) |
change indent of all list levels by given difference More... | |
void | SetIndent (const short nNewIndent, const sal_uInt16 nListLevel) |
set indent of certain list level to given value More... | |
void | SetIndentOfFirstListLevelAndChangeOthers (const short nNewIndent) |
set indent of first list level to given value and change other list level's indents accordingly More... | |
void | Validate (const SwDoc &rDoc) |
void | dumpAsXml (xmlTextWriterPtr w) const |
void | GetGrabBagItem (css::uno::Any &rVal) const |
void | SetGrabBagItem (const css::uno::Any &rVal) |
Static Public Member Functions | |
static OUString | GetOutlineRuleName () |
static sal_uInt16 | GetNumIndent (sal_uInt8 nLvl) |
static sal_uInt16 | GetBullIndent (sal_uInt8 nLvl) |
Private Attributes | |
std::unique_ptr< SwNumFormat > | maFormats [MAXLEVEL] |
tTextNodeList | maTextNodeList |
container for associated text nodes More... | |
tParagraphStyleList | maParagraphStyleList |
container for associated paragraph styles More... | |
std::unordered_map< OUString, SwNumRule * > * | mpNumRuleMap |
unordered_map containing "name->rule" relation More... | |
OUString | msName |
SwNumRuleType | meRuleType |
sal_uInt16 | mnPoolFormatId |
Id-for NumRules created "automatically". More... | |
sal_uInt16 | mnPoolHelpId |
HelpId for this Pool-style. More... | |
sal_uInt8 | mnPoolHlpFileId |
FilePos at Doc on style helps. More... | |
bool | mbAutoRuleFlag: 1 |
bool | mbInvalidRuleFlag: 1 |
bool | mbContinusNum: 1 |
Continuous numbering without levels. More... | |
bool | mbAbsSpaces: 1 |
Levels represent absolute indents. More... | |
bool | mbHidden: 1 |
Is the numbering rule to be hidden in the UI? More... | |
bool | mbCountPhantoms |
bool | mbUsedByRedline |
SvxNumberFormat::SvxNumPositionAndSpaceMode | meDefaultNumberFormatPositionAndSpaceMode |
it needs to export as part of tracked numbering change More... | |
OUString | msDefaultListId |
std::shared_ptr< SfxGrabBagItem > | mpGrabBagItem |
Style InteropGrabBag. More... | |
Static Private Attributes | |
static SwNumFormat * | saBaseFormats [RULE_END][MAXLEVEL] |
static const sal_uInt16 | saDefNumIndents [MAXLEVEL] |
static SwNumFormat * | saLabelAlignmentBaseFormats [RULE_END][MAXLEVEL] |
default list level properties for position-and-space mode LABEL_ALIGNMENT More... | |
static sal_uInt16 | snRefCount = 0 |
Friends | |
void | FinitCore () |
Definition at line 93 of file numrule.hxx.
typedef std::vector< SwTextFormatColl* > SwNumRule::tParagraphStyleList |
Definition at line 98 of file numrule.hxx.
typedef std::vector< SwTextNode* > SwNumRule::tTextNodeList |
Definition at line 97 of file numrule.hxx.
SwNumRule::SwNumRule | ( | OUString | aNm, |
const SvxNumberFormat::SvxNumPositionAndSpaceMode | eDefaultNumberFormatPositionAndSpaceMode, | ||
SwNumRuleType | eType = NUM_RULE |
||
) |
add parameter <eDefaultNumberFormatPositionAndSpaceMode>
Definition at line 364 of file number.cxx.
References eType, numfunc::GetBulletChar(), GetNumIndent(), o3tl::in, o3tl::in100, SvxNumberFormat::LABEL_ALIGNMENT, SvxNumberFormat::LISTTAB, lNumberFirstLineOffset, lNumberIndent, lOutlineMinTextDistance, MAXLEVEL, msName, msName, n, NUM_RULE, OUTLINE_RULE, saBaseFormats, saLabelAlignmentBaseFormats, SvxNumberFormat::SetAbsLSpace(), SvxNumberFormat::SetBulletChar(), SvxNumberFormat::SetCharTextDistance(), SvxNumberFormat::SetFirstLineIndent(), SvxNumberFormat::SetFirstLineOffset(), SvxNumberFormat::SetIncludeUpperLevels(), SvxNumberFormat::SetIndentAt(), SvxNumberFormat::SetLabelFollowedBy(), SvxNumberFormat::SetListFormat(), SvxNumberFormat::SetListtabPos(), SvxNumberType::SetNumberingType(), SvxNumberFormat::SetPositionAndSpaceMode(), SvxNumberFormat::SetStart(), snRefCount, SVX_NUM_NUMBER_NONE, and o3tl::toTwips().
SwNumRule::SwNumRule | ( | const SwNumRule & | rNumRule | ) |
Definition at line 458 of file number.cxx.
References maFormats, MAXLEVEL, msName, n, Set(), and snRefCount.
SwNumRule::~SwNumRule | ( | ) |
Definition at line 481 of file number.cxx.
References GetName(), i, maFormats, maParagraphStyleList, maTextNodeList, MAXLEVEL, mpNumRuleMap, n, saBaseFormats, saLabelAlignmentBaseFormats, and snRefCount.
void SwNumRule::AddParagraphStyle | ( | SwTextFormatColl & | rTextFormatColl | ) |
Definition at line 1098 of file number.cxx.
References maParagraphStyleList.
Referenced by TextFormatCollFunc::AddToNumRule().
void SwNumRule::AddTextNode | ( | SwTextNode & | rTextNode | ) |
Definition at line 141 of file number.cxx.
References maTextNodeList.
Referenced by SwNodeNum::ChangeNumRule(), and SwNodeNum::PreAdd().
void SwNumRule::ChangeIndent | ( | const sal_Int32 | nDiff | ) |
change indent of all list levels by given difference
Definition at line 984 of file number.cxx.
References Get(), SvxNumberFormat::GetAbsLSpace(), SvxNumberFormat::GetIndentAt(), SvxNumberFormat::GetLabelFollowedBy(), SvxNumberFormat::GetListtabPos(), SvxNumberFormat::GetPositionAndSpaceMode(), i, SvxNumberFormat::LABEL_ALIGNMENT, SvxNumberFormat::LABEL_WIDTH_AND_POSITION, SvxNumberFormat::LISTTAB, MAXLEVEL, Set(), SvxNumberFormat::SetAbsLSpace(), SvxNumberFormat::SetIndentAt(), SetInvalidRule(), and SvxNumberFormat::SetListtabPos().
Referenced by SwEditShell::ChangeIndentOfAllListLevels(), SwWrtShell::NumOrBulletOn(), and SetIndentOfFirstListLevelAndChangeOthers().
void SwNumRule::CheckCharFormats | ( | SwDoc & | rDoc | ) |
Tests whether the CharFormats are from the given doc and copies them if appropriate.
Definition at line 527 of file number.cxx.
References SwDoc::CopyCharFormat(), SwFormat::GetDoc(), maFormats, and SwNumFormat::SetCharFormat().
Referenced by lcl_ChgNumRule(), SwDoc::MakeNumRule(), and SwDoc::SetOutlineNumRule().
A kind of copy-constructor to make sure the num formats are attached to the correctCharFormats of a document!! (Copies the NumFormats and returns itself).
Copy method of SwNumRule.
A kind of copy constructor, so that the num formats are attached to the right CharFormats of a Document. Copies the NumFormats and returns itself.
Definition at line 901 of file number.cxx.
References SwCharFormats::ContainsFormat(), SwDoc::CopyCharFormat(), SwDoc::GetCharFormats(), GetPoolFormatId(), GetPoolHelpId(), GetPoolHlpFileId(), maFormats, MAXLEVEL, mbAutoRuleFlag, mbInvalidRuleFlag, meRuleType, mnPoolFormatId, mnPoolHelpId, mnPoolHlpFileId, msName, n, and Set().
Referenced by SwDoc::ReplaceStyles().
void SwNumRule::dumpAsXml | ( | xmlTextWriterPtr | w | ) | const |
Definition at line 1120 of file number.cxx.
References maFormats, mbAutoRuleFlag, mnPoolFormatId, and msName.
Referenced by SwNumRuleTable::dumpAsXml().
const SwNumFormat & SwNumRule::Get | ( | sal_uInt16 | i | ) | const |
Definition at line 87 of file number.cxx.
References i, SvxNumberFormat::LABEL_WIDTH_AND_POSITION, maFormats, MAXLEVEL, meDefaultNumberFormatPositionAndSpaceMode, meRuleType, RULE_END, saBaseFormats, and saLabelAlignmentBaseFormats.
Referenced by WW8ListManager::AdjustLVL(), SwAutoFormat::BuildEnum(), SwTextFrame::CalcAdditionalFirstLineOffset(), SwChapterField::ChangeExpansion(), ChangeIndent(), SwEditShell::ChangeIndentOfAllListLevels(), MSWordExportBase::CollectGrfsOfBullets(), SwWW8ImplReader::CoreLoad(), MSWordExportBase::DuplicateNumRule(), MSWordExportBase::DuplicateNumRuleImpl(), SwHTMLParser::EndNumberBulletList(), SwTextShell::ExecParaAttr(), SwContentTree::FillTransferData(), SwTextNode::GetAdditionalIndentForStartingNewList(), SwTextNode::GetFirstLineOfsWithNum(), SwTextNode::GetLabelFollowedBy(), SwTextNode::GetLeftMarginForTabCalculation(), SwTextNode::GetLeftMarginWithNum(), SwTextNode::GetListTabStopPosition(), SwHTMLParser::GetMarginsFromContextWithNumberBullet(), SwXNumberingRules::GetNumberingRuleByIndex(), sw::util::GetNumFormatFromSwNumRuleLevel(), WW8ListManager::GetNumRuleForActivation(), SwTextNode::GetNumString(), SwEditShell::GetPaMAttr(), SwWrtShell::GetSelectionType(), SwTextNode::HasBullet(), SwTextNode::HasNumber(), SwTextNode::HasVisibleNumberingOrBullet(), IMPL_LINK_NOARG(), IsEqualFormatting(), IsExportNumRule(), lcl_ChgNumRule(), lcl_CreateOutlineString(), lcl_dbg_out(), lcl_IsNoEndTextAttrAtPos(), lcl_MergeListLevelIndentAsLRSpaceItem(), MakeNumString(), MakeRefNumString(), MakeSvxNumRule(), SwDocStyleSheet::MergeIndentAttrsOfListStyle(), SwXMLImport::MergeListsAtDocumentInsertPosition(), SwDoc::MoveLeftMargin(), SwHTMLParser::NewNumberBulletList(), SwHTMLParser::NewNumberBulletListItem(), SwTextFormatter::NewNumberPortion(), MSWordExportBase::NumberingLevel(), numfunc::NumDownChangesIndent(), SwWrtShell::NumOrBulletOff(), SwWrtShell::NumOrBulletOn(), operator==(), OutCSS1_NumberBulletListStyleOpt(), OutHTML_NumberBulletListEnd(), OutHTML_NumberBulletListStart(), OutHTML_SwFormat(), MSWordExportBase::OutputFormat(), MSWordExportBase::OutputTextNode(), DocxAttributeOutput::OverrideNumberingDefinition(), NumberingPreview::Paint(), RtfAttributeOutput::ParaNumRule_Impl(), Writer::PutNumFormatFontsInAttrPool(), SwWW8ImplReader::RegisterNumFormatOnStyle(), SwWW8ImplReader::RegisterNumFormatOnTextNode(), SwXNumberingRules::replaceByIndex(), SwDoc::SearchNumRule(), Set(), SwTaggedPDFHelper::SetAttributes(), SetIndent(), SetIndentOfFirstListLevelAndChangeOthers(), SwUnoCursorHelper::setNumberingProperty(), SwEditShell::SetNumberingRestart(), SwXNumberingRules::SetNumberingRuleByIndex(), SwDoc::SetNumRule(), SwWW8ImplReader::SetOutlineStyles(), SwWW8ImplReader::SetStylesList(), SwOutlineSettingsTabPage::SetWrtShell(), SwXNumberingRules::SwXNumberingRules(), SwOutlineSettingsTabPage::Update(), and WW8ListManager::WW8ListManager().
|
static |
Definition at line 175 of file number.cxx.
References MAXLEVEL, and saDefNumIndents.
Referenced by sw::DocumentStylePoolManager::GetTextCollFromPool().
|
inline |
Definition at line 194 of file numrule.hxx.
Referenced by SwDocShell::ApplyStyles(), SwAttrSet::CopyToModify(), sw::DocumentListsManager::createListForListStyle(), SwTextNode::GetListId(), SwXNumberingRules::getPropertyValue(), SwDoc::IsUsed(), MSWordExportBase::OverrideNumRule(), AttributeOutputBase::ParaNumRule(), SetName(), and SwDoc::SetNumRule().
void SwNumRule::GetGrabBagItem | ( | css::uno::Any & | rVal | ) | const |
Definition at line 1140 of file number.cxx.
References mpGrabBagItem.
Referenced by SwDocStyleSheet::GetGrabBagItem(), and DocxAttributeOutput::StartStyle().
|
inline |
Definition at line 224 of file numrule.hxx.
References msName.
Referenced by SwDoc::AddNumRule(), WW8ListManager::AdjustLVL(), SwDocShell::ApplyStyles(), MSWordStyles::BuildStylesTable(), TextFormatCollFunc::CheckTextFormatCollForDeletionOfAssignmentToOutlineStyle(), SwNodes::ChgNode(), SwDoc::ChgNumRuleFormats(), SwTextShell::ExecEnterNum(), SwTextShell::ExecParaAttr(), SwTextShell::ExecSetNumber(), FindList(), SwStyleSheetIterator::First(), SwXNumberingRules::getName(), SwXNumberingRules::getPropertyValue(), SwUndoNumruleCreate::GetRewriter(), SwUndoNumruleDelete::GetRewriter(), SwUndoInsNum::GetRewriter(), docfunc::HasOutlineStyleToBeWrittenAsNormalListStyle(), SwDoc::IsUsed(), lcl_AdjustOutlineStylesForOOo(), lcl_ChgNumRule(), lcl_dbg_out(), lcl_SetTextFormatColl(), SwDocShell::MakeByExample(), SwDoc::MakeNumRule(), SwHTMLParser::NewNumberBulletListItem(), SwOutlineTabDialog::Ok(), OutHTML_NumberBulletListStart(), WW8Export::OutListNamesTab(), MSWordExportBase::OutputTextNode(), DocxAttributeOutput::ParaNumRule_Impl(), SwDoc::PropagateOutlineRule(), SwWW8ImplReader::Read_ANLevelDesc(), SwUndoNumruleCreate::RedoImpl(), SwUndoNumruleDelete::RedoImpl(), SwUndoInsNum::RedoImpl(), SwWW8ImplReader::RegisterNumFormatOnStyle(), SwWW8ImplReader::RegisterNumFormatOnTextNode(), SwDoc::ReplaceStyles(), SwDocStyleSheet::SetItemSet(), SwDocStyleSheet::SetName(), SwHTMLParser::SetNodeNum(), SwXNumberingRules::SetNumberingRuleByIndex(), SwDoc::SetNumRule(), SwWW8ImplReader::StartAnl(), SwDocShell::StateStyleSheet(), SwUndoNumruleCreate::UndoImpl(), SwUndoNumruleDelete::UndoImpl(), SwDocShell::UpdateStyle(), and ~SwNumRule().
const SwNumFormat * SwNumRule::GetNumFormat | ( | sal_uInt16 | i | ) | const |
Definition at line 97 of file number.cxx.
References i, maFormats, MAXLEVEL, meRuleType, and RULE_END.
Referenced by SwAutoFormat::BuildEnum(), SwHTMLParser::EndNumberBulletList(), SwTextNode::GetActualListStartValue(), SwNodeNum::GetStartValue(), sw::HasNumberingWhichNeedsLayoutUpdate(), IsExportNumRule(), lcl_ChgNumRule(), lcl_dbg_out(), SwHTMLParser::NewNumberBulletList(), SwWW8ImplReader::NextAnlLine(), MSWordExportBase::OutputTextNode(), RtfAttributeOutput::ParaNumRule_Impl(), SwWW8ImplReader::Read_LR(), SwNumRulesWithName::SwNumRulesWithName(), and SwNumFormat::UpdateNumNodes().
|
static |
Definition at line 169 of file number.cxx.
References MAXLEVEL, and saDefNumIndents.
Referenced by SwAutoFormat::BuildEnum(), sw::DocumentStylePoolManager::GetTextCollFromPool(), and SwNumRule().
|
static |
Definition at line 82 of file number.cxx.
Referenced by SwDoc::ClearDoc(), SwDoc::SetOutlineNumRule(), and SwDoc::SwDoc().
SwNumRule::tParagraphStyleList::size_type SwNumRule::GetParagraphStyleListSize | ( | ) | const |
Definition at line 1093 of file number.cxx.
References maParagraphStyleList.
Referenced by SwDoc::IsUsed().
|
inline |
Query and set PoolFormat IDs.
Definition at line 250 of file numrule.hxx.
Referenced by CopyNumRule(), SwDocStyleSheet::FillStyleSheet(), SwDocStyleSheetPool::Find(), SwStyleSheetIterator::First(), SwDocStyleSheet::GetHelpId(), sw::DocumentStylePoolManager::GetNumRuleFromPool(), IsEqualFormatting(), operator=(), and operator==().
|
inline |
Query and set Help-IDs for document styles.
Definition at line 254 of file numrule.hxx.
Referenced by CopyNumRule(), SwDocStyleSheet::FillStyleSheet(), SwDocStyleSheet::GetHelpId(), IsEqualFormatting(), operator=(), and operator==().
|
inline |
Definition at line 256 of file numrule.hxx.
Referenced by CopyNumRule(), SwDocStyleSheet::FillStyleSheet(), SwDocStyleSheet::GetHelpId(), IsEqualFormatting(), operator=(), and operator==().
|
inline |
Definition at line 211 of file numrule.hxx.
Referenced by IsEqualFormatting(), and RtfAttributeOutput::ParaNumRule_Impl().
void SwNumRule::GetTextNodeList | ( | SwNumRule::tTextNodeList & | rTextNodeList | ) | const |
Definition at line 131 of file number.cxx.
References maTextNodeList.
Referenced by lcl_ChgNumRule(), SwDoc::RenameNumRule(), SwDoc::ReplaceNumRule(), SwDoc::SetOutlineNumRule(), and SwNumFormat::UpdateNumNodes().
SwNumRule::tTextNodeList::size_type SwNumRule::GetTextNodeListSize | ( | ) | const |
Definition at line 136 of file number.cxx.
References maTextNodeList.
Referenced by SwDoc::IsUsed().
|
inline |
Definition at line 238 of file numrule.hxx.
Referenced by SwTextNode::GetLeftMarginWithNum(), SwXNumberingRules::getPropertyValue(), and IsEqualFormatting().
|
inline |
Definition at line 229 of file numrule.hxx.
Referenced by MSWordStyles::BuildStylesTable(), SwDoc::CopyTextColl(), SwView::ExecuteStatusLine(), SwEditShell::FillByEx(), SwStyleSheetIterator::First(), SwXNumberingRules::getPropertyValue(), SwDoc::MakeUniqueNumRules(), SwWrtShell::NumOrBulletOn(), WW8Export::OutListNamesTab(), SwDoc::ReplaceStyles(), and SwView::StateStatusLine().
|
inline |
Definition at line 235 of file numrule.hxx.
Referenced by MSWordExportBase::AbstractNumberingDefinitions(), MSWordExportBase::CollectGrfsOfBullets(), WW8ListManager::GetNumRuleForActivation(), SwXNumberingRules::getPropertyValue(), SwNodeNum::IsContinuous(), SwNodeNum::IsCountPhantoms(), IsEqualFormatting(), lcl_ChgNumRule(), MakeNumString(), DocxAttributeOutput::NumberingDefinition(), WW8AttributeOutput::NumberingDefinition(), DocxAttributeOutput::OverrideNumberingDefinition(), and NumberingPreview::Paint().
|
inline |
Definition at line 243 of file numrule.hxx.
Referenced by SwNodeNum::IsCountPhantoms().
|
inline |
Definition at line 161 of file numrule.hxx.
Referenced by SwStyleSheetIterator::AppendStyleList(), SwStyleSheetIterator::First(), and SwDocStyleSheet::IsHidden().
|
inline |
Definition at line 232 of file numrule.hxx.
|
inline |
Definition at line 241 of file numrule.hxx.
References OUTLINE_RULE.
Referenced by SwListShell::Execute(), SwXNumberingRules::getPropertyValue(), SwTextNode::IsOutline(), SwEditWin::KeyInput(), SwDoc::MakeUniqueNumRules(), SwWrtShell::NumOrBulletOff(), SwDoc::NumUpDown(), DocxAttributeOutput::ParaNumRule_Impl(), SwDoc::SearchNumRule(), SwWW8ImplReader::SetTextFormatCollAndListLevel(), DocxAttributeOutput::StartAbstractNumbering(), and SwView::StateStatusLine().
|
inline |
Definition at line 246 of file numrule.hxx.
Referenced by SwDoc::IsUsed().
OUString SwNumRule::MakeNumString | ( | const SwNodeNum & | rNum, |
bool | bInclStrings = true |
||
) | const |
Definition at line 643 of file number.cxx.
References SwNumberTreeNode::GetNumberVector(), SwNodeNum::IsCounted(), and MakeNumString().
Referenced by SwTextNode::GetNumString(), SwTextNode::HasVisibleNumberingOrBullet(), MakeNumString(), MakeRefNumStr(), MakeRefNumString(), NumberingPreview::Paint(), and SwSetExpFieldType::SetChapter().
OUString SwNumRule::MakeNumString | ( | const SwNumberTree::tNumberVector & | rNumVector, |
const bool | bInclStrings = true , |
||
const unsigned int | _nRestrictToThisLevel = MAXLEVEL , |
||
SwNumRule::Extremities * | pExtremities = nullptr , |
||
LanguageType | nLang = LANGUAGE_SYSTEM |
||
) | const |
Definition at line 651 of file number.cxx.
References aStr, LanguageTag::convertToLocale(), Get(), SvxNumberFormat::GetIncludeUpperLevels(), SvxNumberFormat::GetIsLegal(), SvxNumberFormat::GetListFormat(), SvxNumberType::GetNumberingType(), SvxNumberType::GetNumStr(), SvxNumberFormat::GetPrefix(), SvxNumberFormat::GetSuffix(), SvxNumberFormat::HasListFormat(), i, IsContinusNum(), MAXLEVEL, n, nLang, SwNumRule::Extremities::nPrefixChars, SwNumRule::Extremities::nSuffixChars, sPrefix, sSuffix, SVX_NUM_BITMAP, SVX_NUM_CHAR_SPECIAL, SVX_NUM_NUMBER_NONE, and u.
OUString SwNumRule::MakeParagraphStyleListString | ( | ) | const |
Definition at line 884 of file number.cxx.
References maParagraphStyleList.
Referenced by SwDocStyleSheet::GetUsedBy().
OUString SwNumRule::MakeRefNumString | ( | const SwNodeNum & | rNodeNum, |
const bool | bInclSuperiorNumLabels, | ||
const int | nRestrictInclToThisLevel | ||
) | const |
Definition at line 788 of file number.cxx.
References Get(), SvxNumberFormat::GetIncludeUpperLevels(), SwNumberTreeNode::GetLevelInListTree(), SvxNumberType::GetNumberingType(), SwNumberTreeNode::GetNumberVector(), SwNumberTreeNode::GetParent(), SwNodeNum::GetTextNode(), SwTextNode::HasNumber(), SwNumFormat::IsEnumeration(), SwNumberTreeNode::IsPhantom(), MakeNumString(), MAXLEVEL, n, SwNumRule::Extremities::nPrefixChars, SwNumRule::Extremities::nSuffixChars, and SVX_NUM_NUMBER_NONE.
Referenced by MakeRefNumStr().
SvxNumRule SwNumRule::MakeSvxNumRule | ( | ) | const |
Definition at line 937 of file number.cxx.
References Get(), SwNumFormat::GetCharFormat(), SwFormat::GetName(), maFormats, MAXLEVEL, mbContinusNum, meRuleType, n, NUM_RULE, SwNumFormat::SetCharFormatName(), and SvxNumRule::SetLevel().
Referenced by SwTextShell::ExecEnterNum(), SwTextShell::ExecParaAttr(), SwTextShell::ExecSetNumber(), SwDocStyleSheet::GetItemSet(), and SwTextShell::GetState().
|
inline |
Definition at line 154 of file numrule.hxx.
Definition at line 545 of file number.cxx.
References GetPoolFormatId(), GetPoolHelpId(), GetPoolHlpFileId(), maFormats, MAXLEVEL, mbAbsSpaces, mbAutoRuleFlag, mbContinusNum, mbHidden, mbInvalidRuleFlag, meRuleType, mnPoolFormatId, mnPoolHelpId, mnPoolHlpFileId, msName, n, and Set().
bool SwNumRule::operator== | ( | const SwNumRule & | rRule | ) | const |
Definition at line 583 of file number.cxx.
References Get(), GetPoolFormatId(), GetPoolHelpId(), GetPoolHlpFileId(), MAXLEVEL, mbAbsSpaces, mbAutoRuleFlag, mbContinusNum, meRuleType, mnPoolFormatId, mnPoolHelpId, mnPoolHlpFileId, msName, and n.
void SwNumRule::RemoveParagraphStyle | ( | SwTextFormatColl & | rTextFormatColl | ) |
Definition at line 1109 of file number.cxx.
References maParagraphStyleList.
Referenced by TextFormatCollFunc::RemoveFromNumRule().
void SwNumRule::RemoveTextNode | ( | SwTextNode & | rTextNode | ) |
Definition at line 152 of file number.cxx.
References maTextNodeList.
Referenced by SwNodeNum::ChangeNumRule(), and SwNodeNum::PostRemove().
void SwNumRule::Reset | ( | const OUString & | rName | ) |
Definition at line 566 of file number.cxx.
References MAXLEVEL, mbAbsSpaces, mbAutoRuleFlag, mbContinusNum, mbHidden, mbInvalidRuleFlag, meRuleType, mnPoolFormatId, mnPoolHelpId, mnPoolHlpFileId, msName, n, NUM_RULE, and Set().
Referenced by SwNumRulesWithName::ResetNumRule().
void SwNumRule::Set | ( | sal_uInt16 | i, |
const SwNumFormat & | rNumFormat | ||
) |
Definition at line 605 of file number.cxx.
References Get(), i, maFormats, MAXLEVEL, and mbInvalidRuleFlag.
void SwNumRule::Set | ( | sal_uInt16 | i, |
const SwNumFormat * | pNumFormat | ||
) |
Definition at line 618 of file number.cxx.
References i, maFormats, MAXLEVEL, and mbInvalidRuleFlag.
Referenced by WW8ListManager::AdjustLVL(), SwAutoFormat::BuildEnum(), ChangeIndent(), CopyNumRule(), SwWW8ImplReader::CoreLoad(), MSWordExportBase::DuplicateNumRule(), MSWordExportBase::DuplicateNumRuleImpl(), SwHTMLParser::EndNumberBulletList(), WW8ListManager::GetNumRuleForActivation(), sw::DocumentStylePoolManager::GetNumRuleFromPool(), lcl_ChgNumRule(), SwHTMLParser::NewNumberBulletList(), SwHTMLParser::NewNumberBulletListItem(), SwWrtShell::NumOrBulletOff(), SwWrtShell::NumOrBulletOn(), operator=(), SwXNumberingRules::replaceByIndex(), Reset(), SwNumRulesWithName::ResetNumRule(), SwWW8ImplReader::SetAnld(), SwUnoCursorHelper::setNumberingProperty(), SwXNumberingRules::SetNumberingRuleByIndex(), SwWW8ImplReader::SetNumOlst(), SwWW8ImplReader::SetOutlineStyles(), SwNumRule(), and WW8ListManager::WW8ListManager().
|
inline |
Definition at line 239 of file numrule.hxx.
Referenced by SwXNumberingRules::setPropertyValue().
|
inline |
Definition at line 230 of file numrule.hxx.
Referenced by SwDocStyleSheet::Create(), WW8ListManager::CreateNextRule(), SwTextShell::ExecEnterNum(), SwTextShell::ExecParaAttr(), SwTextShell::ExecSetNumber(), sw::DocumentStylePoolManager::GetNumRuleFromPool(), SwNumRulesWithName::ResetNumRule(), SwDoc::SetOutlineNumRule(), SwXNumberingRules::setPropertyValue(), and WW8ListManager::WW8ListManager().
|
inline |
Definition at line 236 of file numrule.hxx.
Referenced by WW8ListManager::CreateNextRule(), WW8ListManager::GetNumRuleForActivation(), lcl_ChgNumRule(), and SwXNumberingRules::setPropertyValue().
void SwNumRule::SetCountPhantoms | ( | bool | bCountPhantoms | ) |
Definition at line 1088 of file number.cxx.
References mbCountPhantoms.
Referenced by SwDoc::ClearDoc(), sw::DocumentSettingManager::set(), and SwDoc::SwDoc().
|
inline |
Definition at line 190 of file numrule.hxx.
Referenced by sw::DocumentListsManager::createListForListStyle(), and SwDoc::MakeNumRule().
void SwNumRule::SetGrabBagItem | ( | const css::uno::Any & | rVal | ) |
Definition at line 1148 of file number.cxx.
References mpGrabBagItem.
Referenced by SwDocStyleSheet::SetGrabBagItem().
|
inline |
Definition at line 162 of file numrule.hxx.
Referenced by SwDocStyleSheet::SetHidden().
void SwNumRule::SetIndent | ( | const short | nNewIndent, |
const sal_uInt16 | nListLevel | ||
) |
set indent of certain list level to given value
Definition at line 1023 of file number.cxx.
References Get(), SvxNumberFormat::GetIndentAt(), SvxNumberFormat::GetLabelFollowedBy(), SvxNumberFormat::GetListtabPos(), SvxNumberFormat::GetPositionAndSpaceMode(), SvxNumberFormat::LABEL_ALIGNMENT, SvxNumberFormat::LABEL_WIDTH_AND_POSITION, SvxNumberFormat::LISTTAB, SvxNumberFormat::SetAbsLSpace(), SvxNumberFormat::SetIndentAt(), SetInvalidRule(), and SvxNumberFormat::SetListtabPos().
Referenced by SwEditShell::SetIndent().
void SwNumRule::SetIndentOfFirstListLevelAndChangeOthers | ( | const short | nNewIndent | ) |
set indent of first list level to given value and change other list level's indents accordingly
Definition at line 1052 of file number.cxx.
References ChangeIndent(), Get(), SvxNumberFormat::GetAbsLSpace(), SvxNumberFormat::GetFirstLineOffset(), SvxNumberFormat::GetIndentAt(), SvxNumberFormat::GetPositionAndSpaceMode(), SvxNumberFormat::LABEL_ALIGNMENT, and SvxNumberFormat::LABEL_WIDTH_AND_POSITION.
Referenced by SwEditShell::SetIndent().
void SwNumRule::SetInvalidRule | ( | bool | bFlag | ) |
Definition at line 958 of file number.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), maTextNodeList, and mbInvalidRuleFlag.
Referenced by ChangeIndent(), SwNodes::ChgNode(), SwDoc::CopyTextColl(), SwAttrSet::CopyToModify(), SwHTMLParser::InsertImage(), SwContentNode::InvalidateNumRule(), lcl_ChgNumRule(), SwHTMLParser::NewNumberBulletListItem(), SetIndent(), SwHTMLParser::SetNodeNum(), SwDoc::SetOutlineNumRule(), and Validate().
void SwNumRule::SetName | ( | const OUString & | rNm, |
IDocumentListsAccess & | rDocListAccess | ||
) |
Definition at line 111 of file number.cxx.
References GetDefaultListId(), mpNumRuleMap, msName, and IDocumentListsAccess::trackChangeOfListStyleName().
Referenced by SwDocStyleSheet::Create(), SwDocShell::MakeByExample(), SwDoc::MakeNumRule(), SwDoc::RenameNumRule(), SwDoc::SetOutlineNumRule(), and SwDocShell::UpdateStyle().
void SwNumRule::SetNumRuleMap | ( | std::unordered_map< OUString, SwNumRule * > * | pNumRuleMap | ) |
Register this rule in a "name->numrule" map.
pNumRuleMap | map to register in |
Definition at line 163 of file number.cxx.
References mpNumRuleMap.
Referenced by SwDoc::AddNumRule().
|
inline |
Definition at line 251 of file numrule.hxx.
References nId.
Referenced by sw::DocumentStylePoolManager::GetNumRuleFromPool(), and SwDoc::MakeNumRule().
|
inline |
|
inline |
|
inline |
Definition at line 212 of file numrule.hxx.
Referenced by SwDoc::SetOutlineNumRule(), and SwXNumberingRules::setPropertyValue().
void SwNumRule::SetSvxRule | ( | const SvxNumRule & | rNumRule, |
SwDoc * | pDoc | ||
) |
Definition at line 925 of file number.cxx.
References SvxNumRule::Get(), SvxNumRule::IsContinuousNumbering(), maFormats, MAXLEVEL, mbContinusNum, mbInvalidRuleFlag, and n.
Referenced by SwTextShell::ExecEnterNum(), SwTextShell::ExecParaAttr(), SwTextShell::ExecSetNumber(), and SwDocStyleSheet::SetItemSet().
|
inline |
Definition at line 247 of file numrule.hxx.
Referenced by SwUnoCursorHelper::makeRedline().
void SwNumRule::Validate | ( | const SwDoc & | rDoc | ) |
Definition at line 1075 of file number.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), maTextNodeList, and SetInvalidRule().
Referenced by SwXNumberingRules::replaceByIndex(), sw::DocumentSettingManager::set(), and SwXNumberingRules::setPropertyValue().
|
private |
Definition at line 115 of file numrule.hxx.
Referenced by CheckCharFormats(), CopyNumRule(), dumpAsXml(), Get(), GetNumFormat(), MakeSvxNumRule(), operator=(), Set(), SetSvxRule(), SwNumRule(), and ~SwNumRule().
|
private |
container for associated paragraph styles
Definition at line 121 of file numrule.hxx.
Referenced by AddParagraphStyle(), GetParagraphStyleListSize(), MakeParagraphStyleListString(), RemoveParagraphStyle(), and ~SwNumRule().
|
private |
container for associated text nodes
Definition at line 118 of file numrule.hxx.
Referenced by AddTextNode(), GetTextNodeList(), GetTextNodeListSize(), RemoveTextNode(), SetInvalidRule(), Validate(), and ~SwNumRule().
|
private |
Levels represent absolute indents.
Definition at line 134 of file numrule.hxx.
Referenced by operator=(), operator==(), and Reset().
|
private |
Definition at line 131 of file numrule.hxx.
Referenced by CopyNumRule(), dumpAsXml(), operator=(), operator==(), and Reset().
|
private |
Continuous numbering without levels.
Definition at line 133 of file numrule.hxx.
Referenced by MakeSvxNumRule(), operator=(), operator==(), Reset(), and SetSvxRule().
|
private |
Definition at line 136 of file numrule.hxx.
Referenced by SetCountPhantoms().
|
private |
Is the numbering rule to be hidden in the UI?
Definition at line 135 of file numrule.hxx.
Referenced by operator=(), and Reset().
|
private |
Definition at line 132 of file numrule.hxx.
Referenced by CopyNumRule(), operator=(), Reset(), Set(), SetInvalidRule(), and SetSvxRule().
|
private |
Definition at line 137 of file numrule.hxx.
|
private |
it needs to export as part of tracked numbering change
Definition at line 139 of file numrule.hxx.
Referenced by Get().
|
private |
Definition at line 127 of file numrule.hxx.
Referenced by CopyNumRule(), Get(), GetNumFormat(), MakeSvxNumRule(), operator=(), operator==(), and Reset().
|
private |
Id-for NumRules created "automatically".
Definition at line 128 of file numrule.hxx.
Referenced by CopyNumRule(), dumpAsXml(), operator=(), operator==(), and Reset().
|
private |
HelpId for this Pool-style.
Definition at line 129 of file numrule.hxx.
Referenced by CopyNumRule(), operator=(), operator==(), and Reset().
|
private |
FilePos at Doc on style helps.
Definition at line 130 of file numrule.hxx.
Referenced by CopyNumRule(), operator=(), operator==(), and Reset().
|
private |
Style InteropGrabBag.
Definition at line 141 of file numrule.hxx.
Referenced by GetGrabBagItem(), and SetGrabBagItem().
|
private |
unordered_map containing "name->rule" relation
Definition at line 124 of file numrule.hxx.
Referenced by SetName(), SetNumRuleMap(), and ~SwNumRule().
|
private |
Definition at line 140 of file numrule.hxx.
|
private |
Definition at line 126 of file numrule.hxx.
Referenced by CopyNumRule(), dumpAsXml(), operator=(), operator==(), Reset(), SetName(), and SwNumRule().
|
staticprivate |
Definition at line 109 of file numrule.hxx.
Referenced by Get(), SwNumRule(), and ~SwNumRule().
|
staticprivate |
Definition at line 110 of file numrule.hxx.
Referenced by GetBullIndent(), and GetNumIndent().
|
staticprivate |
default list level properties for position-and-space mode LABEL_ALIGNMENT
Definition at line 112 of file numrule.hxx.
Referenced by Get(), SwNumRule(), and ~SwNumRule().
|
staticprivate |
Definition at line 113 of file numrule.hxx.
Referenced by SwNumRule(), and ~SwNumRule().