30 const SwPaM &rRegion,
bool bInReadOnly,
35 std::unique_ptr<SwPaM> pPam(
MakeRegion( fnMove, rRegion ));
39 ? pPam->GetPoint()->nContent.GetIndex() == pPam->GetContentNode()->Len()
40 : !pPam->GetPoint()->nContent.GetIndex() )
42 if( !(*fnMove.
fnNds)( &pPam->GetPoint()->nNode,
false ))
47 pPam->GetPoint()->nContent.Assign( pNd, bSrchForward ? 0 : pNd->
Len() );
52 while (
nullptr != (pNode = ::
GetNode(*pPam, bFirst, fnMove, bInReadOnly, pLayout)))
57 assert(!pLayout || !pNode->
IsTextNode() || pFrame);
62 if (rPropsNode.GetFormatColl() == &rFormat)
71 *rSearchPam.
GetPoint() = *pPam->GetPoint();
78 *rSearchPam.
GetPoint() = *pPam->GetPoint();
Represents the visualization of a paragraph.
virtual sal_Int32 Len() const
SwContentNode * GetNode(SwPaM &rPam, bool &rbFirst, SwMoveFnCollection const &fnMove, bool const bInReadOnly, SwRootFrame const *const i_pLayout)
This function returns the next node in direction of search.
std::unique_ptr< SwPaM > MakeRegion(SwMoveFnCollection const &fnMove, const SwPaM &rOrigRg)
make a new region
const SwPosition * GetMark() const
SwContentFrame * getLayoutFrame(const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const
Dialog to specify the properties of date form field.
const OUString & GetText() const
Returns the text portion we want to edit (for inline see underneath)
The root element of a Writer document layout.
bool FindFormatImpl(SwPaM &rSearchPam, const SwFormat &rFormat, SwMoveFnCollection const &fnMove, const SwPaM &rRegion, bool bInReadOnly, SwRootFrame const *const pLayout)
PaM is Point and Mark: a selection of the document model.
SwTextNode const * GetTextNodeForParaProps() const
const SwPosition * GetPoint() const
SwContentNode * GetContentNode()
SwMoveFnCollection const & fnMoveForward
SwPam::Move()/Find() default argument.
virtual void SetMark()
Unless this is called, the getter method of Mark will return Point.
o3tl::strong_int< sal_Int32, struct Tag_TextFrameIndex > TextFrameIndex
Denotes a character index in a text frame at a layout level, after extent mapping from a text node at...
SwPosition MapViewToModelPos(TextFrameIndex nIndex) const
void MakeEndIndex(SwIndex *pIdx)
bool m_bDetectedRangeSegmentation false