IReplaceDialog



Describes minimum required functionality of text search and replace dialog.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

class IReplaceDialog :public virtual IComponent
{
public:
    void(*OnReplace)(IFormReplace *sender); // Callback functions used to inform parent which called the dialog about user intention to replace next entry 
    void(*OnReplaceAll)(IFormReplace *sender); // Callback functions used to inform parent which called the dialog about user intention to search and replace all 

    virtual String getText() = 0; // Return search text 
    virtual String getReplace() = 0; // Return replace text 
    virtual bool isMatchWholeWords() = 0; // Return whether "match whole words" checkbox is checked 
    virtual bool isMatchCase() = 0; // Return whether "match case" checkbox is checked 
    virtual IFormReplace::SEARCH_DIRECTION getSearchDirection() = 0; // Return search direction 
    // Since 9.0.0 
    virtual bool isUseDialogBox() = 0; // Return whether dialog box or regular form should be used 

    virtual bool setText(const String &value) = 0; // Set search text 
    virtual bool setReplace(const String &value) = 0; // Set replace text 
    virtual bool setMatchWholeWords(const bool value) = 0; // Set whether "match whole words" checkbox is checked 
    virtual bool setMatchCase(const bool value) = 0; // Set whether "match case" checkbox is checked 
    virtual bool setSearchDirection(const IFormReplace::SEARCH_DIRECTION value) = 0; // Set search direction 
    // Since 9.0.0 
    virtual bool setUseDialogBox(const bool value) = 0; // Set whether dialog box or regular form should be used 

    virtual bool Execute() = 0; // Show dialog 
};
Namespace: nitisa::standard
Include: Standard/Components/IReplaceDialog.h