39 : pFormatColl( &rFormatColl )
40 , pReplColl( pRpColl )
43 virtual ~SwFindParaFormatColl() {}
51 const SwPaM & rRegion,
bool bInReadOnly,
52 std::unique_ptr<SvxSearchItem>& )
55 if( bInReadOnly && pReplColl )
58 if (!
sw::FindFormatImpl(rCursor, *pFormatColl, fnMove, rRegion, bInReadOnly, m_pLayout))
69bool SwFindParaFormatColl::IsReplaceMode()
const
71 return nullptr != pReplColl;
85 bool const bStartUndo =
98 SwFindParaFormatColl aSwFindParaFormatColl(rFormatColl, pReplFormatColl, pLayout);
100 sal_Int32 nRet =
FindAll( aSwFindParaFormatColl, nStart, nEnd, eFndRngs, bCancel );
103 if( nRet && pReplFormatColl )
virtual void SetModified()=0
Must be called manually at changes of format.
sal_Int32 FindFormat(const SwTextFormatColl &rFormatColl, SwDocPositions nStart, SwDocPositions nEnd, bool &bCancel, FindRanges, const SwTextFormatColl *pReplFormat, SwRootFrame const *const pLayout=nullptr)
search for Format-Collections
sal_Int32 FindAll(SwFindParas &, SwDocPositions, SwDocPositions, FindRanges, bool &bCancel)
IDocumentState const & getIDocumentState() const
void SetOle2Link(const Link< bool, void > &rLink)
IDocumentUndoRedo & GetIDocumentUndoRedo()
const Link< bool, void > & GetOle2Link() const
bool SetTextFormatColl(const SwPaM &rRg, SwTextFormatColl *pFormat, const bool bReset=true, const bool bResetListAttrs=false, SwRootFrame const *pLayout=nullptr)
Add 4th optional parameter <bResetListAttrs>.
PaM is Point and Mark: a selection of the document model.
void AddRule(SwUndoArg eWhat, const OUString &rWith)
The root element of a Writer document layout.
Represents the style of a paragraph.
bool FindFormatImpl(SwPaM &rSearchPam, const SwFormat &rFormat, SwMoveFnCollection const &fnMove, const SwPaM &rRegion, bool bInReadOnly, SwRootFrame const *const pLayout)
virtual bool IsReplaceMode() const =0
virtual int DoFind(SwPaM &, SwMoveFnCollection const &, const SwPaM &, bool, std::unique_ptr< SvxSearchItem > &xSearchItem)=0
OUString SwResId(TranslateId aId)