16#include <glibmm/i18n.h>
92 Glib::ustring out =
"";
140 auto item = cast<SPItem>(o);
143 Glib::ustring out =
"";
146 out += Glib::ustring(
item->
getId()) +
",";
179 auto &pm = doc->getPageManager();
189 INKSCAPE.set_pages(std::to_string(
page));
195 if (method ==
"none") {
197 }
else if (method ==
"scale-viewbox") {
199 }
else if (method ==
"scale-document") {
219 {
"app.inkscape-version", N_(
"Inkscape Version"),
SECTION_BASE, N_(
"Print Inkscape version and exit") },
220 {
"app.active-window-start", N_(
"Active Window: Start Call"),
SECTION_BASE, N_(
"Start execution in active window") },
221 {
"app.active-window-end", N_(
"Active Window: End Call"),
SECTION_BASE, N_(
"End execution in active window") },
222 {
"app.save-preferences", N_(
"Save preferences"),
SECTION_BASE, N_(
"Make sure the preferences are saved") },
223 {
"app.debug-info", N_(
"Debug Info"),
SECTION_BASE, N_(
"Print debugging information and exit") },
224 {
"app.system-data-directory", N_(
"System Directory"),
SECTION_BASE, N_(
"Print system data directory and exit") },
225 {
"app.user-data-directory", N_(
"User Directory"),
SECTION_BASE, N_(
"Print user data directory and exit") },
226 {
"app.action-list", N_(
"List Actions"),
SECTION_BASE, N_(
"Print a list of actions and exit") },
227 {
"app.list-input-types", N_(
"List Input File Extensions"),
SECTION_BASE, N_(
"Print a list of input file extensions and exit") },
228 {
"app.quit", N_(
"Quit"),
SECTION_BASE, N_(
"Quit Inkscape, check for data loss") },
229 {
"app.quit-immediate", N_(
"Quit Immediately"),
SECTION_BASE, N_(
"Immediately quit Inkscape, no check for data loss") },
231 {
"app.open-page", N_(
"Import Page Number"),
SECTION_IMPORT, N_(
"Select PDF page number to import") },
232 {
"app.convert-dpi-method", N_(
"Import DPI Method"),
SECTION_IMPORT, N_(
"Set DPI conversion method for legacy Inkscape files")},
233 {
"app.no-convert-baseline", N_(
"No Import Baseline Conversion"),
SECTION_IMPORT, N_(
"Do not convert text baselines in legacy Inkscape files") },
235 {
"app.query-x", N_(
"Query X"),
SECTION_QUERY, N_(
"Query 'x' value(s) of selected objects") },
236 {
"app.query-y", N_(
"Query Y"),
SECTION_QUERY, N_(
"Query 'y' value(s) of selected objects") },
237 {
"app.query-width", N_(
"Query Width"),
SECTION_QUERY, N_(
"Query 'width' value(s) of object(s)") },
238 {
"app.query-height", N_(
"Query Height"),
SECTION_QUERY, N_(
"Query 'height' value(s) of object(s)") },
239 {
"app.query-all", N_(
"Query All"),
SECTION_QUERY, N_(
"Query 'x', 'y', 'width', and 'height'") },
240 {
"app.query-pages", N_(
"Query Pages"),
SECTION_QUERY, N_(
"Query number of pages in the document") }
262 gapp->add_action_radio_integer(
"open-page", sigc::ptr_fun(&
pdf_page), 0);
263 gapp->add_action_radio_string(
"convert-dpi-method", sigc::ptr_fun(&
convert_dpi_method),
"none");
267 gapp->add_action(
"query-x", sigc::bind(sigc::ptr_fun(&
query_x), app) );
268 gapp->add_action(
"query-y", sigc::bind(sigc::ptr_fun(&
query_y), app) );
269 gapp->add_action(
"query-width", sigc::bind(sigc::ptr_fun(&
query_width), app) );
270 gapp->add_action(
"query-height", sigc::bind(sigc::ptr_fun(&
query_height), app) );
271 gapp->add_action(
"query-all", sigc::bind(sigc::ptr_fun(&
query_all), app) );
272 gapp->add_action(
"query-pages", sigc::bind(sigc::ptr_fun(&
query_pages), app) );
void query_height(InkscapeApplication *app)
void query_x(InkscapeApplication *app)
const Glib::ustring SECTION_BASE
void query_y(InkscapeApplication *app)
std::vector< std::vector< Glib::ustring > > raw_data_base
void query_width(InkscapeApplication *app)
void active_window_start()
void query_pages(InkscapeApplication *app)
void print_user_data_directory()
void print_system_data_directory()
void no_convert_baseline()
const Glib::ustring SECTION_IMPORT
void query_all_recurse(SPObject *o)
const Glib::ustring SECTION_QUERY
void print_inkscape_version()
void query_all(InkscapeApplication *app)
void add_actions_base(InkscapeApplication *app)
void convert_dpi_method(Glib::ustring method)
void query_dimension(InkscapeApplication *app, bool extent, Geom::Dim2 const axis)
void show_output(Glib::ustring const &data, bool const is_cerr)
void active_window_start_helper()
void active_window_end_helper()
bool get_document_and_selection(InkscapeApplication *app, SPDocument **document, Inkscape::Selection **selection)
Axis-aligned rectangle that can be empty.
InkActionExtraData & get_action_extra_data()
Gio::Application * gio_app()
The Gio application instance, never NULL.
SPDocument * get_active_document()
void print_input_type_list() const
Prints file type extensions (without leading dot) of input formats.
SPItemRange items()
Returns a range of selected SPItems.
bool isEmpty()
Returns true if no items are selected.
static Preferences * get()
Access the singleton Preferences object.
void save()
Save all preferences to the hard disk.
The set of selected SPObjects for a given document and layer model.
void add(XML::Node *repr)
Add an XML node's SPObject to the set of selected objects.
Typed SVG document implementation.
SPRoot * getRoot()
Returns our SPRoot.
Geom::OptRect documentVisualBounds() const
Get item's visual bbox in document coordinate system.
SPObject is an abstract base class of all of the document nodes at the SVG document level.
char const * getId() const
Returns the objects current ID string.
int sp_file_convert_dpi_method_commandline
@ FILE_DPI_VIEWBOX_SCALED
@ FILE_DPI_DOCUMENT_SCALED
bool sp_no_convert_text_baseline_spacing
Dim2
2D axis enumeration (X or Y).
Consolidates version info for Inkscape, its various dependencies and the OS we're running on.
std::string profile_path()
Glib::ustring format_classic(T const &... args)
std::string inkscape_revision()
Return Inkscape repository revision string.
std::string debug_info()
Return full debug info.
std::string inkscape_version()
Return Inkscape version string.
char const * get_inkscape_datadir()
Determine the location of the Inkscape data directory (typically the share/ folder from where Inkscap...
TODO: insert short description here.
Singleton class to access the preferences file in a convenient way.
Inkscape::IO::Resource - simple resource API.
SPRoot: SVG <svg> implementation.