xtd 0.2.0
Loading...
Searching...
No Matches
replace_dialog.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "component.hpp"
11#include "iwin32_window.hpp"
12#include <xtd/drawing/point>
13#include <xtd/event>
14#include <xtd/string>
15
17namespace xtd {
19 namespace forms {
38 class forms_export_ replace_dialog final : public component {
39 struct data;
40
41 public:
43
48
52
54
58 const xtd::string& find_string() const noexcept;
62 replace_dialog& find_string(const xtd::string& value);
63
66 const xtd::string& replace_string() const noexcept;
70 replace_dialog& replace_string(const xtd::string& value);
71
74 xtd::drawing::point location() const noexcept;
78 replace_dialog& location(const xtd::drawing::point& value);
79
82 bool match_case() const noexcept;
86 replace_dialog& match_case(bool value);
87
90 bool show_match_case() const noexcept;
94 replace_dialog& show_match_case(bool value);
95
98 bool show_whole_word() const noexcept;
102 replace_dialog& show_whole_word(bool value);
103
106 const xtd::string& title() const noexcept;
110 replace_dialog& title(const xtd::string& value);
111
114 bool whole_word() const noexcept;
118 replace_dialog& whole_word(bool value);
120
122
127
131
135
141
143
147 void close();
148
160 void reset() noexcept;
161
164 void show(const iwin32_window& owner);
166
167 private:
168 void create_handle();
169 void destroy_handle();
170 void recreate_handle();
171 void on_dialog_closed();
172 void on_dialog_find(const xtd::drawing::point& location, const string& find_string, const string& replace_string, bool whole_word, bool match_case);
173 void on_dialog_replace(const xtd::drawing::point& location, const string& find_string, const string& replace_string, bool replace_all, bool whole_word, bool match_case);
174
175 xtd::sptr<data> data_;
176 };
177 }
178}
Contains xtd::forms::layout::arranged_element_collection collection.
Represents text as a sequence of character units.
Definition basic_string.hpp:79
Represents an event.
Definition event.hpp:21
Provides the base implementation and enables object sharing between applications.
Definition component.hpp:25
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.hpp:23
Represents a dialog box that displays find dialog.
Definition replace_dialog.hpp:38
const xtd::string & find_string() const noexcept
Gets the string to find.
replace_dialog()
Initializes a new instance of the replace_dialog class.
Contains xtd::forms::component class.
Contains xtd::forms::dialog_appearance enum class.
Contains xtd::forms::dialog_closed_event_handler dialog.
Contains xtd::forms::find_event_handler event handler.
delegate< void(object &sender, const dialog_closed_event_args &e)> dialog_closed_event_handler
Provides handler for a dialog closed event.
Definition dialog_closed_event_handler.hpp:24
delegate< void(object &sender, const replace_event_args &e)> replace_event_handler
Represents the method that will handle the xtd::forms::replace_dialog::replace event and the xtd::for...
Definition replace_event_handler.hpp:24
delegate< void(object &sender, const find_event_args &e)> find_event_handler
Represents the method that will handle the xtd::forms::find_dialog::find_next event of the xtd::forms...
Definition find_event_handler.hpp:24
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
Contains xtd::forms::iwin32_window interface.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::forms::replace_event_handler event handler.