LibreOffice Module sw (master) 1
|
#include <ndarr.hxx>
Public Types | |
typedef std::vector< SwNodeRange > | NodeRanges_t |
typedef std::vector< NodeRanges_t > | TableRanges_t |
Public Member Functions | |
~SwNodes () | |
Destructor. More... | |
SwNode * | operator[] (SwNodeOffset n) const |
SwNodeOffset | Count () const |
void | ForEach (FnForEach_SwNodes fnForEach, void *pArgs=nullptr) |
void | ForEach (SwNodeOffset nStt, SwNodeOffset nEnd, FnForEach_SwNodes fnForEach, void *pArgs) |
void | ForEach (SwNode &rStart, SwNode &rEnd, FnForEach_SwNodes fnForEach, void *pArgs) |
void | ForEach (const SwNodeIndex &rStart, const SwNodeIndex &rEnd, FnForEach_SwNodes fnForEach, void *pArgs) |
SwNode & | GetEndOfPostIts () const |
A still empty section. More... | |
SwNode & | GetEndOfInserts () const |
Section for all footnotes. More... | |
SwNode & | GetEndOfAutotext () const |
Section for all Flys/Header/Footers. More... | |
SwNode & | GetEndOfRedlines () const |
Section for all Redlines. More... | |
SwNode & | GetEndOfExtras () const |
This is the last EndNode of a special section. More... | |
SwNode & | GetEndOfContent () const |
Regular ContentSection (i.e. the BodyText). More... | |
bool | IsDocNodes () const |
Is the NodesArray the regular one of Doc? (and not the UndoNds, ...) Implementation in doc.hxx (because one needs to know Doc for it) ! More... | |
void | Delete (const SwNodeIndex &rPos, SwNodeOffset nNodes=SwNodeOffset(1)) |
void | Delete (const SwNode &rPos, SwNodeOffset nNodes=SwNodeOffset(1)) |
delete nodes More... | |
bool | MoveNodes (const SwNodeRange &, SwNodes &rNodes, SwNode &rPos, bool bNewFrames=true) |
move the node pointer More... | |
void | MoveRange (SwPaM &, SwPosition &, SwNodes &rNodes) |
move a range More... | |
void | Copy_ (const SwNodeRange &rRg, SwNode &rInsPos, bool bNewFrames=true) const |
void | SectionUp (SwNodeRange *) |
increase level of the given range More... | |
void | SectionDown (SwNodeRange *pRange, SwStartNodeType=SwNormalStartNode) |
create a start/end section pair More... | |
SwContentNode * | GoNext (SwNodeIndex *) const |
SwContentNode * | GoNext (SwPosition *) const |
SwContentNode * | GoNextSection (SwNodeIndex *, bool bSkipHidden=true, bool bSkipProtect=true) const |
Go to next content-node that is not protected or hidden (Both set FALSE ==> GoNext/GoPrevious!!!). More... | |
SwContentNode * | GoNextSection (SwPosition *, bool bSkipHidden=true, bool bSkipProtect=true) const |
go to next section that is not protected nor hidden More... | |
SwTextNode * | MakeTextNode (SwNode &rWhere, SwTextFormatColl *pColl, bool bNewFrames=true) |
Implementations of "Make...Node" are in the given .cxx-files. More... | |
SwStartNode * | MakeTextSection (const SwNode &rWhere, SwStartNodeType eSttNdTyp, SwTextFormatColl *pColl) |
SwOLENode * | MakeOLENode (SwNode &rWhere, const svt::EmbeddedObjectRef &, SwGrfFormatColl *pColl) |
in ndole.cxx More... | |
SwOLENode * | MakeOLENode (SwNode &rWhere, const OUString &rName, sal_Int64 nAspect, SwGrfFormatColl *pColl, SwAttrSet const *pAutoAttr) |
in ndole.cxx More... | |
const SwOutlineNodes & | GetOutLineNds () const |
Array of all OutlineNodes. More... | |
void | UpdateOutlineNode (SwNode &rNd) |
Update all Nodes - Rule/Format-Change. More... | |
SwTableNode * | TextToTable (const SwNodeRange &rRange, sal_Unicode cCh, SwTableFormat *pTableFormat, SwTableLineFormat *pLineFormat, SwTableBoxFormat *pBoxFormat, SwTextFormatColl *pTextColl, SwUndoTextToTable *pUndo) |
Create balanced table from selected range. More... | |
void | ExpandRangeForTableBox (const SwNodeRange &rRange, std::optional< SwNodeRange > &rExpandedRange) |
SwTableNode * | TextToTable (const TableRanges_t &rTableNodes, SwTableFormat *pTableFormat, SwTableLineFormat *pLineFormat, SwTableBoxFormat *pBoxFormat) |
create a table from a vector of NodeRanges - API support More... | |
bool | TableToText (const SwNodeRange &rRange, sal_Unicode cCh, SwUndoTableToText *) |
Create regular text from what was table. More... | |
SwTableNode * | UndoTableToText (SwNodeOffset nStt, SwNodeOffset nEnd, const SwTableToTextSaves &rSavedData) |
Is in untbl.cxx and may called only by Undo-object. More... | |
bool | InsBoxen (SwTableNode *, SwTableLine *, SwTableBoxFormat *, SwTextFormatColl *, const SfxItemSet *pAutoAttr, sal_uInt16 nInsPos, sal_uInt16 nCnt=1) |
Insert a new box in the line before InsPos. More... | |
SwTableNode * | SplitTable (SwNode &rPos, bool bAfter=true, bool bCalcNewSize=false) |
Splits a table at the base-line which contains the index. More... | |
bool | MergeTable (SwNode &rPos, bool bWithPrev=true) |
Two Tables that are following one another are merged. More... | |
SwSectionNode * | InsertTextSection (SwNode &rNd, SwSectionFormat &rSectionFormat, SwSectionData const &, SwTOXBase const *const pTOXBase, SwNode const *pEndNd, bool const bInsAtStart=true, bool const bCreateFrames=true) |
Insert a new SwSection. More... | |
SwDoc & | GetDoc () |
Which Doc contains the nodes-array? More... | |
const SwDoc & | GetDoc () const |
SwNode * | FindPrvNxtFrameNode (const SwNode &rFrameNd, const SwNode *pEnd, SwRootFrame const *pLayout=nullptr) const |
Search previous / next content node or table node with frames. More... | |
SwNode * | DocumentSectionStartNode (SwNode *pNode) const |
SwNode * | DocumentSectionEndNode (SwNode *pNode) const |
void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Dumps the entire nodes structure to the given destination (file nodes.xml in the current directory by default) More... | |
Static Public Member Functions | |
static sal_uInt16 | GetSectionLevel (const SwNode &rIndex) |
get section level at the given position More... | |
static void | GoStartOfSection (SwNodeIndex *) |
static void | GoEndOfSection (SwNodeIndex *) |
static SwContentNode * | GoPrevious (SwNodeIndex *) |
static SwContentNode * | GoPrevious (SwPosition *) |
static SwContentNode * | GoPrevSection (SwNodeIndex *, bool bSkipHidden=true, bool bSkipProtect=true) |
static SwContentNode * | GoPrevSection (SwPosition *, bool bSkipHidden=true, bool bSkipProtect=true) |
static SwStartNode * | MakeEmptySection (SwNode &rWhere, SwStartNodeType=SwNormalStartNode) |
Create an empty section of Start- and EndNote. More... | |
static SwGrfNode * | MakeGrfNode (SwNode &rWhere, const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic, SwGrfFormatColl *pColl, SwAttrSet const *pAutoAttr=nullptr) |
in ndgrf.cxx More... | |
static SwTableNode * | InsertTable (SwNode &rNd, sal_uInt16 nBoxes, SwTextFormatColl *pContentTextColl, sal_uInt16 nLines, sal_uInt16 nRepeat, SwTextFormatColl *pHeadlineTextColl, const SwAttrSet *pAttrSet) |
Insert nodes for tables. More... | |
Private Member Functions | |
void | RemoveNode (SwNodeOffset nDelPos, SwNodeOffset nLen, bool bDel) |
void | InsertNode (SwNode *pNode, const SwNodeIndex &rPos) |
void | InsertNode (SwNode *pNode, SwNodeOffset nPos) |
void | DelNodes (const SwNodeIndex &rStart, SwNodeOffset nCnt=SwNodeOffset(1)) |
Delete a number of nodes. More... | |
void | ChgNode (SwNodeIndex const &rDelPos, SwNodeOffset nSize, SwNodeIndex &rInsPos, bool bNewFrames) |
void | UpdateOutlineIdx (const SwNode &) |
Update all OutlineNodes starting from Node. More... | |
void | CopyNodes (const SwNodeRange &, SwNode &rPos, bool bNewFrames, bool bTableInsDummyNode=false) const |
void | DelDummyNodes (const SwNodeRange &rRg) |
SwNodes (SwNodes const &)=delete | |
SwNodes & | operator= (SwNodes const &)=delete |
SwNodes (SwDoc &rDoc) | |
Constructor. More... | |
Private Member Functions inherited from BigPtrArray | |
BigPtrArray () | |
~BigPtrArray () | |
sal_Int32 | Count () const |
void | Insert (BigPtrEntry *p, sal_Int32 pos) |
void | Remove (sal_Int32 pos, sal_Int32 n=1) |
void | Move (sal_Int32 from, sal_Int32 to) |
void | Replace (sal_Int32 pos, BigPtrEntry *p) |
BigPtrEntry * | operator[] (sal_Int32) const |
sal_uInt16 | Index2Block (sal_Int32) const |
block search More... | |
BlockInfo * | InsBlock (sal_uInt16) |
insert block More... | |
void | BlockDel (sal_uInt16) |
some blocks were deleted More... | |
void | UpdIndex (sal_uInt16) |
recalculate indices More... | |
sal_uInt16 | Compress () |
Compress the array. More... | |
Static Private Member Functions | |
static void | SectionUpDown (const SwNodeIndex &aStart, const SwNodeIndex &aEnd) |
correct indices after movement More... | |
Private Attributes | |
SwNodeIndex * | m_vIndices |
ring of all indices on nodes. More... | |
SwDoc & | m_rMyDoc |
This Doc contains the nodes-array. More... | |
SwNode * | m_pEndOfPostIts |
SwNode * | m_pEndOfInserts |
These are the fixed ranges. More... | |
SwNode * | m_pEndOfAutotext |
SwNode * | m_pEndOfRedlines |
std::unique_ptr< SwNode > | m_pEndOfContent |
SwOutlineNodes | m_aOutlineNodes |
Array of all outline nodes. More... | |
bool | m_bInNodesDel: 1 |
In Case of recursive calling. More... | |
bool | m_bInDelUpdOutline: 1 |
Flag for updating of Outline. More... | |
Private Attributes inherited from BigPtrArray | |
std::unique_ptr< BlockInfo *[]> | m_ppInf |
block info More... | |
sal_Int32 | m_nSize |
number of elements More... | |
sal_uInt16 | m_nMaxBlock |
current max. number of blocks More... | |
sal_uInt16 | m_nBlock |
number of blocks More... | |
sal_uInt16 | m_nCur |
last used block More... | |
Friends | |
class | SwDoc |
class | SwNode |
class | SwNodeIndex |
class | SwStartNode |
class | ::sw::DocumentContentOperationsManager |
typedef std::vector<SwNodeRange> SwNodes::NodeRanges_t |
typedef std::vector<NodeRanges_t> SwNodes::TableRanges_t |
|
privatedelete |
|
private |
Constructor.
creates the base sections (PostIts, Inserts, AutoText, RedLines, Content)
rDocument | TODO: provide documentation |
Definition at line 62 of file nodes.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), m_aOutlineNodes, m_bInDelUpdOutline, m_bInNodesDel, m_pEndOfAutotext, m_pEndOfContent, m_pEndOfInserts, m_pEndOfPostIts, m_pEndOfRedlines, SwNode::m_pStartOfSection, nPos, and SwStartNode.
SwNodes::~SwNodes | ( | ) |
Destructor.
Deletes all nodes whose pointer are in a dynamic array. This should be no problem as nodes cannot be created outside this array and, thus, cannot be part of multiple arrays.
Definition at line 95 of file nodes.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), SwNodeIndex::GetNode(), m_aOutlineNodes, and m_pEndOfContent.
|
private |
Definition at line 126 of file nodes.cxx.
References SwTextNode::AddToList(), SwTextMeta::ChgTextNode(), SwContentNode::ChkCondColl(), SwpHints::Count(), Dde, SwDDEFieldType::DecRefCnt(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), SwDoc::FindNumRulePtr(), FindPrvNxtFrameNode(), SwpHints::Get(), SwTextAttr::GetAttr(), SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentViewShell(), GetDoc(), SwDoc::GetDocShell(), SwFormatField::GetField(), SwTextAttr::GetFormatField(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentLayoutAccess(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetIndex(), SwNumRule::GetName(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwNodeIndex::GetNodes(), SwTextNode::GetNumRule(), SwTextNode::GetpSwpHints(), SwTextNode::GetTextColl(), SwNode::GetTextNode(), SwField::GetTyp(), sw::HasNumberingWhichNeedsLayoutUpdate(), i, SwDDEFieldType::IncRefCnt(), IDocumentFieldsAccess::InsDelFieldInFieldLst(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), INSERTED, InsertNode(), SwContentNode::InvalidateNumRule(), SwNode::IsContentNode(), SwFormatField::IsFieldInDoc(), IsInsertOutline(), SwNode::IsNoTextNode(), SwTextNode::IsOutline(), SwNode::IsSectionNode(), SwNode::IsTableNode(), SwNode::IsTextNode(), m_aOutlineNodes, SwSectionNode::MakeFramesForAdjacentContentNode(), SwDoc::MakeNumRule(), BigPtrArray::Move(), n, Postit, REMOVED, SwTextNode::RemoveFromList(), RemoveNode(), RES_CONDTXTFMTCOLL(), RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), RES_TXTATR_FTN(), RES_TXTATR_INPUTFIELD(), RES_TXTATR_META(), RES_TXTATR_METAFIELD(), RES_TXTATR_REFMARK(), RES_TXTATR_TOXMARK(), IDocumentFieldsAccess::SetFieldsDirty(), SwNumRule::SetInvalidRule(), SwFieldType::Which(), SwFormat::Which(), and SwTextAttr::Which().
Referenced by MoveNodes().
|
inline |
Definition at line 179 of file ndarr.hxx.
Referenced by SwDoc::CopyMasterFooter(), SwDoc::CopyMasterHeader(), SwDoc::CopyPageDescHeaderFooterImpl(), SwTableNode::MakeCopy(), SwSectionNode::MakeCopy(), SwDoc::SortText(), SwDoc::Summary(), and SwUndoDelete::UndoImpl().
|
private |
Definition at line 1695 of file nodes.cxx.
References SwNodeRange::aEnd, SwNodeRange::aStart, CopyNodes(), End, SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), GetDoc(), SwNode::GetDoc(), GetEndOfContent(), GetEndOfInserts(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwNode::GetNodes(), SwNodeIndex::GetNodes(), SwNode::GetNodeType(), SwSectionNode::GetSection(), SwNode::GetStartNode(), GetStartNode(), SwStartNode::GetStartNodeType(), Grf, SwNode::IsEndNode(), SwSection::IsHidden(), SwNode::IsSectionNode(), SwNode::m_pStartOfSection, SwSectionNode::MakeOwnFrames(), SwTableNode::MakeOwnFrames(), Ole, PlaceHolder, Section, SectionDown(), Start, SwNode::StartOfSectionIndex(), SwNode::StartOfSectionNode(), SwStartNode, Table, and Text.
Referenced by CopyNodes(), and sw::DocumentContentOperationsManager::CopyWithFlyInFly().
|
inline |
Definition at line 142 of file ndarr.hxx.
References BigPtrArray::Count().
Referenced by SwContentNode::CanJoinNext(), sw::CheckAnchoredFlyConsistency(), Delete(), sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), sw::DocumentContentOperationsManager::DelFullPara(), dumpAsXml(), ExpandRangeForTableBox(), sw::search::SearchResultLocator::findOne(), SwUndoFormatAttr::GetFormat(), SwXFlatParagraphIterator::getNextPara(), SwXFlatParagraphIterator::getParaAfter(), SwXFlatParagraph::getPropertyValue(), SwTable::GetTableBox(), GoNext(), GoNextSection(), GoNextWithFrame(), GotoNextRegion(), GotoNextTable(), GotoPrevRegion(), GotoPrevTable(), SwChartDataProvider::Impl_createDataSource(), SwCallLink::ImplDestroy(), sw::DocumentStatisticsManager::IncrementalDocStatCalculate(), InsertTextSection(), lcl_CellText(), lcl_GotoNextPrevNum(), SwDocUpdateField::MakeFieldList(), SwDocUpdateField::MakeFieldList_(), MakePoint(), SwFltStackEntry::MakeRegion(), SwXMLImport::MergeListsAtDocumentInsertPosition(), SwDoc::RemoveInvisibleContent(), SectionDown(), SectionUp(), SwDoc::Summary(), SwAutoFormat::SwAutoFormat(), SwList::SwList(), SwUndoDelete::SwUndoDelete(), SwTranslateHelper::TranslateDocumentCancellable(), SwWW8Writer::WriteStorageImpl(), SwASCWriter::WriteStream(), SwHTMLWriter::WriteStream(), and SwDoc::~SwDoc().
|
private |
Definition at line 1905 of file nodes.cxx.
References SwNodeRange::aEnd, SwNodeRange::aStart, SwNodeIndex::GetIndex(), SwNodeIndex::GetNode(), SwNode::GetNodeType(), PlaceHolder, and RemoveNode().
Referenced by sw::DocumentContentOperationsManager::CopyWithFlyInFly().
void SwNodes::Delete | ( | const SwNode & | rIndex, |
SwNodeOffset | nNodes = SwNodeOffset(1) |
||
) |
delete nodes
This is a specific implementation of a delete function for a variable array. It is necessary as there might be inconsistencies after deleting start or end nodes. This method can clean those up.
rIndex | position to delete at (unchanged afterwards) |
nNodes | number of nodes to delete (default: 1) |
Definition at line 1084 of file nodes.cxx.
References SwNodeRange::aEnd, SwNodeRange::aStart, CheckNodesRange(), Count(), SwTableNode::DelFrames(), DelNodes(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase_at(), SwNode::GetEndNode(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwNode::GetStartNode(), GetStartNode(), SwNode::GetTableNode(), SwNode::GetTextNode(), sw::HasNumberingWhichNeedsLayoutUpdate(), SwContentNode::InvalidateNumRule(), SwNode::IsContentNode(), SwNode::IsEndNode(), SwTextNode::IsOutline(), SwNode::IsTableNode(), SwNode::IsTextNode(), m_aOutlineNodes, m_bInDelUpdOutline, m_bInNodesDel, SwNode::m_pStartOfSection, RemoveNode(), SwOutlineNodes::Seek_Entry(), SwNode::StartOfSectionIndex(), and UpdateOutlineIdx().
void SwNodes::Delete | ( | const SwNodeIndex & | rPos, |
SwNodeOffset | nNodes = SwNodeOffset(1) |
||
) |
Definition at line 1070 of file nodes.cxx.
References Delete(), and SwNodeIndex::GetNode().
Referenced by SwUndoTableCpyTable::AddBoxAfter(), SwDoc::AppendDoc(), SwDoc::ClearDoc(), SwTable::ConvertSubtableBox(), SwFEShell::Copy(), SwTextFootnote::CopyFootnote(), Delete(), sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), sw::DocumentContentOperationsManager::DelFullPara(), SwXMLImport::endDocument(), GetMergeSel(), SwTextNode::JoinNext(), SwTextNode::JoinPrev(), lcl_CpyBox(), SwDoc::MakeFlyAndMove(), MoveCell(), SwUndoSaveContent::MoveFromUndoNds(), SwTable::OldSplitRow(), SwUndoDelete::RedoImpl(), SwUndoUpdateIndex::RedoImpl(), SwUndoTableCpyTable::RedoImpl(), SwDoc::SplitDoc(), SwDoc::Summary(), sw_JoinText(), SwUndoInserts::UndoImpl(), SwUndoDelete::UndoImpl(), SwUndoInsSection::UndoImpl(), SwUndoUpdateIndex::UndoImpl(), SwUndoSplitNode::UndoImpl(), SwUndoInsTable::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableCpyTable::UndoImpl(), SwUndoSplitTable::UndoImpl(), SwTOXBaseSection::Update(), SwUndoInsert::~SwUndoInsert(), SwUndoInserts::~SwUndoInserts(), and SwUndoSaveSection::~SwUndoSaveSection().
|
private |
Delete a number of nodes.
rStart | starting position in this nodes array |
nCnt | number of nodes to delete |
Definition at line 1372 of file nodes.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), GetEndOfContent(), SwNodeIndex::GetIndex(), SwNodeIndex::GetNode(), SwNode::GetTextNode(), SwNode::IsContentNode(), SwTextNode::IsOutline(), SwNode::IsTextNode(), m_aOutlineNodes, m_pEndOfAutotext, m_pEndOfContent, m_pEndOfInserts, m_pEndOfPostIts, m_pEndOfRedlines, n, RemoveNode(), and UpdateOutlineIdx().
Referenced by Delete(), sw::DocumentContentOperationsManager::DeleteSection(), MergeTable(), MoveNodes(), SectionDown(), SectionUp(), and SwDoc::~SwDoc().
Definition at line 2550 of file nodes.cxx.
References DocumentSectionStartNode(), and SwNode::EndOfSectionNode().
Referenced by SwUndoCompDoc::UndoImpl().
Definition at line 2532 of file nodes.cxx.
References SwNode::StartOfSectionNode().
Referenced by DocumentSectionEndNode().
void SwNodes::dumpAsXml | ( | xmlTextWriterPtr | pWriter | ) | const |
void SwNodes::ExpandRangeForTableBox | ( | const SwNodeRange & | rRange, |
std::optional< SwNodeRange > & | rExpandedRange | ||
) |
Definition at line 1280 of file ndtbl.cxx.
References SwNodeRange::aEnd, aIndex, SwNodeRange::aStart, Count(), SwNode::EndOfSectionNode(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwNode::IsEndNode(), SwNode::IsStartNode(), and SwNode::StartOfSectionNode().
SwNode * SwNodes::FindPrvNxtFrameNode | ( | const SwNode & | rFrameNd, |
const SwNode * | pEnd, | ||
SwRootFrame const * | pLayout = nullptr |
||
) | const |
Search previous / next content node or table node with frames.
find the next/previous ContentNode or table node that should have layout frames that are siblings to the ones of the node at rFrameNd.
Search is started backward with the one before rFrameNd and forward after pEnd. If no valid node is found, return nullptr.
Search is started backward with the one before rFrameNd and forward after pEnd.
rFrameNd | node with frames to search in |
pEnd | last node after rFrameNd that should be excluded from search |
Definition at line 2188 of file nodes.cxx.
References SwSection::CalcHiddenFlag(), CheckNodesRange(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), SwNode::FindSectionNode(), SwNode::FindTableBoxStartNode(), SwNode::FindTableNode(), GetDoc(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwNode::GetRedlineMergeFlag(), SwSectionNode::GetSection(), GoNextSection(), GoPrevSection(), SwRootFrame::HasMergedParas(), SwNode::Hidden, SwNode::IsContentNode(), SwNode::IsEndNode(), SwNode::IsSectionNode(), SwNode::IsTableNode(), and SwNode::StartOfSectionNode().
Referenced by ChgNode(), InsertTextSection(), lcl_CheckHiddenSection(), MakeFrames(), SwTableNode::MakeOwnFrames(), MakeTextNode(), and TableToText().
void SwNodes::ForEach | ( | const SwNodeIndex & | rStart, |
const SwNodeIndex & | rEnd, | ||
FnForEach_SwNodes | fnForEach, | ||
void * | pArgs | ||
) |
Definition at line 2394 of file nodes.cxx.
References ForEach(), and SwNodeIndex::GetIndex().
|
inline |
Definition at line 143 of file ndarr.hxx.
References BigPtrArray::Count().
Referenced by ForEach(), HighestLevel(), SwDoc::Hyphenate(), SwDoc::ResetAttrs(), SwDoc::RstTextAttrs(), SwDoc::SetTextFormatColl(), and SwDoc::SpellItAgainSam().
void SwNodes::ForEach | ( | SwNode & | rStart, |
SwNode & | rEnd, | ||
FnForEach_SwNodes | fnForEach, | ||
void * | pArgs | ||
) |
Definition at line 2400 of file nodes.cxx.
References ForEach(), and SwNode::GetIndex().
void SwNodes::ForEach | ( | SwNodeOffset | nStt, |
SwNodeOffset | nEnd, | ||
FnForEach_SwNodes | fnForEach, | ||
void * | pArgs | ||
) |
Definition at line 2363 of file nodes.cxx.
References BigPtrArray::Index2Block(), BigPtrArray::m_nSize, BigPtrArray::m_ppInf, and p.
|
inline |
Which Doc contains the nodes-array?
Definition at line 307 of file ndarr.hxx.
Referenced by ChgNode(), CopyNodes(), FindPrvNxtFrameNode(), InsBoxen(), InsertTextSection(), SwContentNode::IsAnyCondition(), SwServerObject::IsLinkInServer(), SwTextNode::JoinNext(), SwTextNode::JoinPrev(), SwSectionNode::MakeCopy(), SwSectionNode::MakeFramesForAdjacentContentNode(), SwTextFootnote::MakeNewTextSection(), MakeOLENode(), SwSectionNode::MakeOwnFrames(), MakeTextNode(), MergeTable(), MoveNodes(), MoveRange(), RemoveNode(), SwNode2LayImpl::RestoreUpperFrames(), SetGetExpField::SetBodyPos(), TableToText(), TextToTable(), UndoTableToText(), UpdateOutlineIdx(), and UpdateOutlineNode().
|
inline |
Section for all Flys/Header/Footers.
Definition at line 158 of file ndarr.hxx.
Referenced by SwLayHelper::CalcPageCount(), SwTable::CanConvertSubtables(), CheckNodesRange(), SwHTMLParser::ConnectImageMaps(), sw::DocumentLayoutManager::CopyLayoutFormat(), sw::DocumentChartDataProviderManager::CreateChartInternalDataProviders(), SwUndoMove::DelFootnote(), SwChartHelper::DoUpdateAllCharts(), SwFEShell::FindFlyFrame(), SwEditShell::HasOtherCnt(), sw::DocumentContentOperationsManager::InsertEmbObject(), sw::DocumentContentOperationsManager::InsertGraphic(), SwTextNode::InsertHint(), sw::DocumentContentOperationsManager::InsertOLE(), lcl_InsertDrawLabel(), lcl_InsertLabel(), SwChartLockController_Helper::LockUnlockAllCharts(), sw::DocumentLayoutManager::MakeLayoutFormat(), SwXTextTable::setName(), SwUndoMove::SwUndoMove(), UnHide(), SwTOXBaseSection::UpdateContent(), and SwViewShell::~SwViewShell().
|
inline |
Regular ContentSection (i.e. the BodyText).
Definition at line 165 of file ndarr.hxx.
Referenced by SwFmDrawPage::add(), SwDoc::AppendDoc(), SwLayHelper::CalcPageCount(), SwChapterField::ChangeExpansion(), CheckNodesRange(), SwAutoCorrDoc::ChgAutoCorrWord(), SwCursorShell::ClearUpCursors(), SwLayoutCache::CompareLayout(), SwHHCWrapper::Convert(), SwFEShell::Copy(), sw::DocumentContentOperationsManager::CopyFlyInFlyImpl(), SwTransferable::CopyGlossary(), CopyNodes(), SwEditShell::CopySelToDoc(), SwWW8ImplReader::CoreLoad(), SwXBodyText::createParagraphEnumeration(), SwXText::createXTextCursor(), SwXBodyText::createXTextCursorByRange(), SwEditShell::DeleteGlobalDocContent(), DelNodes(), DocxExportFilter::exportDocument(), MSWordExportBase::ExportDocument(), SwCursorShell::ExtendedSelectAll(), SwCursor::FillFindPos(), SwViewShell::FillPrtDoc(), SwTextFrame::FillSelection(), RtfExportFilter::filter(), SwCursor::FindAll(), sw::FindTextImpl(), SwCursorShell::FindValidContentNode(), sw::GetAllValidRanges(), GetFirstTextNode(), SwEditShell::GetGlobalDocContent(), SwXText::GetStartNode(), GoEndDoc(), GoEndSection(), GoStartDoc(), GoStartSection(), SwRangeRedline::HasValidRange(), SwRootFrame::Init(), SwEditShell::InsertGlobalDocContent(), SwDoc::InsertGlossary(), XMLRedlineImportHelper::InsertIntoDocument(), InsertTextSection(), SwWrtShell::IsOutlineContentVisible(), lcl_CopySelToDoc(), lcl_EnsureValidPam(), lcl_FoldedOutlineNodeEndOfParaSplit(), lcl_SetOutlineContentEntriesSensitivities(), WW8Glossary::Load(), SwDOCXReader::MakeEntries(), WW8Glossary::MakeEntries(), SwWrtShell::MakeOutlineContentVisible(), SwCursorShell::MakeOutlineSel(), SwEditShell::MoveGlobalDocContent(), SwDoc::MoveOutlinePara(), MoveRange(), SwHTMLWriter::Out_SwDoc(), MSWordExportBase::OutputSectionBreaks(), MSWordExportBase::OutputTextNode(), SwFEShell::Paste(), SwTransferable::PrepareForCopyTextRange(), SwUndoAttr::RedoImpl(), SwUndoInserts::RepeatImpl(), sw::DocumentContentOperationsManager::ReplaceRange(), ResolveFlyAnchor(), SwEditShell::SaveGlossaryDoc(), DocxAttributeOutput::SectionBreak(), SwCursorShell::SelectNxtPrvHyperlink(), sw::DocumentLinksAdministrationManager::SelectServerObj(), SwXShape::setPropertyValue(), SwUndo::SetSaveData(), SwDoc::SplitDoc(), SwDoc::Summary(), SwCursorShell::SwCursorShell(), SwLayHelper::SwLayHelper(), SwList::SwList(), SwUndoDelete::SwUndoDelete(), SwUndoTextToTable::SwUndoTextToTable(), SwUndoInserts::UndoImpl(), SwUndoAttr::UndoImpl(), SwUndoInsert::UndoImpl(), SwUndoInsertLabel::UndoImpl(), UnHide(), SwTOXBaseSection::Update(), sw::DocumentFieldsManager::UpdateExpFieldsImpl(), SwFootnoteIdxs::UpdateFootnote(), SwDoc::UpdatePagesForPrintingWithPostItData(), SwLayoutCache::Write(), SwWriter::Write(), DocxExport::WriteMainText(), RtfExport::WriteMainText(), WW8Export::WriteMainText(), SwASCWriter::WriteStream(), and MSWordExportBase::WriteText().
|
inline |
This is the last EndNode of a special section.
After it there is only the regular ContentSection (i.e. the BodyText).
Definition at line 163 of file ndarr.hxx.
Referenced by SwDoc::AppendDoc(), SwLayHelper::CalcPageCount(), SwDoc::Chainable(), SwRefPageGetField::ChangeExpansion(), SwFindNearestNode::CheckNode(), SwAutoCorrDoc::ChgAutoCorrWord(), SwFEShell::Copy(), SwTextFlyCnt::CopyFlyFormat(), SwWW8ImplReader::End_Footnote(), RtfExport::ExportDocument_Impl(), SwContentType::FillMemberList(), SwCursor::FindAll(), SwCursorShell::FindValidContentNode(), SwDocUpdateField::GetBodyNode(), SwDocUpdateField::GetBodyNodeGeneric(), SwEditShell::GetGlobalDocContent(), SwSectionFormat::GetGlobalDocSection(), SwCursorShell::GetOutlinePos(), SwContentTree::GotoContent(), SwDoc::InsertGlossary(), SwOLENode::IsInGlobalDocSection(), SwCursor::IsNoContent(), lcl_FindChapterNode(), lcl_FindField(), lcl_FoldedOutlineNodeEndOfParaSplit(), lcl_IsOutlineMoveAndCopyable(), SwDocUpdateField::MakeFieldList_(), SwWrtShell::MakeOutlineContentVisible(), SwDoc::MergeDoc(), SwUndoSaveContent::MoveFromUndoNds(), SwUndoSaveContent::MoveToUndoNds(), SwFEShell::Paste(), SwFEShell::PastePages(), SwWW8ImplReader::Read_Footnote(), SwUndoRedline::RedoImpl(), SwEditShell::SaveGlossaryDoc(), SetHTMLTemplate(), SwDoc::SplitDoc(), sw::DocumentContentOperationsManager::SplitNode(), SwDoc::Summary(), SwUndoRedline::SwUndoRedline(), SwUndoRedline::UndoImpl(), SwRefPageGetFieldType::UpdateField(), SwFootnoteIdxs::UpdateFootnote(), sw::DocumentFieldsManager::UpdateTableFields(), SwASCWriter::WriteStream(), SwUndoInsert::~SwUndoInsert(), and SwUndoInserts::~SwUndoInserts().
|
inline |
Section for all footnotes.
Definition at line 156 of file ndarr.hxx.
Referenced by SwLayHelper::CalcPageCount(), CheckNodesRange(), CopyNodes(), SwWW8ImplReader::CoreLoad(), SwEditShell::HasOtherCnt(), SwTableNode::MakeCopy(), SwTextFootnote::MakeNewTextSection(), and UnHide().
|
inline |
A still empty section.
Definition at line 154 of file ndarr.hxx.
Referenced by CheckNodesRange(), SwCursorShell::ExtendedSelectAll(), SwCursor::FindAll(), SwCursorShell::FindValidContentNode(), SwDocUpdateField::GetBodyNode(), SwRefPageGetFieldType::MakeSetList(), SwUndoSaveContent::MoveFromUndoNds(), SwUndoSaveContent::MoveToUndoNds(), SwUndo::RemoveIdxFromRange(), and SwUndo::RemoveIdxFromSection().
|
inline |
Section for all Redlines.
Definition at line 160 of file ndarr.hxx.
Referenced by CheckNodesRange(), SwRangeRedline::CopyToSection(), XMLRedlineImportHelper::CreateRedlineTextSection(), SwTextNode::InsertHint(), sw::DocumentRedlineManager::IsInRedlines(), IsInsertOutline(), and SwRangeRedline::MoveToSection().
|
inline |
Array of all OutlineNodes.
Definition at line 236 of file ndarr.hxx.
Referenced by SwContentTree::BringEntryToAttention(), SwEnhancedPDFExportHelper::EnhancedPDFExport(), SwContentTree::ExecCommand(), SwContentTree::ExecuteContextMenuAction(), SwContentType::FillMemberList(), SwNode::FindOutlineNodeOfLevel(), SwWrtShell::GetAttrOutlineContentVisible(), SwXLinkNameAccessWrapper::getByName(), SwCursorShell::GetContentAtPos(), SwXLinkNameAccessWrapper::getElementNames(), sw::DocumentOutlineNodesManager::getOutlineLevel(), sw::DocumentOutlineNodesManager::getOutlineNode(), sw::DocumentOutlineNodesManager::getOutlineNodes(), sw::DocumentOutlineNodesManager::getOutlineNodesCount(), SwCursorShell::GetOutlinePos(), sw::DocumentOutlineNodesManager::getOutlineText(), SwDocShell::GetState(), SwCursorShell::GotoNextOutline(), SwCursorShell::GotoOutline(), SwDoc::GotoOutline(), SwCursorShell::GotoPrevOutline(), SwXLinkNameAccessWrapper::hasByName(), SwWrtShell::InvalidateOutlineContentVisibility(), SwContentNode::IsAnyCondition(), IsHeadingContained(), SwWrtShell::IsOutlineContentVisible(), sw::DocumentOutlineNodesManager::isOutlineInLayout(), SwEditShell::IsProtectedOutlinePara(), lcl_CreateOutlineString(), lcl_FoldedOutlineNodeEndOfParaSplit(), lcl_IsOutlineMoveAndCopyable(), lcl_SetOutlineContentEntriesSensitivities(), SwWrtShell::MakeOutlineContentVisible(), SwWrtShell::MakeOutlineLevelsVisible(), SwCursorShell::MakeOutlineSel(), SwEditWin::MouseButtonDown(), SwEditWin::MouseMove(), SwDoc::MoveOutlinePara(), SwDoc::OutlineUpDown(), sw::DocumentLinksAdministrationManager::SelectServerObj(), SwOutlineContentVisibilityWin::Set(), SwDoc::SplitDoc(), SwDoc::Summary(), SwEditWin::ToggleOutlineContentVisibility(), SwFootnoteIdxs::UpdateAllFootnote(), SwFootnoteIdxs::UpdateFootnote(), SwTOXBaseSection::UpdateOutline(), and SwEditWin::UpdatePointer().
|
static |
get section level at the given position
rIdx | position of the node |
Definition at line 1267 of file nodes.cxx.
References SwNode::GetIndex(), and SwNode::GetSectionLevel().
Referenced by GoEndSection(), GoStartSection(), and HighestLevel().
|
static |
Definition at line 1293 of file nodes.cxx.
References SwNode::EndOfSectionNode(), SwNodeIndex::GetNode(), and SwNode::IsEndNode().
Referenced by GoEndOfSection(), and GoEndSection().
SwContentNode * SwNodes::GoNext | ( | SwNodeIndex * | pIdx | ) | const |
Definition at line 1299 of file nodes.cxx.
References Count(), SwNodeIndex::GetIndex(), and SwNodeIndex::GetNode().
Referenced by SwStartNode::CheckSectionCondColl(), SwAutoCorrDoc::ChgAutoCorrWord(), SwCursorShell::ClearUpCursors(), SwDrawContact::ConnectToLayout(), SwTextFlyCnt::CopyFlyFormat(), SwTransferable::CopyGlossary(), SwXBodyText::CreateTextCursor(), SwXHeadFootText::CreateTextCursor(), SwXTextFrame::createXTextCursor(), SwXRedlineText::createXTextCursor(), SwXRedline::createXTextCursor(), DelBookmarks(), SwChartDataSequence::DeleteBox(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), SwTextFootnote::DelFrames(), sw::DocumentContentOperationsManager::DelFullPara(), SwCursorShell::ExtendedSelectAll(), SwCursorShell::ExtendedSelectedAll(), SwCursor::FillFindPos(), SwViewShell::FillPrtDoc(), SwGetRefFieldType::FindAnchor(), SwNode::FindPageDesc(), sw::GetAllValidRanges(), SwDocUpdateField::GetBodyNodeGeneric(), GetContentNode(), GetFirstTextNode(), SwFormatFootnote::GetFootnoteText(), SwTable::GetInfo(), SetGetExpField::GetNodeFromContent(), SwDoc::GetTableAutoFormat(), GoNextNds(), GoNextPos(), GoStartDoc(), SwEditShell::GotoGlobalDocContent(), SwCursorShell::GotoNextTOXBase(), SwCursorShell::GotoNxtPrvTableFormula(), SwCursorShell::GotoPrevTOXBase(), SwXTextCursor::gotoStart(), SwDoc::InsCopyOfTable(), SwDoc::InsertGlossary(), InsTableBox(), SwFEShell::IsAdjustCellWidthAllowed(), IsAtStartOfSection(), SwCursor::IsInProtectTable(), SwNode::IsInVisibleArea(), SwCursorShell::IsStartOfDoc(), lcl_CheckHiddenPara(), lcl_CpyBox(), lcl_FindNextCell(), lcl_GetBoxFrame(), lcl_MakeSelBkwrd(), lcl_MakeSelFwrd(), lcl_SetOutlineContentEntriesSensitivities(), lcl_TCFlags(), WW8Glossary::Load(), SwFlyFrameFormat::MakeFrames(), MoveCell(), SwCursorShell::MoveStartText(), Writer::NewUnoCursor(), MSWordExportBase::OutputSectionBreaks(), MSWordExportBase::OutputTextNode(), SwFEShell::Paste(), SwUndoTableToText::RedoImpl(), SwUndoTableNumFormat::RedoImpl(), SwDoc::RemoveInvisibleContent(), SwUndoTableMerge::SaveCollection(), SwEditShell::SaveGlossaryDoc(), SwCursorShell::SetCursorInHdFt(), SetGetExpField::SetGetExpField(), SetHTMLTemplate(), SwTOXBaseSection::SetPosAtStartEnd(), sw_BoxSetSplitBoxFormats(), SwFlyLayFrame::SwClientNotify(), SwTOXBaseSection::SwClientNotify(), SwCursorShell::SwCursorShell(), TableToText(), SwDoc::TextToTable(), SwCursorShell::TrySelectOuterTable(), SwUndoMergeTable::UndoImpl(), SwTOXBaseSection::Update(), SwTOXBaseSection::UpdateContent(), SwTOXBaseSection::UpdateTable(), and sw::DocumentFieldsManager::UpdateTableFields().
SwContentNode * SwNodes::GoNext | ( | SwPosition * | pIdx | ) | const |
Definition at line 1316 of file nodes.cxx.
References SwPosition::Assign(), Count(), SwNodeIndex::GetNode(), SwPosition::GetNode(), and SwPosition::GetNodeIndex().
SwContentNode * SwNodes::GoNextSection | ( | SwNodeIndex * | pIdx, |
bool | bSkipHidden = true , |
||
bool | bSkipProtect = true |
||
) | const |
Go to next content-node that is not protected or hidden (Both set FALSE ==> GoNext/GoPrevious!!!).
go to next section that is not protected nor hidden
pIdx | |
bSkipHidden | |
bSkipProtect |
Definition at line 1948 of file nodes.cxx.
References ContentMask, Count(), SwNode::EndOfSectionNode(), SwNode::FindSectionNode(), SwNodeIndex::GetNode(), SwNode::GetNodeType(), SwSectionNode::GetSection(), SwSection::IsHiddenFlag(), SwSection::IsProtectFlag(), SwNode::IsSectionNode(), SwNode::m_pStartOfSection, and Section.
Referenced by ChkChartSel(), SwShellTableCursor::Contains(), SwSectionFormat::DelFrames(), SwSectionNode::DelFrames(), SwShellTableCursor::FillRects(), FindPrvNxtFrameNode(), SwCursorShell::FindValidContentNode(), SwCursorShell::GetContentAtPos(), GetNode(), SwCursor::GoPrevNextCell(), GotoCurrRegionAndSkip(), SwCursor::GotoFootnoteText(), GotoNextRegion(), GotoPrevRegion(), SwCursorShell::GotoRedline_(), SwXTextCursor::gotoStart(), SwRootFrame::Init(), SwCursor::IsSelOvr(), SwUnoCursor::IsSelOvr(), lcl_CheckEmptyLayFrame(), lcl_IsInSameTableBox(), SwCursor::LeftRight(), SwTableCursor::MakeBoxSels(), SwSectionNode::MakeFramesForAdjacentContentNode(), sw::DocumentRedlineManager::SelNextRedline(), sw::DocumentRedlineManager::SelPrevRedline(), sw::UpdateFramesForAddDeleteRedline(), and sw::UpdateFramesForRemoveDeleteRedline().
SwContentNode * SwNodes::GoNextSection | ( | SwPosition * | pIdx, |
bool | bSkipHidden = true , |
||
bool | bSkipProtect = true |
||
) | const |
go to next section that is not protected nor hidden
pIdx | |
bSkipHidden | |
bSkipProtect |
Definition at line 2012 of file nodes.cxx.
References SwPosition::Assign(), ContentMask, Count(), SwNode::EndOfSectionNode(), SwNode::FindSectionNode(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwNode::GetNodeType(), SwSectionNode::GetSection(), SwSection::IsHiddenFlag(), SwSection::IsProtectFlag(), SwNode::IsSectionNode(), SwNode::m_pStartOfSection, and Section.
|
static |
Definition at line 1333 of file nodes.cxx.
References SwNodeIndex::GetIndex(), and SwNodeIndex::GetNode().
Referenced by SwCursorShell::ClearUpCursors(), DelBookmarks(), SwCursorShell::ExtendedSelectAll(), SwCursorShell::ExtendedSelectedAll(), SwCursor::FillFindPos(), SwNode::FindPageDesc(), GetContentNode(), GoPreviousNds(), GoPreviousPos(), SwFEShell::HasBoxSelection(), IsAtEndOfSection(), SwCursorShell::IsEndOfDoc(), SwNode::IsInVisibleArea(), lcl_CpyBox(), lcl_FindPrevCell(), lcl_MakeSelBkwrd(), lcl_MakeSelFwrd(), SwDoc::MoveParagraphImpl(), MoveRange(), Writer::NewUnoCursor(), SwReader::Read(), SwUndoTableToText::RedoImpl(), SwDoc::RemoveInvisibleContent(), SwHTMLParser::SetAttr_(), SwHTMLParser::SplitAttrTab(), SwHTMLParser::StripTrailingPara(), SwCursorShell::TrySelectOuterTable(), and SwTOXBaseSection::Update().
|
static |
Definition at line 1350 of file nodes.cxx.
References SwPosition::Assign(), SwNodeIndex::GetIndex(), SwNodeIndex::GetNode(), SwPosition::GetNode(), and SwPosition::GetNodeIndex().
|
static |
Definition at line 2064 of file nodes.cxx.
References ContentMask, End, SwNode::FindSectionNode(), SwNodeIndex::GetNode(), SwNode::GetNodeType(), SwSectionNode::GetSection(), SwSection::IsHiddenFlag(), SwSection::IsProtectFlag(), SwNode::IsSectionNode(), SwNode::m_pStartOfSection, and SwNode::StartOfSectionNode().
Referenced by SwSectionNode::DelFrames(), FindPrvNxtFrameNode(), SwCursorShell::FindValidContentNode(), GetNode(), GotoCurrRegionAndSkip(), GotoNextRegion(), GotoPrevRegion(), SwCursorShell::GotoRedline_(), SwCursor::IsSelOvr(), SwUnoCursor::IsSelOvr(), lcl_CheckEmptyLayFrame(), lcl_IsInSameTableBox(), SwTableCursor::MakeBoxSels(), SwSectionNode::MakeFramesForAdjacentContentNode(), MakeTextNode(), sw::DocumentRedlineManager::SelNextRedline(), and sw::DocumentRedlineManager::SelPrevRedline().
|
static |
Definition at line 2121 of file nodes.cxx.
References SwPosition::Assign(), ContentMask, End, SwNode::FindSectionNode(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwNode::GetNodeType(), SwSectionNode::GetSection(), SwSection::IsHiddenFlag(), SwSection::IsProtectFlag(), SwNode::IsSectionNode(), SwNode::m_pStartOfSection, and SwNode::StartOfSectionNode().
|
static |
Definition at line 1275 of file nodes.cxx.
References SwNode::EndOfSectionIndex(), SwNodeIndex::GetNode(), SwNode::IsContentNode(), and SwNode::StartOfSectionNode().
Referenced by GoStartOfSection(), and GoStartSection().
bool SwNodes::InsBoxen | ( | SwTableNode * | pTableNd, |
SwTableLine * | pLine, | ||
SwTableBoxFormat * | pBoxFormat, | ||
SwTextFormatColl * | pTextColl, | ||
const SfxItemSet * | pAutoAttr, | ||
sal_uInt16 | nInsPos, | ||
sal_uInt16 | nCnt = 1 |
||
) |
Insert a new box in the line before InsPos.
Insert a new Box before the InsPos.
Its format is taken from the following one (or from the previous one if we are at the end). In the line there must be a box already.
pTextColl | Formats for TextNode of box. |
Definition at line 234 of file ndtbl.cxx.
References SwTextNode::ChgFormatColl(), SwTableLines::empty(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), SwTableLine::FindNextBox(), SwTableLine::FindPreviousBox(), GetDoc(), SwNodeIndex::GetNode(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTableNode::GetTable(), SwTable::GetTabLines(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), SwTextFormatColl::IsAssignedToListLevelOfOutlineStyle(), SwNode::m_pStartOfSection, n, RES_CONDTXTFMTCOLL(), size, Start, SwStartNode, SwTableBoxStartNode, and SwFormat::Which().
Referenced by WW8TabDesc::InsertCells(), InsTableBox(), lcl_BalanceTable(), and lcl_InsTableBox().
|
private |
Definition at line 2519 of file nodes.cxx.
References SwNodeIndex::GetIndex(), and BigPtrArray::Insert().
Referenced by ChgNode(), MoveNodes(), SwNode::SwNode(), and SwStartNode::SwStartNode().
|
private |
Definition at line 2525 of file nodes.cxx.
References BigPtrArray::Insert(), and nPos.
|
static |
Insert nodes for tables.
If Lines is given, create the matrix from lines and boxes, else only the count of boxes.
New parameter pAttrSet: If pAttrSet is non-null and contains an adjust item it is propagated to the table cells. If there is an adjust in pContentTextColl or pHeadlineTextColl this adjust item overrides the item in pAttrSet.
Definition at line 561 of file ndtbl.cxx.
References SfxItemSet::GetItemState(), SwContentNode::GetSwAttrSet(), SwNode::m_pStartOfSection, RES_CHRATR_CJK_FONT(), RES_CHRATR_CJK_FONTSIZE(), RES_CHRATR_CTL_FONT(), RES_CHRATR_CTL_FONTSIZE(), RES_CHRATR_FONT(), RES_CHRATR_FONTSIZE(), RES_PARATR_ADJUST(), SetAttr, Start, SwStartNode, and SwTableBoxStartNode.
Referenced by SwDoc::InsertTable().
SwSectionNode * SwNodes::InsertTextSection | ( | SwNode & | rNd, |
SwSectionFormat & | rSectionFormat, | ||
SwSectionData const & | rSectionData, | ||
SwTOXBase const *const | pTOXBase, | ||
SwNode const * | pEndNd, | ||
bool const | bInsAtStart = true , |
||
bool const | bCreateFrames = true |
||
) |
Insert a new SwSection.
Definition at line 769 of file ndsect.cxx.
References SfxItemSet::ClearItem(), Count(), SwContentNode::DelFrames(), SwTableNode::DelFrames(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), FindPrvNxtFrameNode(), fnMoveBackward, IDocumentLayoutAccess::GetCurrentViewShell(), GetDoc(), GetEndOfContent(), SwSection::GetFormat(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentRedlineAccess(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SfxItemSet::GetItemState(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwNode::GetNodes(), SwPaM::GetPoint(), SwContentNode::GetpSwAttrSet(), IDocumentRedlineAccess::GetRedlineTable(), SwSectionNode::GetSection(), SwTextNode::GetTextColl(), SwNode::GetTextNode(), SwRangeRedline::GetType(), SwPaM::HasMark(), SwContentNode::HasSwAttrSet(), SwNode::IsContentNode(), SwSection::IsHiddenFlag(), SwNode::IsSectionNode(), SwNode::IsStartNode(), SwNode::IsTableNode(), lcl_IsTOXSection(), SwNode::m_pStartOfSection, SwContentNode::MakeFramesForAdjacentContentNode(), SwSectionNode::MakeOwnFrames(), SwPaM::Move(), n, nIndex, NODE_OFFSET_MAX(), RES_BREAK(), RES_PAGEDESC(), SwTextNode::ResetAttr(), rSet, SwTextNode::SetAttr(), SwSection::SetSectionData(), SwRedlineTable::size(), SwNode::StartOfSectionNode(), and sw_DeleteFootnote().
Referenced by SwDoc::InsertSwSection(), SwDoc::InsertTableOf(), SwDoc::SplitDoc(), SwUndoDelSection::UndoImpl(), and SwTOXBaseSection::Update().
bool SwNodes::IsDocNodes | ( | ) | const |
Is the NodesArray the regular one of Doc? (and not the UndoNds, ...) Implementation in doc.hxx (because one needs to know Doc for it) !
Definition at line 2555 of file nodes.cxx.
References SwDoc::GetNodes(), and m_rMyDoc.
Referenced by SwDoc::ChangeDBFields(), SwTextNode::ChgTextCollUpdateNum(), SwHTMLWriter::CollectLinkTargets(), MSWordExportBase::CollectOutlineBookmarks(), SwDoc::ConvertFieldsToText(), SwFmDrawPage::CreateShape(), SwpHints::DeleteAtPos(), SwDoc::FindFlyByName(), SwTableFormula::FindTable(), SwDoc::GetAllUsedDB(), SwXDocumentIndex::getAnchor(), SwXTextSection::getAnchor(), SwDoc::GetFlyCount(), SwDoc::GetFlyFrameFormats(), SwDoc::GetFlyNum(), SwEditShell::GetINetAttrs(), SwXTextRange::GetPositions(), SwXTextField::getPropertyValue(), SwAuthorityFieldType::GetSequencePos(), SwDoc::GetTOIKeys(), SwCursorShell::GotoNxtPrvTableFormula(), SwCursorShell::GotoNxtPrvTOXMark(), SwCursorShell::GotoRefMark(), SwCursor::GotoRegion(), SwPaM::HasHiddenSections(), SwPaM::HasReadonlySel(), IMPL_LINK(), SwViewShell::IsAnyFieldInDoc(), SwTextField::IsFieldInDoc(), IsInsertOutline(), SwDocUpdateField::MakeFieldList_(), SwSectionNode::MakeFramesForAdjacentContentNode(), SwTextNode::MakeNewTextNode(), SwSectionNode::MakeOwnFrames(), MoveNodes(), MoveRange(), SwDDETable::NoDDETable(), SwSectionNode::NodesArrChgd(), SwTextField::NotifyContentChange(), SwCursorShell::SelectNxtPrvHyperlink(), SwDoc::SetAllUniqueFlyNames(), SwTextFlyCnt::SetAnchor(), SwDoc::SetFlyName(), SwDDETable::SwClientNotify(), SwFormatField::SwClientNotify(), SwDDETable::SwDDETable(), SwpHints::TryInsertHint(), SwDoc::UnProtectTables(), SwTOXBaseSection::Update(), SwViewShell::UpdateOleObjectPreviews(), UpdateOutlineIdx(), UpdateOutlineNode(), SwTOXBaseSection::UpdateTable(), sw::DocumentFieldsManager::UpdateTableFields(), and SwDDETable::~SwDDETable().
|
static |
Create an empty section of Start- and EndNote.
It may be called only if a new section with content is to be created, e.g. at filters/Undo/...
Definition at line 1917 of file nodes.cxx.
References Start, and SwStartNode.
Referenced by sw::DocumentLayoutManager::CopyLayoutFormat(), SwDoc::CopyMasterFooter(), SwDoc::CopyMasterHeader(), SwDoc::CopyPageDescHeaderFooterImpl(), SwRangeRedline::CopyToSection(), SwRangeRedline::MoveToSection(), and SwUndoSaveSection::RestoreSection().
|
static |
in ndgrf.cxx
Definition at line 390 of file ndgrf.cxx.
Referenced by sw::DocumentContentOperationsManager::InsertGraphic(), and SwGrfNode::MakeCopy().
SwOLENode * SwNodes::MakeOLENode | ( | SwNode & | rWhere, |
const OUString & | rName, | ||
sal_Int64 | nAspect, | ||
SwGrfFormatColl * | pColl, | ||
SwAttrSet const * | pAutoAttr | ||
) |
in ndole.cxx
! needed to supply Math objects with a valid reference device
Definition at line 442 of file ndole.cxx.
References GetDoc(), SwDoc::GetDocShell(), SfxObjectShell::GetModel(), SwOLEObj::GetObject(), svt::EmbeddedObjectRef::GetObject(), and SwOLENode::GetOLEObj().
SwOLENode * SwNodes::MakeOLENode | ( | SwNode & | rWhere, |
const svt::EmbeddedObjectRef & | xObj, | ||
SwGrfFormatColl * | pColl | ||
) |
in ndole.cxx
! needed to supply Math objects with a valid reference device
Definition at line 420 of file ndole.cxx.
References GetDoc(), SwDoc::GetDocShell(), SfxObjectShell::GetModel(), SwOLEObj::GetObject(), svt::EmbeddedObjectRef::GetObject(), and SwOLENode::GetOLEObj().
Referenced by sw::DocumentContentOperationsManager::InsertEmbObject(), sw::DocumentContentOperationsManager::InsertOLE(), and SwOLENode::MakeCopy().
SwTextNode * SwNodes::MakeTextNode | ( | SwNode & | rWhere, |
SwTextFormatColl * | pColl, | ||
bool | bNewFrames = true |
||
) |
Implementations of "Make...Node" are in the given .cxx-files.
in ndtxt.cxx
Definition at line 121 of file ndtxt.cxx.
References End, FindPrvNxtFrameNode(), SwNode::FindSectionNode(), SwNode::FindTableNode(), GetDoc(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwNode::GetNodeType(), SwSectionNode::GetSection(), SwNode::GetSectionNode(), GoPrevSection(), Grf, SwSection::IsHidden(), SwSection::IsHiddenFlag(), SwNode::IsSectionNode(), SwNode::IsTableNode(), Ole, Section, SwNode::StartOfSectionNode(), Table, and Text.
Referenced by SwUndoTableCpyTable::AddBoxBefore(), sw::DocumentContentOperationsManager::AppendTextNode(), SwDoc::ClearDoc(), SwTable::ConvertSubtableBox(), SwFEShell::Copy(), sw::DocumentContentOperationsManager::CopyImplImpl(), SwDoc::DelTable(), wwSectionManager::InsertSegments(), SwDoc::InsertTableOf(), lcl_CpyBox(), lcl_FoldedOutlineNodeEndOfParaSplit(), lcl_InsertLabel(), SwTextNode::MakeCopy(), SwDOCXReader::MakeEntries(), WW8Glossary::MakeEntries(), SwDoc::MakeFlyAndMove(), SwDoc::MakeFlySection(), MakeTextSection(), MoveCell(), MoveRange(), SwUndoDelete::RedoImpl(), SwUndoUpdateIndex::RedoImpl(), SwUndoTableCpyTable::RedoImpl(), sw::DocumentContentOperationsManager::SplitNode(), SwDoc::SplitTable(), SwUndoDelete::UndoImpl(), SwUndoUpdateIndex::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableCpyTable::UndoImpl(), and SwTOXBaseSection::Update().
SwStartNode * SwNodes::MakeTextSection | ( | const SwNode & | rWhere, |
SwStartNodeType | eSttNdTyp, | ||
SwTextFormatColl * | pColl | ||
) |
Definition at line 1925 of file nodes.cxx.
References GetNode(), MakeTextNode(), Start, SwNodeIndex, and SwStartNode.
Referenced by SwRangeRedline::CopyToSection(), SwWW8ImplReader::CoreLoad(), XMLRedlineImportHelper::CreateRedlineTextSection(), SwXMLTableContext::InsertTableSection(), lcl_InsertDrawLabel(), lcl_InsertLabel(), sw::DocumentLayoutManager::MakeLayoutFormat(), SwTextFootnote::MakeNewTextSection(), SwRangeRedline::MoveToSection(), and SwUndoTableMerge::UndoImpl().
bool SwNodes::MergeTable | ( | SwNode & | rPos, |
bool | bWithPrev = true |
||
) |
Two Tables that are following one another are merged.
Definition at line 3535 of file ndtbl.cxx.
References SwTableLines::begin(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), SwTableLines::clear(), IDocumentChartDataProviderAccess::CreateChartInternalDataProviders(), SwTableNode::DelFrames(), FndBox_::DelFrames(), DelNodes(), SwTableLines::end(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), SwNode::FindTableNode(), GetDoc(), SwTable::GetFrameFormat(), SwFormat::GetFrameSize(), SwDoc::getIDocumentChartDataProviderAccess(), SwNode::GetIndex(), SwFormat::GetName(), SwNodeIndex::GetNode(), SwTable::GetRowsToRepeat(), SwNode::GetStartNode(), SwTableNode::GetTable(), SwTable::GetTableChgMode(), SwNode::GetTableNode(), SwTable::GetTabLines(), SwTable::GetTabSortBoxes(), SwTableLines::insert(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SwNode::IsStartNode(), SwStartNode::m_pEndOfSection, SwNode::m_pStartOfSection, FndBox_::MakeFrames(), SwGCLineBorder::nLinePos, SwFormat::SetFormatAttr(), SwFrameFormat::SetFormatName(), SwTable::SetRowsToRepeat(), SwTable::SetTableChgMode(), FndBox_::SetTableLines(), SwTableLines::size(), sw_GC_Line_Border(), and sw_LineSetHeadCondColl().
Referenced by SwDoc::MergeTable(), and SwUndoSplitTable::UndoImpl().
bool SwNodes::MoveNodes | ( | const SwNodeRange & | aRange, |
SwNodes & | rNodes, | ||
SwNode & | rPos, | ||
bool | bNewFrames = true |
||
) |
move the node pointer
Move the node pointer from "(inclusive) start position to (exclusive) end position" to target position. If the target is in front of the first or in the area between first and last element to move, nothing happens. If the area to move is empty or the end position is before the start position, nothing happens.
aRange | range to move (excluding end node) |
Definition at line 404 of file nodes.cxx.
References SwNodeRange::aEnd, SwNodeRange::aStart, ChgNode(), SwDDEFieldType::DecRefCnt(), SwContentNode::DelFrames(), SwTableNode::DelFrames(), SwSectionNode::DelFrames(), DelNodes(), End, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), SwNode::GetContentNode(), GetDoc(), SwNode::GetEndNode(), SwTable::GetFrameFormat(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwNode::GetNodeType(), SwNode::GetSectionNode(), GetStartNode(), SwStartNode::GetStartNodeType(), SwTableNode::GetTable(), SwNode::GetTextNode(), Grf, SwDDEFieldType::IncRefCnt(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), InsertNode(), SwNode::IsContentNode(), IsDocNodes(), SwNode::IsEndNode(), IsInsertOutline(), SwTextNode::IsOutline(), SwNode::IsSectionNode(), SwNode::IsStartNode(), SwNode::IsTableNode(), SwNode::IsTextNode(), m_aOutlineNodes, SwStartNode::m_pEndOfSection, SwNode::m_pStartOfSection, SwSectionNode::MakeOwnFrames(), SwTableNode::MakeOwnFrames(), BigPtrArray::Move(), n, SwSectionNode::NodesArrChgd(), Ole, PlaceHolder, SwTextNode::RemoveFromList(), RemoveNode(), Section, Start, SwNode::StartOfSectionIndex(), SwNode::StartOfSectionNode(), SwNormalStartNode, SwStartNode, Table, Text, and UpdateOutlineIdx().
Referenced by SwTable::ConvertSubtableBox(), SwUndoSaveContent::MoveFromUndoNds(), sw::DocumentContentOperationsManager::MoveNodeRange(), MoveRange(), SwUndoSaveContent::MoveToUndoNds(), SwTable::OldSplitRow(), SwDoc::SplitDoc(), SwUndoDelete::SwUndoDelete(), SwUndoDelete::UndoImpl(), and SwUndoTableNdsChg::UndoImpl().
void SwNodes::MoveRange | ( | SwPaM & | rPam, |
SwPosition & | rPos, | ||
SwNodes & | rNodes | ||
) |
move a range
rPam | the range to move |
rPos | to destination position in the given nodes array |
rNodes | the node array to move the range into |
Definition at line 1470 of file nodes.cxx.
References SwPosition::Adjust(), SwNodeRange::aEnd, SwContentIndex::Assign(), SwTextNode::CopyCollFormat(), SwTextNode::CutText(), SwPaM::DeleteMark(), SwPosition::GetContentIndex(), GetDoc(), SwNode::GetDoc(), SwDoc::GetDocShell(), GetEndOfContent(), SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetIndex(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwTextNode::GetText(), SwTextNode::GetTextColl(), SwNode::GetTextNode(), GoPrevious(), SwPaM::HasMark(), INSERTED, SwNode::IsContentNode(), IsDocNodes(), SwTextNode::Len(), MakeTextNode(), min(), MoveNodes(), SwPosition::nContent, SwPosition::nNode, REMOVED, SwTextNode::SplitContentNode(), IDocumentContentOperations::SplitNode(), and SwPaM::StartEnd().
Referenced by SwUndoSaveContent::MoveFromUndoNds(), sw::DocumentContentOperationsManager::MoveRange(), and SwUndoSaveContent::MoveToUndoNds().
|
inline |
Definition at line 743 of file node.hxx.
References n, and BigPtrArray::operator[]().
|
private |
Definition at line 2406 of file nodes.cxx.
References SwpHints::Count(), SfxViewShell::Current(), SwTextNode::DeleteAttribute(), tools::JsonWriter::finishAndGetAsOString(), SwpHints::Get(), GetDoc(), SwNode::GetIndex(), BigPtrEntry::GetPos(), SwTextNode::GetpSwpHints(), sw::Ring< value_type >::GetRingContainer(), SwSectionNode::GetSection(), SwSection::GetSectionName(), SwNode::GetSectionNode(), SwNode::GetTableNode(), SwNode::GetTextNode(), i, comphelper::LibreOfficeKit::isActive(), SfxViewShell::libreOfficeKitViewCallback(), m_vIndices, nPos, BigPtrArray::operator[](), tools::JsonWriter::put(), BigPtrArray::Remove(), SwTextNode::RemoveFromList(), SwTableNode::RemoveRedlines(), BigPtrArray::Replace(), RES_TXTATR_FLYCNT(), result, tools::JsonWriter::startNode(), and SwTextAttr::Which().
Referenced by ChgNode(), DelDummyNodes(), Delete(), DelNodes(), MoveNodes(), and SectionUp().
void SwNodes::SectionDown | ( | SwNodeRange * | pRange, |
SwStartNodeType | eSttNdTyp = SwNormalStartNode |
||
) |
create a start/end section pair
Other nodes might be in between.
After this method call, the start node of pRange will be pointing to the first node after the start section node and the end node will be the index of the end section node. If this method is called multiple times with the same input, multiple sections containing the previous ones will be created (no content nodes between start or end node).
[IN,OUT] | pRange the range (excl. end) |
eSttNdTyp | type of the start node |
Definition at line 906 of file nodes.cxx.
References SwNodeRange::aEnd, SwNodeRange::aStart, CheckNodesRange(), Count(), DelNodes(), SwNode::GetEndNode(), SwNodeIndex::GetNode(), SwNode::GetStartNode(), SectionUpDown(), Start, SwNode::StartOfSectionNode(), and SwStartNode.
Referenced by CopyNodes(), SwTableNode::MakeCopy(), SwDoc::MakeFlySection_(), and MoveCell().
void SwNodes::SectionUp | ( | SwNodeRange * | pRange | ) |
increase level of the given range
The range contained in pRange will be lifted to the next higher level. This is done by adding an end node at pRange.start and a start node at pRange.end. Furthermore all indices for this range will be updated.
After this method call, the start node of pRange will be pointing to the first node inside the lifted range and the end node will be pointing to the last position inside the lifted range.
[IN,OUT] | pRange the range of nodes where the level should be increased |
Definition at line 960 of file nodes.cxx.
References SwNodeRange::aEnd, SwNodeRange::aStart, CheckNodesRange(), Count(), DelNodes(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), SwNode::GetEndNode(), SwNodeIndex::GetIndex(), SwNodeIndex::GetNode(), SwNode::GetStartNode(), HighestLevel(), SwNode::IsEndNode(), SwNode::IsStartNode(), SwNode::m_pStartOfSection, RemoveNode(), SectionUpDown(), SwNode::StartOfSectionNode(), and SwStartNode.
Referenced by sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), TableToText(), and SwSectionFormat::~SwSectionFormat().
|
staticprivate |
correct indices after movement
Update all indices after movement so that the levels are consistent again.
aStart | index of the start node |
aEnd | index of the end point |
Definition at line 1031 of file nodes.cxx.
References SwNode::GetEndNode(), SwNodeIndex::GetNode(), SwNode::GetStartNode(), SwStartNode::m_pEndOfSection, and SwNode::m_pStartOfSection.
Referenced by SectionDown(), and SectionUp().
SwTableNode * SwNodes::SplitTable | ( | SwNode & | rPos, |
bool | bAfter = true , |
||
bool | bCalcNewSize = false |
||
) |
Splits a table at the base-line which contains the index.
All base lines behind it are moved to a new table/ -node. Is the flag bCalcNewSize set to TRUE, the new SSize for both tables is calculated from the Maximum of the boxes, provided SSize is set "absolute" (LONG_MAX). (Momentarily this is needed only for the RTF-parser.)
Definition at line 3361 of file ndtbl.cxx.
References SwTableLines::begin(), SwTable::CleanUpBottomRowSpan(), SwChartDataProvider::DeleteBox(), SwTableLines::end(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), SwTableLines::erase(), SwNode::FindTableBoxStartNode(), SwNode::FindTableNode(), IDocumentChartDataProviderAccess::GetChartDataProvider(), SwDoc::GetDfltFrameFormat(), SwFormat::GetDoc(), SwNode::GetEndNode(), SwTable::GetFrameFormat(), SwFormat::getIDocumentChartDataProviderAccess(), SwNode::GetIndex(), SwTableLines::GetPos(), SwNode::GetStartNode(), SwTableBox::GetSttNd(), SwTableLine::GetTabBoxes(), SwTableNode::GetTable(), SwTable::GetTableBox(), SwTable::GetTableStyleName(), SwTable::GetTabLines(), SwTableBox::GetTabLines(), SwDoc::GetUniqueTableName(), SwTableLine::GetUpper(), SwTableBox::GetUpper(), SwTableLines::insert(), SwTable::IsNewModel(), SwNode::IsStartNode(), SwNode::IsTableNode(), lcl_ChgTableSize(), lcl_SplitTable_CpyLine(), SwStartNode::m_pEndOfSection, SwNode::m_pStartOfSection, SwDoc::MakeTableFrameFormat(), SwTable::RegisterToFormat(), SwTable::SetTableModel(), SwTable::SetTableStyleName(), size, SwTableLines::size(), and SwTable::UpdateCharts().
Referenced by SwDoc::SplitTable(), and SwUndoMergeTable::UndoImpl().
bool SwNodes::TableToText | ( | const SwNodeRange & | rRange, |
sal_Unicode | cCh, | ||
SwUndoTableToText * | pUndo | ||
) |
Create regular text from what was table.
Definition at line 1578 of file ndtbl.cxx.
References SwNodeRange::aEnd, SwNodeRange::aStart, SwTableNode::DelFrames(), SwNode::EndOfSectionNode(), FindPrvNxtFrameNode(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwNode::GetContentNode(), GetDoc(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SfxItemSet::GetItemIfSet(), SwNodeIndex::GetNode(), SwSectionNode::GetSection(), SwNode::GetSectionNode(), SwDoc::GetSpzFrameFormats(), SwNode::GetTableNode(), GoNext(), SwSectionNode::IsContentHidden(), SwNode::IsContentNode(), SwSection::IsHidden(), SwNode::IsSectionNode(), SwNode::IsTableNode(), lcl_DelLine(), SwTableNode::m_pTable, SwFrameFormat::MakeFrames(), SwTableNode::MakeFramesForAdjacentContentNode(), SwSectionNode::MakeFramesForAdjacentContentNode(), SwSectionNode::MakeOwnFrames(), RES_BREAK(), RES_PAGEDESC(), SectionUp(), and SwContentNode::SetAttr().
Referenced by SwDoc::TableToText().
SwTableNode * SwNodes::TextToTable | ( | const SwNodeRange & | rRange, |
sal_Unicode | cCh, | ||
SwTableFormat * | pTableFormat, | ||
SwTableLineFormat * | pLineFormat, | ||
SwTableBoxFormat * | pBoxFormat, | ||
SwTextFormatColl * | pTextColl, | ||
SwUndoTextToTable * | pUndo | ||
) |
Create balanced table from selected range.
Definition at line 1000 of file ndtbl.cxx.
References SwNodeRange::aEnd, SwNodeRange::aStart, SwTableLines::begin(), SwRect::Bottom(), sw::mark::ContentIdxStore::Create(), eMode, SwTextNode::EraseText(), SwTextFrameInfo::GetCharPos(), IDocumentLayoutAccess::GetCurrentLayout(), GetDoc(), SwNode::GetDoc(), SwTextFrameInfo::GetFrame(), SwFrameAreaDefinition::getFramePrintArea(), SwDoc::getIDocumentLayoutAccess(), SwNodeIndex::GetIndex(), SwContentNode::getLayoutFrame(), getLength(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwTableLine::GetTabBoxes(), SwTableNode::GetTable(), SwTable::GetTabLines(), SwTextNode::GetText(), SwNode::GetTextNode(), SwTableLines::insert(), SwTextFrameInfo::IsOneLine(), SwFrame::IsVertical(), lcl_BalanceTable(), lcl_RemoveBreaks(), lcl_SetTableBoxWidths(), SwNode::m_pStartOfSection, SwTextFrame::MapModelToView(), nPos, SwRect::Right(), SAL_MAX_INT32, SwPosition::SetContent(), SwTextNode::SplitContentNode(), Start, SwStartNode, SwTableBoxStartNode, and T2T_PARA.
Referenced by SwDoc::TextToTable().
SwTableNode * SwNodes::TextToTable | ( | const TableRanges_t & | rTableNodes, |
SwTableFormat * | pTableFormat, | ||
SwTableLineFormat * | pLineFormat, | ||
SwTableBoxFormat * | pBoxFormat | ||
) |
create a table from a vector of NodeRanges - API support
! ownership will be transferred in c-tor to SwNodes array. ! Thus no real problem here...
Definition at line 1362 of file ndtbl.cxx.
References SwNodeIndex::Assign(), SwTableLines::begin(), SwNode::EndOfSectionNode(), GetDoc(), SwNodeIndex::GetNode(), SwTableLine::GetTabBoxes(), SwTableNode::GetTable(), SwTable::GetTabLines(), SwTableLines::insert(), SwNode::IsContentNode(), SwNode::IsStartNode(), lcl_RemoveBreaks(), lcl_SetTableBoxWidths2(), SwNode::m_pStartOfSection, Start, SwStartNode, and SwTableBoxStartNode.
SwTableNode * SwNodes::UndoTableToText | ( | SwNodeOffset | nStt, |
SwNodeOffset | nEnd, | ||
const SwTableToTextSaves & | rSavedData | ||
) |
Is in untbl.cxx and may called only by Undo-object.
Definition at line 533 of file untbl.cxx.
References SwTableLines::begin(), SwTextNode::ClearSwpHintsArr(), sw::mark::ContentIdxStore::Create(), eMode, SwNode::EndOfSectionIndex(), SwTextNode::EraseText(), GetDoc(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwTextNode::GetpSwpHints(), SwTableLine::GetTabBoxes(), SwTableNode::GetTable(), SwTable::GetTabLines(), SwNode::GetTextNode(), SwContentNode::HasSwAttrSet(), i, SwTableLines::insert(), SwNode::IsStartNode(), SwTableToTextSave::m_nContent, SwTableToTextSave::m_nEndNd, SwTableToTextSave::m_nSttNd, SwTableToTextSave::m_pHstry, SwTableToTextSave::m_pMetadataUndoEnd, SwTableToTextSave::m_pMetadataUndoStart, SwNode::m_pStartOfSection, SwDoc::MakeTableBoxFormat(), SwDoc::MakeTableLineFormat(), n, SwTextNode::ResetAllAttr(), SAL_MAX_INT32, SwTextNode::SplitContentNode(), Start, SwStartNode, and SwTableBoxStartNode.
Referenced by SwUndoTableToText::UndoImpl().
|
private |
Update all OutlineNodes starting from Node.
Definition at line 77 of file ndnum.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), GetDoc(), IsDocNodes(), SwDoc::IsInDtor(), m_aOutlineNodes, nPos, SwOutlineNodes::Seek_Entry(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and UpdateOutlineNode().
Referenced by Delete(), DelNodes(), SwDoc::DelNumRules(), and MoveNodes().
void SwNodes::UpdateOutlineNode | ( | SwNode & | rNd | ) |
Update all Nodes - Rule/Format-Change.
Definition at line 39 of file ndnum.cxx.
References Chapter, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), GetDoc(), SwDoc::getIDocumentFieldsAccess(), SwNode::GetNodes(), IDocumentFieldsAccess::GetSysFieldType(), SwNode::GetTextNode(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), IsDocNodes(), SwTextNode::IsOutline(), SwTextNode::IsOutlineStateChanged(), m_aOutlineNodes, SwFieldType::UpdateFields(), and SwTextNode::UpdateOutlineState().
Referenced by SwTextNode::ChgTextCollUpdateNum(), SwTextNode::HandleNonLegacyHint(), SwUnoCursorHelper::SetCursorAttr(), SwTextNode::SwTextNode(), SwTextNode::TriggerNodeUpdate(), and UpdateOutlineIdx().
|
friend |
|
friend |
Definition at line 94 of file ndarr.hxx.
Referenced by MakeTextSection().
|
friend |
Definition at line 95 of file ndarr.hxx.
Referenced by CopyNodes(), InsBoxen(), InsertTable(), MakeEmptySection(), MakeTextSection(), MoveNodes(), SectionDown(), SectionUp(), SwNodes(), TextToTable(), and UndoTableToText().
|
mutableprivate |
Array of all outline nodes.
Definition at line 110 of file ndarr.hxx.
Referenced by ChgNode(), Delete(), DelNodes(), MoveNodes(), SwNodes(), UpdateOutlineIdx(), UpdateOutlineNode(), SwDoc::~SwDoc(), and ~SwNodes().
|
private |
|
private |
|
private |
Definition at line 107 of file ndarr.hxx.
Referenced by DelNodes(), and SwNodes().
|
private |
Definition at line 108 of file ndarr.hxx.
Referenced by DelNodes(), SwNodes(), and ~SwNodes().
|
private |
These are the fixed ranges.
Definition at line 106 of file ndarr.hxx.
Referenced by DelNodes(), and SwNodes().
|
private |
Definition at line 106 of file ndarr.hxx.
Referenced by DelNodes(), and SwNodes().
|
private |
Definition at line 107 of file ndarr.hxx.
Referenced by DelNodes(), and SwNodes().
|
private |
This Doc contains the nodes-array.
Definition at line 104 of file ndarr.hxx.
Referenced by IsDocNodes().
|
private |
ring of all indices on nodes.
Definition at line 98 of file ndarr.hxx.
Referenced by SwNodeIndex::DeRegisterIndex(), SwNodeIndex::RegisterIndex(), and RemoveNode().