LibreOffice Module sw (master) 1
|
#include <redline.hxx>
Public Types | |
enum class | Invalidation { Add , Remove } |
![]() | |
typedef std::add_const< SwPaM >::type | const_value_type |
typedef RingContainer< SwPaM > | ring_container |
typedef RingContainer< const_value_type > | const_ring_container |
Public Member Functions | |
SwRangeRedline (RedlineType eType, const SwPaM &rPam) | |
SwRangeRedline (const SwRedlineData &rData, const SwPaM &rPam) | |
SwRangeRedline (const SwRedlineData &rData, const SwPosition &rPos) | |
SwRangeRedline (SwRedlineData *pData, const SwPosition &rPos, bool bDelLP) | |
SwRangeRedline (const SwRangeRedline &) | |
virtual | ~SwRangeRedline () override |
sal_uInt32 | GetId () const |
const SwNodeIndex * | GetContentIdx () const |
void | SetContentIdx (const SwNodeIndex &) |
void | ClearContentIdx () |
bool | IsVisible () const |
bool | IsDelLastPara () const |
void | SetStart (const SwPosition &rPos, SwPosition *pSttPtr=nullptr) |
void | SetEnd (const SwPosition &rPos, SwPosition *pEndPtr=nullptr) |
bool | HasValidRange () const |
Do we have a valid selection? More... | |
const SwRedlineData & | GetRedlineData (sal_uInt16 nPos=0) const |
bool | operator!= (const SwRedlineData &rCmp) const |
void | SetAutoFormat () |
bool | IsAutoFormat () const |
sal_uInt16 | GetStackCount () const |
std::size_t | GetAuthor (sal_uInt16 nPos=0) const |
OUString const & | GetAuthorString (sal_uInt16 nPos=0) const |
const DateTime & | GetTimeStamp (sal_uInt16 nPos=0) const |
RedlineType | GetType (sal_uInt16 nPos=0) const |
bool | IsAnnotation () const |
const OUString & | GetComment (sal_uInt16 nPos=0) const |
void | SetComment (const OUString &rS) |
void | SetExtraData (const SwRedlineExtraData *pData) |
ExtraData gets copied, the pointer is therefore not taken over by the RedLineObject. More... | |
const SwRedlineExtraData * | GetExtraData () const |
sal_uInt16 | GetSeqNo () const |
void | SetSeqNo (sal_uInt16 nNo) |
void | CallDisplayFunc (size_t nMyPos) |
void | Show (sal_uInt16 nLoop, size_t nMyPos, bool bForced=false) |
void | Hide (sal_uInt16 nLoop, size_t nMyPos, bool bForced=false) |
void | ShowOriginal (sal_uInt16 nLoop, size_t nMyPos, bool bForced=false) |
void | CalcStartEnd (SwNodeOffset nNdIdx, sal_Int32 &rStart, sal_Int32 &rEnd) const |
Calculates the intersection with text node number nNdIdx. More... | |
void | InvalidateRange (Invalidation) |
Initiate the layout. More... | |
bool | IsOwnRedline (const SwRangeRedline &rRedl) const |
bool | CanCombine (const SwRangeRedline &rRedl) const |
void | PushData (const SwRangeRedline &rRedl, bool bOwnAsNext=true) |
bool | PopData () |
OUString | GetDescr (bool bSimplified=false) |
Returns textual description of a redline data element of this redline. More... | |
bool | operator< (const SwRangeRedline &) const |
void | dumpAsXml (xmlTextWriterPtr pWriter) const |
void | MaybeNotifyRedlinePositionModification (tools::Long nTop) |
void | SetMoved () |
bool | IsMoved () const |
![]() | |
SwPaM (const SwPosition &rPos, SwPaM *pRing=nullptr) | |
SwPaM (const SwPosition &rMk, const SwPosition &rPt, SwPaM *pRing=nullptr) | |
SwPaM (const SwNodeIndex &rMk, const SwNodeIndex &rPt, SwNodeOffset nMkOffset=SwNodeOffset(0), SwNodeOffset nPtOffset=SwNodeOffset(0), SwPaM *pRing=nullptr) | |
SwPaM (const SwNode &rMk, const SwNode &rPt, SwNodeOffset nMkOffset=SwNodeOffset(0), SwNodeOffset nPtOffset=SwNodeOffset(0), SwPaM *pRing=nullptr) | |
SwPaM (const SwNodeIndex &rMk, sal_Int32 nMkContent, const SwNodeIndex &rPt, sal_Int32 nPtContent, SwPaM *pRing=nullptr) | |
SwPaM (const SwNode &rMk, sal_Int32 nMkContent, const SwNode &rPt, sal_Int32 nPtContent, SwPaM *pRing=nullptr) | |
SwPaM (const SwNode &rMk, SwNodeOffset nMkOffset, sal_Int32 nMkContent, const SwNode &rPt, SwNodeOffset nPtOffset, sal_Int32 nPtContent, SwPaM *pRing=nullptr) | |
SwPaM (const SwNode &rNd, SwNodeOffset nNdOffset, sal_Int32 nContent=0, SwPaM *pRing=nullptr) | |
SwPaM (const SwNode &rNd, sal_Int32 nContent=0, SwPaM *pRing=nullptr) | |
SwPaM (const SwNodeIndex &rNd, sal_Int32 nContent=0, SwPaM *pRing=nullptr) | |
SwPaM (SwNodes &rNds, SwNodeOffset nMkOffset=SwNodeOffset(0), SwPaM *pRing=nullptr) | |
virtual | ~SwPaM () override |
SwPaM (SwPaM const &rPaM, SwPaM *pRing) | |
this takes a second parameter, which indicates the Ring that the new PaM should be part of (may be null) More... | |
SwPaM & | operator= (const SwPaM &) |
@@ semantic: no copy assignment for super class Ring. More... | |
bool | Move (SwMoveFnCollection const &fnMove=fnMoveForward, SwGoInDoc fnGo=GoInContent) |
Movement of cursor. More... | |
bool | IsInFrontOfLabel () const |
void | SetInFrontOfLabel_ (bool bNew) |
virtual void | SetMark () |
Unless this is called, the getter method of Mark will return Point. More... | |
void | DeleteMark () |
void | Exchange () |
bool | HasMark () const |
A PaM marks a selection if Point and Mark are distinct positions. More... | |
const SwPosition * | GetPoint () const |
SwPosition * | GetPoint () |
const SwPosition * | GetMark () const |
SwPosition * | GetMark () |
const SwPosition * | Start () const |
SwPosition * | Start () |
const SwPosition * | End () const |
SwPosition * | End () |
std::pair< const SwPosition *, const SwPosition * > | StartEnd () const |
Because sometimes the cost of the operator<= can add up. More... | |
std::pair< SwPosition *, SwPosition * > | StartEnd () |
SwNode & | GetPointNode () const |
SwNode & | GetMarkNode () const |
SwContentNode * | GetPointContentNode () const |
SwContentNode * | GetMarkContentNode () const |
void | Normalize (bool bPointFirst=true) |
Normalizes PaM, i.e. More... | |
SwDoc & | GetDoc () const |
SwPosition & | GetBound (bool bOne=true) |
const SwPosition & | GetBound (bool bOne=true) const |
sal_uInt16 | GetPageNum (bool bAtPoint=true, const Point *pLayPos=nullptr) |
Get number of page which contains cursor. More... | |
bool | HasReadonlySel (bool bFormView, bool isReplace) const |
Is in something protected (readonly) or selection contains something protected. More... | |
bool | ContainsPosition (const SwPosition &rPos) const |
OUString | GetText () const |
void | InvalidatePaM () |
SwPaM * | GetNext () |
const SwPaM * | GetNext () const |
SwPaM * | GetPrev () |
const SwPaM * | GetPrev () const |
bool | IsMultiSelection () const |
void | dumpAsXml (xmlTextWriterPtr pWriter) const |
![]() | |
virtual | ~Ring () COVERITY_NOEXCEPT_FALSE |
void | unlink () |
algo::unlink is buggy! don't call it directly! More... | |
void | MoveTo (SwPaM *pDestRing) |
Removes this item from its current ring container and adds it to another ring container. More... | |
ring_container | GetRingContainer () |
const_ring_container | GetRingContainer () const |
Static Public Attributes | |
static sal_uInt32 | s_nLastId = 1 |
Private Member Functions | |
void | MoveToSection () |
void | CopyToSection () |
void | DelCopyOfSection (size_t nMyPos) |
void | MoveFromSection (size_t nMyPos) |
Private Attributes | |
SwRedlineData * | m_pRedlineData |
std::optional< SwNodeIndex > | m_oContentSect |
std::optional< tools::Long > | m_oLOKLastNodeTop |
sal_uInt32 | m_nId |
bool | m_bDelLastPara: 1 |
bool | m_bIsVisible: 1 |
Additional Inherited Members | |
![]() | |
Ring () | |
Creates a new item in a ring container all by itself. More... | |
Ring (SwPaM *pRing) | |
Creates a new item and add it to an existing ring container. More... | |
SwPaM * | GetNextInRing () |
const_value_type * | GetNextInRing () const |
SwPaM * | GetPrevInRing () |
const_value_type * | GetPrevInRing () const |
bool | unique () const |
Definition at line 156 of file redline.hxx.
|
strong |
Enumerator | |
---|---|
Add | |
Remove |
Definition at line 246 of file redline.hxx.
SwRangeRedline::SwRangeRedline | ( | RedlineType | eType, |
const SwPaM & | rPam | ||
) |
Definition at line 1111 of file docredln.cxx.
References SwPaM::DeleteMark(), SwPaM::GetBound(), SwPaM::HasMark(), IsAnnotation(), m_bDelLastPara, m_bIsVisible, SetComment(), SwPosition::SetRedline(), and SwResId().
SwRangeRedline::SwRangeRedline | ( | const SwRedlineData & | rData, |
const SwPaM & | rPam | ||
) |
Definition at line 1133 of file docredln.cxx.
References SwPaM::DeleteMark(), SwPaM::GetBound(), SwPaM::HasMark(), m_bDelLastPara, m_bIsVisible, and SwPosition::SetRedline().
SwRangeRedline::SwRangeRedline | ( | const SwRedlineData & | rData, |
const SwPosition & | rPos | ||
) |
Definition at line 1147 of file docredln.cxx.
References SwPaM::GetBound(), m_bDelLastPara, m_bIsVisible, and SwPosition::SetRedline().
|
inline |
Definition at line 177 of file redline.hxx.
References pData.
SwRangeRedline::SwRangeRedline | ( | const SwRangeRedline & | rCpy | ) |
Definition at line 1159 of file docredln.cxx.
References SwPaM::DeleteMark(), SwPaM::GetBound(), SwPaM::HasMark(), m_bDelLastPara, m_bIsVisible, and SwPosition::SetRedline().
|
overridevirtual |
Definition at line 1173 of file docredln.cxx.
References IDocumentContentOperations::DeleteSection(), SwPaM::GetDoc(), SwDoc::getIDocumentContentOperations(), m_oContentSect, and m_pRedlineData.
void SwRangeRedline::CalcStartEnd | ( | SwNodeOffset | nNdIdx, |
sal_Int32 & | rStart, | ||
sal_Int32 & | rEnd | ||
) | const |
Calculates the intersection with text node number nNdIdx.
Calculates the start and end position of the intersection rTmp and text node nNdIdx.
Definition at line 1435 of file docredln.cxx.
References COMPLETE_STRING, and SwPaM::StartEnd().
Referenced by SwCursorShell::GetContentAtPos(), SwRedlineItr::GetNextRedln(), lcl_CollectDeletedRedlines(), lcl_MaskDeletedRedlines(), lcl_MaskRedlines(), SwRedlineItr::Seek(), and SwScriptInfo::selectRedLineDeleted().
void SwRangeRedline::CallDisplayFunc | ( | size_t | nMyPos | ) |
Definition at line 1245 of file docredln.cxx.
References SwPaM::GetDoc(), SwDoc::getIDocumentRedlineAccess(), IDocumentRedlineAccess::GetRedlineFlags(), Hide(), Show(), ShowDelete, ShowInsert, ShowMask, and ShowOriginal().
bool SwRangeRedline::CanCombine | ( | const SwRangeRedline & | rRedl | ) | const |
Definition at line 1885 of file docredln.cxx.
References SwRedlineData::CanCombine(), IsVisible(), and m_pRedlineData.
Referenced by sw::DocumentRedlineManager::AppendRedline(), and sw::DocumentRedlineManager::CompressRedlines().
void SwRangeRedline::ClearContentIdx | ( | ) |
Definition at line 1873 of file docredln.cxx.
References m_oContentSect.
Referenced by SwRedlineSaveData::SwRedlineSaveData().
|
private |
Definition at line 1580 of file docredln.cxx.
References CheckPosInFly, SwContentNode::ChgFormatColl(), SwTextNode::CopyCollFormat(), IDocumentContentOperations::CopyRange(), sw::DocumentContentOperationsManager::CopyWithFlyInFly(), SwNode::EndOfSectionNode(), SwNode::GetContentNode(), SwPaM::GetDoc(), SwDoc::GetDocumentContentOperationsManager(), SwNodes::GetEndOfRedlines(), SwContentNode::GetFormatColl(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentStylePoolAccess(), SwPosition::GetNode(), SwDoc::GetNodes(), SwTextNode::GetTextColl(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwNode::GetTextNode(), SwDoc::IsCopyIsMove(), IDocumentRedlineAccess::IsRedlineMove(), SwNode::IsTextNode(), lcl_storeAnnotationMarks(), m_oContentSect, SwNodes::MakeEmptySection(), SwNodes::MakeTextSection(), RES_POOLCOLL_STANDARD, SwDoc::SetCopyIsMove(), IDocumentRedlineAccess::SetRedlineMove(), SwPaM::StartEnd(), and SwNormalStartNode.
Referenced by Hide(), Show(), and ShowOriginal().
|
private |
Definition at line 1654 of file docredln.cxx.
References IDocumentContentOperations::DeleteAndJoin(), SwPaM::DeleteMark(), IDocumentContentOperations::DeleteRange(), IDocumentContentOperations::DelFullPara(), SwPaM::Exchange(), SwPaM::GetBound(), SwNode::GetContentNode(), SwPaM::GetDoc(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentRedlineAccess(), SwPaM::GetMark(), SwPaM::GetPoint(), IDocumentRedlineAccess::GetRedlineTable(), m_bDelLastPara, m_oContentSect, n, SwPosition::SetContent(), and SwPaM::StartEnd().
Referenced by Hide(), Show(), and ShowOriginal().
void SwRangeRedline::dumpAsXml | ( | xmlTextWriterPtr | pWriter | ) | const |
Definition at line 2036 of file docredln.cxx.
References DateTimeToOString(), SwPaM::dumpAsXml(), GetAuthor(), GetDescr(), GetSeqNo(), GetTimeStamp(), GetType(), and SW_MOD.
std::size_t SwRangeRedline::GetAuthor | ( | sal_uInt16 | nPos = 0 | ) | const |
Definition at line 1925 of file docredln.cxx.
References GetRedlineData(), SwRedlineData::m_nAuthor, and nPos.
Referenced by SwLineLayout::CalcLine(), SwRedlineItr::CheckLine(), dumpAsXml(), SwPostItHelper::getLayoutInfos(), SwRedlineTable::isMoved(), IsOwnRedline(), lcl_setRedlineAttr(), SwTextFormatter::NewFootnoteNumPortion(), SwRedlineItr::Seek(), sw::DocumentRedlineManager::SelNextRedline(), and sw::DocumentRedlineManager::SelPrevRedline().
OUString const & SwRangeRedline::GetAuthorString | ( | sal_uInt16 | nPos = 0 | ) | const |
Definition at line 1930 of file docredln.cxx.
References GetRedlineData(), nPos, and SW_MOD.
Referenced by SwXRedlinePortion::CreateRedlineProperties(), SwTextShell::ExecField(), SwXRedlinePortion::GetPropertyValue(), IMPL_LINK(), SwRedlineAcceptDlg::InitAuthors(), SwRedlineAcceptDlg::InsertChildren(), SwRedlineAcceptDlg::InsertParents(), lcl_GetRedlineHelp(), lcl_GetSuccessorProperties(), SwRedlineTable::LOKRedlineNotification(), and sw::sidebarwindows::SidebarTextControl::RequestHelp().
const OUString & SwRangeRedline::GetComment | ( | sal_uInt16 | nPos = 0 | ) | const |
Definition at line 1950 of file docredln.cxx.
References GetRedlineData(), SwRedlineData::m_sComment, and nPos.
Referenced by SwRedlineAcceptDlg::Activate(), SwXRedlinePortion::CreateRedlineProperties(), SwTextShell::ExecField(), SwXRedlinePortion::GetPropertyValue(), IMPL_LINK(), SwRedlineAcceptDlg::InsertChildren(), SwRedlineAcceptDlg::InsertParents(), lcl_GetRedlineHelp(), and SwRedlineSaveData::RedlineToDoc().
|
inline |
Definition at line 189 of file redline.hxx.
Referenced by sw::DocumentRedlineManager::AppendRedline(), SwDoc::CorrAbs(), SwXRedline::createEnumeration(), SwXRedlinePortion::CreateRedlineProperties(), SwXRedline::createTextCursor(), SwXRedline::getPropertyValue(), SwXRedlinePortion::getPropertyValue(), SwXRedline::hasElements(), HasValidRange(), SwRedlineTable::isMoved(), and SwRedlineSaveData::SwRedlineSaveData().
OUString SwRangeRedline::GetDescr | ( | bool | bSimplified = false | ) |
Returns textual description of a redline data element of this redline.
The textual description of the selected element contains the kind of redline and the possibly shortened text of the redline.
bSimplified = simplified shortened text to show deletions on margin
Definition at line 1981 of file docredln.cxx.
References SwRewriter::AddRule(), SwRewriter::Apply(), sw::Default, DenoteSpecialCharacters(), SwPosition::GetContentIndex(), SwRedlineData::GetDescr(), getLength(), SwPaM::GetPoint(), SwPaM::GetPointNode(), GetRedlineData(), SwPaM::GetText(), SwNode::GetTextNode(), m_oContentSect, nPos, nUndoStringLength, ShortenString(), SwPaM::SwPaM(), SwResId(), and UndoArg1.
Referenced by sw::DocumentRedlineManager::AcceptRedline(), dumpAsXml(), SwRedlineTable::LOKRedlineNotification(), and sw::DocumentRedlineManager::RejectRedline().
|
inline |
Definition at line 225 of file redline.hxx.
References SwRedlineData::GetExtraData().
|
inline |
Definition at line 188 of file redline.hxx.
Referenced by SwView::Execute(), SwRedlineTable::LOKRedlineNotification(), and SwUndoRedline::UndoImpl().
const SwRedlineData & SwRangeRedline::GetRedlineData | ( | sal_uInt16 | nPos = 0 | ) | const |
Definition at line 1963 of file docredln.cxx.
References SwRedlineData::m_pNext, m_pRedlineData, nPos, and SAL_WARN_IF.
Referenced by SwRedlineAcceptDlg::Activate(), SwRedlineAcceptDlg::CalcDiff(), SwXRedlinePortion::CreateRedlineProperties(), SwTextShell::ExecField(), GetAuthor(), GetAuthorString(), GetComment(), GetDescr(), SwWW8AttrIter::GetParagraphLevelRedline(), SwXRedlinePortion::GetPropertyValue(), SwWW8AttrIter::GetRunLevelRedline(), GetTimeStamp(), GetType(), IMPL_LINK(), SwRedlineAcceptDlg::InsertChildren(), SwRedlineAcceptDlg::InsertParents(), lcl_getFormatCollection(), lcl_GetSuccessorProperties(), SwRedlineTable::LOKRedlineNotification(), SwDoc::SetRowNotTracked(), SwUndoCompDoc::SwUndoCompDoc(), DocxAttributeOutput::TableRowRedline(), and SwTableLine::UpdateTextChangesOnly().
|
inline |
Definition at line 231 of file redline.hxx.
References SwRedlineData::GetSeqNo().
Referenced by sw::DocumentRedlineManager::AcceptRedline(), dumpAsXml(), SwCursorShell::GotoRedline(), and sw::DocumentRedlineManager::RejectRedline().
sal_uInt16 SwRangeRedline::GetStackCount | ( | ) | const |
Definition at line 1917 of file docredln.cxx.
References SwRedlineData::m_pNext, and m_pRedlineData.
Referenced by SwRedlineAcceptDlg::InitAuthors(), SwRedlineAcceptDlg::InsertChildren(), lcl_setRedlineAttr(), SwTextFormatter::NewFootnoteNumPortion(), and SwRedlineItr::Seek().
const DateTime & SwRangeRedline::GetTimeStamp | ( | sal_uInt16 | nPos = 0 | ) | const |
Definition at line 1935 of file docredln.cxx.
References GetRedlineData(), SwRedlineData::m_aStamp, and nPos.
Referenced by SwXRedlinePortion::CreateRedlineProperties(), dumpAsXml(), SwXRedlinePortion::GetPropertyValue(), SwRedlineAcceptDlg::InsertChildren(), SwRedlineAcceptDlg::InsertParents(), lcl_GetRedlineHelp(), and sw::sidebarwindows::SidebarTextControl::RequestHelp().
RedlineType SwRangeRedline::GetType | ( | sal_uInt16 | nPos = 0 | ) | const |
Definition at line 1940 of file docredln.cxx.
References GetRedlineData(), SwRedlineData::m_eType, and nPos.
Referenced by SwAccessibleParagraph::_correctValues(), sw::DocumentRedlineManager::AcceptRedlineParagraphFormatting(), SwRedlineAcceptDlg::Activate(), sw::DocumentRedlineManager::AppendRedline(), SwLineLayout::CalcLine(), SwRedlineAcceptDlg::CallAcceptReject(), SwRedlineItr::CheckLine(), SwXRedlinePortion::CreateRedlineProperties(), sw::DocumentRedlineManager::DeleteRedline(), dumpAsXml(), SwDocShell::Execute(), SwUndo::FillSaveDataForFormat(), SwRedlineAcceptDlg::GetActionImage(), SwRedlineAcceptDlg::GetActionText(), SwPostItHelper::getLayoutInfos(), SwRedlineItr::GetNextRedln(), SwXRedlinePortion::GetPropertyValue(), sw::GetRanges(), sw::DocumentRedlineManager::GetRedlinePos(), SwTextNode::GetRedlineText(), SwWW8AttrIter::GetRunLevelRedline(), SwCursorShell::GotoRedline_(), sw::DocumentRedlineManager::HasRedline(), SwDoc::HasRowNotTracked(), Hide(), sw::DocumentRedlineManager::HideAll(), IMPL_LINK(), IMPL_LINK_NOARG(), SwRedlineAcceptDlg::InitAuthors(), SwRedlineAcceptDlg::InsertChildren(), InsertCnt_(), SwRedlineAcceptDlg::InsertParents(), SwNodes::InsertTextSection(), InvalidateRange(), sw::IsFieldDeletedInModel(), sw::IsFootnoteDeleted(), SwRedlineTable::isMoved(), lcl_BuildTitleWithRedline(), lcl_CollectDeletedRedlines(), lcl_GetRedlineAtNodeInsertionOrDeletion(), lcl_GetRedlineHelp(), lcl_MaskDeletedRedlines(), lcl_MaskRedlines(), lcl_setRedlineAttr(), SwTextFrame::MakePos(), SwDoc::MergeDoc(), SwDoc::MoveParagraphImpl(), SwTextFormatter::NewFootnoteNumPortion(), SwTextFrame::PaintEmpty(), sw::ReplaceImpl(), SwRedlineItr::Seek(), SwScriptInfo::selectRedLineDeleted(), sw::DocumentRedlineManager::SelNextRedline(), sw::DocumentRedlineManager::SelPrevRedline(), SwDoc::SetRowNotTracked(), Show(), DocxAttributeOutput::TableRowRedline(), UnHideRedlines(), and SwTableLine::UpdateTextChangesOnly().
bool SwRangeRedline::HasValidRange | ( | ) | const |
Do we have a valid selection?
Do we have a valid Selection?
Definition at line 1230 of file docredln.cxx.
References GetContentIdx(), SwNodes::GetEndOfContent(), SwPaM::GetMark(), SwPosition::GetNode(), SwNode::GetNodes(), SwPaM::GetPoint(), SwNode::IsTableNode(), and SwNode::StartOfSectionNode().
Referenced by sw::DocumentRedlineManager::AppendRedline(), sw::DocumentRedlineManager::DeleteRedline(), and sw::DocumentRedlineManager::SplitRedline().
void SwRangeRedline::Hide | ( | sal_uInt16 | nLoop, |
size_t | nMyPos, | ||
bool | bForced = false |
||
) |
Definition at line 1310 of file docredln.cxx.
References CopyToSection(), DelCopyOfSection(), SwPaM::GetDoc(), SwDoc::getIDocumentRedlineAccess(), SwDoc::GetIDocumentUndoRedo(), IDocumentRedlineAccess::GetRedlineFlags(), GetType(), Ignore, InvalidateRange(), m_bIsVisible, MoveFromSection(), MoveToSection(), Remove, and IDocumentRedlineAccess::SetRedlineFlags_intern().
Referenced by sw::DocumentRedlineManager::AppendRedline(), CallDisplayFunc(), sw::DocumentRedlineManager::CompressRedlines(), sw::DocumentRedlineManager::HideAll(), and sw::DocumentRedlineManager::SetRedlineFlags().
void SwRangeRedline::InvalidateRange | ( | Invalidation | eWhy | ) |
Initiate the layout.
Definition at line 1389 of file docredln.cxx.
References Add, SwPaM::GetDoc(), SwDoc::GetNodes(), SwTextNode::GetText(), SwNode::GetTextNode(), GetType(), SwNode::IsTextNode(), n, RES_FMT_CHG(), SwPaM::StartEnd(), and SwTextNode::TriggerNodeUpdate().
Referenced by sw::DocumentRedlineManager::AppendRedline(), sw::DocumentRedlineManager::DeleteRedline(), Hide(), SwRedlineTable::isMoved(), MoveFromSection(), MoveToSection(), SwUndoCompDoc::RedoImpl(), Show(), ShowOriginal(), sw::DocumentRedlineManager::SplitRedline(), and sw::DocumentRedlineManager::UpdateRedlineAttr().
bool SwRangeRedline::IsAnnotation | ( | ) | const |
Definition at line 1945 of file docredln.cxx.
References CH_TXTATR_INWORD, and SwPaM::GetText().
Referenced by SwRedlineAcceptDlg::GetActionImage(), and SwRangeRedline().
|
inline |
Definition at line 207 of file redline.hxx.
References SwRedlineData::IsAutoFormat().
Referenced by SwRedlineAcceptDlg::InsertChildren().
|
inline |
Definition at line 195 of file redline.hxx.
Referenced by SwXRedlinePortion::CreateRedlineProperties(), and SwXRedlinePortion::GetPropertyValue().
|
inline |
Definition at line 276 of file redline.hxx.
References SwRedlineData::IsMoved().
Referenced by sw::DocumentRedlineManager::AppendRedline(), SwRedlineAcceptDlg::GetActionImage(), lcl_GetRedlineAtNodeInsertionOrDeletion(), lcl_GetRedlineHelp(), SwRedlineItr::Seek(), and SwRedlineSaveData::SwRedlineSaveData().
|
inline |
Definition at line 250 of file redline.hxx.
References GetAuthor().
Referenced by sw::DocumentRedlineManager::AppendRedline(), and SwDoc::MoveParagraphImpl().
|
inline |
Definition at line 194 of file redline.hxx.
Referenced by sw::DocumentRedlineManager::AcceptRedline(), CanCombine(), SwRedlineItr::CheckLine(), SwRedlineTable::FindAtPosition(), SwView::GetState(), sw::DocumentRedlineManager::HideAll(), sw::DocumentRedlineManager::RejectRedline(), sw::DocumentRedlineManager::SelNextRedline(), sw::DocumentRedlineManager::SelPrevRedline(), sw::DocumentRedlineManager::ShowAll(), SwUndoRedline::UndoImpl(), and sw::DocumentRedlineManager::UpdateRedlineAttr().
void SwRangeRedline::MaybeNotifyRedlinePositionModification | ( | tools::Long | nTop | ) |
Definition at line 1201 of file docredln.cxx.
References SwRedlineTable::LOKRedlineNotification(), m_oLOKLastNodeTop, and Modify.
Referenced by SwTextFrame::MakePos().
|
private |
Definition at line 1738 of file docredln.cxx.
References Add, SwPosition::Adjust(), ALLFLYS, IDocumentContentOperations::AppendTextNode(), SwPosition::Assign(), SwContentNode::ChgFormatColl(), IDocumentContentOperations::DeleteSection(), SwPaM::End(), SwPaM::GetBound(), SwPosition::GetContentIndex(), SwNode::GetContentNode(), SwPaM::GetDoc(), SwContentNode::GetFormatColl(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentRedlineAccess(), SwNodeIndex::GetIndex(), SwPaM::GetMark(), SwPosition::GetNode(), GetNode(), SwPaM::GetPoint(), SwPaM::GetPointContentNode(), IDocumentRedlineAccess::GetRedlineTable(), InvalidateRange(), SwContentNode::Len(), m_bDelLastPara, m_oContentSect, IDocumentContentOperations::MoveRange(), n, nPos, SwPosition::SetContent(), SwPaM::SetMark(), SwRedlineTable::size(), and SwPaM::Start().
Referenced by Hide(), Show(), and ShowOriginal().
|
private |
Definition at line 1507 of file docredln.cxx.
References DEFAULT, SwPaM::DeleteMark(), SwNode::EndOfSectionNode(), SwPaM::Exchange(), SwNode::GetContentNode(), SwPaM::GetDoc(), SwNodes::GetEndOfRedlines(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentStylePoolAccess(), SwNode::GetIndex(), SwDoc::GetNodes(), SwPaM::GetPoint(), IDocumentRedlineAccess::GetRedlineTable(), SwTextNode::GetTextColl(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwNode::GetTextNode(), InvalidateRange(), SwNode::IsTextNode(), lcl_storeAnnotationMarks(), m_bDelLastPara, m_oContentSect, SwNodes::MakeEmptySection(), SwNodes::MakeTextSection(), IDocumentContentOperations::MoveAndJoin(), IDocumentContentOperations::MoveRange(), Remove, RES_POOLCOLL_STANDARD, SwPaM::StartEnd(), and SwNormalStartNode.
Referenced by Hide(), Show(), and ShowOriginal().
|
inline |
Definition at line 204 of file redline.hxx.
bool SwRangeRedline::operator< | ( | const SwRangeRedline & | rCmp | ) | const |
Definition at line 1955 of file docredln.cxx.
References SwPaM::End(), and SwPaM::Start().
bool SwRangeRedline::PopData | ( | ) |
Definition at line 1906 of file docredln.cxx.
References SwRedlineData::m_pNext, and m_pRedlineData.
void SwRangeRedline::PushData | ( | const SwRangeRedline & | rRedl, |
bool | bOwnAsNext = true |
||
) |
Definition at line 1891 of file docredln.cxx.
References SwRedlineData::m_pNext, and m_pRedlineData.
Referenced by sw::DocumentRedlineManager::AppendRedline().
|
inline |
Definition at line 206 of file redline.hxx.
References SwRedlineData::SetAutoFormat().
Referenced by sw::DocumentRedlineManager::AppendRedline().
|
inline |
Definition at line 219 of file redline.hxx.
References SwRedlineData::SetComment().
Referenced by sw::DocumentRedlineManager::AppendRedline(), SwXRedline::setPropertyValue(), sw::DocumentRedlineManager::SetRedlineComment(), and SwRangeRedline().
void SwRangeRedline::SetContentIdx | ( | const SwNodeIndex & | rIdx | ) |
Definition at line 1859 of file docredln.cxx.
References m_bIsVisible, and m_oContentSect.
Referenced by XMLRedlineImportHelper::InsertIntoDocument(), and SwRedlineSaveData::RedlineToDoc().
void SwRangeRedline::SetEnd | ( | const SwPosition & | rPos, |
SwPosition * | pEndPtr = nullptr |
||
) |
Definition at line 1221 of file docredln.cxx.
References SwPaM::End(), SwPaM::GetDoc(), and MaybeNotifyRedlineModification().
Referenced by sw::DocumentRedlineManager::AppendRedline(), sw::DocumentRedlineManager::CompressRedlines(), sw::DocumentRedlineManager::DeleteRedline(), and sw::DocumentRedlineManager::SplitRedline().
|
inline |
ExtraData gets copied, the pointer is therefore not taken over by the RedLineObject.
Definition at line 223 of file redline.hxx.
References pData, and SwRedlineData::SetExtraData().
Referenced by sw::DocumentRedlineManager::AppendRedline(), SwUnoCursorHelper::makeRedline(), SwDoc::SetFormatItemByAutoFormat(), SwEditShell::SetTextFormatColl(), and SwDoc::SetTextFormatCollByAutoFormat().
|
inline |
Definition at line 275 of file redline.hxx.
References SwRedlineData::SetMoved().
Referenced by SwRedlineTable::isMoved(), and SwUnoCursorHelper::makeRedline().
|
inline |
Definition at line 232 of file redline.hxx.
References SwRedlineData::SetSeqNo().
Referenced by sw::DocumentRedlineManager::AppendRedline().
void SwRangeRedline::SetStart | ( | const SwPosition & | rPos, |
SwPosition * | pSttPtr = nullptr |
||
) |
Definition at line 1213 of file docredln.cxx.
References SwPaM::GetDoc(), MaybeNotifyRedlineModification(), and SwPaM::Start().
Referenced by sw::DocumentRedlineManager::AppendRedline(), sw::DocumentRedlineManager::DeleteRedline(), and sw::DocumentRedlineManager::SplitRedline().
void SwRangeRedline::Show | ( | sal_uInt16 | nLoop, |
size_t | nMyPos, | ||
bool | bForced = false |
||
) |
Definition at line 1256 of file docredln.cxx.
References Add, CopyToSection(), DelCopyOfSection(), IDocumentLayoutAccess::GetCurrentViewShell(), SwPaM::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::GetIDocumentUndoRedo(), IDocumentRedlineAccess::GetRedlineFlags(), GetType(), SwViewShell::GetViewOptions(), Ignore, InvalidateRange(), SwViewOption::IsShowChangesInMargin(), m_bIsVisible, MoveFromSection(), MoveToSection(), IDocumentRedlineAccess::SetRedlineFlags_intern(), and SW_MOD.
Referenced by sw::DocumentRedlineManager::AcceptRedline(), sw::DocumentRedlineManager::AppendRedline(), CallDisplayFunc(), sw::DocumentRedlineManager::CompressRedlines(), sw::DocumentRedlineManager::HideAll(), sw::DocumentRedlineManager::RejectRedline(), sw::DocumentRedlineManager::SetRedlineFlags(), sw::DocumentRedlineManager::ShowAll(), and SwUndoRedline::UndoImpl().
void SwRangeRedline::ShowOriginal | ( | sal_uInt16 | nLoop, |
size_t | nMyPos, | ||
bool | bForced = false |
||
) |
Definition at line 1346 of file docredln.cxx.
References CopyToSection(), DelCopyOfSection(), SwPaM::GetDoc(), SwDoc::getIDocumentRedlineAccess(), SwDoc::GetIDocumentUndoRedo(), IDocumentRedlineAccess::GetRedlineFlags(), Ignore, InvalidateRange(), m_bIsVisible, SwRedlineData::m_eType, SwRedlineData::m_pNext, m_pRedlineData, MoveFromSection(), MoveToSection(), Remove, and IDocumentRedlineAccess::SetRedlineFlags_intern().
Referenced by CallDisplayFunc(), sw::DocumentRedlineManager::HideAll(), and sw::DocumentRedlineManager::SetRedlineFlags().
|
private |
Definition at line 162 of file redline.hxx.
Referenced by DelCopyOfSection(), MoveFromSection(), MoveToSection(), and SwRangeRedline().
|
private |
Definition at line 163 of file redline.hxx.
Referenced by Hide(), SetContentIdx(), Show(), ShowOriginal(), and SwRangeRedline().
|
private |
Definition at line 161 of file redline.hxx.
|
private |
Definition at line 159 of file redline.hxx.
Referenced by ClearContentIdx(), CopyToSection(), DelCopyOfSection(), GetDescr(), MoveFromSection(), MoveToSection(), SetContentIdx(), and ~SwRangeRedline().
|
private |
Definition at line 160 of file redline.hxx.
Referenced by MaybeNotifyRedlinePositionModification().
|
private |
Definition at line 158 of file redline.hxx.
Referenced by CanCombine(), GetRedlineData(), GetStackCount(), PopData(), PushData(), ShowOriginal(), and ~SwRangeRedline().
|
static |
Definition at line 171 of file redline.hxx.