LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SwIndex Class Reference

Marks a character position inside a document model node. More...

#include <index.hxx>

Collaboration diagram for SwIndex:
[legend]

Public Member Functions

 SwIndex (SwIndexReg *const pReg, sal_Int32 const nIdx=0)
 
 SwIndex (const SwIndex &)
 
 SwIndex (const SwIndex &, short nDiff)
 
 ~SwIndex ()
 
SwIndexoperator= (sal_Int32 const)
 
SwIndexoperator= (const SwIndex &)
 
sal_Int32 operator++ ()
 
sal_Int32 operator-- ()
 
sal_Int32 operator-- (int)
 
sal_Int32 operator+= (sal_Int32 const)
 
sal_Int32 operator-= (sal_Int32 const)
 
bool operator< (const SwIndex &) const
 
bool operator<= (const SwIndex &) const
 
bool operator> (const SwIndex &) const
 
bool operator>= (const SwIndex &) const
 
bool operator< (sal_Int32 const nVal) const
 
bool operator<= (sal_Int32 const nVal) const
 
bool operator> (sal_Int32 const nVal) const
 
bool operator>= (sal_Int32 const nVal) const
 
bool operator== (sal_Int32 const nVal) const
 
bool operator!= (sal_Int32 const nVal) const
 
bool operator== (const SwIndex &rSwIndex) const
 
bool operator!= (const SwIndex &rSwIndex) const
 
sal_Int32 GetIndex () const
 
SwIndexAssign (SwIndexReg *, sal_Int32)
 
const SwIndexRegGetIdxReg () const
 
const SwIndexGetNext () const
 
const sw::mark::IMarkGetMark () const
 
void SetMark (const sw::mark::IMark *pMark)
 

Private Member Functions

SwIndexChgValue (const SwIndex &rIdx, sal_Int32 nNewValue)
 
void Init (sal_Int32 const nIdx)
 
void Remove ()
 

Private Attributes

sal_Int32 m_nIndex
 
SwIndexRegm_pIndexReg
 
SwIndexm_pNext
 
SwIndexm_pPrev
 
const sw::mark::IMarkm_pMark
 Pointer to a mark that owns this position to allow fast lookup of marks of an SwIndexReg. More...
 

Friends

class SwIndexReg
 

Detailed Description

Marks a character position inside a document model node.

Definition at line 33 of file index.hxx.

Constructor & Destructor Documentation

◆ SwIndex() [1/3]

SwIndex::SwIndex ( SwIndexReg *const  pReg,
sal_Int32 const  nIdx = 0 
)
explicit

Definition at line 27 of file index.cxx.

References Init(), and m_nIndex.

◆ SwIndex() [2/3]

SwIndex::SwIndex ( const SwIndex rIdx)

Definition at line 46 of file index.cxx.

References ChgValue(), and m_nIndex.

◆ SwIndex() [3/3]

SwIndex::SwIndex ( const SwIndex rIdx,
short  nDiff 
)

Definition at line 37 of file index.cxx.

References ChgValue(), and m_nIndex.

◆ ~SwIndex()

SwIndex::~SwIndex ( )
inline

Definition at line 55 of file index.hxx.

References Remove.

Member Function Documentation

◆ Assign()

SwIndex & SwIndex::Assign ( SwIndexReg pArr,
sal_Int32  nIdx 
)

Definition at line 206 of file index.cxx.

References ChgValue(), Init(), m_nIndex, m_pIndexReg, m_pNext, m_pPrev, and Remove().

