Go to the documentation of this file.
15 #ifndef FS_SEARCHREPLACE_H_
16 #define FS_SEARCHREPLACE_H_
35 namespace pageeditor {
bool IsEmpty() const
Check whether current object is empty or not.
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
Definition: fs_searchreplace.h:39
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:214
TextSearchReplace(const foxit::pdf::PDFDoc &doc)
Constructor.
void SetReplaceCallback(ReplaceCallback *replace_callback)
Set replacing callback function.
CFX_Object Object
Object type.
Definition: fs_basictypes.h:221
void SetPattern(const WString &keywords, int page_index, const FindOption &find_option)
Set keywords and page index to do searching and replacing.
Header file for common definitions and classes.
FindOption(const FindOption &find_option)
Constructor, with another find option object.
Definition: fs_searchreplace.h:62
bool operator==(const TextSearchReplace &other) const
Equal operator.
bool ReplaceNext(const WString &replace_text)
Replace next text with replacing text.
~TextSearchReplace()
Destructor.
bool ReplacePrev(const WString &replace_text)
Replace previous text with replacing text.
void Set(bool is_whole_word, bool is_case_sensitive)
Set value.
Definition: fs_searchreplace.h:109
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
Header file for PDF page related definitions and classes.
FindOption()
Constructor.
Definition: fs_searchreplace.h:53
Foxit namespace.
Definition: fs_taggedpdf.h:27
Definition: fs_searchreplace.h:124
Header file for PDF document related definitions and classes.
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_pdfdoc.h:610
bool operator!=(const TextSearchReplace &other) const
Not equal operator.
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.
Definition: fs_searchreplace.h:156
bool operator!=(const FindOption &other) const
Not equal operator.
Definition: fs_searchreplace.h:97
TextSearchReplace & operator=(const TextSearchReplace &other)
Assign operator.
virtual void Release()=0
A callback function used to release current callback object itself.
WIDE STRING CLASS.
Definition: fx_string.h:1452
Definition: fs_basictypes.h:427
FindOption(bool is_whole_word, bool is_case_sensitive)
Constructor, with parameters.
Definition: fs_searchreplace.h:47
@2024 Foxit Software Incorporated. All rights reserved.