20#include <glibmm/i18n.h>
64 auto anchor = selection->
group(
true);
65 selection->
set(anchor);
150 {
"app.selection-group", NC_(
"Verb",
"Group"),
SECTION_SELECT, N_(
"Group selected objects")},
151 {
"app.selection-ungroup", N_(
"Ungroup"),
SECTION_SELECT, N_(
"Ungroup selected objects")},
152 {
"app.selection-ungroup-pop", N_(
"Pop Selected Objects out of Group"),
SECTION_SELECT, N_(
"Pop selected objects out of group")},
153 {
"app.selection-link", NC_(
"Hyperlink|Verb",
"Link"),
SECTION_SELECT, N_(
"Add an anchor to selected objects")},
155 {
"app.selection-top", N_(
"Raise to Top"),
SECTION_SELECT, N_(
"Raise selection to top")},
156 {
"app.selection-raise", N_(
"Raise"),
SECTION_SELECT, N_(
"Raise selection one step")},
157 {
"app.selection-lower", N_(
"Lower"),
SECTION_SELECT, N_(
"Lower selection one step")},
158 {
"app.selection-bottom", N_(
"Lower to Bottom"),
SECTION_SELECT, N_(
"Lower selection to bottom")},
160 {
"app.selection-stack-up", N_(
"Move up the Stack"),
SECTION_SELECT, N_(
"Move the selection up in the stack order")},
161 {
"app.selection-stack-down", N_(
"Move down the Stack"),
SECTION_SELECT, N_(
"Move the selection down in the stack order")},
163 {
"app.selection-make-bitmap-copy", N_(
"Make a Bitmap Copy"),
SECTION_SELECT, N_(
"Export selection to a bitmap and insert it into document")},
164 {
"app.page-fit-to-selection", N_(
"Resize Page to Selection"),
SECTION_PAGE, N_(
"Fit the page to the current selection or the drawing if there is no selection")}
175 gapp->add_action(
"selection-group", sigc::bind(sigc::ptr_fun(&
select_object_group), app));
178 gapp->add_action(
"selection-link", sigc::bind(sigc::ptr_fun(&
select_object_link), app));
180 gapp->add_action(
"selection-top", sigc::bind(sigc::ptr_fun(&
selection_top), app));
181 gapp->add_action(
"selection-raise", sigc::bind(sigc::ptr_fun(&
selection_raise), app));
182 gapp->add_action(
"selection-lower", sigc::bind(sigc::ptr_fun(&
selection_lower), app));
183 gapp->add_action(
"selection-bottom", sigc::bind(sigc::ptr_fun(&
selection_bottom), app));
185 gapp->add_action(
"selection-stack-up", sigc::bind(sigc::ptr_fun(&
selection_stack_up), app));
186 gapp->add_action(
"selection-stack-down", sigc::bind(sigc::ptr_fun(&
selection_stack_down), app));
bool get_document_and_selection(InkscapeApplication *app, SPDocument **document, Inkscape::Selection **selection)
void selection_make_bitmap_copy(InkscapeApplication *app)
void selection_stack_up(InkscapeApplication *app)
void selection_stack_down(InkscapeApplication *app)
const Glib::ustring SECTION_SELECT
void selection_lower(InkscapeApplication *app)
void selection_raise(InkscapeApplication *app)
void add_actions_selection_object(InkscapeApplication *app)
void select_object_ungroup_pop(InkscapeApplication *app)
void select_object_ungroup(InkscapeApplication *app)
void selection_bottom(InkscapeApplication *app)
void select_object_link(InkscapeApplication *app)
void selection_top(InkscapeApplication *app)
const Glib::ustring SECTION_PAGE
std::vector< std::vector< Glib::ustring > > raw_data_selection_object
void select_object_group(InkscapeApplication *app)
void page_fit_to_selection(InkscapeApplication *app)
Authors: Sushant A A sushant.co19@gmail.com
InkActionExtraData & get_action_extra_data()
Gio::Application * gio_app()
The Gio application instance, never NULL.
Inkscape::Selection * get_active_selection()
static void done(SPDocument *document, Glib::ustring const &event_description, Glib::ustring const &undo_icon, unsigned int object_modified_tag=0)
Inkscape::XML::Node * group(bool is_anchor=false)
void stackDown(bool skip_undo=false)
SPDesktop * desktop()
Returns the desktop the selection is bound to.
void raiseToTop(bool skip_undo=false)
void stackUp(bool skip_undo=false)
void ungroup(bool skip_undo=false)
SPDocument * document()
Returns the document the selection is bound to.
void raise(bool skip_undo=false)
void lowerToBottom(bool skip_undo=false)
void lower(bool skip_undo=false)
void fitToSelection(ObjectSet *selection, bool add_margins=true)
Resize the page to the given selection.
The set of selected SPObjects for a given document and layer model.
void set(XML::Node *repr)
Set the selection to an XML node's SPObject.
void new_dialog(const Glib::ustring &dialog_type)
Add new dialog to the current container or in a floating window, based on preferences.
Inkscape::UI::Dialog::DialogContainer * getContainer()
Typed SVG document implementation.
Inkscape::PageManager & getPageManager()
A widget that manages DialogNotebook's and other widgets inside a horizontal DialogMultipaned.
TODO: insert short description here.
Macro for icon names used in Inkscape.