Referenced by sw::DocumentContentOperationsManager::AppendTextNode(), SwEditShell::AutoFormatBySplitNode(), SwAutoFormat::BuildHeadLine(), SwHTMLParser::BuildTableCell(), SwHHCWrapper::ChangeText(), SwAutoCorrDoc::ChgAutoCorrWord(), SwHTMLParser::Continue(), SwTextNode::Convert(), SwFEShell::Copy(), sw::DocumentContentOperationsManager::CopyFlyInFlyImpl(), sw::DocumentContentOperationsManager::CopyImplImpl(), SwEditShell::CopySelToDoc(), SwWW8ImplReader::CoreLoad(), SwXTextFrame::createTextCursor(), SwXBodyText::CreateTextCursor(), DelBookmarks(), SwRangeRedline::DelCopyOfSection(), SwAutoFormat::DelEmptyLine(), SwEditShell::DeleteGlobalDocContent(), sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), SwFEShell::DeleteRow(), SwDoc::DeleteRow(), sw::DocumentContentOperationsManager::DelFullPara(), SwWW8ImplReader::End_Field(), SwXMLImport::endDocument(), SwEnhancedPDFExportHelper::EnhancedPDFExport(), SwCursorShell::ExtendedSelectAll(), SwCursor::FillFindPos(), sw::FindTextImpl(), SwCursorShell::FindValidContentNode(), sw::GetAllValidRanges(), SwUndoSetFlyFormat::GetAnchor(), SwAnnotationItem::GetAnchorPosition(), SwCursorShell::GetContentAtPos(), GetFirstTextNode(), sw::mark::MarkManager::getMarkForTextNode(), GetMergeSel(), SwNoTextFrame::GetModelPositionForViewPoint(), GetNode(), SwDoc::GetNumRuleAtPos(), SwXTextRange::GetPositions(), SetGetExpField::GetPosOfContent(), SwXTextDocument::getTrackedChanges(), GiveNodePageDesc(), GoCurrPara(), GoCurrSection(), GoInNode(), GoNextPara(), SwCursor::GoPrevNextCell(), GoPrevPara(), GotoCurrRegionAndSkip(), GotoCurrTable(), SwFEShell::GotoFly(), SwCursor::GotoFootnoteAnchor(), SwCursorShell::GotoFootnoteAnchor(), SwCursor::GotoFootnoteText(), SwCursorShell::GotoFormatContentControl(), SwCursorShell::GotoFormatField(), SwEditShell::GotoGlobalDocContent(), SwCursorShell::GotoINetAttr(), SwCursor::GotoNextFootnoteAnchor(), SwCursorShell::GotoNextOutline(), GotoNextRegion(), GotoNextTable(), SwCursorShell::GotoNextTOXBase(), SwCursorShell::GotoOutline(), SwDoc::GotoOutline(), SwCursor::GotoPrevFootnoteAnchor(), SwCursorShell::GotoPrevOutline(), GotoPrevRegion(), GotoPrevTable(), SwCursorShell::GotoPrevTOXBase(), SwCursorShell::GotoRedline_(), SwCursorShell::GotoRefMark(), SwXTextCursor::gotoStart(), SwCursorShell::GotoTOXMark(), SwDoc::InsCopyOfTable(), SwUnoCursorHelper::InsertFile(), SwEditShell::InsertGlobalDocContent(), SwDoc::InsertGlossary(), SwFEShell::InsertRow(), wwSectionManager::InsertSegments(), SwDoc::InsertSwSection(), SwXMLTableContext::InsertTableSection(), SwHTMLParser::InsertTableSection(), SwHTMLParser::InsertTempTableCaptionSection(), SwUndoFlyBase::InsFly(), SwCursor::IsInProtectTable(), SwUnoCursor::IsSelOvr(), SwTableCursor::IsSelOvrCheck(), SwWW8ImplReader::JoinNode(), SwAutoFormat::JoinPrevPara(), lcl_CpyBox(), lcl_EnsureValidPam(), lcl_GotoNextPrevNum(), lcl_RestoreAnchor(), lcl_SetAttrPam(), SwCursor::LeftRight(), WW8Glossary::Load(), SwTableCursor::MakeBoxSels(), SwContentNode::MakeEndIndex(), SwDOCXReader::MakeEntries(), WW8Glossary::MakeEntries(), SwDoc::MakeFlyAndMove(), SwCursorShell::MakeOutlineSel(), MakePoint(), SwFltStackEntry::MakeRegion(), SwContentNode::MakeStartIndex(), SwUnoCursorHelper::makeTableRowRedline(), SwDoc::MergeTable(), SwRangeRedline::MoveFromSection(), SwUndoSaveContent::MoveFromUndoNds(), SwWW8ImplReader::MoveInsideFly(), sw::DocumentContentOperationsManager::MoveNodeRange(), SwDoc::MoveParagraph(), SwDoc::MoveParagraphImpl(), SwUndoSaveContent::MovePtBackward(), sw::DocumentContentOperationsManager::MoveRange(), SwNodes::MoveRange(), SwIndexReg::MoveTo(), sw::hack::Position::operator SwPosition(), SwTableCursor::ParkCursor(), SwCursorShell::ParkCursor(), WW8TabDesc::ParkPaM(), SwCursorShell::ParkPams(), SwTable::PrepareMerge(), SwUndoTableCpyTable::PrepareRedline(), SwReader::Read(), XMLReader::Read(), WW8Reader::Read(), SwWW8ImplReader::Read_F_IncludeText(), SwWW8ImplReader::Read_HdFtFootnoteText(), SwWW8ImplReader::Read_HdFtTextAsHackedFrame(), SwUndoReplace::Impl::RedoImpl(), SwUndoInserts::RedoImpl(), SwUndoDontExpandFormat::RedoImpl(), SwUndoInsert::RedoImpl(), SwUndoOverwrite::RedoImpl(), SwUndoSplitNode::RedoImpl(), SwUndoInsTable::RedoImpl(), SwUndoTableToText::RedoImpl(), SwUndoTableNumFormat::RedoImpl(), SwUndoRedlineSort::RedoRedlineImpl(), SwRedlineExtraData_FormatColl::Reject(), SwUndo::RemoveIdxFromRange(), SwDoc::RemoveInvisibleContent(), SwUndoInsLayFormat::RepeatImpl(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), RestFlyInRange(), SwUndoFormatAttr::RestoreFlyAnchor(), SwCursor::RestoreSavePos(), SaveFlyInRange(), SwEditShell::SaveGlossaryDoc(), SwUndoSaveSection::SaveSection(), SwFEShell::SelFlyGrabCursor(), sw::DocumentRedlineManager::SelNextRedline(), sw::DocumentRedlineManager::SelPrevRedline(), SwHTMLParser::SetAttr_(), SwAutoFormat::SetColl(), SwCursorShell::SetCursorInHdFt(), SwHistoryChangeFlyAnchor::SetInDoc(), sw::mark::SaveBookmark::SetInDoc(), SwPamRanges::SetPam(), SwUndRng::SetPaM(), WW8TabDesc::SetPamInCell(), sw::annotation::SwAnnotationWin::SetPosAndSize(), SwTOXBaseSection::SetPosAtStartEnd(), SwDoc::SetRowNotTracked(), SwWW8ImplReader::SetSpacing(), SwDoc::SetTextFormatCollByAutoFormat(), SwXTextCursor::sort(), SwFEShell::Sort(), SwDoc::SortText(), SwTextNode::Spell(), SwDoc::SplitDoc(), SwHTMLParser::StripTrailingPara(), SwFormatField::SwClientNotify(), SwPaM::SwPaM(), SwUndoDelete::SwUndoDelete(), SwUndoMove::SwUndoMove(), SwEditShell::TableToText(), SwDoc::TextToTable(), SwUndoReplace::Impl::UndoImpl(), SwUndoAttr::UndoImpl(), SwUndoDontExpandFormat::UndoImpl(), SwUndoDelete::UndoImpl(), SwUndoInsert::UndoImpl(), SwUndoOverwrite::UndoImpl(), SwUndoCompDoc::UndoImpl(), SwUndoSplitNode::UndoImpl(), SwUndoMove::UndoImpl(), SwUndoInsTable::UndoImpl(), SwUndoTextToTable::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwUndoTableCpyTable::UndoImpl(), SwUndoSplitTable::UndoImpl(), SwUndoMergeTable::UndoImpl(), SwUndoRedlineSort::UndoRedlineImpl(), SwTOXBaseSection::Update(), SwTextNode::Update(), sw::UpdateFramesForAddDeleteRedline(), and sw::UpdateFramesForRemoveDeleteRedline().

