LibreOffice Module sw (master)  1
Functions
TextFormatCollFunc Namespace Reference

Functions

void CheckTextFormatCollForDeletionOfAssignmentToOutlineStyle (SwFormat *pFormat, const SwNumRuleItem *pNewNumRuleItem=nullptr)
 Checks, if assignment of paragraph style to list level of outline style has to be deleted, and deletes the assignment, if needed. More...
 
SwNumRuleGetNumRule (SwTextFormatColl &rTextFormatColl)
 determines the list style, which directly set at the given paragraph style More...
 
void AddToNumRule (SwTextFormatColl &rTextFormatColl)
 adds the given paragraph style at the directly set list style More...
 
void RemoveFromNumRule (SwTextFormatColl &rTextFormatColl)
 removes the given paragraph style from the directly set list style More...
 

Function Documentation

void TextFormatCollFunc::AddToNumRule ( SwTextFormatColl rTextFormatColl)

adds the given paragraph style at the directly set list style

Note: If the given paragraph style has no directly set list style, nothing happens

Parameters
rTextFormatCollinput parameter - paragraph style which is added to its directly set list style

Definition at line 93 of file fmtcol.cxx.

References SwNumRule::AddParagraphStyle(), and GetNumRule().

Referenced by SwTextFormatColl::SetFormatAttr().

void TextFormatCollFunc::CheckTextFormatCollForDeletionOfAssignmentToOutlineStyle ( SwFormat pFormat,
const SwNumRuleItem pNewNumRuleItem = nullptr 
)

Checks, if assignment of paragraph style to list level of outline style has to be deleted, and deletes the assignment, if needed.

#i71574# The assignment of a paragraph style to a list level of the outline style has to be deleted, if the numbering rule, which is set at the paragraph style isn't the outline style.

Definition at line 43 of file fmtcol.cxx.

References SwTextFormatColl::DeleteAssignmentToListLevelOfOutlineStyle(), SwFormat::GetDoc(), SwFormat::GetItemState(), SwNumRule::GetName(), SwDoc::GetOutlineNumRule(), CntUnencodedStringItem::GetValue(), SwTextFormatColl::IsAssignedToListLevelOfOutlineStyle(), RES_PARATR_NUMRULE, SwTextFormatColl::StayAssignedToListLevelOfOutlineStyle(), and void().

Referenced by SwTextFormatColl::Modify(), and SwFormat::SetFormatAttr().

SwNumRule * TextFormatCollFunc::GetNumRule ( SwTextFormatColl rTextFormatColl)

determines the list style, which directly set at the given paragraph style

Parameters
rTextFormatCollinput parameter - paragraph style for which the list style should be retrieved
Returns
pointer to <SwNumRule> instance, if the given paragraph style has directly set a list style, 0 otherwise

Definition at line 75 of file fmtcol.cxx.

References SwDoc::FindNumRulePtr(), SwFormat::GetDoc(), SwFormat::GetItemState(), CntUnencodedStringItem::GetValue(), RES_PARATR_NUMRULE, and void().

Referenced by AddToNumRule(), SwContentNode::ChkCondColl(), SwHTMLParser::Continue(), SwTextShell::ExecEnterNum(), SwTextFrame::FormatAdjust(), SwTextFrame::FormatEmpty(), SwHTMLParser::InsertImage(), SwHTMLParser::InsertTableContents(), SwEditShell::MoveNumParas(), SwHTMLParser::NewNumBulListItem(), RemoveFromNumRule(), SwNumPositionTabPage::Reset(), SwHTMLParser::SetNodeNum(), and SwOutlineSettingsTabPage::SetWrtShell().

void TextFormatCollFunc::RemoveFromNumRule ( SwTextFormatColl rTextFormatColl)

removes the given paragraph style from the directly set list style

Note: If the given paragraph style has no directly set list style, nothing happens

Parameters
rTextFormatCollinput parameter - paragraph style which is removed from its directly set list style

Definition at line 102 of file fmtcol.cxx.

References GetNumRule(), and SwNumRule::RemoveParagraphStyle().

Referenced by SwTextFormatColl::ResetFormatAttr(), and SwTextFormatColl::SetFormatAttr().