diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-06-24 10:48:53 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-06-24 13:37:30 +0200 |
commit | e619d685a4ac4e8a20f047be3fe00f5b492553b8 (patch) | |
tree | fa35cad30568f75f5eb6a15855ee63ce07e84136 /sw/source | |
parent | ee7b6c773eb22268fefee4bfcc10110b0bbbd8cf (diff) |
sw: make postithelper.hxx self-contained
The problem was that the inline SwSidebarItem ctor/dtor needed a
complete type for sw::annotation::SwAnnotationWin, but AnnotationWin.hxx
already includes this header, so we can't include it.
Move the ctor/dtor to postithelper.cxx where we include
AnnotationWin.hxx already.
Change-Id: I619bd5d21493a80436a333c128eadfff2a6834b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97011
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/fields/postithelper.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sw/source/core/fields/postithelper.cxx b/sw/source/core/fields/postithelper.cxx index 614d73cf2c9e..38917d5474fb 100644 --- a/sw/source/core/fields/postithelper.cxx +++ b/sw/source/core/fields/postithelper.cxx @@ -113,6 +113,18 @@ SwAnchoredObject* GetAnchoredObjectOfAnnotationMark(const sw::mark::IMark& rAnno } } +SwSidebarItem::SwSidebarItem(const bool aFocus) + : pPostIt(nullptr) + , bShow(true) + , bFocus(aFocus) + , bPendingLayout(false) + , mLayoutStatus(SwPostItHelper::INVISIBLE) + , maLayoutInfo() +{ +} + +SwSidebarItem::~SwSidebarItem() {} + SwPostItHelper::SwLayoutStatus SwPostItHelper::getLayoutInfos( SwLayoutInfo& o_rInfo, const SwPosition& rAnchorPos, |