LibreOffice Module sw (master) 1
|
Marks a character position inside a document model content node (SwContentNode) More...
#include <contentindex.hxx>
Public Member Functions | |
SwContentIndex (const SwContentNode *pContentNode, sal_Int32 const nIdx=0) | |
SwContentIndex (const SwContentIndex &) | |
SwContentIndex (const SwContentIndex &, short nDiff) | |
~SwContentIndex () | |
SwContentIndex & | operator= (sal_Int32 const) |
SwContentIndex & | operator= (const SwContentIndex &) |
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 SwContentIndex &) const |
bool | operator<= (const SwContentIndex &) const |
bool | operator> (const SwContentIndex &) const |
bool | operator>= (const SwContentIndex &) 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 SwContentIndex &rSwContentIndex) const |
bool | operator!= (const SwContentIndex &rSwContentIndex) const |
sal_Int32 | GetIndex () const |
SwContentIndex & | Assign (const SwContentNode *, sal_Int32) |
const SwContentNode * | GetContentNode () const |
const SwContentIndex * | GetNext () const |
const sw::mark::IMark * | GetMark () const |
void | SetMark (const sw::mark::IMark *pMark) |
SwRangeRedline * | GetRedline () const |
void | SetRedline (SwRangeRedline *pRangeRedline) |
Private Member Functions | |
SwContentIndex & | ChgValue (const SwContentIndex &rIdx, sal_Int32 nNewValue) |
void | Init (sal_Int32 const nIdx) |
void | Remove () |
Private Attributes | |
sal_Int32 | m_nIndex |
SwContentNode * | m_pContentNode |
SwContentIndex * | m_pNext |
SwContentIndex * | m_pPrev |
SwRangeRedline * | m_pRangeRedline = nullptr |
points to the SwRangeRedline (if any) that contains this SwIndex, via SwPosition and SwPaM More... | |
const sw::mark::IMark * | m_pMark |
Pointer to a mark that owns this position to allow fast lookup of marks of an SwContentIndexReg. More... | |
Friends | |
class | SwContentIndexReg |
Marks a character position inside a document model content node (SwContentNode)
Definition at line 36 of file contentindex.hxx.
|
explicit |
SwContentIndex::SwContentIndex | ( | const SwContentIndex & | rIdx | ) |
Definition at line 46 of file index.cxx.
References ChgValue(), and m_nIndex.
SwContentIndex::SwContentIndex | ( | const SwContentIndex & | rIdx, |
short | nDiff | ||
) |
Definition at line 37 of file index.cxx.
References ChgValue(), and m_nIndex.
|
inline |
Definition at line 61 of file contentindex.hxx.
References Remove.
SwContentIndex & SwContentIndex::Assign | ( | const SwContentNode * | pArr, |
sal_Int32 | nIdx | ||
) |
Definition at line 206 of file index.cxx.
References ChgValue(), Init(), m_nIndex, m_pContentNode, m_pNext, m_pPrev, and Remove().
Referenced by SwPosition::Adjust(), SwPosition::Assign(), SwPosition::AssignEndIndex(), SwPosition::AssignStartIndex(), SwHTMLParser::Continue(), sw::DocumentContentOperationsManager::CopyImplImpl(), sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), GoEndOfSection(), GoStartOfSection(), SwDoc::InsCopyOfTable(), lcl_EnsureValidPam(), SwNodes::MoveRange(), SwUndoTableCpyTable::PrepareRedline(), XMLReader::Read(), WW8Reader::Read(), SwPaM::SwPaM(), SwUndoTextToTable::UndoImpl(), and SwTextNode::Update().
|
private |
Definition at line 79 of file index.cxx.
References m_nIndex, m_pContentNode, m_pNext, m_pPrev, and Remove().
Referenced by Assign(), Init(), operator++(), operator+=(), operator--(), operator-=(), operator=(), and SwContentIndex().
|
inline |
Definition at line 103 of file contentindex.hxx.
Referenced by SwTextNode::CopyExpandText(), SwTextNode::CopyText(), SwTextNode::CutImpl(), SwTextNode::EraseText(), SwPosition::GetContentNode(), SwContentNode::GoNext(), SwTextNode::InsertText(), SwTextNode::ReplaceText(), SwFormatAnchor::SetAnchor(), SwExtTextInput::SetInputData(), SwPosition::SwPosition(), and SwTextNode::Update().
|
inline |
Definition at line 97 of file contentindex.hxx.
Referenced by ChgTextToNum(), SwTextNode::CopyExpandText(), SwTextNode::CopyText(), SwTextNode::CutImpl(), SwTextNode::EraseText(), SwPosition::GetContentIndex(), SwEditShell::GetScriptType(), SwContentNode::GoNext(), SwContentNode::GoPrevious(), SwTextNode::InsertHint(), SwTextNode::InsertText(), lcl_DelBox(), sw::DocumentContentOperationsManager::lcl_RstTextAttr(), SwTextNode::ReplaceText(), SwExtTextInput::SetInputData(), and SwTextNode::Update().
|
inline |
Definition at line 106 of file contentindex.hxx.
Referenced by sw::DocumentContentOperationsManager::CopyImplImpl(), and SwTranslateHelper::TranslateDocumentCancellable().
|
inline |
Definition at line 104 of file contentindex.hxx.
Referenced by SwDoc::AppendDoc(), and SwTextNode::Update().
|
inline |
Definition at line 109 of file contentindex.hxx.
Referenced by SwTextNode::Update().
|
private |
Definition at line 56 of file index.cxx.
References ChgValue(), m_nIndex, and m_pContentNode.
Referenced by Assign(), and SwContentIndex().
|
inline |
Definition at line 91 of file contentindex.hxx.
References m_nIndex, and m_pContentNode.
|
inline |
Definition at line 83 of file contentindex.hxx.
sal_Int32 SwContentIndex::operator++ | ( | void | ) |
Definition at line 304 of file index.cxx.
References ChgValue(), m_nIndex, SAL_MAX_INT32, and SAL_WARN_IF.
sal_Int32 SwContentIndex::operator+= | ( | sal_Int32 const | nVal | ) |
Definition at line 330 of file index.cxx.
References ChgValue(), m_nIndex, and SAL_WARN_IF.
sal_Int32 SwContentIndex::operator-- | ( | ) |
Definition at line 323 of file index.cxx.
References ChgValue(), m_nIndex, and SAL_WARN_IF.
sal_Int32 SwContentIndex::operator-- | ( | int | ) |
Definition at line 313 of file index.cxx.
References ChgValue(), m_nIndex, and SAL_WARN_IF.
sal_Int32 SwContentIndex::operator-= | ( | sal_Int32 const | nVal | ) |
Definition at line 337 of file index.cxx.
References ChgValue(), m_nIndex, and SAL_WARN_IF.
bool SwContentIndex::operator< | ( | const SwContentIndex & | rIndex | ) | const |
Definition at line 344 of file index.cxx.
References m_nIndex, and m_pContentNode.
|
inline |
Definition at line 78 of file contentindex.hxx.
bool SwContentIndex::operator<= | ( | const SwContentIndex & | rIndex | ) | const |
Definition at line 351 of file index.cxx.
References m_nIndex, and m_pContentNode.
|
inline |
Definition at line 79 of file contentindex.hxx.
SwContentIndex & SwContentIndex::operator= | ( | const SwContentIndex & | rIdx | ) |
Definition at line 188 of file index.cxx.
References ChgValue(), m_nIndex, m_pContentNode, m_pNext, m_pPrev, and Remove().
SwContentIndex & SwContentIndex::operator= | ( | sal_Int32 const | nVal | ) |
Definition at line 372 of file index.cxx.
References ChgValue(), and m_nIndex.
|
inline |
Definition at line 85 of file contentindex.hxx.
References m_nIndex, and m_pContentNode.
|
inline |
Definition at line 82 of file contentindex.hxx.
bool SwContentIndex::operator> | ( | const SwContentIndex & | rIndex | ) | const |
Definition at line 358 of file index.cxx.
References m_nIndex, and m_pContentNode.
|
inline |
Definition at line 80 of file contentindex.hxx.
bool SwContentIndex::operator>= | ( | const SwContentIndex & | rIndex | ) | const |
Definition at line 365 of file index.cxx.
References m_nIndex, and m_pContentNode.
|
inline |
Definition at line 81 of file contentindex.hxx.
|
private |
Definition at line 161 of file index.cxx.
References m_pContentNode, m_pNext, and m_pPrev.
Referenced by Assign(), ChgValue(), and operator=().
void SwContentIndex::SetMark | ( | const sw::mark::IMark * | pMark | ) |
Definition at line 222 of file index.cxx.
References m_pMark.
Referenced by SwPosition::SetMark(), and SwTranslateHelper::TranslateDocumentCancellable().
|
inline |
Definition at line 110 of file contentindex.hxx.
Referenced by SwPosition::SetRedline().
|
friend |
Definition at line 39 of file contentindex.hxx.
Referenced by SAL_LOPLUGIN_ANNOTATE().
|
private |
Definition at line 41 of file contentindex.hxx.
Referenced by Assign(), ChgValue(), Init(), operator!=(), operator++(), operator+=(), operator--(), operator-=(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), and SwContentIndex().
|
private |
Definition at line 42 of file contentindex.hxx.
Referenced by Assign(), ChgValue(), Init(), operator!=(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), and Remove().
|
private |
Pointer to a mark that owns this position to allow fast lookup of marks of an SwContentIndexReg.
Definition at line 51 of file contentindex.hxx.
Referenced by SetMark().
|
private |
Definition at line 44 of file contentindex.hxx.
Referenced by Assign(), ChgValue(), operator=(), and Remove().
|
private |
Definition at line 45 of file contentindex.hxx.
Referenced by Assign(), ChgValue(), operator=(), and Remove().
|
private |
points to the SwRangeRedline (if any) that contains this SwIndex, via SwPosition and SwPaM
Definition at line 48 of file contentindex.hxx.