◆ ChgValue()

SwIndex & SwIndex::ChgValue ( const SwIndex rIdx,
sal_Int32  nNewValue 
)
private

◆ GetIdxReg()

const SwIndexReg * SwIndex::GetIdxReg ( ) const
inline

◆ GetIndex()

sal_Int32 SwIndex::GetIndex ( ) const
inline

Definition at line 91 of file index.hxx.

Referenced by SwAccessibleParagraph::_getRunAttributesImpl(), WW8Export::AppendBookmarks(), SwHTMLParser::AppendTextNode(), SwXTextTable::attach(), SwXTextField::attach(), SwXFootnote::attach(), SwXLineBreak::attach(), SwAutoFormat::AutoCorrect(), SwEditShell::AutoFormatBySplitNode(), SwHTMLParser::BuildTableCaption(), SwHTMLParser::BuildTableCell(), sw::CalcBreaks(), SwRootFrame::CalcFrameRects(), sw::annotation::SwAnnotationWin::CalcParent(), SwRangeRedline::CalcStartEnd(), SwEditShell::Calculate(), SwUndoInsert::CanGrouping(), SwUndoDelete::CanGrouping(), SwUndoOverwrite::CanGrouping(), CanSkipOverRedline(), SwHHCWrapper::ChangeText(), SwHHCWrapper::ChangeText_impl(), SwAutoCorrExceptWord::CheckChar(), SwAutoCorrExceptWord::CheckDelChar(), SwXMeta::CheckForOwnMemberMeta(), CellSaveStruct::CheckNoBreak(), sw::CheckParaRedlineMerge(), SwDoc::ChgAnchor(), ChgTextToNum(), sw::util::RedlineStack::close(), CollectFrameAtNode(), SwEditWin::Command(), SwXTextMarkup::commitTextRangeMarkup(), SwWW8ImplReader::ContainsSingleInlineGraphic(), SwHTMLParser::Continue(), SwTextNode::Convert(), SwXText::Impl::ConvertCell(), SwFEShell::Copy(), sw::CopyBookmarks(), SwTextNode::CopyExpandText(), sw::DocumentContentOperationsManager::CopyFlyInFlyImpl(), sw::DocumentContentOperationsManager::CopyImplImpl(), sw::DocumentLayoutManager::CopyLayoutFormat(), sw::DocumentContentOperationsManager::CopyRange(), SwTextNode::CopyText(), sw::mark::MarkManager::correctMarksRelative(), SwDoc::CorrRel(), sw::annotation::SwAnnotationWin::CountFollowing(), SwDoc::CountWords(), WW8TabDesc::CreateSwTable(), SwCursorShell::CursorInsideContentControl(), SwTextNode::CutImpl(), DelBookmarks(), SwUndoSaveContent::DelContentIndex(), SwFltControlStack::Delete(), SwEditShell::DeleteExtTextInput(), sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), SwUndoFlyBase::DelFly(), sw::DocumentLayoutManager::DelLayoutFormat(), SwXShape::dispose(), SwXFrame::dispose(), SwLayIdle::DoIdleJob_(), SwTextNode::DontExpandFormat(), SwCursor::DoSetBidiLevelLeftRight(), SwCursor::DoSetBidiLevelUpDown(), SwPosition::dumpAsXml(), SwWW8ImplReader::End_Field(), SwHTMLParser::EndAttr(), SwHTMLParser::EndContext(), SwHTMLParser::EndContextAttrs(), SwHTMLParser::EndDefList(), SwHTMLParser::EndDefListItem(), SwXMLImport::endDocument(), SwHTMLParser::EndForm(), SwHTMLParser::EndHeading(), CellSaveStruct::EndNoBreak(), SwHTMLParser::EndNumberBulletList(), SwHTMLParser::EndNumberBulletListItem(), SwHTMLParser::EndPara(), SwHTMLParser::EndTextFormatColl(), SwTextNode::EraseText(), SwTextShell::ExecField(), SwView::ExecLingu(), SwXTextDocument::executeContentControlEvent(), SwCursor::ExpandToSentenceBorders(), SwCursorShell::ExtendSelection(), SwEditShell::FillByEx(), SwGetRefFieldType::FindAnchor(), FindAttrsImpl(), sw::mark::FindFieldSep(), sw::FindTextImpl(), SwHTMLParser::FinishFootEndNote(), SwEditWin::FlushInBuffer(), SwFltPosition::FromSwPosition(), MSWordExportBase::GetAnnotationMarks(), MSWordExportBase::GetBookmarks(), SwCursorShell::GetChar(), sw::mark::DateFieldmark::GetContent(), SwCursorShell::GetContentAtPos(), SwEditShell::GetCorrection(), SwEditShell::GetCurFootnote(), SwEditShell::GetCurLang(), SwUnoCursorHelper::GetCursorAttr(), SwUnoCursorHelper::getCursorPropertyValue(), SwDoc::GetCurTOXMark(), SwTextFrame::GetCurWord(), SwRangeRedline::GetDescr(), SwDoc::GetExtTextInput(), SwSpellDialogChildWindow::GetFocus(), SwWW8FltControlStack::GetFormatAttr(), SwEditShell::GetFullSelectedSectionCount(), SwEditShell::GetGrammarCorrection(), SwPostItHelper::getLayoutInfos(), SwVisibleCursor::getLOKPayload(), SwPageFrame::GetModelPositionForViewPoint(), SwHHCWrapper::GetNextPortion(), SwDoc::GetPaMDescr(), SwCursorShell::GetPostItFieldAtCursor(), SwTextNode::GetRedlineText(), SwWW8AttrIter::GetRunLevelRedline(), SwEditShell::GetScriptType(), SwAccessibleFrameBase::GetSelectedState(), SwCursorShell::GetSelText(), SwCursorShell::GetSmartTagRect(), SwCursorShell::GetSmartTagTerm(), SwTextShell::GetState(), SwXTextPortion::getString(), SwPaM::GetText(), SwCursorShell::GetTextFieldAtCursor(), sw::DocumentFieldsManager::GetTextFieldAtPos(), SwCursorShell::GetTextFieldAtPos(), SwLangHelper::GetTextForLanguageGuessing(), GoCurrPara(), SwCursor::GoEndWordWT(), SwContentNode::GoNext(), SwCursor::GoNextWordWT(), SwContentNode::GoPrevious(), SwCursor::GoPrevWordWT(), SwCursor::GoSentence(), SwCursor::GoStartWordWT(), GotoCurrRegionAndSkip(), SwXTextCursor::gotoEndOfWord(), SwCursor::GotoNextFootnoteAnchor(), SwXTextCursor::gotoNextWord(), SwCursor::GotoPrevFootnoteAnchor(), SwXTextCursor::gotoPreviousWord(), SwXTextCursor::gotoStartOfWord(), SwEditShell::HandleCorrectionError(), SwWW8ImplReader::HandlePageBreakChar(), SwFEShell::HasBoxSelection(), SwWW8AttrIter::HasFlysAt(), SwPaM::HasReadonlySel(), SwTextFrame::HideAndShowObjects(), SwSelPaintRects::HighlightContentControl(), SwEditShell::IgnoreGrammarErrorAt(), SwFEShell::ImpEndCreate(), SwUndoReplace::Impl::Impl(), SwWW8AttrIter::IncludeEndOfParaCRInRedlineProperties(), InitBookmarks(), SwFEShell::Insert(), SwEditShell::Insert2(), SwHTMLParser::InsertAttrs(), BookmarkTable::InsertBookmark(), SwHTMLParser::InsertComment(), SwEditShell::InsertDDETable(), sw::DocumentContentOperationsManager::InsertDrawObj(), SwWrtShell::InsertField2(), SwUnoCursorHelper::InsertFile(), SwHTMLParser::InsertHorzRule(), SwHTMLParser::InsertImage(), SwHTMLParser::InsertLineBreak(), SwXReferenceMark::Impl::InsertRefMark(), SwHTMLParser::InsertSpacer(), sw::DocumentContentOperationsManager::InsertString(), SwDoc::InsertSwSection(), SwEditShell::InsertTable(), SwHTMLParser::InsertTableContents(), SwTextNode::InsertText(), SwUndoFlyBase::InsFly(), SwRangeRedline::InvalidateRange(), SwAccessibleMap::InvalidateShapeInParaSelection(), SwCursor::IsAtLeftRightMargin(), SwEditShell::IsCursorInParagraphMetadataField(), SwTableCursor::IsCursorMoved(), SwTableCursor::IsCursorMovedUpdate(), SwCursorShell::IsEndOfDoc(), SwCursor::IsEndWordWT(), SwEditWin::IsInputSequenceCheckingRequired(), SwDoc::IsInsRegionAvailable(), SwCursor::IsInWordWT(), IDocumentMarkAccess::IsLegalPaMForCrossRefHeadingBookmark(), sw::IsMarkHidden(), SwCursorShell::IsSelFullPara(), IsShown(), SwCursor::IsStartEndSentence(), SwCursorShell::IsStartOfDoc(), SwCursor::IsStartWordWT(), lcl_CollectDeletedRedlines(), lcl_CreatePortions(), lcl_CutRedlines(), lcl_dbg_out(), lcl_DelBox(), lcl_ExportFieldMark(), lcl_ExtractFramePositions(), lcl_InsertDrawLabel(), lcl_InsertLabel(), sw::DocumentContentOperationsManager::lcl_RstTextAttr(), lcl_SaveAnchor(), lcl_SearchAttr(), lcl_SetAttrPam(), lcl_SpecialInsertNode(), lcl_storeAnnotationMarks(), lcl_TstFlyRange(), SwSpellDialogChildWindow::LoseFocus(), SwDoc::MakeFlySection_(), sw::mark::MarkManager::makeMark(), SwTextFrame::MapModelToViewPos(), ModelToViewHelper::ModelToViewHelper(), SwEditWin::MouseButtonDown(), SwEditWin::MouseButtonUp(), sw::util::MoveAttrFieldmarkInserted(), SwFltControlStack::MoveAttrs(), SwCursorShell::MoveFieldType(), SwRangeRedline::MoveFromSection(), SwUndoSaveContent::MoveFromUndoNds(), SwDoc::MoveParagraphImpl(), sw::DocumentContentOperationsManager::MoveRange(), SwNodes::MoveRange(), SwCursor::MoveRegion(), SwCursorShell::MoveTable(), SwIndexReg::MoveTo(), MSWordExportBase::NearestAnnotationMark(), MSWordExportBase::NearestBookmark(), SwHTMLParser::NewDefList(), SwHTMLParser::NewDivision(), SwHTMLParser::NewForm(), SwHTMLParser::NewHeading(), SwHTMLParser::NewMultiCol(), SwHTMLParser::NewNumberBulletList(), SwHTMLParser::NewNumberBulletListItem(), SwHTMLParser::NewPara(), SwHTMLParser::NewTextFormatColl(), SwHTMLParser::NextToken(), sw::mark::MarkManager::NotifyCursorUpdate(), SwWW8AttrIter::OutFlys(), OutHTML_SwTextNode(), sw::DocumentContentOperationsManager::Overwrite(), PaMCorrRel(), SwTransferable::Paste(), SwUndoSetFlyFormat::PutAttr(), SwReader::Read(), SwWW8ImplReader::Read_F_Tox(), SwWW8ImplReader::Read_LineBreakClear(), SwWW8ImplReader::ReadText(), SwUndoInsert::RedoImpl(), SwUndoOverwrite::RedoImpl(), SwUndoRedlineSort::RedoRedlineImpl(), SwHTMLParser::RegisterFlyFrame(), SwPasteContext::remember(), SwEditShell::RemoveParagraphMetadataFieldAtCursor(), sw::ReplaceBackReferences(), sw::mark::DateFieldmark::ReplaceContent(), sw::DocumentContentOperationsManager::ReplaceRange(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), SwTextNode::ReplaceText(), SwDoc::ResetAttrs(), RestFlyInRange(), SwDontExpandItem::RestoreDontExpandItems(), SwUndoFormatAttr::RestoreFlyAnchor(), SwTextNode::RstTextAttr(), sw::mark::SaveBookmark::SaveBookmark(), SwUndoDelete::SaveContent(), SwDontExpandItem::SaveDontExpandItems(), SwUndoFormatAttr::SaveFlyAnchor(), SaveFlyInRange(), SwWW8AttrIter::SearchNext(), SwCursorShell::SelectHiddenRange(), SwScriptInfo::selectHiddenTextProperty(), SwDoc::SelectNextRubyChars(), SwCursorShell::SelectTextAttr(), SwCursor::SelectWordWT(), sw::DocumentRedlineManager::SelNextRedline(), sw::DocumentRedlineManager::SelPrevRedline(), SwHTMLParser::SetAnchorAndAdjustment(), SwHTMLParser::SetAttr_(), SwFltControlStack::SetAttrInDoc(), SwWW8FltRefStack::SetAttrInDoc(), SetGetExpField::SetBodyPos(), SwDoc::SetCurFootnote(), SwUndoReplace::Impl::SetEnd(), SwEditShell::SetExtTextInputData(), SwDoc::SetFlyFrameAnchor(), SwDoc::SetFormatItemByAutoFormat(), SetGetExpField::SetGetExpField(), SwExtTextInput::SetInputData(), SwUndoInserts::SetInsertRange(), sw::mark::CrossRefBookmark::SetMarkPos(), SwExtTextInput::SetOverwriteCursor(), WW8TabDesc::SetPamInCell(), SwXShape::setPropertyValue(), SwUndoRedlineSort::SetSaveRange(), SwCursorShell::SetShadowCursorPos(), SwWW8ImplReader::SetSpacing(), HTMLAttr::SetStart(), SwUndRng::SetValues(), SwXTextCursor::sort(), SwFEShell::Sort(), SwDoc::Spell(), SwTextNode::Spell(), SwHTMLParser::SplitAttrTab(), SwTextNode::SplitContentNode(), sw::DocumentContentOperationsManager::SplitNode(), SwCursorShell::StartAction(), CellSaveStruct::StartNoBreak(), SwTextShell::StateField(), SwHTMLParser::StripTrailingLF(), SwHTMLParser::StripTrailingPara(), sw_GetJoinFlags(), SwCallLink::SwCallLink(), SwContentControlDlg::SwContentControlDlg(), SwDataChanged::SwDataChanged(), SwHistoryTextFieldmark::SwHistoryTextFieldmark(), SwHTMLPosFlyFrame::SwHTMLPosFlyFrame(), SwRedlineItr::SwRedlineItr(), SwRedlineSaveData::SwRedlineSaveData(), SwTOXSortTabBase::SwTOXSortTabBase(), SwUndoField::SwUndoField(), SwUndoInsNum::SwUndoInsNum(), SwUndoInsSection::SwUndoInsSection(), SwUndoOverwrite::SwUndoOverwrite(), SwUndoRedlineDelete::SwUndoRedlineDelete(), SwUndoResetAttr::SwUndoResetAttr(), SwUndoTextToTable::SwUndoTextToTable(), SwDoc::TextToTable(), sw::DocumentContentOperationsManager::TransliterateText(), SwUndoSetFlyFormat::UndoImpl(), SwUndoInsert::UndoImpl(), SwUndoOverwrite::UndoImpl(), SwIndexReg::Update(), SwTextNode::Update(), SwDoc::UpdateRsid(), SwTableLine::UpdateTextChangesOnly(), SwCursor::UpDown(), SwTextFormatter::WhichTextPor(), SwCallLink::~SwCallLink(), and SwExtTextInput::~SwExtTextInput().

