20 #include <com/sun/star/i18n/XBreakIterator.hpp>
21 #include <osl/diagnose.h>
109 if ( pDoc && m_nNode < pDoc->GetNodes( ).
Count( ) )
123 const bool bCurrentHasSelection = (*pCurrentCursor->
GetPoint() != *pCurrentCursor->
GetMark());
145 (( nCmp =
m_nContent ) + 1 == nCurrentContent ||
146 m_nContent -1 == ( nCmp = nCurrentContent )) )
148 if( nCmp == nCurrentContent && pCurrentCursor->
HasMark() )
155 for(
size_t n = 0;
n < rHts.
Count(); ++
n )
158 const sal_Int32 *pEnd = pHt->
End();
159 const sal_Int32 nStart = pHt->
GetStart();
163 if( ( !pEnd || ( nStart == *pEnd ) ) &&
164 ( nStart ==
m_nContent || nStart == nCurrentContent) )
171 else if( pEnd && nStart < *pEnd &&
212 OSL_ENSURE( pIndex,
"Fly without Content" );
225 SwTextNode const & rNd, sal_Int32 nCntPos,
bool )
237 if(!pNext || nPos < pNext->GetOffset())
const SwEndNode * EndOfSectionNode() const
Base class of the Writer layout elements.
Represents the visualization of a paragraph.
sal_uLong GetIndex() const
void Add(SwClient *pDepend)
virtual const SwFlyFrameFormat * GetFormat() const override
SwPaM * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
sal_uLong StartOfSectionIndex() const
const OUString & GetText() const
void Left(const tools::Long nLeft)
const SwPosition * GetMark() const
SwContentFrame * getLayoutFrame(const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const
SwTableLine is one table row in the document model.
~SwCallLink() COVERITY_NOEXCEPT_FALSE
The root element of a Writer document layout.
SwContentNode * GetContentNode(bool bPoint=true) const
bool IsHiddenNow() const
Hidden.
SwNodeType GetNodeType() const
const SwRect & getFrameArea() const
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
A wrapper around SfxPoolItem to store the start position of (usually) a text portion, with an optional end.
sal_uLong GetIndex() const
sal_Int32 GetStart() const
SwRowFrame * FindRowFrame()
SwFlyFrame * FindFlyFrame()
bool m_bCallChgLnk
flag for derived classes
const Link< const SwFlyFrameFormat *, void > & GetFlyMacroLnk() const
SwTextFrame * GetFollow()
PaM is Point and Mark: a selection of the document model.
void OnFrameSize(const SfxPoolItem &)
bool ExtendedSelectedAll()
If ExtendedSelectAll() was called and selection didn't change since then.
SwTextAttr * Get(size_t nPos) const
const SwPaM * GetTableCrs() const
const SwPosition * GetPoint() const
bool HasMark() const
A PaM marks a selection if Point and Mark are distinct positions.
SwFrameFormat * GetFrameFormat()
Marks a node in the document model.
SwpHints & GetSwpHints()
getters for SwpHints
static tools::Long getLayoutFrame(const SwRootFrame *, SwTextNode const &rNd, sal_Int32 nCntPos, bool bCalcFrame)
const SwNodeIndex * GetContentIdx() const
css::uno::Reference< css::i18n::XBreakIterator > const & GetBreakIter() const
sal_uLong EndOfSectionIndex() const
SwTextNode is a paragraph in the document model.
An SwTextAttr container, stores all directly formatted text portions for a text node.
general base class for all free-flowing frames
TextFrameIndex MapModelToView(SwTextNode const *pNode, sal_Int32 nIndex) const
sal_Int32 GetIndex() const
bool StartsWithTable()
If document body starts with a table.
const sal_Int32 * End() const
Link< LinkParamNone *, void > m_aChgLnk
link will be called by every attribute/ format changes at cursor position.
const SwTableLine * GetTabLine() const
static void lcl_notifyRow(const SwContentNode *pNode, SwCursorShell &rShell)
tools::Long m_nLeftFramePos
SwRootFrame * GetLayout() const
SwCallLink(SwCursorShell &rSh)
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
SwRowFrame is one table row in the document layout.
Base class of the Writer document model elements.