10#ifndef SP_EXPORT_HELPER_H
11#define SP_EXPORT_HELPER_H
16#include <glibmm/refptr.h>
17#include <gtkmm/comboboxtext.h>
18#include <gtkmm/grid.h>
49#define DPI_BASE Inkscape::Util::Quantity::convert(1, "in", "px")
56 ExtensionList(BaseObjectType *cobject,
const Glib::RefPtr<Gtk::Builder> &refGlade);
72 std::map<std::string, Inkscape::Extension::Output *>
ext_to_mod;
85 ExportList(BaseObjectType *cobject,
const Glib::RefPtr<Gtk::Builder> &)
Preference storage class.
ExportList(BaseObjectType *cobject, const Glib::RefPtr< Gtk::Builder > &)
void removeExtension(std::string &filename)
~ExportList() override=default
Inkscape::Preferences * prefs
std::string get_suffix(int row)
Inkscape::Extension::Output * getExtension(int row)
void delete_row(Gtk::Widget *widget)
Glib::RefPtr< Gtk::Builder > _builder
Inkscape::Extension::Output * getExtension()
Returns the Output extension currently selected in this dropdown.
auto_connection _popover_signal
Gtk::MenuButton * _pref_button
void removeExtension(std::string &filename)
Removes the file extension, if it's one of the extensions in the list.
std::map< std::string, Inkscape::Extension::Output * > ext_to_mod
~ExtensionList() override
Gtk::MenuButton * getPrefButton() const
void on_changed() override
std::string getFileExtension()
Returns the file extension (file ending) of the currently selected extension.
Gtk::Popover * _pref_popover
void setExtensionFromFilename(std::string const &filename)
Gtk::Viewport * _pref_holder
Typed SVG document implementation.
Base class for visual SVG elements.
constexpr auto SP_EXPORT_MIN_SIZE
constexpr auto EXPORT_COORD_PRECISION
Miscellaneous supporting code.
CMYK to sRGB conversion routines.
std::unique_ptr< Preferences::PreferencesObserver > PrefObserver
Singleton class to access the preferences file in a convenient way.