xtd 1.0.0
Loading...
Searching...
No Matches
save_file_box.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.hpp"
6#include "dialog_result.hpp"
7#include "iwin32_window.hpp"
9#include <xtd/static>
10#include <xtd/string>
11
13namespace xtd {
15 namespace forms {
35 public:
37
44 [[nodiscard]] static auto show(xtd::string& file_name, const xtd::forms::iwin32_window& owner) -> xtd::forms::dialog_result;
45
52 [[nodiscard]] static auto show(xtd::string& file_name, const xtd::forms::iwin32_window& owner, const xtd::string& title) -> xtd::forms::dialog_result;
53
61 [[nodiscard]] static auto show(xtd::string& file_name, const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::forms::save_file_box_options options) -> xtd::forms::dialog_result;
62
70 [[nodiscard]] static auto show(xtd::string& file_name, const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& initial_directory) -> xtd::forms::dialog_result;
71
80 [[nodiscard]] static auto show(xtd::string& file_name, const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& initial_directory, const xtd::forms::save_file_box_options options) -> xtd::forms::dialog_result;
81
90 [[nodiscard]] static auto show(xtd::string& file_name, const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& initial_directory, const xtd::string& filter) -> xtd::forms::dialog_result;
91
101 [[nodiscard]] static auto show(xtd::string& file_name, const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& initial_directory, const xtd::string& filter, const xtd::forms::save_file_box_options options) -> xtd::forms::dialog_result;
102
107 [[nodiscard]] static auto show(xtd::string& file_name) -> xtd::forms::dialog_result;
108
114 [[nodiscard]] static auto show(xtd::string& file_name, const xtd::string& title) -> xtd::forms::dialog_result;
115
122 [[nodiscard]] static auto show(xtd::string& file_name, const xtd::string& title, const xtd::forms::save_file_box_options options) -> xtd::forms::dialog_result;
123
130 [[nodiscard]] static auto show(xtd::string& file_name, const xtd::string& title, const xtd::string& initial_directory) -> xtd::forms::dialog_result;
131
139 [[nodiscard]] static auto show(xtd::string& file_name, const xtd::string& title, const xtd::string& initial_directory, const xtd::forms::save_file_box_options options) -> xtd::forms::dialog_result;
140
148 [[nodiscard]] static auto show(xtd::string& file_name, const xtd::string& title, const xtd::string& initial_directory, const xtd::string& filter) -> xtd::forms::dialog_result;
149
158 [[nodiscard]] static auto show(xtd::string& file_name, const xtd::string& title, const xtd::string& initial_directory, const xtd::string& filter, const xtd::forms::save_file_box_options options) -> xtd::forms::dialog_result;
160
161 private:
162 [[nodiscard]] static auto show_save_file_box(xtd::string& output, const xtd::string& title, const xtd::string& initial_directory = xtd::string::empty_string, const xtd::string& filter = xtd::string::empty_string, const xtd::forms::save_file_box_options options = xtd::forms::save_file_box_options::none, const xtd::forms::iwin32_window* owner = nullptr) -> xtd::forms::dialog_result;
163 };
164 }
165}
static const basic_string empty_string
Definition basic_string.hpp:111
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.hpp:23
Represents a common dialog box that displays a file save dialog to the user to select a location for ...
Definition save_file_box.hpp:34
static auto show(xtd::string &file_name) -> xtd::forms::dialog_result
Displays a save file dialog box.
static auto show(xtd::string &file_name, const xtd::forms::iwin32_window &owner) -> xtd::forms::dialog_result
Displays a save file dialog box in front of a specified window.
static auto show(xtd::string &file_name, const xtd::string &title, const xtd::string &initial_directory, const xtd::string &filter) -> xtd::forms::dialog_result
Displays a save file dialog box.
static auto show(xtd::string &file_name, const xtd::string &title, const xtd::string &initial_directory, const xtd::string &filter, const xtd::forms::save_file_box_options options) -> xtd::forms::dialog_result
Displays a save file dialog box.
static auto show(xtd::string &file_name, const xtd::string &title, const xtd::forms::save_file_box_options options) -> xtd::forms::dialog_result
Displays a select file dialog box.
static auto show(xtd::string &file_name, const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &initial_directory, const xtd::forms::save_file_box_options options) -> xtd::forms::dialog_result
Displays a save file dialog box in front of a specified window.
static auto show(xtd::string &file_name, const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &initial_directory) -> xtd::forms::dialog_result
Displays a save file dialog box in front of a specified window.
static auto show(xtd::string &file_name, const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &initial_directory, const xtd::string &filter) -> xtd::forms::dialog_result
Displays a save file dialog box in front of a specified window.
static auto show(xtd::string &file_name, const xtd::string &title) -> xtd::forms::dialog_result
Displays a save file dialog box.
static auto show(xtd::string &file_name, const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::forms::save_file_box_options options) -> xtd::forms::dialog_result
Displays a save file dialog box in front of a specified window.
static auto show(xtd::string &file_name, const xtd::string &title, const xtd::string &initial_directory, const xtd::forms::save_file_box_options options) -> xtd::forms::dialog_result
Displays a save file dialog box.
static auto show(xtd::string &file_name, const xtd::forms::iwin32_window &owner, const xtd::string &title) -> xtd::forms::dialog_result
Displays a save file dialog box in front of a specified window.
static auto show(xtd::string &file_name, const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &initial_directory, const xtd::string &filter, const xtd::forms::save_file_box_options options) -> xtd::forms::dialog_result
Displays a save file dialog box in front of a specified window.
static auto show(xtd::string &file_name, const xtd::string &title, const xtd::string &initial_directory) -> xtd::forms::dialog_result
Displays a save file dialog box.
Contains xtd::forms::dialog_result enum class.
Contains forms_export_ keyword.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:38
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
save_file_box_options
Specifies options on a xtd::forms::save_file_box.
Definition save_file_box_options.hpp:22
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition dialog_result.hpp:43
@ none
No options.
Definition save_file_box_options.hpp:24
Contains xtd::forms::iwin32_window interface.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::forms::save_file_box_options control.