46 bool AnnotationMarkCoversCommentAnchor(
const sw::mark::IMark* pAnnotationMark,
57 if (rMarkStart != rAnchorPos)
63 if (aPosition != rAnchorPos)
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;
202 rDMA.findAnnotationBookmark(pAnnotationMark->
GetName());
205 if ( pAnnotationBookmark == rDMA.getBookmarksEnd() )
Base class of the Writer layout elements.
Represents the visualization of a paragraph.
virtual SwRect GetObjRect() const =0
const SwSortedObjs * GetDrawObjs() const
virtual const OUString & GetName() const =0
Marks a position in the document model.
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)...
const SwFrame * mpAnchorFrame
wrapper iterator: wraps iterator of implementation while hiding MarkBase class; only IMark instances ...
const SwRect & getFramePrintArea() const
std::size_t mRedlineAuthor
Provides access to the marks of a document.
tools::ULong getPageInfo(SwRect &rPageFrame, const SwRootFrame *, const Point &)
helper class to disable creation of an action by a callback event in particular, change event from a ...
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...
SwTextNode * GetpTextNode() const
tools::Long getLayoutHeight(const SwRootFrame *pRoot)
void Pos(const Point &rNew)
bool mPositionFromCommentAnchor
If true, the overlay arrow points to the comment anchor, otherwise it points to the commented frame...
IDocumentMarkAccess * getIDocumentMarkAccess()
Of course Writer needs its own rectangles.
EmbeddedObjectRef * pObject
The root element of a Writer document layout.
virtual SwPosition GetAnchorPosition() const override
static bool IsShowChanges(const RedlineFlags eM)
SwFormatField & mrFormatField
sal_uInt16 GetPhyPageNum() const
wrapper class for the positioning of Writer fly frames and drawing objects
const SwRect & getFrameArea() const
sal_Int32 GetStart() const
void InvalidateBrowseWidth()
SwNodeOffset GetIndex() const
virtual bool UseElement(SwRootFrame const &, IDocumentRedlineAccess const &) override
bool IsInvalidFly() const
const IDocumentRedlineAccess & getIDocumentRedlineAccess() const
Provides access to the document redline interface.
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
SwIndex & Assign(SwIndexReg *, sal_Int32)
SwPageFrame * FindPageFrame()
A page of the document layout.
tools::ULong mnPageNumber
virtual const SwRangeRedline * GetRedline(const SwPosition &rPos, SwRedlineTable::size_type *pFndPos) const =0
SwTextNode is a paragraph in the document model.
SwNodeOffset mnStartNodeIdx
bool IsFieldDeletedInModel(IDocumentRedlineAccess const &rIDRA, SwTextField const &rTextField)
std::size_t GetAuthor(sal_uInt16 nPos=0) const
sw::sidebarwindows::SidebarPosition meSidebarPosition
sal_uInt16 GetPhyPageNum() const
sal_Int32 GetIndex() const
static VclPtr< reference_type > Create(Arg &&...arg)
RedlineType GetType(sal_uInt16 nPos=0) const
virtual VclPtr< sw::annotation::SwAnnotationWin > GetSidebarWindow(SwEditWin &rEditWin, SwPostItMgr &aMgr) override
o3tl::strong_int< sal_Int32, struct Tag_SwNodeOffset > SwNodeOffset
bool IsHideRedlines() const
Replacement for sw::DocumentRedlineManager::GetRedlineFlags() (this is layout-level redline hiding)...
void setSidebarChanged(SwRootFrame *pRoot, bool bBrowseMode)
virtual const SwPosition & GetMarkEnd() const =0
static bool IsInHiddenRange(const SwTextNode &rNode, sal_Int32 nPos)
virtual RedlineFlags GetRedlineFlags() const =0
Query the currently set redline mode.
virtual const SwPosition & GetMarkStart() const =0
class for collecting anchored objects
SwLayoutStatus getLayoutInfos(SwLayoutInfo &o_rInfo, const SwPosition &rAnchorPos, const sw::mark::IMark *pAnnotationMark=nullptr)
void Height(tools::Long nNew)
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
bool m_bDetectedRangeSegmentation false