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  AppendResult {
  AppendResult::IGNORED,
  AppendResult::MERGED,
  AppendResult::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 HasExtraRedlineTable () const =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 void CompressRedlines ()=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 94 of file IDocumentRedlineAccess.hxx.

Member Enumeration Documentation

Enumerator
IGNORED 
MERGED 
APPENDED 

Definition at line 150 of file IDocumentRedlineAccess.hxx.

Constructor & Destructor Documentation

virtual IDocumentRedlineAccess::~IDocumentRedlineAccess ( )
inlineprotectedvirtual

Definition at line 233 of file IDocumentRedlineAccess.hxx.

Member Function Documentation

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

Implemented in sw::DocumentRedlineManager.

Referenced by SwDocShell::Execute().

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

Implemented in sw::DocumentRedlineManager.

virtual void IDocumentRedlineAccess::AcceptRedlineParagraphFormatting ( const SwPaM rPam)
pure virtual
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(), XMLRedlineImportHelper::InsertIntoDocument(), sw::DocumentContentOperationsManager::InsertString(), SwDoc::InsertSwSection(), SwDoc::InsertTable(), SwUnoCursorHelper::makeRedline(), SwDoc::MoveParagraphImpl(), sw::util::SetInDocAndDelete::operator()(), sw::DocumentContentOperationsManager::Overwrite(), SwUndoTableCpyTable::PrepareRedline(), SwRedlineSaveData::RedlineToDoc(), SwUndoSplitNode::RedoImpl(), SwUndoAttr::RedoImpl(), SwUndoInsSection::RedoImpl(), SwUndoInsTable::RedoImpl(), SwUndoInsert::RedoImpl(), SwUndoRedlineDelete::RedoRedlineImpl(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), SwFltControlStack::SetAttrInDoc(), SwDoc::SetFormatItemByAutoFormat(), SwDoc::SetTextFormatCollByAutoFormat(), SwDoc::SortText(), and sw::DocumentContentOperationsManager::SplitNode().

virtual bool IDocumentRedlineAccess::AppendTableCellRedline ( SwTableCellRedline pPtr)
pure virtual
virtual bool IDocumentRedlineAccess::AppendTableRowRedline ( SwTableRowRedline pPtr)
pure virtual
virtual void IDocumentRedlineAccess::CompressRedlines ( )
pure virtual
virtual bool IDocumentRedlineAccess::DeleteRedline ( const SwPaM rPam,
bool  bSaveInUndo,
RedlineType  nDelType 
)
pure virtual
virtual bool IDocumentRedlineAccess::DeleteRedline ( const SwStartNode rSection,
bool  bSaveInUndo,
RedlineType  nDelType 
)
pure virtual

Implemented in sw::DocumentRedlineManager.

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

Implemented in sw::DocumentRedlineManager.

virtual const SwRangeRedline* IDocumentRedlineAccess::GetRedline ( const SwPosition rPos,
SwRedlineTable::size_type pFndPos 
) const
pure virtual
virtual std::size_t IDocumentRedlineAccess::GetRedlineAuthor ( )
pure virtual
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(), SwRangeRedline::CallDisplayFunc(), SwUndoInsert::CanGrouping(), SwDoc::CompareDoc(), SwFEShell::Copy(), sw::DocumentContentOperationsManager::CopyImplImpl(), sw::DocumentContentOperationsManager::CopyRange(), sw::DocumentContentOperationsManager::CopyWithFlyInFly(), SwAttrIter::CtorInitAttrIter(), sw::DocumentContentOperationsManager::DeleteAndJoinWithRedlineImpl(), SwTextFrame::EmptyHeight(), SwView::Execute(), SwXMLExport::exportDoc(), MSWordExportBase::ExportDocument(), SwPostItHelper::getLayoutInfos(), SwXTextDocument::getPropertyValue(), SwEditShell::GetRedlineFlags(), SwRangeRedline::Hide(), SwUndoInsert::Init(), SwDoc::InsCopyOfTable(), sw::DocumentContentOperationsManager::InsertString(), SwDoc::InsertSwSection(), lcl_CollectDeletedRedlines(), lcl_MaskRedlinesAndHiddenText(), SwUnoCursorHelper::makeRedline(), SwUnoCursorHelper::makeTableCellRedline(), SwUnoCursorHelper::makeTableRowRedline(), SwDoc::MergeDoc(), SwDoc::MergeTable(), SwDoc::MoveParagraphImpl(), SwTextFrame::PaintEmpty(), SwTextFrame::PaintExtraData(), SwUndoTableCpyTable::PrepareRedline(), XMLReader::Read(), SwRedlineSaveData::RedlineToDoc(), SwEditShell::Redo(), SwUndoSplitNode::RedoImpl(), SwUndoRedline::RedoImpl(), SwUndoAttr::RedoImpl(), SwUndoInsSection::RedoImpl(), SwUndoInsTable::RedoImpl(), SwUndoInsert::RedoImpl(), SwRedlineExtraData_FormatColl::Reject(), SwRedlineExtraData_Format::Reject(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), SwEditWin::RequestHelp(), SwUndoAttr::SaveRedlineData(), SwScriptInfo::selectRedLineDeleted(), SwEditShell::SetAttrItem(), SwEditShell::SetAttrSet(), SwDoc::SetFormatItemByAutoFormat(), SwXTextDocument::setPropertyValue(), SwUndo::SetSaveData(), SwEditShell::SetTextFormatColl(), 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_().

virtual const css::uno::Sequence<sal_Int8>& IDocumentRedlineAccess::GetRedlinePassword ( ) const
pure virtual
virtual SwRedlineTable::size_type IDocumentRedlineAccess::GetRedlinePos ( const SwNode rNode,
RedlineType  nType 
) const
pure virtual
virtual const SwRedlineTable& IDocumentRedlineAccess::GetRedlineTable ( ) const
pure virtual

Implemented in sw::DocumentRedlineManager.

Referenced by sw::DocumentContentOperationsManager::AppendTextNode(), SwUndoInsert::CanGrouping(), SwRedlineItr::CheckLine(), sw::CheckParaRedlineMerge(), ChgTextToNum(), SwDoc::ClearDoc(), sw::DocumentContentOperationsManager::CopyRange(), SwDoc::CorrAbs(), SwDoc::CorrRel(), DelBookmarks(), SwRangeRedline::DelCopyOfSection(), sw::DocumentContentOperationsManager::DeleteAndJoinImpl(), sw::DocumentContentOperationsManager::DeleteDummyChar(), sw::DocumentContentOperationsManager::DeleteRange(), sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), SwDoc::dumpAsXml(), SwTextShell::ExecField(), SwDocShell::Execute(), SwView::Execute(), MSWordExportBase::ExportDocument(), SwUndo::FillSaveData(), SwUndo::FillSaveDataForFormat(), SwEditShell::FindRedlineOfData(), SwXRedlines::getByIndex(), SwXRedlines::getCount(), SwRedlineItr::GetNextRedln(), SwWW8AttrIter::GetParagraphLevelRedline(), AttributeOutputBase::GetParagraphMarkerRedline(), SwXText::getPropertyValue(), SwXTextSection::Impl::GetPropertyValues_Impl(), SwEditShell::GetRedline(), SwEditShell::GetRedlineCount(), SwTextNode::GetRedlineText(), SwWW8AttrIter::GetRunLevelRedline(), SwView::GetState(), SwXTextDocument::getTrackedChanges(), SwCursorShell::GotoRedline(), SwCursorShell::GotoRedline_(), SwXRedlines::hasElements(), SwXRedlineEnumeration::hasMoreElements(), SwWW8AttrIter::IncludeEndOfParaCRInRedlineProperties(), sw::DocumentContentOperationsManager::InsertString(), IsExtraData(), lcl_CollectDeletedRedlines(), lcl_disableShowChangesIfNeeded(), lcl_FillRedlineArray(), lcl_getFormatCollection(), lcl_GetRedlineAtNodeInsertionOrDeletion(), lcl_GetSpecialProperty(), lcl_MaskRedlines(), SwTextFrame::MakePos(), MaybeNotifyRedlineModification(), SwDoc::MergeDoc(), SwRangeRedline::MoveFromSection(), sw::DocumentContentOperationsManager::MoveNodeRange(), SwDoc::MoveParagraphImpl(), sw::DocumentContentOperationsManager::MoveRange(), SwRangeRedline::MoveToSection(), SwXRedlineEnumeration::nextElement(), sw::DocumentContentOperationsManager::Overwrite(), SwUndoSplitNode::RedoImpl(), SwUndoInsSection::RedoImpl(), SwUndoInsTable::RedoImpl(), SwUndoInsert::RedoImpl(), SwUndoCompDoc::RedoImpl(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), SaveRedlEndPosForRestore::SaveRedlEndPosForRestore(), SwWW8AttrIter::SearchNext(), SwRedlineItr::Seek(), SwScriptInfo::selectRedLineDeleted(), SwRootFrame::SetHideRedlines(), SwUndo::SetSaveData(), SwEditShell::SetTextFormatColl(), SwDoc::SortTable(), sw::DocumentContentOperationsManager::SplitNode(), sw_DebugRedline(), SwRedlineSaveData::SwRedlineSaveData(), SwUndoDelete::SwUndoDelete(), SwUndoOverwrite::SwUndoOverwrite(), SwWW8AttrIter::SwWW8AttrIter(), SwUndoRedlineSort::UndoRedlineImpl(), SwTextNode::Update(), SwXRedlinePortion::Validate(), RtfExport::WriteRevTab(), and SwDoc::~SwDoc().

