Code

Updated cases for attributes added in <color-profile> support
[inkscape.git] / src / verbs.cpp
index eb19eee253d6f91a7b5daff924701f04130359da..9cfe33ddab57071edd14648c4b96f02845c31ddb 100644 (file)
@@ -820,6 +820,24 @@ EditVerb::perform(SPAction *action, void *data, void *pdata)
         case SP_VERB_EDIT_PASTE_STYLE:
             sp_selection_paste_style();
             break;
+        case SP_VERB_EDIT_PASTE_SIZE:
+            sp_selection_paste_size(true, true);
+            break;
+        case SP_VERB_EDIT_PASTE_SIZE_X:
+            sp_selection_paste_size(true, false);
+            break;
+        case SP_VERB_EDIT_PASTE_SIZE_Y:
+            sp_selection_paste_size(false, true);
+            break;
+        case SP_VERB_EDIT_PASTE_SIZE_SEPARATELY:
+            sp_selection_paste_size_separately(true, true);
+            break;
+        case SP_VERB_EDIT_PASTE_SIZE_SEPARATELY_X:
+            sp_selection_paste_size_separately(true, false);
+            break;
+        case SP_VERB_EDIT_PASTE_SIZE_SEPARATELY_Y:
+            sp_selection_paste_size_separately(false, true);
+            break;
         case SP_VERB_EDIT_PASTE_IN_PLACE:
             sp_selection_paste(true);
             break;
@@ -1602,6 +1620,9 @@ DialogVerb::perform(SPAction *action, void *data, void *pdata)
         case SP_VERB_DIALOG_INPUT:
             sp_input_dialog();
             break;
+        case SP_VERB_DIALOG_EXTENSIONEDITOR:
+            dt->_dlg_mgr->showDialog("ExtensionEditor");
+            break;
         default:
             break;
     }
@@ -1877,6 +1898,18 @@ Verb *Verb::_base_verbs[] = {
                  N_("Paste objects from clipboard to mouse point"), GTK_STOCK_PASTE),
     new EditVerb(SP_VERB_EDIT_PASTE_STYLE, "EditPasteStyle", N_("Paste _Style"),
                  N_("Apply the style of the copied object to selection"), "selection_paste_style"),
+    new EditVerb(SP_VERB_EDIT_PASTE_SIZE, "EditPasteSize", N_("Paste Si_ze"),
+                 N_("Scale selection to match the size of the copied object"), NULL),
+    new EditVerb(SP_VERB_EDIT_PASTE_SIZE_X, "EditPasteWidth", N_("Paste _Width"),
+                 N_("Scale selection horizontally to match the width of the copied object"), NULL),
+    new EditVerb(SP_VERB_EDIT_PASTE_SIZE_Y, "EditPasteHeight", N_("Paste _Height"),
+                 N_("Scale selection vertically to match the height of the copied object"), NULL),
+    new EditVerb(SP_VERB_EDIT_PASTE_SIZE_SEPARATELY, "EditPasteSizeSeparately", N_("Paste Size Separately"),
+                 N_("Scale each selected object to match the size of the copied object"), NULL),
+    new EditVerb(SP_VERB_EDIT_PASTE_SIZE_SEPARATELY_X, "EditPasteWidthSeparately", N_("Paste Width Separately"),
+                 N_("Scale each selected object horizontally to match the width of the copied object"), NULL),
+    new EditVerb(SP_VERB_EDIT_PASTE_SIZE_SEPARATELY_Y, "EditPasteHeightSeparately", N_("Paste Height Separately"),
+                 N_("Scale each selected object vertically to match the height of the copied object"), NULL),
     new EditVerb(SP_VERB_EDIT_PASTE_IN_PLACE, "EditPasteInPlace", N_("Paste _In Place"),
                  N_("Paste objects from clipboard to the original location"), "selection_paste_in_place"),
     new EditVerb(SP_VERB_EDIT_DELETE, "EditDelete", N_("_Delete"),
@@ -2201,6 +2234,8 @@ Verb *Verb::_base_verbs[] = {
 #endif
     new DialogVerb(SP_VERB_DIALOG_INPUT, "DialogInput", N_("_Input Devices..."),
                    N_("Configure extended input devices, such as a graphics tablet"), NULL),
+    new DialogVerb(SP_VERB_DIALOG_EXTENSIONEDITOR, "org.inkscape.dialogs.extensioneditor", N_("_Extensions..."),
+                   N_("Query information about extensions"), NULL),
 
     /* Help */
     new HelpVerb(SP_VERB_HELP_KEYS, "HelpKeys", N_("_Keys and Mouse"),