summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-01 10:41:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-02 21:37:03 +0200
commita17374e429609748c381d508efdd9b4d5325f1b8 (patch)
treef6d845a3fb74aa84879e01e85f5a2c6d6f6db89c /sw
parent0d479babebbed721b0a3cc0c4ba88ea2cc377e21 (diff)
introduce SwPosition::SetRedline
as part of the process of hiding the internals of SwPosition largely done by doing: git grep -lF 'nContent.SetRedline' | xargs perl -pi -e 's/\bnContent\.SetRedline/SetRedline/g' Change-Id: If4d774959b0cc0fb87040f8f91c094dcd830dcd4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137698 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/pam.hxx2
-rw-r--r--sw/inc/redline.hxx4
-rw-r--r--sw/source/core/doc/docredln.cxx16
3 files changed, 11 insertions, 11 deletions
diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx
index 365338e476af..c8ff813893d4 100644
--- a/sw/inc/pam.hxx
+++ b/sw/inc/pam.hxx
@@ -81,8 +81,8 @@ struct SAL_WARN_UNUSED SW_DLLPUBLIC SwPosition
sal_Int32 GetContentIndex() const { return nContent.GetIndex(); }
-
void SetMark(const sw::mark::IMark* pMark) { nContent.SetMark(pMark); }
+ void SetRedline(SwRangeRedline* pRangeRedline) { nContent.SetRedline(pRangeRedline); }
};
SW_DLLPUBLIC std::ostream &operator <<(std::ostream& s, const SwPosition& position);
diff --git a/sw/inc/redline.hxx b/sw/inc/redline.hxx
index 181001fed6b1..a76c9b2eb871 100644
--- a/sw/inc/redline.hxx
+++ b/sw/inc/redline.hxx
@@ -179,8 +179,8 @@ public:
SwPaM( rPos ), m_pRedlineData( pData ), m_pContentSect( nullptr ),
m_nId( s_nLastId++ ), m_bDelLastPara( bDelLP ), m_bIsVisible( true )
{
- GetBound().nContent.SetRedline(this);
- GetBound(false).nContent.SetRedline(this);
+ GetBound().SetRedline(this);
+ GetBound(false).SetRedline(this);
}
SwRangeRedline( const SwRangeRedline& );
virtual ~SwRangeRedline() override;
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index 7457b11ee2c1..a80af53a66a7 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.cxx
@@ -1104,8 +1104,8 @@ SwRangeRedline::SwRangeRedline(RedlineType eTyp, const SwPaM& rPam )
m_pContentSect( nullptr ),
m_nId( s_nLastId++ )
{
- GetBound().nContent.SetRedline(this);
- GetBound(false).nContent.SetRedline(this);
+ GetBound().SetRedline(this);
+ GetBound(false).SetRedline(this);
m_bDelLastPara = false;
m_bIsVisible = true;
@@ -1127,8 +1127,8 @@ SwRangeRedline::SwRangeRedline( const SwRedlineData& rData, const SwPaM& rPam )
m_pContentSect( nullptr ),
m_nId( s_nLastId++ )
{
- GetBound().nContent.SetRedline(this);
- GetBound(false).nContent.SetRedline(this);
+ GetBound().SetRedline(this);
+ GetBound(false).SetRedline(this);
m_bDelLastPara = false;
m_bIsVisible = true;
@@ -1142,8 +1142,8 @@ SwRangeRedline::SwRangeRedline( const SwRedlineData& rData, const SwPosition& rP
m_pContentSect( nullptr ),
m_nId( s_nLastId++ )
{
- GetBound().nContent.SetRedline(this);
- GetBound(false).nContent.SetRedline(this);
+ GetBound().SetRedline(this);
+ GetBound(false).SetRedline(this);
m_bDelLastPara = false;
m_bIsVisible = true;
@@ -1155,8 +1155,8 @@ SwRangeRedline::SwRangeRedline( const SwRangeRedline& rCpy )
m_pContentSect( nullptr ),
m_nId( s_nLastId++ )
{
- GetBound().nContent.SetRedline(this);
- GetBound(false).nContent.SetRedline(this);
+ GetBound().SetRedline(this);
+ GetBound(false).SetRedline(this);
m_bDelLastPara = false;
m_bIsVisible = true;