30 const SwPaM &rRegion,
bool bInReadOnly,
35 std::optional<SwPaM> oPam;
40 ? oPam->GetPoint()->GetContentIndex() == oPam->GetPointContentNode()->Len()
41 : !oPam->GetPoint()->GetContentIndex() )
43 if( !(*fnMove.
fnPos)( oPam->GetPoint(),
false ))
48 oPam->GetPoint()->SetContent( bSrchForward ? 0 : pNd->
Len() );
53 while (
nullptr != (pNode =
::GetNode(*oPam, bFirst, fnMove, bInReadOnly, pLayout)))
58 assert(!pLayout || !pNode->
IsTextNode() || pFrame);
72 *rSearchPam.
GetPoint() = *oPam->GetPoint();
79 *rSearchPam.
GetPoint() = *oPam->GetPoint();
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...
SwFormatColl * GetFormatColl() const
SwContentFrame * getLayoutFrame(const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const
virtual sal_Int32 Len() const
SwContentNode * GetContentNode()
PaM is Point and Mark: a selection of the document model.
const SwPosition * GetMark() const
virtual void SetMark()
Unless this is called, the getter method of Mark will return Point.
const SwPosition * GetPoint() const
The root element of a Writer document layout.
Represents the visualization of a paragraph.
SwPosition MapViewToModelPos(TextFrameIndex nIndex) const
const OUString & GetText() const
Returns the text portion we want to edit (for inline see underneath)
SwTextNode const * GetTextNodeForParaProps() const
Dialog to specify the properties of date form field.
void MakeRegion(SwMoveFnCollection const &fnMove, const SwPaM &rOrigRg, std::optional< SwPaM > &rPam)
make a new region
bool FindFormatImpl(SwPaM &rSearchPam, const SwFormat &rFormat, SwMoveFnCollection const &fnMove, const SwPaM &rRegion, bool bInReadOnly, SwRootFrame const *const pLayout)
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.
SwMoveFnCollection const & fnMoveForward
SwPam::Move()/Find() default argument.
void SetContent(sal_Int32 nContentIndex)
Set content index, only valid to call this if the position points to a SwContentNode subclass.