mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:07:46 +00:00
LibGUI: Add TextEditor::write_to_file(Core::Stream::File&)
This overload use the `Core::Stream` API instead of the now deprecated one `Core::File`.
This commit is contained in:
parent
72b144e9e9
commit
cf1eea27d3
2 changed files with 28 additions and 0 deletions
|
@ -131,6 +131,7 @@ public:
|
|||
void replace_all_text_without_resetting_undo_stack(StringView text);
|
||||
bool write_to_file(DeprecatedString const& path);
|
||||
bool write_to_file(Core::File&);
|
||||
ErrorOr<void> write_to_file(Core::Stream::File&);
|
||||
bool has_selection() const { return m_selection.is_valid(); }
|
||||
DeprecatedString selected_text() const;
|
||||
size_t number_of_words() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue