diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-03 09:36:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-04 10:40:35 +0200 |
commit | 9b58abd841d5fbca5ed9f4423d3f137b412ff761 (patch) | |
tree | bfb60c975e0877e9f04a0be8296bfb7390068010 /sw/inc/pam.hxx | |
parent | 6816a4d4aff1bcac91d2d5e33160b76a89a47f40 (diff) |
add more SwPosition::Assign
These are just the "obviously correct" places where we
can use SwPosition::Assign, i.e. the places where we
are already correctly setting both nNode and nContent
in SwPosition.
Change-Id: I27078c91e491c9162770ce729364197056d62cb6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137775
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/pam.hxx')
-rw-r--r-- | sw/inc/pam.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx index a0b7124d58dd..735b9882654d 100644 --- a/sw/inc/pam.hxx +++ b/sw/inc/pam.hxx @@ -86,6 +86,9 @@ struct SAL_WARN_UNUSED SW_DLLPUBLIC SwPosition void Assign( const SwNode& rNd, SwNodeOffset nDelta, sal_Int32 nContentOffset = 0 ); void Assign( SwNodeOffset nNodeOffset, sal_Int32 nContentOffset = 0 ); void Assign( const SwNode& rNd ); + void Assign( const SwNodeIndex& rNdIdx ); + /// Adjust node position, and resets content position to zero + void Adjust( SwNodeOffset nDelta ); }; SW_DLLPUBLIC std::ostream &operator <<(std::ostream& s, const SwPosition& position); |