16#include <glibmm/i18n.h>
88const Glib::ustring
SECTION = NC_(
"Action Section",
"Edit Document");
92 {
"doc.create-guides-around-page", N_(
"Create Guides Around the Current Page"),
SECTION, N_(
"Create four guides aligned with the page borders of the current page")},
93 {
"doc.lock-all-guides", N_(
"Lock All Guides"),
SECTION, N_(
"Toggle lock of all guides in the document")},
94 {
"doc.show-all-guides", N_(
"Show All Guides"),
SECTION, N_(
"Toggle visibility of all guides in the document")},
95 {
"doc.delete-all-guides", N_(
"Delete All Guides"),
SECTION, N_(
"Delete all the guides in the document")},
96 {
"doc.fit-canvas-to-drawing", N_(
"Fit Page to Drawing"),
SECTION, N_(
"Fit the page to the drawing")},
97 {
"doc.clip-to-page", N_(
"Toggle Clip to Page"),
SECTION, N_(
"Toggle between clipped to page and complete rendering")},
98 {
"doc.show-grids", N_(
"Show Grids"),
SECTION, N_(
"Toggle the visibility of grids")},
111 map->add_action_bool(
"lock-all-guides", sigc::bind(sigc::ptr_fun(&
lock_all_guides), document));
112 map->add_action_bool(
"show-all-guides", sigc::bind(sigc::ptr_fun(&
show_all_guides), document));
113 map->add_action_bool(
"show-grids", sigc::bind(sigc::ptr_fun(&
show_grids), document));
115 map->add_action_radio_string(
"set-display-unit", sigc::bind(sigc::ptr_fun(&
set_display_unit), document),
"px");
std::vector< std::vector< Glib::ustring > > raw_data_edit_document
void show_all_guides(SPDocument *document)
const Glib::ustring SECTION
void fit_canvas_drawing(SPDocument *document)
void delete_all_guides(SPDocument *document)
void create_guides_around_page(SPDocument *document)
void show_grids(SPDocument *document)
void toggle_clip_to_page(SPDocument *document)
void add_actions_edit_document(SPDocument *document)
void lock_all_guides(SPDocument *document)
void set_display_unit(Glib::ustring abbr, SPDocument *document)
Authors: Sushant A A sushant.co19@gmail.com
@ INKSCAPE_CLIP_TO_PAGE_RENDERING
static InkscapeApplication * instance()
Singleton instance.
static void done(SPDocument *document, Glib::ustring const &event_description, Glib::ustring const &undo_icon, unsigned int object_modified_tag=0)
Interface for refcounted XML nodes.
void setAttribute(Util::const_char_ptr key, Util::const_char_ptr value)
Change an attribute of this node.
Typed SVG document implementation.
Glib::RefPtr< Gio::SimpleActionGroup > getActionGroup()
void setModifiedSinceSave(bool const modified=true)
Indicate to the user if the document has been modified since the last save by displaying a "*" in fro...
SPNamedView * getNamedView()
Get the namedview for this document, creates it if it's not found.
void change_bool_setting(SPAttr key, bool value)
Inkscape::XML::Node * getRepr()
Returns the XML representation of tree.
std::unordered_map< std::string, std::unique_ptr< SPDocument > > map
TODO: insert short description here.
static T clip(T const &v, T const &a, T const &b)
bool fit_canvas_to_drawing(SPDocument *doc, bool with_margins)
void sp_guide_create_guides_around_page(SPDocument *doc)
void sp_guide_delete_all_guides(SPDocument *doc)