virtual SwRedlineTable& IDocumentRedlineAccess::GetRedlineTable ( )
pure virtual

Implemented in sw::DocumentRedlineManager.

virtual bool IDocumentRedlineAccess::HasExtraRedlineTable ( ) const
pure virtual
virtual std::size_t IDocumentRedlineAccess::InsertRedlineAuthor ( const OUString &  rAuthor)
pure virtual
static bool IDocumentRedlineAccess::IsHideChanges ( const RedlineFlags  eM)
inlinestatic

Definition at line 101 of file IDocumentRedlineAccess.hxx.

References ShowInsert, and ShowMask.

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

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

Implemented in sw::DocumentRedlineManager.

Referenced by SwNode::IsInRedlines().

virtual bool IDocumentRedlineAccess::IsRedlineMove ( ) const
pure virtual
static bool IDocumentRedlineAccess::IsRedlineOn ( const RedlineFlags  eM)
inlinestatic
virtual bool IDocumentRedlineAccess::IsRedlineOn ( ) const
pure virtual
static bool IDocumentRedlineAccess::IsShowChanges ( const RedlineFlags  eM)
inlinestatic
static bool IDocumentRedlineAccess::IsShowOriginal ( const RedlineFlags  eM)
inlinestatic
virtual bool IDocumentRedlineAccess::RejectRedline ( SwRedlineTable::size_type  nPos,
bool  bCallDelete 
)
pure virtual
virtual bool IDocumentRedlineAccess::RejectRedline ( const SwPaM rPam,
bool  bCallDelete 
)
pure virtual

Implemented in sw::DocumentRedlineManager.

virtual const SwRangeRedline* IDocumentRedlineAccess::SelNextRedline ( SwPaM rPam) const
pure virtual
virtual const SwRangeRedline* IDocumentRedlineAccess::SelPrevRedline ( SwPaM rPam) const
pure virtual
virtual bool IDocumentRedlineAccess::SetRedlineComment ( const SwPaM rPam,
const OUString &  rComment 
)
pure virtual
virtual void IDocumentRedlineAccess::SetRedlineFlags ( RedlineFlags  eMode)
pure virtual
virtual void IDocumentRedlineAccess::SetRedlineFlags_intern ( RedlineFlags  eMode)
pure virtual
virtual void IDocumentRedlineAccess::SetRedlineMove ( bool  bFlag)
pure virtual
virtual void IDocumentRedlineAccess::SetRedlinePassword ( const css::uno::Sequence< sal_Int8 > &  rNewPassword)
pure virtual
virtual bool IDocumentRedlineAccess::SplitRedline ( const SwPaM rPam)
pure virtual
virtual void IDocumentRedlineAccess::UpdateRedlineAttr ( )
pure virtual

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