15 #ifndef FS_SEARCHREPLACE_H_ 16 #define FS_SEARCHREPLACE_H_ 35 namespace pageeditor {
virtual bool NeedToReplace(const WString &search_text, const WString &replace_text, int current_page_index, const RectFArray &text_rect_array)=0
A callback function to verify whether need to replace text.
FindOption(const FindOption &find_option)
Constructor, with another find option object.
Definition: fs_searchreplace.h:62
void Set(bool is_whole_word, bool is_case_sensitive)
Set value.
Definition: fs_searchreplace.h:109
CFX_Object Object
Object type.
Definition: fs_basictypes.h:221
Definition: fs_searchreplace.h:156
Header file for PDF document related definitions and classes.
bool ReplaceNext(const WString &replace_text)
Replace next text with replacing text.
bool ReplacePrev(const WString &replace_text)
Replace previous text with replacing text.
WIDE STRING CLASS.
Definition: fx_string.h:1461
FindOption(bool is_whole_word, bool is_case_sensitive)
Constructor, with parameters.
Definition: fs_searchreplace.h:47
void SetReplaceCallback(ReplaceCallback *replace_callback)
Set replacing callback function.
bool operator!=(const TextSearchReplace &other) const
Not equal operator.
Definition: fs_pdfdoc.h:648
void SetPattern(const WString &keywords, int page_index, const FindOption &find_option)
Set keywords and page index to do searching and replacing.
bool operator !=(const FindOption &other) const
Not equal operator.
Definition: fs_searchreplace.h:97
virtual void Release()=0
A callback function used to release current callback object itself.
TextSearchReplace(const foxit::pdf::PDFDoc &doc)
Constructor.
Definition: fs_searchreplace.h:124
TextSearchReplace & operator=(const TextSearchReplace &other)
Assign operator.
bool is_whole_word
A boolean value specifies that whether to match whole words only. true means to match whole words onl...
Definition: fs_searchreplace.h:115
bool is_case_sensitive
A boolean value specifies that whether to match case.true means to match case, otherwise no.
Definition: fs_searchreplace.h:118
Definition: fs_searchreplace.h:39
~TextSearchReplace()
Destructor.
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:214
Header file for common definitions and classes.
FindOption()
Constructor.
Definition: fs_searchreplace.h:53
bool IsEmpty() const
Check whether current object is empty or not.
Definition: fs_basictypes.h:443
Header file for PDF page related definitions and classes.
Foxit namespace.
Definition: fs_pdf3d.h:27
bool operator==(const TextSearchReplace &other) const
Equal operator.
FindOption & operator=(const FindOption &find_option)
Assign operator.
Definition: fs_searchreplace.h:74
bool operator==(const FindOption &other) const
Equal operator.
Definition: fs_searchreplace.h:87