LibreOffice Module sw (master)
1
|
#include <docary.hxx>
Public Types | |
typedef o3tl::sorted_vector< SwRangeRedline *, CompareSwRedlineTable, o3tl::find_partialorder_ptrequals > | vector_type |
typedef vector_type::size_type | size_type |
Static Public Member Functions | |
static void | LOKRedlineNotification (RedlineNotification eType, SwRangeRedline *pRedline) |
Emits LOK notification about one addition / removal of a redline item. More... | |
Static Public Attributes | |
static constexpr size_type | npos = SAL_MAX_INT32 |
Private Attributes | |
vector_type | maVector |
Definition at line 223 of file docary.hxx.
Definition at line 228 of file docary.hxx.
typedef o3tl::sorted_vector<SwRangeRedline*, CompareSwRedlineTable, o3tl::find_partialorder_ptrequals> SwRedlineTable::vector_type |
Definition at line 227 of file docary.hxx.
SwRedlineTable::~SwRedlineTable | ( | ) |
Definition at line 596 of file docredln.cxx.
|
inline |
Definition at line 268 of file docary.hxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::begin().
|
inline |
Definition at line 234 of file docary.hxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::end(), and o3tl::sorted_vector< Value, Compare, Find, class >::find().
Referenced by sw::DocumentContentOperationsManager::MoveNodeRange().
void SwRedlineTable::DeleteAndDestroyAll | ( | ) |
Definition at line 634 of file docredln.cxx.
References Remove.
Referenced by SwDoc::ClearDoc(), and SwDoc::~SwDoc().
void SwRedlineTable::dumpAsXml | ( | xmlTextWriterPtr | pWriter | ) | const |
Definition at line 740 of file docredln.cxx.
Referenced by SwDoc::dumpAsXml().
|
inline |
Definition at line 265 of file docary.hxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::empty().
Referenced by sw::DocumentContentOperationsManager::AppendTextNode(), SwUndoInsert::CanGrouping(), ChgTextToNum(), sw::DocumentContentOperationsManager::CopyRange(), sw::DocumentContentOperationsManager::DeleteAndJoinImpl(), sw::DocumentContentOperationsManager::DeleteDummyChar(), sw::DocumentContentOperationsManager::DeleteRange(), sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), SwDocShell::Execute(), MSWordExportBase::ExportDocument(), SwXRedlines::hasElements(), sw::DocumentContentOperationsManager::InsertString(), IsExtraData(), sw::DocumentContentOperationsManager::MoveNodeRange(), sw::DocumentContentOperationsManager::MoveRange(), sw::DocumentContentOperationsManager::Overwrite(), SwUndoSplitNode::RedoImpl(), SwUndoInsSection::RedoImpl(), SwUndoInsTable::RedoImpl(), SwUndoInsert::RedoImpl(), SwUndoCompDoc::RedoImpl(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), SaveRedlEndPosForRestore::SaveRedlEndPosForRestore(), SwDoc::SortTable(), sw::DocumentContentOperationsManager::SplitNode(), SwUndoDelete::SwUndoDelete(), SwUndoOverwrite::SwUndoOverwrite(), and SwWW8AttrIter::SwWW8AttrIter().
|
inline |
Definition at line 269 of file docary.hxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::end().
const SwRangeRedline * SwRedlineTable::FindAtPosition | ( | const SwPosition & | startPosition, |
size_type & | tableIndex, | ||
bool | next = true |
||
) | const |
Find the redline at the given position.
tableIndex | position in SwRedlineTable to start searching at, will be updated with the index of the returned redline (or the next redline after the given position if not found) |
next | true: redline starts at position and ends after, false: redline starts before position and ends at or after |
Definition at line 712 of file docredln.cxx.
References SwPaM::GetMark(), SwPaM::GetPoint(), SwPaM::HasMark(), SwRangeRedline::IsVisible(), and SwPaM::Start().
Referenced by SwView::GetState(), sw::DocumentRedlineManager::SelNextRedline(), and sw::DocumentRedlineManager::SelPrevRedline().
SwRedlineTable::size_type SwRedlineTable::FindNextOfSeqNo | ( | size_type | nSttPos | ) | const |
Definition at line 653 of file docredln.cxx.
References size.
Referenced by SwCursorShell::GotoRedline().
SwRedlineTable::size_type SwRedlineTable::FindNextSeqNo | ( | sal_uInt16 | nSeqNo, |
size_type | nSttPos | ||
) | const |
Search next or previous Redline with the same Seq.
Find the next or preceding Redline with the same seq.no.
No. Search can be restricted via Lookahead. Using 0 makes search the whole array.
We can limit the search using look ahead (0 searches the whole array).
Definition at line 668 of file docredln.cxx.
References size.
SwRedlineTable::size_type SwRedlineTable::FindPrevOfSeqNo | ( | size_type | nSttPos | ) | const |
Definition at line 660 of file docredln.cxx.
Referenced by SwCursorShell::GotoRedline().
SwRedlineTable::size_type SwRedlineTable::FindPrevSeqNo | ( | sal_uInt16 | nSeqNo, |
size_type | nSttPos | ||
) | const |
Definition at line 691 of file docredln.cxx.
References size.
SwRedlineTable::size_type SwRedlineTable::GetPos | ( | const SwRangeRedline * | p | ) | const |
Definition at line 601 of file docredln.cxx.
Referenced by sw::DocumentRedlineManager::HideAll(), sw::DocumentRedlineManager::ShowAll(), and SwUndoRedline::UndoImpl().
bool SwRedlineTable::Insert | ( | SwRangeRedline *& | p | ) |
Definition at line 431 of file docredln.cxx.
References Add, begin, SwRangeRedline::CallDisplayFunc(), and SwRangeRedline::HasValidRange().
Referenced by SwUndoCompDoc::RedoImpl().
bool SwRedlineTable::Insert | ( | SwRangeRedline *& | p, |
size_type & | rInsPos | ||
) |
Definition at line 444 of file docredln.cxx.
References begin, SwRangeRedline::CallDisplayFunc(), and SwRangeRedline::HasValidRange().
bool SwRedlineTable::InsertWithValidRanges | ( | SwRangeRedline *& | p, |
size_type * | pInsPos = nullptr |
||
) |
Definition at line 568 of file docredln.cxx.
References assert(), sw::GetAllValidRanges(), and Insert.
|
static |
Emits LOK notification about one addition / removal of a redline item.
Definition at line 357 of file docredln.cxx.
References Add, SfxViewShell::Current(), SwPaM::End(), SwContentNode::FindLayoutRect(), SwRangeRedline::GetAuthorString(), SwRedlineData::GetComment(), SwNode::GetContentNode(), SwPaM::GetContentNode(), IDocumentLayoutAccess::GetCurrentViewShell(), SwRangeRedline::GetDescr(), SwPaM::GetDoc(), SfxViewShell::GetDocId(), SfxViewShell::GetFirst(), SwRangeRedline::GetId(), SwDoc::getIDocumentLayoutAccess(), SfxViewShell::GetNext(), SwRangeRedline::GetRedlineData(), SwRedlineData::GetTimeStamp(), SwRedlineData::GetType(), DateTime::GetUNODateTime(), SwView::GetWrtShell(), SwViewShell::InvalidateWindows(), SwDoc::IsInDtor(), comphelper::string::join(), SfxViewShell::libreOfficeKitViewCallback(), Modify, SwPosition::nContent, SwPosition::nNode, Remove, SwShellCursor::SetMark(), SwPaM::Start(), SwRedlineTypeToOUString(), and utl::toISO8601().
Referenced by MaybeNotifyRedlineModification(), SwRangeRedline::MaybeNotifyRedlinePositionModification(), and SwTextNode::Update().
|
inline |
Definition at line 267 of file docary.hxx.
Definition at line 617 of file docredln.cxx.
References IDocumentLayoutAccess::GetCurrentViewShell(), SwDoc::getIDocumentLayoutAccess(), SwViewShell::InvalidateWindows(), SwDoc::IsInDtor(), Remove, SAL_MAX_INT32, and size.
void SwRedlineTable::Remove | ( | const SwRangeRedline * | p | ) |
Definition at line 609 of file docredln.cxx.
|
inline |
Definition at line 270 of file docary.hxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::Resort().
Referenced by SwTable::ConvertSubtables().
|
inline |
Definition at line 266 of file docary.hxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::size().
Referenced by SwRedlineItr::CheckLine(), SwDoc::CorrAbs(), SwTextShell::ExecField(), SwView::Execute(), SwUndo::FillSaveData(), SwUndo::FillSaveDataForFormat(), SwEditShell::FindRedlineOfData(), SwXRedlines::getByIndex(), SwXRedlines::getCount(), SwRedlineItr::GetNextRedln(), SwXText::getPropertyValue(), SwEditShell::GetRedlineCount(), SwTextNode::GetRedlineText(), SwWW8AttrIter::GetRunLevelRedline(), SwView::GetState(), SwXTextDocument::getTrackedChanges(), SwXRedlineEnumeration::hasMoreElements(), sw::DocumentRedlineManager::HideAll(), SwWW8AttrIter::IncludeEndOfParaCRInRedlineProperties(), SwNodes::InsertTextSection(), lcl_CollectDeletedRedlines(), lcl_disableShowChangesIfNeeded(), lcl_FillRedlineArray(), lcl_getFormatCollection(), lcl_GetRedlineAtNodeInsertionOrDeletion(), lcl_MaskRedlines(), SwTextFrame::MakePos(), MaybeNotifyRedlineModification(), SwRangeRedline::MoveFromSection(), sw::DocumentContentOperationsManager::MoveNodeRange(), SwDoc::MoveParagraphImpl(), SwXRedlineEnumeration::nextElement(), SwTextFrame::PaintEmpty(), SwWW8AttrIter::SearchNext(), SwRedlineItr::Seek(), SwScriptInfo::selectRedLineDeleted(), SwUndo::SetSaveData(), SwEditShell::SetTextFormatColl(), sw::DocumentRedlineManager::ShowAll(), sw_DebugRedline(), SwRedlineSaveData::SwRedlineSaveData(), SwUndoRedline::UndoImpl(), SwUndoRedlineSort::UndoRedlineImpl(), SwTextNode::Update(), SwXRedlinePortion::Validate(), and RtfExport::WriteRevTab().
|
private |
Definition at line 231 of file docary.hxx.
|
static |
Definition at line 229 of file docary.hxx.
Referenced by sw::DocumentRedlineManager::AcceptRedline(), SwRedlineAcceptDlg::Activate(), SwRedlineAcceptDlg::CalcDiff(), SwRedlineAcceptDlg::CallAcceptReject(), SwRedlineItr::CheckLine(), SwAttrIter::CtorInitAttrIter(), SwTextFrame::EmptyHeight(), SwView::Execute(), SwEditShell::FindRedlineOfData(), SwAttrIter::GetNextAttr(), SwRedlineItr::GetNextRedln(), sw::DocumentRedlineManager::GetRedlinePos(), SwTextNode::GetRedlineText(), SwCursorShell::GotoRedline(), IMPL_LINK(), IMPL_LINK_NOARG(), SwRedlineAcceptDlg::InitAuthors(), SwRedlineAcceptDlg::InsertParents(), lcl_GetRedlineAtNodeInsertionOrDeletion(), sw::DocumentContentOperationsManager::MoveNodeRange(), SwDoc::MoveParagraphImpl(), SwTextFrame::PaintEmpty(), SwTextFrame::PaintExtraData(), SwTextFrame::RegisterToNode(), sw::DocumentRedlineManager::RejectRedline(), SwRedlineItr::Reset(), SwRedlineItr::Seek(), and SwUndoRedlineSort::UndoRedlineImpl().