summaryrefslogtreecommitdiff
path: root/sw/source/core/inc/frame.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2023-12-11 20:44:28 +0100
committerMiklos Vajna <vmiklos@collabora.com>2023-12-12 08:23:00 +0100
commitc4ba535eccf1e264d7c9feea48156a2b48000dd6 (patch)
treee0986dda23dbea18c19c82815ec2457012629d4f /sw/source/core/inc/frame.hxx
parent78fb5e63a4c4832181b92550df567e9b9fd56ba6 (diff)
sw: document SwFrame::Paste()
It was clear we want to insert a frame, but which frame is to be inserted and if that will be before or after the non-parent frame was far from clear. Document this based on how it's implemented in SwContentFrame::Paste() and SwFrame::InsertBefore(). Change-Id: I3eea471f9feecb35e20910e1869f5db1406d7c43 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160603 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source/core/inc/frame.hxx')
-rw-r--r--sw/source/core/inc/frame.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx
index d57654f6a9e7..1c5aa331f927 100644
--- a/sw/source/core/inc/frame.hxx
+++ b/sw/source/core/inc/frame.hxx
@@ -761,6 +761,10 @@ public:
virtual Size ChgSize( const Size& aNewSize );
virtual void Cut() = 0;
+
+ /// Inserts the current frame under pParent, before pSibling.
+ ///
+ /// If pSibling is nullptr, then insert under pParent, at the end.
virtual void Paste( SwFrame* pParent, SwFrame* pSibling = nullptr ) = 0;
void ValidateLineNum() { mbValidLineNum = true; }