◆ GetMark()

const sw::mark::IMark * SwIndex::GetMark ( ) const
inline

Definition at line 100 of file index.hxx.

Referenced by sw::DocumentContentOperationsManager::CopyImplImpl().

◆ GetNext()

const SwIndex * SwIndex::GetNext ( ) const
inline

◆ Init()

void SwIndex::Init ( sal_Int32 const  nIdx)
private

Definition at line 56 of file index.cxx.

References ChgValue(), m_nIndex, SwIndexReg::m_pFirst, m_pIndexReg, and SwIndexReg::m_pLast.

Referenced by Assign(), and SwIndex().

◆ operator!=() [1/2]

bool SwIndex::operator!= ( const SwIndex rSwIndex) const
inline

Definition at line 85 of file index.hxx.

References m_nIndex, and m_pIndexReg.

◆ operator!=() [2/2]

bool SwIndex::operator!= ( sal_Int32 const  nVal) const
inline

Definition at line 77 of file index.hxx.

◆ operator++()

sal_Int32 SwIndex::operator++ ( void  )

Definition at line 308 of file index.cxx.

References ChgValue(), m_nIndex, SAL_MAX_INT32, and SAL_WARN_IF.

◆ operator+=()

sal_Int32 SwIndex::operator+= ( sal_Int32 const  nVal)

Definition at line 334 of file index.cxx.

References ChgValue(), m_nIndex, SAL_MAX_INT32, and SAL_WARN_IF.

◆ operator--() [1/2]

sal_Int32 SwIndex::operator-- ( )

Definition at line 327 of file index.cxx.

References ChgValue(), m_nIndex, and SAL_WARN_IF.

◆ operator--() [2/2]

sal_Int32 SwIndex::operator-- ( int  )

Definition at line 317 of file index.cxx.

References ChgValue(), m_nIndex, and SAL_WARN_IF.

◆ operator-=()

sal_Int32 SwIndex::operator-= ( sal_Int32 const  nVal)

Definition at line 341 of file index.cxx.

References ChgValue(), m_nIndex, and SAL_WARN_IF.

◆ operator<() [1/2]

bool SwIndex::operator< ( const SwIndex rIndex) const

Definition at line 348 of file index.cxx.

References m_nIndex, and m_pIndexReg.

◆ operator<() [2/2]

bool SwIndex::operator< ( sal_Int32 const  nVal) const
inline

Definition at line 72 of file index.hxx.

◆ operator<=() [1/2]

bool SwIndex::operator<= ( const SwIndex rIndex) const

Definition at line 355 of file index.cxx.

References m_nIndex, and m_pIndexReg.

