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

#include <numrule.hxx>

Collaboration diagram for SwNumRule:
[legend]

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 ()
 
SwNumRuleoperator= (const SwNumRule &)
 
bool operator== (const SwNumRule &) const
 
bool operator!= (const SwNumRule &r) const
 
void Reset (const OUString &rName)
 
const SwNumFormatGetNumFormat (sal_uInt16 i) const
 
const SwNumFormatGet (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)
 
SwNumRuleCopyNumRule (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< SwNumFormatmaFormats [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< SfxGrabBagItemmpGrabBagItem
 Style InteropGrabBag. More...
 

Static Private Attributes

static SwNumFormatsaBaseFormats [RULE_END][MAXLEVEL]
 
static const sal_uInt16 saDefNumIndents [MAXLEVEL]
 
static SwNumFormatsaLabelAlignmentBaseFormats [RULE_END][MAXLEVEL]
 default list level properties for position-and-space mode LABEL_ALIGNMENT More...
 
static sal_uInt16 snRefCount = 0
 

Friends

void FinitCore ()
 

Detailed Description

Definition at line 93 of file numrule.hxx.

Member Typedef Documentation

◆ tParagraphStyleList

Definition at line 98 of file numrule.hxx.

◆ tTextNodeList

typedef std::vector< SwTextNode* > SwNumRule::tTextNodeList

Definition at line 97 of file numrule.hxx.

Constructor & Destructor Documentation

◆ SwNumRule() [1/2]

SwNumRule::SwNumRule ( OUString  aNm,
const SvxNumberFormat::SvxNumPositionAndSpaceMode  eDefaultNumberFormatPositionAndSpaceMode,
SwNumRuleType  eType = NUM_RULE 
)

◆ SwNumRule() [2/2]

SwNumRule::SwNumRule ( const SwNumRule rNumRule)

Definition at line 458 of file number.cxx.

References maFormats, MAXLEVEL, msName, n, Set(), and snRefCount.

◆ ~SwNumRule()

SwNumRule::~SwNumRule ( )

Member Function Documentation

◆ AddParagraphStyle()

void SwNumRule::AddParagraphStyle ( SwTextFormatColl rTextFormatColl)

Definition at line 1098 of file number.cxx.

References maParagraphStyleList.

Referenced by TextFormatCollFunc::AddToNumRule().

◆ AddTextNode()

void SwNumRule::AddTextNode ( SwTextNode rTextNode)

Definition at line 141 of file number.cxx.

References maTextNodeList.

Referenced by SwNodeNum::ChangeNumRule(), and SwNodeNum::PreAdd().

◆ ChangeIndent()

void SwNumRule::ChangeIndent ( const sal_Int32  nDiff)

◆ CheckCharFormats()

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

◆ CopyNumRule()

SwNumRule & SwNumRule::CopyNumRule ( SwDoc rDoc,
const SwNumRule rNumRule 
)

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

◆ dumpAsXml()

void SwNumRule::dumpAsXml ( xmlTextWriterPtr  w) const

Definition at line 1120 of file number.cxx.

References maFormats, mbAutoRuleFlag, mnPoolFormatId, and msName.

Referenced by SwNumRuleTable::dumpAsXml().

◆ Get()

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

◆ GetBullIndent()

sal_uInt16 SwNumRule::GetBullIndent ( sal_uInt8  nLvl)
static

Definition at line 175 of file number.cxx.

References MAXLEVEL, and saDefNumIndents.

Referenced by sw::DocumentStylePoolManager::GetTextCollFromPool().

◆ GetDefaultListId()

const OUString & SwNumRule::GetDefaultListId ( ) const
inline

◆ GetGrabBagItem()

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

◆ GetName()

const OUString & SwNumRule::GetName ( ) const
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().

◆ GetNumFormat()

const SwNumFormat * SwNumRule::GetNumFormat ( sal_uInt16  i) const

◆ GetNumIndent()

sal_uInt16 SwNumRule::GetNumIndent ( sal_uInt8  nLvl)
static

◆ GetOutlineRuleName()

OUString SwNumRule::GetOutlineRuleName ( )
static

Definition at line 82 of file number.cxx.

Referenced by SwDoc::ClearDoc(), SwDoc::SetOutlineNumRule(), and SwDoc::SwDoc().

◆ GetParagraphStyleListSize()

SwNumRule::tParagraphStyleList::size_type SwNumRule::GetParagraphStyleListSize ( ) const

Definition at line 1093 of file number.cxx.

References maParagraphStyleList.

Referenced by SwDoc::IsUsed().

◆ GetPoolFormatId()

sal_uInt16 SwNumRule::GetPoolFormatId ( ) const
inline

◆ GetPoolHelpId()

sal_uInt16 SwNumRule::GetPoolHelpId ( ) const
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==().

◆ GetPoolHlpFileId()

sal_uInt8 SwNumRule::GetPoolHlpFileId ( ) const
inline

◆ GetRuleType()

SwNumRuleType SwNumRule::GetRuleType ( ) const
inline

Definition at line 211 of file numrule.hxx.

Referenced by IsEqualFormatting(), and RtfAttributeOutput::ParaNumRule_Impl().

◆ GetTextNodeList()

void SwNumRule::GetTextNodeList ( SwNumRule::tTextNodeList rTextNodeList) const
Returns
list of associated text nodes

Definition at line 131 of file number.cxx.

References maTextNodeList.

Referenced by lcl_ChgNumRule(), SwDoc::RenameNumRule(), SwDoc::ReplaceNumRule(), SwDoc::SetOutlineNumRule(), and SwNumFormat::UpdateNumNodes().

◆ GetTextNodeListSize()

SwNumRule::tTextNodeList::size_type SwNumRule::GetTextNodeListSize ( ) const

Definition at line 136 of file number.cxx.

References maTextNodeList.

Referenced by SwDoc::IsUsed().

◆ IsAbsSpaces()

bool SwNumRule::IsAbsSpaces ( ) const
inline

◆ IsAutoRule()

bool SwNumRule::IsAutoRule ( ) const
inline

◆ IsContinusNum()

bool SwNumRule::IsContinusNum ( ) const
inline

◆ IsCountPhantoms()

bool SwNumRule::IsCountPhantoms ( ) const
inline

Definition at line 243 of file numrule.hxx.

Referenced by SwNodeNum::IsCountPhantoms().

◆ IsHidden()

bool SwNumRule::IsHidden ( ) const
inline

◆ IsInvalidRule()

bool SwNumRule::IsInvalidRule ( ) const
inline

Definition at line 232 of file numrule.hxx.

◆ IsOutlineRule()

bool SwNumRule::IsOutlineRule ( ) const
inline

◆ IsUsedByRedline()

bool SwNumRule::IsUsedByRedline ( ) const
inline

Definition at line 246 of file numrule.hxx.

Referenced by SwDoc::IsUsed().

◆ MakeNumString() [1/2]

OUString SwNumRule::MakeNumString ( const SwNodeNum rNum,
bool  bInclStrings = true 
) const

◆ MakeNumString() [2/2]

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

◆ MakeParagraphStyleListString()

OUString SwNumRule::MakeParagraphStyleListString ( ) const

Definition at line 884 of file number.cxx.

References maParagraphStyleList.

Referenced by SwDocStyleSheet::GetUsedBy().

◆ MakeRefNumString()

OUString SwNumRule::MakeRefNumString ( const SwNodeNum rNodeNum,
const bool  bInclSuperiorNumLabels,
const int  nRestrictInclToThisLevel 
) const

◆ MakeSvxNumRule()

SvxNumRule SwNumRule::MakeSvxNumRule ( ) const

◆ operator!=()

bool SwNumRule::operator!= ( const SwNumRule r) const
inline

Definition at line 154 of file numrule.hxx.

◆ operator=()

SwNumRule & SwNumRule::operator= ( const SwNumRule rNumRule)

◆ operator==()

bool SwNumRule::operator== ( const SwNumRule rRule) const

◆ RemoveParagraphStyle()

void SwNumRule::RemoveParagraphStyle ( SwTextFormatColl rTextFormatColl)

Definition at line 1109 of file number.cxx.

References maParagraphStyleList.

Referenced by TextFormatCollFunc::RemoveFromNumRule().

◆ RemoveTextNode()

void SwNumRule::RemoveTextNode ( SwTextNode rTextNode)

Definition at line 152 of file number.cxx.

References maTextNodeList.

Referenced by SwNodeNum::ChangeNumRule(), and SwNodeNum::PostRemove().

◆ Reset()

void SwNumRule::Reset ( const OUString &  rName)

◆ Set() [1/2]

void SwNumRule::Set ( sal_uInt16  i,
const SwNumFormat rNumFormat 
)

Definition at line 605 of file number.cxx.

References Get(), i, maFormats, MAXLEVEL, and mbInvalidRuleFlag.

◆ Set() [2/2]

void SwNumRule::Set ( sal_uInt16  i,
const SwNumFormat pNumFormat 
)

◆ SetAbsSpaces()

void SwNumRule::SetAbsSpaces ( bool  bFlag)
inline

Definition at line 239 of file numrule.hxx.

Referenced by SwXNumberingRules::setPropertyValue().

◆ SetAutoRule()

void SwNumRule::SetAutoRule ( bool  bFlag)
inline

◆ SetContinusNum()

void SwNumRule::SetContinusNum ( bool  bFlag)
inline

◆ SetCountPhantoms()

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

◆ SetDefaultListId()

void SwNumRule::SetDefaultListId ( const OUString &  sDefaultListId)
inline

◆ SetGrabBagItem()

void SwNumRule::SetGrabBagItem ( const css::uno::Any &  rVal)

Definition at line 1148 of file number.cxx.

References mpGrabBagItem.

Referenced by SwDocStyleSheet::SetGrabBagItem().

◆ SetHidden()

void SwNumRule::SetHidden ( bool  bValue)
inline

Definition at line 162 of file numrule.hxx.

Referenced by SwDocStyleSheet::SetHidden().

◆ SetIndent()

void SwNumRule::SetIndent ( const short  nNewIndent,
const sal_uInt16  nListLevel 
)

◆ SetIndentOfFirstListLevelAndChangeOthers()

void SwNumRule::SetIndentOfFirstListLevelAndChangeOthers ( const short  nNewIndent)

◆ SetInvalidRule()

void SwNumRule::SetInvalidRule ( bool  bFlag)

◆ SetName()

void SwNumRule::SetName ( const OUString &  rNm,
IDocumentListsAccess rDocListAccess 
)

◆ SetNumRuleMap()

void SwNumRule::SetNumRuleMap ( std::unordered_map< OUString, SwNumRule * > *  pNumRuleMap)

Register this rule in a "name->numrule" map.

Parameters
pNumRuleMapmap to register in

Definition at line 163 of file number.cxx.

References mpNumRuleMap.

Referenced by SwDoc::AddNumRule().

◆ SetPoolFormatId()

void SwNumRule::SetPoolFormatId ( sal_uInt16  nId)
inline

Definition at line 251 of file numrule.hxx.

References nId.

Referenced by sw::DocumentStylePoolManager::GetNumRuleFromPool(), and SwDoc::MakeNumRule().

◆ SetPoolHelpId()

void SwNumRule::SetPoolHelpId ( sal_uInt16  nId)
inline

Definition at line 255 of file numrule.hxx.

References nId.

Referenced by SwDoc::MakeNumRule().

◆ SetPoolHlpFileId()

void SwNumRule::SetPoolHlpFileId ( sal_uInt8  nId)
inline

Definition at line 257 of file numrule.hxx.

References nId.

Referenced by SwDoc::MakeNumRule().

◆ SetRuleType()

void SwNumRule::SetRuleType ( SwNumRuleType  eNew)
inline

Definition at line 212 of file numrule.hxx.

Referenced by SwDoc::SetOutlineNumRule(), and SwXNumberingRules::setPropertyValue().

◆ SetSvxRule()

void SwNumRule::SetSvxRule ( const SvxNumRule rNumRule,
SwDoc pDoc 
)

◆ SetUsedByRedline()

void SwNumRule::SetUsedByRedline ( bool  bUsed)
inline

Definition at line 247 of file numrule.hxx.

Referenced by SwUnoCursorHelper::makeRedline().

◆ Validate()

void SwNumRule::Validate ( const SwDoc rDoc)

Friends And Related Function Documentation

◆ FinitCore

void FinitCore ( )
friend

Definition at line 684 of file init.cxx.

Member Data Documentation

◆ maFormats

std::unique_ptr<SwNumFormat> SwNumRule::maFormats[MAXLEVEL]
private

◆ maParagraphStyleList

tParagraphStyleList SwNumRule::maParagraphStyleList
private

container for associated paragraph styles

Definition at line 121 of file numrule.hxx.

Referenced by AddParagraphStyle(), GetParagraphStyleListSize(), MakeParagraphStyleListString(), RemoveParagraphStyle(), and ~SwNumRule().

◆ maTextNodeList

tTextNodeList SwNumRule::maTextNodeList
private

container for associated text nodes

Definition at line 118 of file numrule.hxx.

Referenced by AddTextNode(), GetTextNodeList(), GetTextNodeListSize(), RemoveTextNode(), SetInvalidRule(), Validate(), and ~SwNumRule().

◆ mbAbsSpaces

bool SwNumRule::mbAbsSpaces
private

Levels represent absolute indents.

Definition at line 134 of file numrule.hxx.

Referenced by operator=(), operator==(), and Reset().

◆ mbAutoRuleFlag

bool SwNumRule::mbAutoRuleFlag
private

Definition at line 131 of file numrule.hxx.

Referenced by CopyNumRule(), dumpAsXml(), operator=(), operator==(), and Reset().

◆ mbContinusNum

bool SwNumRule::mbContinusNum
private

Continuous numbering without levels.

Definition at line 133 of file numrule.hxx.

Referenced by MakeSvxNumRule(), operator=(), operator==(), Reset(), and SetSvxRule().

◆ mbCountPhantoms

bool SwNumRule::mbCountPhantoms
private

Definition at line 136 of file numrule.hxx.

Referenced by SetCountPhantoms().

◆ mbHidden

bool SwNumRule::mbHidden
private

Is the numbering rule to be hidden in the UI?

Definition at line 135 of file numrule.hxx.

Referenced by operator=(), and Reset().

◆ mbInvalidRuleFlag

bool SwNumRule::mbInvalidRuleFlag
private

Definition at line 132 of file numrule.hxx.

Referenced by CopyNumRule(), operator=(), Reset(), Set(), SetInvalidRule(), and SetSvxRule().

◆ mbUsedByRedline

bool SwNumRule::mbUsedByRedline
private

Definition at line 137 of file numrule.hxx.

◆ meDefaultNumberFormatPositionAndSpaceMode

SvxNumberFormat::SvxNumPositionAndSpaceMode SwNumRule::meDefaultNumberFormatPositionAndSpaceMode
private

it needs to export as part of tracked numbering change

Definition at line 139 of file numrule.hxx.

Referenced by Get().

◆ meRuleType

SwNumRuleType SwNumRule::meRuleType
private

Definition at line 127 of file numrule.hxx.

Referenced by CopyNumRule(), Get(), GetNumFormat(), MakeSvxNumRule(), operator=(), operator==(), and Reset().

◆ mnPoolFormatId

sal_uInt16 SwNumRule::mnPoolFormatId
private

Id-for NumRules created "automatically".

Definition at line 128 of file numrule.hxx.

Referenced by CopyNumRule(), dumpAsXml(), operator=(), operator==(), and Reset().

◆ mnPoolHelpId

sal_uInt16 SwNumRule::mnPoolHelpId
private

HelpId for this Pool-style.

Definition at line 129 of file numrule.hxx.

Referenced by CopyNumRule(), operator=(), operator==(), and Reset().

◆ mnPoolHlpFileId

sal_uInt8 SwNumRule::mnPoolHlpFileId
private

FilePos at Doc on style helps.

Definition at line 130 of file numrule.hxx.

Referenced by CopyNumRule(), operator=(), operator==(), and Reset().

◆ mpGrabBagItem

std::shared_ptr<SfxGrabBagItem> SwNumRule::mpGrabBagItem
private

Style InteropGrabBag.

Definition at line 141 of file numrule.hxx.

Referenced by GetGrabBagItem(), and SetGrabBagItem().

◆ mpNumRuleMap

std::unordered_map<OUString, SwNumRule *>* SwNumRule::mpNumRuleMap
private

unordered_map containing "name->rule" relation

Definition at line 124 of file numrule.hxx.

Referenced by SetName(), SetNumRuleMap(), and ~SwNumRule().

◆ msDefaultListId

OUString SwNumRule::msDefaultListId
private

Definition at line 140 of file numrule.hxx.

◆ msName

OUString SwNumRule::msName
private

Definition at line 126 of file numrule.hxx.

Referenced by CopyNumRule(), dumpAsXml(), operator=(), operator==(), Reset(), SetName(), and SwNumRule().

◆ saBaseFormats

SwNumFormat * SwNumRule::saBaseFormats
staticprivate
Initial value:
= {
{nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr } }

Definition at line 109 of file numrule.hxx.

Referenced by Get(), SwNumRule(), and ~SwNumRule().

◆ saDefNumIndents

const sal_uInt16 SwNumRule::saDefNumIndents
staticprivate

◆ saLabelAlignmentBaseFormats

SwNumFormat * SwNumRule::saLabelAlignmentBaseFormats
staticprivate
Initial value:
= {
{nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr } }

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

◆ snRefCount

sal_uInt16 SwNumRule::snRefCount = 0
staticprivate

Definition at line 113 of file numrule.hxx.

Referenced by SwNumRule(), and ~SwNumRule().


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