diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-07-01 16:08:10 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-07-01 17:40:43 +0200 |
commit | 5cb34f1c38be72047be1c4ed8357c5e87134c6a2 (patch) | |
tree | bc81fda31925aea25d42304fc78feb0185941668 /sw/source/uibase/inc/fldmgr.hxx | |
parent | 49cfcf777d03abf59557cad021b4e5c4445de3c0 (diff) |
sw comments on frames: fix UI to be able to annotate with at-char anchors
We used to just comment the doc model position at the end of the
paragraph of the image anchor. Change this, so that in case an at-char
anchored image is commented, first we insert the comment (which creates
a placeholder character), and then we set the annotation range to cover
exactly that placeholder character.
This results in a layout that shows a commented image.
Change-Id: Ie21d62ddb9f55f3e06ee39d9eccfaa0446ce7845
Reviewed-on: https://gerrit.libreoffice.org/74957
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/source/uibase/inc/fldmgr.hxx')
-rw-r--r-- | sw/source/uibase/inc/fldmgr.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/uibase/inc/fldmgr.hxx b/sw/source/uibase/inc/fldmgr.hxx index 4b8a2707ef01..e954e52b9d56 100644 --- a/sw/source/uibase/inc/fldmgr.hxx +++ b/sw/source/uibase/inc/fldmgr.hxx @@ -80,6 +80,8 @@ struct SwInsertField_Data css::uno::Any m_aDBConnection; css::uno::Any m_aDBColumn; weld::Widget* m_pParent; // parent widget used for SwWrtShell::StartInputFieldDlg() + /// Marks the PostIt field's annotation start/end if it differs from the cursor selection. + std::unique_ptr<SwPaM> m_pAnnotationRange; SwInsertField_Data(sal_uInt16 nType, sal_uInt16 nSub, const OUString& rPar1, const OUString& rPar2, sal_uInt32 nFormatId, SwWrtShell* pShell = nullptr, sal_Unicode cSep = ' ', bool bIsAutoLanguage = true) : |