25 #include <rtl/ustrbuf.hxx>
42 GetTextNode()->GetAttrOutlineLevel()-1;
46 SwTextNode const& rNode,
bool const bWithNumber,
47 bool const bWithSpacesForLevel,
ExpandMode const i_mode)
65 bWithNumber, bWithNumber, bWithSpacesForLevel, mode));
72 ret.append(pTmp->GetTextNode()->GetExpandText(
73 pLayout, 0, -1,
false,
false,
false, mode));
76 return ret.makeStringAndClear();
82 bWithNumber, bWithSpacesForLevel, i_mode);
86 const tSortedOutlineNodeList::size_type nIdx,
88 const bool bWithNumber,
89 const bool bWithSpacesForLevel,
90 const bool bWithFootnote )
const
94 bWithNumber, bWithSpacesForLevel,
104 const tSortedOutlineNodeList::size_type nIdx,
113 orOutlineNodeList.clear();
117 for ( tSortedOutlineNodeList::size_type
i = 0;
i < nOutlCount; ++
i )
119 orOutlineNodeList.push_back(
OUString getOutlineText(const tSortedOutlineNodeList::size_type nIdx, SwRootFrame const *pLayout, const bool bWithNumber=true, const bool bWithSpacesForLevel=false, const bool bWithFootnote=true) const override
Represents the visualization of a paragraph.
sal_uLong GetIndex() const
tSortedOutlineNodeList::size_type getOutlineNodesCount() const override
sw::MergedPara * GetMergedPara()
SwContentFrame * getLayoutFrame(const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const
Dialog to specify the properties of date form field.
virtual ~DocumentOutlineNodesManager() override
The root element of a Writer document layout.
Describes parts of multiple text nodes, which will form a text frame, even when redlines are hidden a...
OUString GetExpandTextMerged(SwRootFrame const *const pLayout, SwTextNode const &rNode, bool const bWithNumber, bool const bWithSpacesForLevel, ExpandMode const i_mode)
SwTextNode * pParaPropsNode
most paragraph properties are taken from the first non-empty node
bool isOutlineInLayout(tSortedOutlineNodeList::size_type nIdx, SwRootFrame const &rLayout) const override
void getOutlineNodes(IDocumentOutlineNodes::tSortedOutlineNodeList &orOutlineNodeList) const override
SwNodes & GetNodes()
Node is in which nodes-array/doc?
const SwOutlineNodes & GetOutLineNds() const
Array of all OutlineNodes.
int getOutlineLevel(const tSortedOutlineNodeList::size_type nIdx) const override
DocumentOutlineNodesManager(SwDoc &i_rSwdoc)
SwTextNode is a paragraph in the document model.
ExpandMode
Some helpers for converting model strings to view strings.
OUString GetExpandText(SwRootFrame const *pLayout, const sal_Int32 nIdx=0, const sal_Int32 nLen=-1, const bool bWithNum=false, const bool bAddSpaceAfterListLabelStr=false, const bool bWithSpacesForLevel=false, const ExpandMode eAdditionalMode=ExpandMode::ExpandFootnote) const
add 4th optional parameter indicating, when that a spa...
std::vector< const SwTextNode * > tSortedOutlineNodeList
bool IsParaPropsNode(SwRootFrame const &rLayout, SwTextNode const &rNode)
SwTextNode const * pLastNode
mainly for sanity checks
bool HasMergedParas() const
SwTextNode * getOutlineNode(const tSortedOutlineNodeList::size_type nIdx) const override
Base class of the Writer document model elements.