20#include <com/sun/star/i18n/XBreakIterator.hpp>
21#include <osl/diagnose.h>
141 const bool bCurrentHasSelection = (*pCurrentCursor->
GetPoint() != *pCurrentCursor->
GetMark());
163 (( nCmp =
m_nContent ) + 1 == nCurrentContent ||
164 m_nContent -1 == ( nCmp = nCurrentContent )) )
166 if( nCmp == nCurrentContent && pCurrentCursor->
HasMark() )
173 for(
size_t n = 0;
n < rHts.
Count(); ++
n )
176 const sal_Int32 *pEnd = pHt->
End();
177 const sal_Int32 nStart = pHt->
GetStart();
181 if( ( !pEnd || ( nStart == *pEnd ) ) &&
182 ( nStart ==
m_nContent || nStart == nCurrentContent) )
189 else if( pEnd && nStart < *pEnd &&
230 OSL_ENSURE( pIndex,
"Fly without Content" );
248 SwTextNode const & rNd, sal_Int32 nCntPos,
bool )
254 if( pFrame->HasFollow() )
260 if(!pNext || nPos < pNext->GetOffset())
css::uno::Reference< css::i18n::XBreakIterator > const & GetBreakIter() const
static tools::Long getLayoutFrame(const SwRootFrame *, SwTextNode const &rNd, sal_Int32 nCntPos, bool bCalcFrame)
tools::Long m_nLeftFramePos
SwCallLink(SwCursorShell &rSh)
SwContentFrame * getLayoutFrame(const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const
const SwPaM * GetTableCrs() const
StartsWith StartsWith_()
If document body starts with a table or starts/ends with hidden paragraph.
SwCursor * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
bool m_bCallChgLnk
flag for derived classes
const Link< const SwFlyFrameFormat *, void > & GetFlyMacroLnk() const
Link< LinkParamNone *, void > m_aChgLnk
link will be called by every attribute/ format changes at cursor position.
::std::optional<::std::pair< SwNode const *, ::std::vector< SwTableNode * > > > ExtendedSelectedAll() const
If ExtendedSelectAll() was called and selection didn't change since then.
general base class for all free-flowing frames
virtual const SwFlyFrameFormat * GetFormat() const override
const SwNodeIndex * GetContentIdx() const
const SwRect & getFrameArea() const
Base class of the Writer layout elements.
SwFlyFrame * FindFlyFrame()
SwRowFrame * FindRowFrame()
Marks a node in the document model.
Base class of the Writer document model elements.
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
SwNodeOffset GetIndex() const
SwNodeOffset StartOfSectionIndex() const
SwNodeOffset EndOfSectionIndex() const
SwNodeType GetNodeType() const
const SwEndNode * EndOfSectionNode() const
SwNodeOffset Count() const
PaM is Point and Mark: a selection of the document model.
const SwPosition * GetMark() const
SwContentNode * GetPointContentNode() const
const SwPosition * GetPoint() const
bool HasMark() const
A PaM marks a selection if Point and Mark are distinct positions.
void Left(const tools::Long nLeft)
The root element of a Writer document layout.
SwRowFrame is one table row in the document layout.
void OnFrameSize(const SfxPoolItem &)
const SwTableLine * GetTabLine() const
SwTableLine is one table row in the document model.
SwFrameFormat * GetFrameFormat()
A wrapper around SfxPoolItem to store the start position of (usually) a text portion,...
const sal_Int32 * End() const
sal_Int32 GetStart() const
Represents the visualization of a paragraph.
SwTextFrame * GetFollow()
TextFrameIndex MapModelToView(SwTextNode const *pNode, sal_Int32 nIndex) const
bool IsHiddenNow() const
Hidden.
SwTextNode is a paragraph in the document model.
SwpHints & GetSwpHints()
getters for SwpHints
const OUString & GetText() const
SwRootFrame * GetLayout() const
An SwTextAttr container, stores all directly formatted text portions for a text node.
SwTextAttr * Get(size_t nPos) const
#define suppress_fun_call_w_exception(expr)
Dialog to specify the properties of date form field.
void NotifyTableCollapsedParagraph(const SwContentNode *const pNode, SwCursorShell *const pShell)
An empty paragraph inside a table with a nested table preceding it should be hidden,...
SwNodeOffset GetNodeIndex() const
sal_Int32 GetContentIndex() const