LibreOffice Module sw (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
IDocumentRedlineAccess Class Referenceabstract

#include <IDocumentRedlineAccess.hxx>

Inheritance diagram for IDocumentRedlineAccess:
[legend]

Public Types

enum class  AppendResult {
  IGNORED ,
  MERGED ,
  APPENDED
}
 

Public Member Functions

virtual RedlineFlags GetRedlineFlags () const =0
 Query the currently set redline mode. More...
 
virtual void SetRedlineFlags_intern (RedlineFlags eMode)=0
 Set a new redline mode. More...
 
virtual void SetRedlineFlags (RedlineFlags eMode)=0
 Set a new redline mode. More...
 
virtual bool IsRedlineOn () const =0
 Query if redlining is on. More...
 
virtual bool IsIgnoreRedline () const =0
 
virtual const SwRedlineTableGetRedlineTable () const =0
 
virtual SwRedlineTableGetRedlineTable ()=0
 
virtual const SwExtraRedlineTableGetExtraRedlineTable () const =0
 
virtual SwExtraRedlineTableGetExtraRedlineTable ()=0
 
virtual bool IsInRedlines (const SwNode &rNode) const =0
 
virtual AppendResult AppendRedline (SwRangeRedline *pNewRedl, bool bCallDelete)=0
 Append a new redline. More...
 
virtual bool AppendTableRowRedline (SwTableRowRedline *pPtr)=0
 
virtual bool AppendTableCellRedline (SwTableCellRedline *pPtr)=0
 
virtual bool SplitRedline (const SwPaM &rPam)=0
 
virtual bool DeleteRedline (const SwPaM &rPam, bool bSaveInUndo, RedlineType nDelType)=0
 
virtual bool DeleteRedline (const SwStartNode &rSection, bool bSaveInUndo, RedlineType nDelType)=0
 
virtual SwRedlineTable::size_type GetRedlinePos (const SwNode &rNode, RedlineType nType) const =0
 
virtual bool HasRedline (const SwPaM &rPam, RedlineType nType, bool bStartOrEndInRange) const =0
 
virtual void CompressRedlines (size_t nStartIndex=0)=0
 
virtual const SwRangeRedlineGetRedline (const SwPosition &rPos, SwRedlineTable::size_type *pFndPos) const =0
 
virtual bool IsRedlineMove () const =0
 
virtual void SetRedlineMove (bool bFlag)=0
 
virtual bool AcceptRedline (SwRedlineTable::size_type nPos, bool bCallDelete)=0
 
virtual bool AcceptRedline (const SwPaM &rPam, bool bCallDelete)=0
 
virtual void AcceptRedlineParagraphFormatting (const SwPaM &rPam)=0
 
virtual bool RejectRedline (SwRedlineTable::size_type nPos, bool bCallDelete)=0
 
virtual bool RejectRedline (const SwPaM &rPam, bool bCallDelete)=0
 
virtual const SwRangeRedlineSelNextRedline (SwPaM &rPam) const =0
 
virtual const SwRangeRedlineSelPrevRedline (SwPaM &rPam) const =0
 
virtual void AcceptAllRedline (bool bAcceptReject)=0
 
virtual void UpdateRedlineAttr ()=0
 
virtual std::size_t GetRedlineAuthor ()=0
 
virtual std::size_t InsertRedlineAuthor (const OUString &rAuthor)=0
 
virtual bool SetRedlineComment (const SwPaM &rPam, const OUString &rComment)=0
 
virtual const css::uno::Sequence< sal_Int8 > & GetRedlinePassword () const =0
 
virtual void SetRedlinePassword (const css::uno::Sequence< sal_Int8 > &rNewPassword)=0
 

Static Public Member Functions

static bool IsShowChanges (const RedlineFlags eM)
 
static bool IsHideChanges (const RedlineFlags eM)
 
static bool IsShowOriginal (const RedlineFlags eM)
 
static bool IsRedlineOn (const RedlineFlags eM)
 

Protected Member Functions

virtual ~IDocumentRedlineAccess ()
 

Detailed Description

Definition at line 79 of file IDocumentRedlineAccess.hxx.

Member Enumeration Documentation

◆ AppendResult

Enumerator
IGNORED 
MERGED 
APPENDED 

Definition at line 134 of file IDocumentRedlineAccess.hxx.

Constructor & Destructor Documentation

◆ ~IDocumentRedlineAccess()

virtual IDocumentRedlineAccess::~IDocumentRedlineAccess ( )
inlineprotectedvirtual

Definition at line 222 of file IDocumentRedlineAccess.hxx.

Member Function Documentation

◆ AcceptAllRedline()

virtual void IDocumentRedlineAccess::AcceptAllRedline ( bool  bAcceptReject)
pure virtual

Implemented in sw::DocumentRedlineManager.

Referenced by SwDocShell::Execute().

◆ AcceptRedline() [1/2]

virtual bool IDocumentRedlineAccess::AcceptRedline ( const SwPaM rPam,
bool  bCallDelete 
)
pure virtual

Implemented in sw::DocumentRedlineManager.

◆ AcceptRedline() [2/2]

virtual bool IDocumentRedlineAccess::AcceptRedline ( SwRedlineTable::size_type  nPos,
bool  bCallDelete 
)
pure virtual

◆ AcceptRedlineParagraphFormatting()

virtual void IDocumentRedlineAccess::AcceptRedlineParagraphFormatting ( const SwPaM rPam)
pure virtual

◆ AppendRedline()

virtual AppendResult IDocumentRedlineAccess::AppendRedline ( SwRangeRedline pNewRedl,
bool  bCallDelete 
)
pure virtual

Append a new redline.

Parameters
pNewRedlredline to insert
bCallDeleteif set, then for a new DELETE redline that is inserted so that it overlaps an existing INSERT redline with the same author, the overlapping range is deleted, i.e. the new DELETE removes existing INSERT for that range
Returns
APPENDED if pNewRedl is still alive and was appended MERGED if pNewRedl was deleted but has been merged with existing one IGNORED if pNewRedl was deleted and ignored/invalid

Implemented in sw::DocumentRedlineManager.

Referenced by sw::DocumentContentOperationsManager::AppendTextNode(), ChgTextToNum(), sw::DocumentContentOperationsManager::CopyRange(), sw::DocumentContentOperationsManager::DeleteAndJoinWithRedlineImpl(), SwFEShell::Insert(), XMLRedlineImportHelper::InsertIntoDocument(), sw::DocumentContentOperationsManager::InsertString(), SwDoc::InsertSwSection(), SwDoc::InsertTable(), SwUnoCursorHelper::makeRedline(), SwDoc::MoveParagraphImpl(), sw::util::SetInDocAndDelete::operator()(), sw::DocumentContentOperationsManager::Overwrite(), SwUndoTableCpyTable::PrepareRedline(), SwRedlineSaveData::RedlineToDoc(), SwUndoAttr::redoAttribute(), SwUndoInserts::RedoImpl(), SwUndoInsert::RedoImpl(), SwUndoInsSection::RedoImpl(), SwUndoSplitNode::RedoImpl(), SwUndoInsTable::RedoImpl(), SwUndoRedlineDelete::RedoRedlineImpl(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), SwFltControlStack::SetAttrInDoc(), SwDoc::SetFormatItemByAutoFormat(), SwDoc::SetTextFormatCollByAutoFormat(), and SwDoc::SortText().

◆ AppendTableCellRedline()

virtual bool IDocumentRedlineAccess::AppendTableCellRedline ( SwTableCellRedline pPtr)
pure virtual

◆ AppendTableRowRedline()

virtual bool IDocumentRedlineAccess::AppendTableRowRedline ( SwTableRowRedline pPtr)
pure virtual

◆ CompressRedlines()

virtual void IDocumentRedlineAccess::CompressRedlines ( size_t  nStartIndex = 0)
pure virtual

◆ DeleteRedline() [1/2]

virtual bool IDocumentRedlineAccess::DeleteRedline ( const SwPaM rPam,
bool  bSaveInUndo,
RedlineType  nDelType 
)
pure virtual

◆ DeleteRedline() [2/2]

virtual bool IDocumentRedlineAccess::DeleteRedline ( const SwStartNode rSection,
bool  bSaveInUndo,
RedlineType  nDelType 
)
pure virtual

Implemented in sw::DocumentRedlineManager.

◆ GetExtraRedlineTable() [1/2]

virtual const SwExtraRedlineTable & IDocumentRedlineAccess::GetExtraRedlineTable ( ) const
pure virtual

◆ GetExtraRedlineTable() [2/2]

virtual SwExtraRedlineTable & IDocumentRedlineAccess::GetExtraRedlineTable ( )
pure virtual

Implemented in sw::DocumentRedlineManager.

◆ GetRedline()

virtual const SwRangeRedline * IDocumentRedlineAccess::GetRedline ( const SwPosition rPos,
SwRedlineTable::size_type pFndPos 
) const
pure virtual

◆ GetRedlineAuthor()

virtual std::size_t IDocumentRedlineAccess::GetRedlineAuthor ( )
pure virtual

◆ GetRedlineFlags()

virtual RedlineFlags IDocumentRedlineAccess::GetRedlineFlags ( ) const
pure virtual

Query the currently set redline mode.

Returns
the currently set redline mode

Implemented in sw::DocumentRedlineManager.

Referenced by SwXDocumentSettings::_setSingleValue(), sw::UndoManager::AddUndoAction(), SwAutoFormat::AutoCorrect(), SwLineLayout::CalcLine(), SwRangeRedline::CallDisplayFunc(), SwUndoInsert::CanGrouping(), SwDoc::CompareDoc(), SwXText::convertToTable(), SwFEShell::Copy(), sw::DocumentContentOperationsManager::CopyImplImpl(), sw::DocumentContentOperationsManager::CopyRange(), sw::DocumentContentOperationsManager::CopyWithFlyInFly(), SwAttrIter::CtorInitAttrIter(), sw::DocumentContentOperationsManager::DeleteAndJoinWithRedlineImpl(), SwFEShell::DeleteCol(), SwTextFrame::EmptyHeight(), SwView::Execute(), SwXMLExport::exportDoc(), MSWordExportBase::ExportDocument(), SwPostItHelper::getLayoutInfos(), SwXTextDocument::getPropertyValue(), sw::GetRanges(), SwEditShell::GetRedlineFlags(), SwRangeRedline::Hide(), SwUndoInsert::Init(), SwDoc::InsCopyOfTable(), sw::DocumentContentOperationsManager::InsertString(), SwDoc::InsertSwSection(), lcl_CollectDeletedRedlines(), lcl_MaskDeletedRedlines(), lcl_MaskRedlinesAndHiddenText(), SwUnoCursorHelper::makeRedline(), SwUnoCursorHelper::makeTableCellRedline(), SwUnoCursorHelper::makeTableRowRedline(), SwDoc::MergeDoc(), SwDoc::MergeTable(), SwDoc::MoveParagraphImpl(), SwTextFrame::PaintEmpty(), SwTextFrame::PaintExtraData(), SwTransferable::Paste(), SwUndoTableCpyTable::PrepareRedline(), XMLReader::Read(), SwRedlineSaveData::RedlineToDoc(), SwEditShell::Redo(), SwUndoAttr::redoAttribute(), SwUndoInserts::RedoImpl(), SwUndoInsert::RedoImpl(), SwUndoRedline::RedoImpl(), SwUndoInsSection::RedoImpl(), SwUndoSplitNode::RedoImpl(), SwUndoInsTable::RedoImpl(), SwRedlineExtraData_FormatColl::Reject(), SwRedlineExtraData_Format::Reject(), sw::ReplaceImpl(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), SwEditWin::RequestHelp(), SwUndoAttr::SaveRedlineData(), SwScriptInfo::selectRedLineDeleted(), SwDoc::SetFormatItemByAutoFormat(), SwXTextDocument::setPropertyValue(), SwDoc::SetRowNotTracked(), SwUndo::SetSaveData(), SwRangeRedline::Show(), SwRangeRedline::ShowOriginal(), SwAutoFormat::SwAutoFormat(), SwUndoCompDoc::SwUndoCompDoc(), SwUndoInserts::SwUndoInserts(), SwUndoInsSection::SwUndoInsSection(), SwUndoInsTable::SwUndoInsTable(), SwUndoRedline::SwUndoRedline(), SwUndoSplitNode::SwUndoSplitNode(), SwEditShell::Undo(), SwUndoCompDoc::UndoImpl(), SwUndoRedlineSort::UndoRedlineImpl(), and SwXMLWriter::Write_().

◆ GetRedlinePassword()

virtual const css::uno::Sequence< sal_Int8 > & IDocumentRedlineAccess::GetRedlinePassword ( ) const
pure virtual

◆ GetRedlinePos()

virtual SwRedlineTable::size_type IDocumentRedlineAccess::GetRedlinePos ( const SwNode rNode,
RedlineType  nType 
) const
pure virtual

◆ GetRedlineTable() [1/2]

virtual const SwRedlineTable & IDocumentRedlineAccess::GetRedlineTable ( ) const
pure virtual

Implemented in sw::DocumentRedlineManager.

Referenced by SwTextNode::AddToList(), sw::DocumentContentOperationsManager::AppendTextNode(), SwLineLayout::CalcLine(), SwUndoInsert::CanGrouping(), SwRedlineItr::CheckLine(), ChgTextToNum(), SwDoc::ClearDoc(), SwTable::ConvertSubtables(), sw::DocumentContentOperationsManager::CopyRange(), SwDoc::CorrAbs(), SwDoc::CorrRel(), DelBookmarks(), SwRangeRedline::DelCopyOfSection(), sw::DocumentContentOperationsManager::DeleteAndJoinImpl(), sw::DocumentContentOperationsManager::DeleteDummyChar(), sw::DocumentContentOperationsManager::DeleteRange(), sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), sw::DocumentContentOperationsManager::DelFullPara(), SwDoc::dumpAsXml(), SwTextShell::ExecField(), SwDocShell::Execute(), SwView::Execute(), MSWordExportBase::ExportDocument(), SwUndo::FillSaveData(), SwUndo::FillSaveDataForFormat(), SwEditShell::FindRedlineOfData(), SwXRedlines::getByIndex(), SwCursorShell::GetContentAtPos(), SwXRedlines::getCount(), SwRedlineItr::GetNextRedln(), SwWW8AttrIter::GetParagraphLevelRedline(), AttributeOutputBase::GetParagraphMarkerRedline(), SwXText::getPropertyValue(), SwXTextSection::Impl::GetPropertyValues_Impl(), sw::GetRanges(), SwTableBox::GetRedline(), SwEditShell::GetRedline(), SwEditShell::GetRedlineCount(), SwTextNode::GetRedlineText(), SwTableLine::GetRedlineType(), SwTableBox::GetRedlineType(), SwWW8AttrIter::GetRunLevelRedline(), SwView::GetState(), SwTableLine::GetTableRedline(), SwXTextDocument::getTrackedChanges(), SwCursorShell::GotoRedline(), SwCursorShell::GotoRedline_(), SwTable::HasDeletedRowOrCell(), SwXRedlines::hasElements(), SwXRedlineEnumeration::hasMoreElements(), SwDoc::HasRowNotTracked(), SwWW8AttrIter::IncludeEndOfParaCRInRedlineProperties(), XMLRedlineImportHelper::InsertIntoDocument(), sw::DocumentContentOperationsManager::InsertString(), SwNodes::InsertTextSection(), SwTable::IsDeleted(), IsExtraData(), SwTableLine::IsTracked(), lcl_CollectDeletedRedlines(), lcl_FillRedlineArray(), lcl_getFormatCollection(), lcl_GetRedlineAtNodeInsertionOrDeletion(), lcl_GetSpecialProperty(), lcl_MaskDeletedRedlines(), lcl_MaskRedlines(), SwTextFrame::MakePos(), MaybeNotifyRedlineModification(), SwDoc::MergeDoc(), SwRangeRedline::MoveFromSection(), sw::DocumentContentOperationsManager::MoveNodeRange(), SwDoc::MoveParagraphImpl(), sw::DocumentContentOperationsManager::MoveRange(), SwRangeRedline::MoveToSection(), SwTextFormatter::NewFootnoteNumPortion(), SwTextFormatter::NewNumberPortion(), SwXRedlineEnumeration::nextElement(), sw::DocumentContentOperationsManager::Overwrite(), SwTextFrame::PaintEmpty(), SwUndoInserts::RedoImpl(), SwUndoInsert::RedoImpl(), SwUndoCompDoc::RedoImpl(), SwUndoInsSection::RedoImpl(), SwUndoSplitNode::RedoImpl(), SwUndoInsTable::RedoImpl(), sw::ReplaceImpl(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), SaveRedlEndPosForRestore::SaveRedlEndPosForRestore(), SwWW8AttrIter::SearchNext(), SwRedlineItr::Seek(), SwScriptInfo::selectRedLineDeleted(), SwDoc::SetRowNotTracked(), SwUndo::SetSaveData(), sw::DocumentContentOperationsManager::SplitNode(), sw_DebugRedline(), SwRedlineSaveData::SwRedlineSaveData(), SwRowFrame::SwRowFrame(), SwTabFrame::SwTabFrame(), SwUndoDelete::SwUndoDelete(), SwUndoOverwrite::SwUndoOverwrite(), SwWW8AttrIter::SwWW8AttrIter(), DocxAttributeOutput::TableCellRedline(), DocxAttributeOutput::TableRowRedline(), SwUndoRedline::UndoImpl(), SwUndoRedlineSort::UndoRedlineImpl(), UnHide(), SwTextNode::Update(), SwTableLine::UpdateTextChangesOnly(), SwXRedlinePortion::Validate(), RtfExport::WriteRevTab(), and SwDoc::~SwDoc().

◆ GetRedlineTable() [2/2]

virtual SwRedlineTable & IDocumentRedlineAccess::GetRedlineTable ( )
pure virtual

Implemented in sw::DocumentRedlineManager.

◆ HasRedline()

virtual bool IDocumentRedlineAccess::HasRedline ( const SwPaM rPam,
RedlineType  nType,
bool  bStartOrEndInRange 
) const
pure virtual

◆ InsertRedlineAuthor()

virtual std::size_t IDocumentRedlineAccess::InsertRedlineAuthor ( const OUString &  rAuthor)
pure virtual

◆ IsHideChanges()

static bool IDocumentRedlineAccess::IsHideChanges ( const RedlineFlags  eM)
inlinestatic

Definition at line 86 of file IDocumentRedlineAccess.hxx.

References ShowInsert, and ShowMask.

Referenced by sw::DocumentRedlineManager::AppendRedline().

◆ IsIgnoreRedline()

virtual bool IDocumentRedlineAccess::IsIgnoreRedline ( ) const
pure virtual

◆ IsInRedlines()

virtual bool IDocumentRedlineAccess::IsInRedlines ( const SwNode rNode) const
pure virtual

Implemented in sw::DocumentRedlineManager.

Referenced by SwNode::IsInRedlines().

◆ IsRedlineMove()

virtual bool IDocumentRedlineAccess::IsRedlineMove ( ) const
pure virtual

◆ IsRedlineOn() [1/2]

virtual bool IDocumentRedlineAccess::IsRedlineOn ( ) const
pure virtual

◆ IsRedlineOn() [2/2]

static bool IDocumentRedlineAccess::IsRedlineOn ( const RedlineFlags  eM)
inlinestatic

◆ IsShowChanges()

static bool IDocumentRedlineAccess::IsShowChanges ( const RedlineFlags  eM)
inlinestatic

◆ IsShowOriginal()

static bool IDocumentRedlineAccess::IsShowOriginal ( const RedlineFlags  eM)
inlinestatic

◆ RejectRedline() [1/2]

virtual bool IDocumentRedlineAccess::RejectRedline ( const SwPaM rPam,
bool  bCallDelete 
)
pure virtual

Implemented in sw::DocumentRedlineManager.

◆ RejectRedline() [2/2]

virtual bool IDocumentRedlineAccess::RejectRedline ( SwRedlineTable::size_type  nPos,
bool  bCallDelete 
)
pure virtual

◆ SelNextRedline()

virtual const SwRangeRedline * IDocumentRedlineAccess::SelNextRedline ( SwPaM rPam) const
pure virtual

◆ SelPrevRedline()

virtual const SwRangeRedline * IDocumentRedlineAccess::SelPrevRedline ( SwPaM rPam) const
pure virtual

◆ SetRedlineComment()

virtual bool IDocumentRedlineAccess::SetRedlineComment ( const SwPaM rPam,
const OUString &  rComment 
)
pure virtual

◆ SetRedlineFlags()

virtual void IDocumentRedlineAccess::SetRedlineFlags ( RedlineFlags  eMode)
pure virtual

◆ SetRedlineFlags_intern()

virtual void IDocumentRedlineAccess::SetRedlineFlags_intern ( RedlineFlags  eMode)
pure virtual

◆ SetRedlineMove()

virtual void IDocumentRedlineAccess::SetRedlineMove ( bool  bFlag)
pure virtual

◆ SetRedlinePassword()

virtual void IDocumentRedlineAccess::SetRedlinePassword ( const css::uno::Sequence< sal_Int8 > &  rNewPassword)
pure virtual

◆ SplitRedline()

virtual bool IDocumentRedlineAccess::SplitRedline ( const SwPaM rPam)
pure virtual

◆ UpdateRedlineAttr()

virtual void IDocumentRedlineAccess::UpdateRedlineAttr ( )
pure virtual

The documentation for this class was generated from the following file: