summaryrefslogtreecommitdiff
path: root/sw/source/core/access/accmap.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-01 10:23:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-02 15:10:43 +0200
commit961d42e1ca1da7f3199d46445b3766d9c6a6c938 (patch)
tree1797e56bac0bb438f4d3d27a7fb09d82fdafe827 /sw/source/core/access/accmap.cxx
parent21ed46f683dd9d838371cdba02593f3e64a5124c (diff)
introduce SwPosition::GetNodeIndex
as part of the process of hiding the internals of SwPosition largely done by doing: git grep -lF 'nNode.GetIndex' | xargs perl -pi -e 's/\bnNode\.GetIndex/GetNodeIndex/g' Change-Id: I3616cea4c47595afe74f1aa8e3be553279f25d44 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137694 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/access/accmap.cxx')
-rw-r--r--sw/source/core/access/accmap.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 16c50deb2cb8..b522d00ad282 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -1222,9 +1222,9 @@ void SwAccessibleMap::InvalidateShapeInParaSelection()
bMarked = true;
// check whether nHere is 'inside' pCursor
SwPosition* pStart = rTmpCursor.Start();
- SwNodeOffset nStartIndex = pStart->nNode.GetIndex();
+ SwNodeOffset nStartIndex = pStart->GetNodeIndex();
SwPosition* pEnd = rTmpCursor.End();
- SwNodeOffset nEndIndex = pEnd->nNode.GetIndex();
+ SwNodeOffset nEndIndex = pEnd->GetNodeIndex();
if ((nStartIndex <= nLastNode) && (nFirstNode <= nEndIndex))
{
if( rAnchor.GetAnchorId() == RndStdIds::FLY_AS_CHAR )
@@ -3280,7 +3280,7 @@ std::unique_ptr<SwAccessibleSelectedParas_Impl> SwAccessibleMap::BuildSelectedPa
auto [pStartPos, pEndPos] = pCursor->StartEnd(); // SwPosition*
// loop on all text nodes inside the selection
SwNodeIndex aIdx( pStartPos->nNode );
- for ( ; aIdx.GetIndex() <= pEndPos->nNode.GetIndex(); ++aIdx )
+ for ( ; aIdx.GetIndex() <= pEndPos->GetNodeIndex(); ++aIdx )
{
SwTextNode* pTextNode( aIdx.GetNode().GetTextNode() );
if ( pTextNode )
@@ -3296,11 +3296,11 @@ std::unique_ptr<SwAccessibleSelectedParas_Impl> SwAccessibleMap::BuildSelectedPa
{
xWeakAcc = (*aMapIter).second;
SwAccessibleParaSelection aDataEntry(
- sw::FrameContainsNode(*pTextFrame, pStartPos->nNode.GetIndex())
+ sw::FrameContainsNode(*pTextFrame, pStartPos->GetNodeIndex())
? pTextFrame->MapModelToViewPos(*pStartPos)
: TextFrameIndex(0),
- sw::FrameContainsNode(*pTextFrame, pEndPos->nNode.GetIndex())
+ sw::FrameContainsNode(*pTextFrame, pEndPos->GetNodeIndex())
? pTextFrame->MapModelToViewPos(*pEndPos)
: TextFrameIndex(COMPLETE_STRING));
if ( !pRetSelectedParas )