IFormReplace



Describes minimum required functionality from replace form.

You can find more information in comments below.

class IFormReplace
{
public:
    enum SEARCH_DIRECTION
    {
        sdUp, // Search to the beginning 
        sdDown, // Search to the end 
        sdSelection // Replace only in selection 
    };
public:
    void(*OnReplace)(IFormReplace *sender); // Callback functions used to inform parent which showed the form about user intention to replace next entry 
    void(*OnReplaceAll)(IFormReplace *sender); // Callback functions used to inform parent which showed the form 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 SEARCH_DIRECTION getSearchDirection() = 0; // Return search direction 

    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 SEARCH_DIRECTION value) = 0; // Set search direction 

    // Since 9.0.0 
    virtual void ActivateFirstEnabledInput() = 0;
};
Namespace: nitisa::standard
Include: Standard/Forms/IFormReplace.h