25#include <osl/diagnose.h>
37 return pNodeNumOne->
LessThan( *pNodeNumTwo );
47 const bool bAlreadyInserted(
49 OSL_ENSURE( bAlreadyInserted,
50 "<DocumentListItemsManager::addListItem(..)> - <SwNodeNum> instance already registered as numbered item!" );
60 const tImplSortedNodeNumList::size_type nDeleted =
mpListItemsList->erase( &rNodeNum );
63 OSL_FAIL(
"<DocumentListItemsManager::removeListItem(..)> - <SwNodeNum> was registered more than once as numbered item!" );
84 orNodeNumList.clear();
89 if ( pNodeNum->IsCounted() &&
90 pNodeNum->GetTextNode() && pNodeNum->GetTextNode()->HasNumber() )
92 orNodeNumList.push_back( pNodeNum );
std::vector< const SwNodeNum * > tSortedNodeNumList
virtual bool LessThan(const SwNumberTreeNode &rNode) const override
Returns if this node is less than another node.
SwTextNode * GetTextNode() const
The root element of a Writer document layout.
SwTextNode is a paragraph in the document model.
std::set< const SwNodeNum *, lessThanNodeNum > tImplSortedNodeNumList
virtual ~DocumentListItemsManager() override
bool isNumberedInLayout(SwNodeNum const &rNodeNum, SwRootFrame const &rLayout) const override
void addListItem(const SwNodeNum &rNodeNum) override
std::unique_ptr< tImplSortedNodeNumList > mpListItemsList
DocumentListItemsManager()
OUString getListItemText(const SwNodeNum &rNodeNum, SwRootFrame const &rLayout) const override
void getNumItems(IDocumentListItems::tSortedNodeNumList &orNodeNumList) const override
get vector of all list items, which are numbered
void removeListItem(const SwNodeNum &rNodeNum) override
Dialog to specify the properties of date form field.
bool IsParaPropsNode(SwRootFrame const &rLayout, SwTextNode const &rNode)
OUString GetExpandTextMerged(SwRootFrame const *const pLayout, SwTextNode const &rNode, bool const bWithNumber, bool const bWithSpacesForLevel, ExpandMode const i_mode)
bool operator()(const SwNodeNum *pNodeNumOne, const SwNodeNum *pNodeNumTwo) const