diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-03-27 18:43:21 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-03-27 20:28:03 +0000 |
| commit | 9f542bb81f342cbc65a00aeadd084ab3945b02a5 (patch) | |
| tree | b1a7a318abcf538524bdf1b4b1ebd5e9cc5725c3 /src/ui/dialog/filedialog.h | |
| parent | remove wrong from clipboard paste (diff) | |
| download | inkscape-9f542bb81f342cbc65a00aeadd084ab3945b02a5.tar.gz inkscape-9f542bb81f342cbc65a00aeadd084ab3945b02a5.zip | |
Remove unused code for NEW_EXPORT_DIALOG
Functionality seems to have been replaced by "Save a Copy" and the
PNG export dialog respectively.
Diffstat (limited to 'src/ui/dialog/filedialog.h')
| -rw-r--r-- | src/ui/dialog/filedialog.h | 143 |
1 files changed, 0 insertions, 143 deletions
diff --git a/src/ui/dialog/filedialog.h b/src/ui/dialog/filedialog.h index db50fbdc9..898917147 100644 --- a/src/ui/dialog/filedialog.h +++ b/src/ui/dialog/filedialog.h @@ -236,149 +236,6 @@ protected: }; //FileSaveDialog -//#define NEW_EXPORT_DIALOG - -#ifdef NEW_EXPORT_DIALOG - -/** - * This class provides an implementation-independent API for - * file "Export" dialogs. Saving as these types will not affect - * the original file. - */ -class FileExportDialog -{ -public: - - enum ScopeType - { - SCOPE_DOCUMENT, - SCOPE_PAGE, - SCOPE_SELECTION, - SCOPE_CUSTOM - }; - - /** - * Constructor. Do not call directly . Use the factory. - * @param path the directory where to start searching - * @param fileTypes one of FileDialogTypes - * @param title the title of the dialog - * @param key a list of file types from which the user can select - */ - FileExportDialog() - {} - - /** - * Factory. - * @param path the directory where to start searching - * @param fileTypes one of FileDialogTypes - * @param title the title of the dialog - * @param key a list of file types from which the user can select - */ - static FileExportDialog *create(Gtk::Window& parentWindow, - const Glib::ustring &path, - FileDialogType fileTypes, - const char *title, - const Glib::ustring &default_key); - - - /** - * Destructor. - * Perform any necessary cleanups. - */ - virtual ~FileExportDialog () {}; - - - /** - * Show an SaveAs file selector. - * @return the selected path if user selected one, else NULL - */ - virtual bool show() =0; - - /** - * Return the 'key' (filetype) of the selection, if any - * @return a pointer to a string if successful (which must - * be later freed with g_free(), else NULL. - */ - virtual Inkscape::Extension::Extension * getSelectionType() = 0; - - /** - * Return the selected filename, if any. If not, return "" - */ - virtual Glib::ustring getFilename () =0; - - /** - * Return the scope of the export. One of the enumerated types - * in ScopeType - */ - virtual ScopeType getScope() = 0; - - /** - * Return left side of the exported region - */ - virtual double getSourceX() = 0; - - /** - * Return the top of the exported region - */ - virtual double getSourceY() = 0; - - /** - * Return the width of the exported region - */ - virtual double getSourceWidth() = 0; - - /** - * Return the height of the exported region - */ - virtual double getSourceHeight() = 0; - - /** - * Return the units of the coordinates of exported region - */ - virtual Glib::ustring getSourceUnits() = 0; - - /** - * Return the width of the destination document - */ - virtual double getDestinationWidth() = 0; - - /** - * Return the height of the destination document - */ - virtual double getDestinationHeight() = 0; - - /** - * Return the height of the exported region - */ - virtual Glib::ustring getDestinationUnits() = 0; - - /** - * Return the destination DPI image resolution, if bitmap - */ - virtual double getDestinationDPI() = 0; - - /** - * Return whether we should use Cairo for rendering - */ - virtual bool getUseCairo() = 0; - - /** - * Return whether we should use antialiasing - */ - virtual bool getUseAntialias() = 0; - - /** - * Return the background color for exporting - */ - virtual unsigned long getBackground() = 0; - - - -}; //FileExportDialog - -#endif // NEW_EXPORT_DIALOG - - } //namespace Dialog } //namespace UI } //namespace Inkscape |
