46bool AnnotationMarkCoversCommentAnchor(
const sw::mark::IMark* pAnnotationMark,
57 if (rMarkStart != rAnchorPos)
62 aPosition.AdjustContent(+1);
63 if (aPosition != rAnchorPos)
68 aPosition.AdjustContent(+1);
69 if (aPosition != rMarkEnd)
121 , mbPendingLayout(false)
135 if ( pTextNode ==
nullptr )
139 for(
SwTextFrame* pTextFrame = aIter.
First(); pTextFrame !=
nullptr; pTextFrame = aIter.
Next() )
141 if( !pTextFrame->IsFollow() )
143 pTextFrame = pTextFrame->GetFrameAtPos( rAnchorPos );
152 bool bPositionFromCommentAnchor =
true;
153 if (AnnotationMarkCoversCommentAnchor(pAnnotationMark, rAnchorPos))
156 = GetAnchoredObjectOfAnnotationMark(*pAnnotationMark, *pTextFrame);
160 bPositionFromCommentAnchor =
false;
163 if (bPositionFromCommentAnchor)
165 pTextFrame->GetCharRect(o_rInfo.
mPosition, rAnchorPos,
nullptr,
false);
169 if (pAnnotationMark !=
nullptr)
193 if( RedlineType::Insert == pRedline->
GetType() )
195 else if( RedlineType::Delete == pRedline->
GetType() )
197 bool bDeleted = pAnnotationMark ==
nullptr;
helper class to disable creation of an action by a callback event in particular, change event from a ...
wrapper iterator: wraps iterator of implementation while hiding MarkBase class; only IMark instances ...
Provides access to the marks of a document.
virtual const_iterator_t findAnnotationBookmark(const OUString &rName) const =0
virtual const_iterator_t getBookmarksEnd() const =0
returns a STL-like random access iterator to the end of the sequence of IBookmarks.
static bool IsShowChanges(const RedlineFlags eM)
virtual const SwRangeRedline * GetRedline(const SwPosition &rPos, SwRedlineTable::size_type *pFndPos) const =0
virtual RedlineFlags GetRedlineFlags() const =0
Query the currently set redline mode.
wrapper class for the positioning of Writer fly frames and drawing objects
virtual SwRect GetObjRect() const =0
virtual VclPtr< sw::annotation::SwAnnotationWin > GetSidebarWindow(SwEditWin &rEditWin, SwPostItMgr &aMgr) override
SwFormatField & mrFormatField
virtual SwPosition GetAnchorPosition() const override
virtual bool UseElement(SwRootFrame const &, IDocumentRedlineAccess const &) override
IDocumentMarkAccess * getIDocumentMarkAccess()
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
const SwRect & getFrameArea() const
const SwRect & getFramePrintArea() const
Base class of the Writer layout elements.
const SwSortedObjs * GetDrawObjs() const
SwPageFrame * FindPageFrame()
sal_uInt16 GetPhyPageNum() const
const IDocumentRedlineAccess & getIDocumentRedlineAccess() const
Provides access to the document redline interface.
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
A page of the document layout.
sal_uInt16 GetPhyPageNum() const
sw::sidebarwindows::SidebarPosition SidebarPosition() const
asks the page on which side a margin should be shown, e.g for notes returns true for left side,...
bool IsInvalidFly() const
std::size_t GetAuthor(sal_uInt16 nPos=0) const
RedlineType GetType(sal_uInt16 nPos=0) const
Of course Writer needs its own rectangles.
void Height(tools::Long nNew)
void Pos(const Point &rNew)
The root element of a Writer document layout.
const SwPageFrame * GetPageAtPos(const Point &rPt, const Size *pSize=nullptr, bool bExtend=false) const
Point rPt: The point that should be used to find the page Size pSize: If given, we return the (first)...
void InvalidateBrowseWidth()
bool IsHideRedlines() const
Replacement for sw::DocumentRedlineManager::GetRedlineFlags() (this is layout-level redline hiding).
static bool IsInHiddenRange(const SwTextNode &rNode, sal_Int32 nPos)
class for collecting anchored objects
sal_Int32 GetStart() const
SwTextNode * GetpTextNode() const
Represents the visualization of a paragraph.
SwTextNode is a paragraph in the document model.
static VclPtr< reference_type > Create(Arg &&... arg)
virtual const SwPosition & GetMarkEnd() const =0
virtual const SwPosition & GetMarkStart() const =0
virtual const OUString & GetName() const =0
EmbeddedObjectRef * pObject
tools::Long getLayoutHeight(const SwRootFrame *pRoot)
tools::ULong getPageInfo(SwRect &rPageFrame, const SwRootFrame *, const Point &)
SwLayoutStatus getLayoutInfos(SwLayoutInfo &o_rInfo, const SwPosition &rAnchorPos, const sw::mark::IMark *pAnnotationMark=nullptr)
void setSidebarChanged(SwRootFrame *pRoot, bool bBrowseMode)
bool IsFieldDeletedInModel(IDocumentRedlineAccess const &rIDRA, SwTextField const &rTextField)
o3tl::strong_int< sal_Int32, struct Tag_SwNodeOffset > SwNodeOffset
std::size_t mRedlineAuthor
SwNodeOffset mnStartNodeIdx
tools::ULong mnPageNumber
sw::sidebarwindows::SidebarPosition meSidebarPosition
const SwFrame * mpAnchorFrame
bool mPositionFromCommentAnchor
If true, the overlay arrow points to the comment anchor, otherwise it points to the commented frame.
Marks a position in the document model.
SwNodeOffset GetNodeIndex() const
sal_Int32 GetContentIndex() const