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

◆ AddToNumRule()

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 91 of file fmtcol.cxx.

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

Referenced by SwTextFormatColl::SetFormatAttr().

◆ CheckTextFormatCollForDeletionOfAssignmentToOutlineStyle()

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 42 of file fmtcol.cxx.

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

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

◆ GetNumRule()

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 74 of file fmtcol.cxx.

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

Referenced by AddToNumRule(), SwContentNode::ChkCondColl(), SwHTMLParser::Continue(), SwHTMLWriter::FillNextNumInfo(), SwTextFrame::FormatAdjust(), SwTextFrame::FormatEmpty(), SwHTMLParser::InsertImage(), SwHTMLParser::InsertTableContents(), SwHTMLParser::NewNumberBulletListItem(), RemoveFromNumRule(), SwNumPositionTabPage::Reset(), SwHTMLParser::SetNodeNum(), SwOutlineSettingsTabPage::SetWrtShell(), and SwTextFormatter::WhichFirstPortion().

◆ RemoveFromNumRule()

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 100 of file fmtcol.cxx.

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

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