◆ operator<=() [2/2]

bool SwIndex::operator<= ( sal_Int32 const  nVal) const
inline

Definition at line 73 of file index.hxx.

◆ operator=() [1/2]

SwIndex & SwIndex::operator= ( const SwIndex rIdx)

Definition at line 188 of file index.cxx.

References ChgValue(), m_nIndex, m_pIndexReg, m_pNext, m_pPrev, and Remove().

◆ operator=() [2/2]

SwIndex & SwIndex::operator= ( sal_Int32 const  nVal)

Definition at line 376 of file index.cxx.

References ChgValue(), and m_nIndex.

◆ operator==() [1/2]

bool SwIndex::operator== ( const SwIndex rSwIndex) const
inline

Definition at line 79 of file index.hxx.

References m_nIndex, and m_pIndexReg.

◆ operator==() [2/2]

bool SwIndex::operator== ( sal_Int32 const  nVal) const
inline

Definition at line 76 of file index.hxx.

◆ operator>() [1/2]

bool SwIndex::operator> ( const SwIndex rIndex) const

Definition at line 362 of file index.cxx.

References m_nIndex, and m_pIndexReg.

◆ operator>() [2/2]

bool SwIndex::operator> ( sal_Int32 const  nVal) const
inline

Definition at line 74 of file index.hxx.

