diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2019-10-11 14:48:12 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2019-10-23 13:00:02 +0200 |
commit | 1332cf210803215857b81e8ca9c029aa3d6c49c2 (patch) | |
tree | dbc0086ba0d5751cc8c23938abdd9432296b24b1 /sw/inc/IDocumentMarkAccess.hxx | |
parent | ffb26b81e1c7ff1d64959200247bb2edd5a569da (diff) |
sw: add CH_TXT_ATR_FIELDSEP position parameter when inserting
Different callers want it at the end, at the start, or in the case of
Undo it can even be in an arbitrary position... (except if it is ensured
that the field command is deleted before the fieldmark?).
So let's just pass in SwPosition and be flexible, if it is missing it
will be before the end as before.
Change-Id: Ibec222f633bdaf66abd1540027d0f5c75988c738
Reviewed-on: https://gerrit.libreoffice.org/80673
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'sw/inc/IDocumentMarkAccess.hxx')
-rw-r--r-- | sw/inc/IDocumentMarkAccess.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/inc/IDocumentMarkAccess.hxx b/sw/inc/IDocumentMarkAccess.hxx index a8dacbcbd7e4..1e2db2436a61 100644 --- a/sw/inc/IDocumentMarkAccess.hxx +++ b/sw/inc/IDocumentMarkAccess.hxx @@ -132,11 +132,13 @@ class IDocumentMarkAccess */ virtual ::sw::mark::IMark* makeMark(const SwPaM& rPaM, const OUString& rProposedName, - MarkType eMark, ::sw::mark::InsertMode eMode) = 0; + MarkType eMark, ::sw::mark::InsertMode eMode, + SwPosition const* pSepPos = nullptr) = 0; virtual sw::mark::IFieldmark* makeFieldBookmark( const SwPaM& rPaM, const OUString& rName, - const OUString& rType) = 0; + const OUString& rType, + SwPosition const* pSepPos = nullptr) = 0; virtual sw::mark::IFieldmark* makeNoTextFieldBookmark( const SwPaM& rPaM, const OUString& rName, const OUString& rType) = 0; |