Inkscape
Vector Graphics Editor
|
#include <inkscape-application.h>
Public Member Functions | |
InkscapeApplication () | |
Exclusively for the creation of the singleton instance inside main(). | |
~InkscapeApplication () | |
Gtk::Application * | gtk_app () |
The Gtk application instance, or NULL if running headless without display. | |
Gio::Application * | gio_app () |
The Gio application instance, never NULL. | |
SPDesktop * | createDesktop (SPDocument *document, bool replace) |
Create a desktop given a document. | |
void | create_window (Glib::RefPtr< Gio::File > const &file={}) |
Create a window given a Gio::File. | |
bool | destroyDesktop (SPDesktop *desktop, bool keep_alive=false) |
Destroy a window and close the document it contains. | |
void | detachDesktopToNewWindow (SPDesktop *desktop) |
bool | destroy_all () |
void | print_action_list () |
void | print_input_type_list () const |
Prints file type extensions (without leading dot) of input formats. | |
InkFileExportCmd * | file_export () |
int | on_handle_local_options (const Glib::RefPtr< Glib::VariantDict > &options) |
void | on_new () |
void | on_quit () |
void | on_quit_immediate () |
SPDocument * | get_active_document () |
void | set_active_document (SPDocument *document) |
Inkscape::Selection * | get_active_selection () |
void | set_active_selection (Inkscape::Selection *selection) |
SPDesktop * | get_active_desktop () |
void | set_active_desktop (SPDesktop *desktop) |
InkscapeWindow * | get_active_window () |
void | set_active_window (InkscapeWindow *window) |
SPDocument * | document_add (std::unique_ptr< SPDocument > document) |
SPDocument * | document_new (std::string const &template_filename={}) |
std::pair< SPDocument *, bool > | document_open (Glib::RefPtr< Gio::File > const &file) |
SPDocument * | document_open (std::span< char const > buffer) |
bool | document_swap (SPDesktop *desktop, SPDocument *document) |
Swap out one document for another in a tab. | |
bool | document_revert (SPDocument *document) |
Revert document: open saved document and swap it for each window. | |
void | document_close (SPDocument *document) |
Close a document, remove from app. | |
void | document_fix (SPDesktop *desktop) |
Fix up a document if necessary (Only fixes that require GUI). | |
std::vector< SPDocument * > | get_documents () |
Get a list of open documents (from document map). | |
void | startup_close () |
void | windowClose (InkscapeWindow *window) |
SPDesktop * | desktopOpen (SPDocument *document) |
void | desktopClose (SPDesktop *desktop) |
void | desktopCloseActive () |
InkActionExtraData & | get_action_extra_data () |
InkActionEffectData & | get_action_effect_data () |
InkActionHintData & | get_action_hint_data () |
std::map< std::string, Glib::ustring > & | get_menu_label_to_tooltip_map () |
void | dump () |
Debug function. | |
int | get_number_of_windows () const |
Return number of open Inkscape Windows (irrespective of number of documents) | |
Static Public Member Functions | |
static InkscapeApplication * | instance () |
Singleton instance. | |
Protected Member Functions | |
void | on_startup () |
void | on_activate () |
void | on_open (const Gio::Application::type_vec_files &files, const Glib::ustring &hint) |
void | process_document (SPDocument *document, std::string output_path) |
Common processing for documents. | |
void | parse_actions (const Glib::ustring &input, action_vector_t &action_vector) |
void | redirect_output () |
void | shell (bool active_window=false) |
void | _start_main_option_section (const Glib::ustring §ion_name="") |
Protected Attributes | |
Glib::RefPtr< Gio::Application > | _gio_application |
bool | _with_gui = true |
bool | _batch_process = false |
bool | _use_shell = false |
bool | _use_pipe = false |
bool | _auto_export = false |
int | _pdf_poppler = false |
FontStrategy | _pdf_font_strategy = FontStrategy::RENDER_MISSING |
bool | _use_command_line_argument = false |
Glib::ustring | _pages |
std::map< std::unique_ptr< SPDocument >, std::vector< std::unique_ptr< SPDesktop > >, TransparentPtrLess< SPDocument > > | _documents |
std::vector< std::unique_ptr< InkscapeWindow > > | _windows |
SPDocument * | _active_document = nullptr |
Inkscape::Selection * | _active_selection = nullptr |
SPDesktop * | _active_desktop = nullptr |
InkscapeWindow * | _active_window = nullptr |
InkFileExportCmd | _file_export |
Glib::ustring | _command_line_actions_input |
action_vector_t | _command_line_actions |
InkActionExtraData | _action_extra_data |
InkActionEffectData | _action_effect_data |
InkActionHintData | _action_hint_data |
std::map< std::string, Glib::ustring > | _menu_label_to_tooltip_map |
Private Member Functions | |
void | init_extension_action_data () |
Private Attributes | |
std::vector< Glib::RefPtr< Gio::SimpleAction > > | _effect_actions |
std::unique_ptr< Inkscape::UI::Dialog::StartScreen > | _start_screen |
Definition at line 46 of file inkscape-application.h.
InkscapeApplication::InkscapeApplication | ( | ) |
Exclusively for the creation of the singleton instance inside main().
Definition at line 531 of file inkscape-application.cpp.
References _gio_application, _instance, _start_main_option_section(), _with_gui, add_actions_base(), add_actions_edit(), add_actions_effect(), add_actions_element_a(), add_actions_element_image(), add_actions_file(), add_actions_hide_lock(), add_actions_object(), add_actions_object_align(), add_actions_output(), add_actions_path(), add_actions_selection(), add_actions_selection_object(), add_actions_text(), add_actions_transform(), add_actions_tutorial(), add_actions_window(), gio_app(), gtk_app(), Inkscape::Debug::Logger::init(), Inkscape::GC::init(), Inkscape::initialize_gettext(), Inkscape::inkscape_revision(), on_activate(), on_handle_local_options(), on_open(), and on_startup().
InkscapeApplication::~InkscapeApplication | ( | ) |
Definition at line 742 of file inkscape-application.cpp.
References _instance.
|
protected |
Definition at line 509 of file inkscape-application.cpp.
References gio_app().
Referenced by InkscapeApplication().
void InkscapeApplication::create_window | ( | Glib::RefPtr< Gio::File > const & | file = {} | ) |
Create a window given a Gio::File.
This is what most external functions should call.
file | - The filename to open as a Gio::File object |
Definition at line 781 of file inkscape-application.cpp.
References _active_document, _active_window, createDesktop(), desktop, desktopOpen(), document_fix(), document_new(), document_open(), SPDesktop::getInkscapeWindow(), SPDocument::getVirgin(), gtk_app(), sp_ui_error_dialog(), and startup_close().
Referenced by file_open_with_window(), and on_new().
SPDesktop * InkscapeApplication::createDesktop | ( | SPDocument * | document, |
bool | replace | ||
) |
Create a desktop given a document.
This is used internally in InkscapeApplication.
Definition at line 750 of file inkscape-application.cpp.
References _active_desktop, _active_document, _documents, desktop, desktopOpen(), document_close(), document_swap(), and gtk_app().
Referenced by create_window(), and process_document().
void InkscapeApplication::desktopClose | ( | SPDesktop * | desktop | ) |
Definition at line 432 of file inkscape-application.cpp.
References _active_desktop, _active_selection, _documents, desktop, InkscapeWindow::get_desktop_widget(), get_number_of_windows(), SPDesktop::getDesktopWidget(), SPDesktopWidget::getDialogContainer(), SPDesktop::getDocument(), SPDesktop::getInkscapeWindow(), SPDesktopWidget::removeDesktop(), Inkscape::UI::Dialog::DialogManager::save_dialogs_state(), and Inkscape::UI::Dialog::DialogManager::singleton().
Referenced by desktopCloseActive(), and destroyDesktop().
void InkscapeApplication::desktopCloseActive | ( | ) |
Definition at line 473 of file inkscape-application.cpp.
References _active_desktop, and desktopClose().
Referenced by window_close().
SPDesktop * InkscapeApplication::desktopOpen | ( | SPDocument * | document | ) |
Definition at line 390 of file inkscape-application.cpp.
References _active_desktop, _active_document, _active_selection, _active_window, _documents, _windows, _with_gui, SPDesktopWidget::addDesktop(), desktop, document_fix(), InkscapeWindow::get_desktop_widget(), SPDocument::getNamedView(), SPDesktop::getSelection(), and sp_namedview_window_from_document().
Referenced by create_window(), createDesktop(), and window_open().
bool InkscapeApplication::destroy_all | ( | ) |
Definition at line 895 of file inkscape-application.cpp.
References _documents, destroyDesktop(), and gtk_app().
Referenced by on_quit().
bool InkscapeApplication::destroyDesktop | ( | SPDesktop * | desktop, |
bool | keep_alive = false |
||
) |
Destroy a window and close the document it contains.
Aborts if document needs saving. Replaces document and keeps window open if last window and keep_alive is true. Returns true if window destroyed.
Definition at line 832 of file inkscape-application.cpp.
References _documents, desktop, desktopClose(), document_check_for_data_loss(), document_close(), document_new(), document_swap(), get_number_of_windows(), SPDesktop::getDocument(), and gtk_app().
Referenced by Inkscape::UI::Widget::TabsWidget::addTab(), destroy_all(), InkscapeWindow::on_close_request(), and Inkscape::UI::Widget::TabsWidget::TabsWidget().
void InkscapeApplication::detachDesktopToNewWindow | ( | SPDesktop * | desktop | ) |
Definition at line 884 of file inkscape-application.cpp.
References _windows, desktop, InkscapeWindow::get_desktop_widget(), SPDesktop::getInkscapeWindow(), and SPDesktopWidget::removeDesktop().
SPDocument * InkscapeApplication::document_add | ( | std::unique_ptr< SPDocument > | document | ) |
Definition at line 120 of file inkscape-application.cpp.
References _documents.
Referenced by document_new(), document_open(), and document_open().
void InkscapeApplication::document_close | ( | SPDocument * | document | ) |
Close a document, remove from app.
No checking is done on modified status, etc.
Definition at line 325 of file inkscape-application.cpp.
References _documents.
Referenced by createDesktop(), destroyDesktop(), document_revert(), and file_close().
void InkscapeApplication::document_fix | ( | SPDesktop * | desktop | ) |
Fix up a document if necessary (Only fixes that require GUI).
MOVE TO ANOTHER FILE!
Definition at line 348 of file inkscape-application.cpp.
References _with_gui, Inkscape::UI::Dialog::checkFontSubstitutions(), desktop, Inkscape::fixBrokenLinks(), SPDesktop::getDocument(), SPDesktop::showInfoDialog(), sp_file_convert_dpi(), and sp_file_fix_lpe().
Referenced by create_window(), desktopOpen(), and process_document().
SPDocument * InkscapeApplication::document_new | ( | std::string const & | template_filename = {} | ) |
Definition at line 130 of file inkscape-application.cpp.
References document_add(), document_new(), Inkscape::IO::Resource::get_filename(), ink_file_new(), and Inkscape::IO::Resource::TEMPLATES.
Referenced by create_window(), destroyDesktop(), document_new(), file_new(), and on_activate().
std::pair< SPDocument *, bool > InkscapeApplication::document_open | ( | Glib::RefPtr< Gio::File > const & | file | ) |
Definition at line 157 of file inkscape-application.cpp.
References document_add(), Inkscape::IO::find_original_file(), ink_file_open(), and orig.
Referenced by create_window(), document_revert(), file_open(), on_activate(), and on_open().
SPDocument * InkscapeApplication::document_open | ( | std::span< char const > | buffer | ) |
Definition at line 202 of file inkscape-application.cpp.
References document_add(), and ink_file_open().
bool InkscapeApplication::document_revert | ( | SPDocument * | document | ) |
Revert document: open saved document and swap it for each window.
Definition at line 266 of file inkscape-application.cpp.
References _documents, c, SPDesktop::current_center(), SPDesktop::current_zoom(), desktop, document_close(), document_open(), document_swap(), SPDesktop::getDocument(), SPDocument::getDocumentFilename(), SPDocument::setVirgin(), sp_file_fix_lpe(), and SPDesktop::zoom_absolute().
bool InkscapeApplication::document_swap | ( | SPDesktop * | desktop, |
SPDocument * | document | ||
) |
Swap out one document for another in a tab.
Does not delete old document! Fixme: Lots of callers leak old document.
Definition at line 222 of file inkscape-application.cpp.
References _active_document, _documents, SPDesktop::change_document(), desktop, and SPDesktop::getDocument().
Referenced by createDesktop(), destroyDesktop(), document_revert(), and window_open().
void InkscapeApplication::dump | ( | ) |
Debug function.
Definition at line 483 of file inkscape-application.cpp.
References _documents, and _windows.
|
inline |
Definition at line 69 of file inkscape-application.h.
References _file_export.
Referenced by export_area(), export_area_drawing(), export_area_page(), export_area_snap(), export_background(), export_background_opacity(), export_do(), export_dpi(), export_filename(), export_height(), export_id(), export_id_only(), export_ignore_filters(), export_latex(), export_margin(), export_overwrite(), export_pdf_level(), export_plain_svg(), export_png_antialias(), export_png_color_mode(), export_png_compression(), export_png_use_dithering(), export_ps_level(), export_text_to_path(), export_type(), export_use_hints(), and export_width().
|
inline |
Definition at line 124 of file inkscape-application.h.
References _action_effect_data.
|
inline |
Definition at line 123 of file inkscape-application.h.
References _action_extra_data.
Referenced by add_actions_base(), add_actions_dialogs(), add_actions_edit(), add_actions_effect(), add_actions_element_a(), add_actions_element_image(), add_actions_file(), add_actions_hide_lock(), add_actions_object(), add_actions_object_align(), add_actions_output(), add_actions_path(), add_actions_selection(), add_actions_selection_object(), add_actions_text(), add_actions_transform(), add_actions_tutorial(), add_actions_window(), and init_tool_shortcuts().
|
inline |
Definition at line 125 of file inkscape-application.h.
References _action_hint_data.
Referenced by add_actions_file(), add_actions_object(), add_actions_object_align(), add_actions_output(), add_actions_transform(), and add_actions_window().
|
inline |
Definition at line 88 of file inkscape-application.h.
References _active_desktop.
Referenced by action_effect(), and window_open().
|
inline |
Definition at line 78 of file inkscape-application.h.
References _active_document.
Referenced by action_effect(), ActionsEdit::duplicate_transform(), export_do(), file_close(), file_rebase(), Inkscape::UI::Dialog::CommandPalette::get_action_ptr_name(), get_document_and_selection(), hide_lock_hide_selected(), hide_lock_lock_selected(), hide_lock_unhide_all(), hide_lock_unhide_below(), hide_lock_unlock_all(), hide_lock_unlock_below(), image_crop(), object_align(), object_align_text(), object_distribute(), object_distribute_text(), object_rearrange(), object_remove_overlaps(), page_rotate(), query_all(), query_pages(), transform_reapply(), transform_remove(), transform_translate(), and window_open().
|
inline |
Definition at line 81 of file inkscape-application.h.
References _active_selection.
Referenced by anchor_open_link(), ActionsEdit::chameleon_fill(), ActionsEdit::clone(), ActionsEdit::clone_link(), ActionsEdit::clone_link_lpe(), ActionsEdit::clone_unlink(), ActionsEdit::clone_unlink_recursively(), ActionsEdit::copy(), ActionsEdit::cut(), ActionsEdit::duplicate(), ActionsEdit::duplicate_transform(), ActionsEdit::edit_delete(), ActionsEdit::edit_delete_selection(), edit_remove_filter(), fill_between_paths(), ActionsEdit::fit_canvas_to_selection(), get_document_and_selection(), hide_lock_hide_selected(), hide_lock_lock_selected(), hide_lock_unhide_below(), hide_lock_unlock_below(), image_crop(), image_edit(), object_align(), object_align_text(), object_distribute(), object_distribute_text(), object_path_union(), object_rearrange(), object_remove_overlaps(), ActionsEdit::object_to_guides(), ActionsEdit::object_to_marker(), ActionsEdit::object_to_pattern(), ActionsEdit::paste_height(), ActionsEdit::paste_height_separately(), ActionsEdit::paste_path_effect(), ActionsEdit::paste_size(), ActionsEdit::paste_size_separately(), ActionsEdit::paste_style(), ActionsEdit::paste_width(), ActionsEdit::paste_width_separately(), ActionsEdit::pattern_to_object(), ActionsEdit::remove_path_effect(), select_object_group(), select_object_link(), select_object_ungroup(), select_object_ungroup_pop(), ActionsEdit::select_original(), select_path_break_apart(), select_path_combine(), select_path_cut(), select_path_difference(), select_path_division(), select_path_exclusion(), select_path_flatten(), select_path_fracture(), select_path_intersection(), select_path_simplify(), select_path_split(), selection_bottom(), selection_lower(), selection_make_bitmap_copy(), selection_raise(), selection_stack_down(), selection_stack_up(), selection_top(), ActionsEdit::swap_fill_and_stroke(), transform_grow(), transform_grow_step(), transform_reapply(), transform_remove(), transform_rotate(), transform_rotate_step(), transform_scale(), and transform_translate().
|
inline |
Definition at line 94 of file inkscape-application.h.
References _active_window.
Referenced by Inkscape::UI::Dialog::ObjectsPanel::_activateAction(), file_open_with_window(), Inkscape::UI::Dialog::CommandPalette::get_action_ptr_name(), image_crop(), image_edit(), Inkscape::UI::Dialog::AlignAndDistribute::on_align_node_clicked(), Inkscape::UI::Dialog::SingleExport::onBrowse(), window_query_geometry(), and window_set_geometry().
std::vector< SPDocument * > InkscapeApplication::get_documents | ( | ) |
Get a list of open documents (from document map).
Definition at line 378 of file inkscape-application.cpp.
References _documents, and result.
Referenced by Inkscape::AutoSave::save().
|
inline |
Definition at line 126 of file inkscape-application.h.
References _menu_label_to_tooltip_map.
int InkscapeApplication::get_number_of_windows | ( | ) | const |
Return number of open Inkscape Windows (irrespective of number of documents)
Definition at line 1892 of file inkscape-application.cpp.
References _documents, _with_gui, and sum().
Referenced by desktopClose(), destroyDesktop(), and InkscapeWindow::InkscapeWindow().
|
inline |
The Gio application instance, never NULL.
Definition at line 59 of file inkscape-application.h.
References _gio_application.
Referenced by _start_main_option_section(), add_actions_base(), add_actions_edit(), add_actions_effect(), add_actions_element_a(), add_actions_element_image(), add_actions_file(), add_actions_hide_lock(), add_actions_object(), add_actions_object_align(), add_actions_output(), add_actions_path(), add_actions_selection(), add_actions_selection_object(), add_actions_text(), add_actions_transform(), add_actions_tutorial(), add_actions_window(), enable_effect_actions(), InkscapeApplication(), InkscapeWindow::InkscapeWindow(), main(), object_align_on_canvas(), on_activate(), on_open(), on_quit(), on_quit_immediate(), on_startup(), and print_action_list().
|
inline |
The Gtk application instance, or NULL if running headless without display.
Definition at line 57 of file inkscape-application.h.
References _gio_application.
Referenced by add_actions_tutorial(), create_window(), createDesktop(), destroy_all(), destroyDesktop(), Inkscape::UI::Dialog::DialogWindow::DialogWindow(), Inkscape::UI::Dialog::CommandPalette::get_action_ptr_name(), Inkscape::UI::Dialog::DialogManager::get_all_floating_dialog_windows(), init_extension_action_data(), InkscapeApplication(), InkscapeWindow::InkscapeWindow(), Inkscape::UI::Dialog::CommandPalette::load_app_actions(), on_handle_local_options(), on_quit(), on_startup(), and InkscapeWindow::update_dialogs().
|
private |
Definition at line 1927 of file inkscape-application.cpp.
References _effect_actions, action_effect(), Inkscape::Extension::db, Inkscape::Extension::DB::get_effect_list(), gtk_app(), and raw_data_effect.
Referenced by on_startup().
|
static |
Singleton instance.
Definition at line 504 of file inkscape-application.cpp.
References _instance.
Referenced by Inkscape::UI::Dialog::ObjectsPanel::_activateAction(), Inkscape::UI::NewFromTemplate::_createFromTemplate(), Inkscape::Util::ActionAccel::_query(), action_effect(), add_actions_canvas_mode(), add_actions_canvas_snapping(), add_actions_canvas_transform(), add_actions_dialogs(), add_actions_edit_document(), add_actions_edit_window(), add_actions_file_window(), add_actions_help_url(), add_actions_layer(), add_actions_node_align(), add_actions_page_tools(), add_actions_pages(), add_actions_processing(), add_actions_select_window(), add_actions_tools(), add_actions_undo_document(), add_actions_view_mode(), add_actions_view_window(), Inkscape::UI::Widget::TabsWidget::addTab(), Inkscape::UI::Dialog::AlignAndDistribute::AlignAndDistribute(), Inkscape::UI::Dialog::CommandPalette::ask_action_parameter(), build_menu(), document_close(), document_open(), Inkscape::Extension::Effect::Effect(), file_import(), Inkscape::FontDiscovery::FontDiscovery(), Inkscape::UI::Dialog::CommandPalette::generate_action_operation(), Inkscape::UI::Dialog::CommandPalette::get_action_ptr_name(), Inkscape::UI::Dialog::DialogManager::get_all_floating_dialog_windows(), Inkscape::UI::Dialog::get_tool_action_name(), help_open_tutorial(), last_effect(), last_effect_pref(), Inkscape::Shortcuts::list_all_detailed_action_names(), Inkscape::UI::Dialog::CommandPalette::load_app_actions(), Inkscape::UI::Dialog::StartScreen::load_document(), Inkscape::UI::Dialog::CommandPalette::load_win_doc_actions(), Inkscape::UI::Widget::TemplateList::new_document(), Inkscape::UI::Dialog::AlignAndDistribute::on_align_node_clicked(), Inkscape::UI::Dialog::AlignAndDistribute::on_align_relative_object_changed(), Inkscape::UI::Dialog::InkscapePreferences::onKBListKeyboardShortcuts(), Inkscape::UI::Dialog::InkscapePreferences::onKBTreeEdited(), readline_generator(), rebuild_menu(), redo(), SPDesktopWidget::removeDesktop(), Inkscape::Extension::ProcessingAction::run(), Inkscape::UI::Dialog::DialogContainer::save_container_state(), Inkscape::UI::Dialog::DialogManager::set_floating_dialog_visibility(), Inkscape::Extension::Effect::set_last_effect(), set_tooltips_and_shift_icons(), Inkscape::IO::Resource::shared_path(), sp_file_new(), sp_file_revert_dialog(), Inkscape::UI::Widget::TabsWidget::TabsWidget(), undo(), and Inkscape::Shortcuts::update_gui_text_recursive().
|
protected |
Definition at line 1001 of file inkscape-application.cpp.
References _batch_process, _start_screen, _use_pipe, Inkscape::UI::dialog_run(), document_new(), document_open(), end, Inkscape::UI::Dialog::StartScreen::get_start_mode(), gio_app(), and process_document().
Referenced by InkscapeApplication().
int InkscapeApplication::on_handle_local_options | ( | const Glib::RefPtr< Glib::VariantDict > & | options | ) |
Definition at line 1400 of file inkscape-application.cpp.
References _active_document, _active_window, _auto_export, _batch_process, _command_line_actions, _command_line_actions_input, _file_export, _gio_application, _pages, _pdf_font_strategy, _pdf_poppler, _use_command_line_argument, _use_pipe, _use_shell, _with_gui, activate_any_actions(), Inkscape::debug_info(), DELETE_ALL, DELETE_MISSING, Drawing, end, InkFileExportCmd::export_area_snap, InkFileExportCmd::export_background, InkFileExportCmd::export_background_opacity, InkFileExportCmd::export_dpi, InkFileExportCmd::export_extension, InkFileExportCmd::export_filename, InkFileExportCmd::export_height, InkFileExportCmd::export_id, InkFileExportCmd::export_id_only, InkFileExportCmd::export_ignore_filters, InkFileExportCmd::export_latex, InkFileExportCmd::export_margin, InkFileExportCmd::export_overwrite, InkFileExportCmd::export_page, InkFileExportCmd::export_pdf_level, InkFileExportCmd::export_plain_svg, InkFileExportCmd::export_png_antialias, InkFileExportCmd::export_png_color_mode, InkFileExportCmd::export_png_compression, InkFileExportCmd::export_png_use_dithering, InkFileExportCmd::export_ps_level, InkFileExportCmd::export_text_to_path, InkFileExportCmd::export_type, InkFileExportCmd::export_use_hints, InkFileExportCmd::export_width, Inkscape::Preferences::get(), get_active_desktop_commands_location(), get_inkscape_datadir(), gtk_app(), Inkscape::inkscape_version(), KEEP_MISSING, InkFileExportCmd::make_paths, Page, parse_actions(), Inkscape::IO::Resource::profile_path(), redirect_output(), RENDER_ALL, RENDER_MISSING, InkFileExportCmd::set_export_area(), InkFileExportCmd::set_export_area_type(), shell(), SUBSTITUTE_MISSING, and use_active_window.
Referenced by InkscapeApplication().
void InkscapeApplication::on_new | ( | ) |
Definition at line 1823 of file inkscape-application.cpp.
References create_window().
Referenced by on_startup().
|
protected |
Definition at line 1063 of file inkscape-application.cpp.
References _batch_process, _file_export, _pages, _pdf_font_strategy, _pdf_poppler, _start_screen, document_open(), InkFileExportCmd::export_filename, gio_app(), and process_document().
Referenced by InkscapeApplication().
void InkscapeApplication::on_quit | ( | ) |
Definition at line 1828 of file inkscape-application.cpp.
References destroy_all(), gio_app(), and gtk_app().
Referenced by add_actions_base(), and on_startup().
void InkscapeApplication::on_quit_immediate | ( | ) |
Definition at line 1845 of file inkscape-application.cpp.
References gio_app().
Referenced by add_actions_base().
|
protected |
Definition at line 954 of file inkscape-application.cpp.
References _command_line_actions, _command_line_actions_input, _start_screen, _use_command_line_argument, _use_pipe, _with_gui, Inkscape::Application::create(), Inkscape::UI::Dialog::StartScreen::get_start_mode(), Inkscape::AutoSave::getInstance(), gio_app(), gtk_app(), Inkscape::Extension::init(), Inkscape::AutoSave::init(), init_extension_action_data(), init_tool_shortcuts(), on_new(), on_quit(), and parse_actions().
Referenced by InkscapeApplication().
|
protected |
Definition at line 1108 of file inkscape-application.cpp.
References _gio_application, and create.
Referenced by on_handle_local_options(), on_startup(), and shell().
void InkscapeApplication::print_action_list | ( | ) |
Definition at line 1859 of file inkscape-application.cpp.
References _action_extra_data, InkActionExtraData::get_tooltip_for_action(), and gio_app().
Referenced by add_actions_base().
void InkscapeApplication::print_input_type_list | ( | ) | const |
Prints file type extensions (without leading dot) of input formats.
Definition at line 1875 of file inkscape-application.cpp.
References Inkscape::Extension::db, and Inkscape::Extension::DB::get_input_list().
Referenced by add_actions_base().
|
protected |
Common processing for documents.
Definition at line 916 of file inkscape-application.cpp.
References _active_desktop, _active_document, _active_selection, _active_window, _auto_export, _batch_process, _command_line_actions, _file_export, _gio_application, _use_pipe, _use_shell, _with_gui, activate_any_actions(), createDesktop(), InkFileExportCmd::do_export(), document_fix(), SPDocument::ensureUpToDate(), SPDesktop::getInkscapeWindow(), SPDocument::getSelection(), and shell().
Referenced by on_activate(), and on_open().
|
protected |
Definition at line 1332 of file inkscape-application.cpp.
References child, counter, get_active_desktop_commands_location(), Inkscape::GC::release(), and sp_repr_read_mem().
Referenced by on_handle_local_options(), and shell().
void InkscapeApplication::set_active_desktop | ( | SPDesktop * | desktop | ) |
Definition at line 1850 of file inkscape-application.cpp.
References _active_desktop, and desktop.
Referenced by file_close(), file_new(), file_open(), InkscapeWindow::on_is_active_changed(), and InkscapeWindow::setActiveTab().
|
inline |
Definition at line 79 of file inkscape-application.h.
References _active_document.
Referenced by InkscapeWindow::change_document(), file_close(), file_new(), file_open(), InkscapeWindow::on_is_active_changed(), and InkscapeWindow::setActiveTab().
|
inline |
Definition at line 82 of file inkscape-application.h.
References _active_selection.
Referenced by file_close(), file_new(), file_open(), InkscapeWindow::on_is_active_changed(), and InkscapeWindow::setActiveTab().
|
inline |
Definition at line 95 of file inkscape-application.h.
References _active_window.
Referenced by InkscapeWindow::on_is_active_changed().
|
protected |
Definition at line 1240 of file inkscape-application.cpp.
References _active_document, _active_window, _gio_application, _with_gui, activate_any_actions(), get_active_desktop_commands_location(), init(), parse_actions(), Inkscape::IO::Resource::profile_path(), readline_init(), and redirect_output().
Referenced by on_handle_local_options(), and process_document().
void InkscapeApplication::startup_close | ( | ) |
Definition at line 1047 of file inkscape-application.cpp.
References _start_screen.
Referenced by create_window().
void InkscapeApplication::windowClose | ( | InkscapeWindow * | window | ) |
Definition at line 1052 of file inkscape-application.cpp.
References _active_window, _windows, and w.
Referenced by SPDesktopWidget::removeDesktop().
|
protected |
Definition at line 174 of file inkscape-application.h.
Referenced by get_action_effect_data().
|
protected |
Definition at line 173 of file inkscape-application.h.
Referenced by get_action_extra_data(), and print_action_list().
|
protected |
Definition at line 175 of file inkscape-application.h.
Referenced by get_action_hint_data().
|
protected |
Definition at line 161 of file inkscape-application.h.
Referenced by createDesktop(), desktopClose(), desktopCloseActive(), desktopOpen(), get_active_desktop(), process_document(), and set_active_desktop().
|
protected |
Definition at line 159 of file inkscape-application.h.
Referenced by create_window(), createDesktop(), desktopOpen(), document_swap(), get_active_document(), on_handle_local_options(), process_document(), set_active_document(), and shell().
|
protected |
Definition at line 160 of file inkscape-application.h.
Referenced by desktopClose(), desktopOpen(), get_active_selection(), process_document(), and set_active_selection().
|
protected |
Definition at line 162 of file inkscape-application.h.
Referenced by create_window(), desktopOpen(), get_active_window(), on_handle_local_options(), process_document(), set_active_window(), shell(), and windowClose().
|
protected |
Definition at line 140 of file inkscape-application.h.
Referenced by on_handle_local_options(), and process_document().
|
protected |
Definition at line 137 of file inkscape-application.h.
Referenced by on_activate(), on_handle_local_options(), on_open(), and process_document().
|
protected |
Definition at line 170 of file inkscape-application.h.
Referenced by on_handle_local_options(), on_startup(), and process_document().
|
protected |
Definition at line 169 of file inkscape-application.h.
Referenced by on_handle_local_options(), and on_startup().
|
protected |
Definition at line 154 of file inkscape-application.h.
Referenced by createDesktop(), desktopClose(), desktopOpen(), destroy_all(), destroyDesktop(), document_add(), document_close(), document_revert(), document_swap(), dump(), get_documents(), and get_number_of_windows().
|
private |
Definition at line 193 of file inkscape-application.h.
Referenced by init_extension_action_data().
|
protected |
Definition at line 164 of file inkscape-application.h.
Referenced by file_export(), on_handle_local_options(), on_open(), and process_document().
|
protected |
Definition at line 134 of file inkscape-application.h.
Referenced by gio_app(), gtk_app(), InkscapeApplication(), on_handle_local_options(), parse_actions(), process_document(), and shell().
|
protected |
Definition at line 179 of file inkscape-application.h.
Referenced by get_menu_label_to_tooltip_map().
|
protected |
Definition at line 144 of file inkscape-application.h.
Referenced by on_handle_local_options(), and on_open().
|
protected |
Definition at line 142 of file inkscape-application.h.
Referenced by on_handle_local_options(), and on_open().
|
protected |
Definition at line 141 of file inkscape-application.h.
Referenced by on_handle_local_options(), and on_open().
|
private |
Definition at line 194 of file inkscape-application.h.
Referenced by on_activate(), on_open(), on_startup(), and startup_close().
|
protected |
Definition at line 143 of file inkscape-application.h.
Referenced by on_handle_local_options(), and on_startup().
|
protected |
Definition at line 139 of file inkscape-application.h.
Referenced by on_activate(), on_handle_local_options(), on_startup(), and process_document().
|
protected |
Definition at line 138 of file inkscape-application.h.
Referenced by on_handle_local_options(), and process_document().
|
protected |
Definition at line 156 of file inkscape-application.h.
Referenced by desktopOpen(), detachDesktopToNewWindow(), dump(), and windowClose().
|
protected |
Definition at line 136 of file inkscape-application.h.
Referenced by desktopOpen(), document_fix(), get_number_of_windows(), InkscapeApplication(), on_handle_local_options(), on_startup(), process_document(), and shell().