◆ operator>=() [1/2]

bool SwIndex::operator>= ( const SwIndex rIndex) const

Definition at line 369 of file index.cxx.

References m_nIndex, and m_pIndexReg.

◆ operator>=() [2/2]

bool SwIndex::operator>= ( sal_Int32 const  nVal) const
inline

Definition at line 75 of file index.hxx.

◆ Remove()

void SwIndex::Remove ( )
private

Definition at line 161 of file index.cxx.

References SwIndexReg::m_pFirst, m_pIndexReg, SwIndexReg::m_pLast, m_pNext, and m_pPrev.

Referenced by Assign(), ChgValue(), and operator=().

◆ SetMark()

void SwIndex::SetMark ( const sw::mark::IMark pMark)

Definition at line 222 of file index.cxx.

References m_pMark.

Friends And Related Function Documentation

◆ SwIndexReg

friend class SwIndexReg
friend

Definition at line 36 of file index.hxx.

Member Data Documentation

◆ m_nIndex

sal_Int32 SwIndex::m_nIndex
private

◆ m_pIndexReg

SwIndexReg* SwIndex::m_pIndexReg
private

◆ m_pMark

const sw::mark::IMark* SwIndex::m_pMark
private

Pointer to a mark that owns this position to allow fast lookup of marks of an SwIndexReg.

Definition at line 45 of file index.hxx.

Referenced by SetMark(), and SwIndexReg::Update().

◆ m_pNext

SwIndex* SwIndex::m_pNext
private

Definition at line 41 of file index.hxx.

Referenced by Assign(), ChgValue(), SwIndexReg::MoveTo(), operator=(), Remove(), and SwIndexReg::Update().

◆ m_pPrev

SwIndex* SwIndex::m_pPrev
private

Definition at line 42 of file index.hxx.

Referenced by Assign(), ChgValue(), operator=(), Remove(), and SwIndexReg::Update().


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