summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.h
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-01-16 02:36:01 +0000
committermental <mental@users.sourceforge.net>2006-01-16 02:36:01 +0000
commit179fa413b047bede6e32109e2ce82437c5fb8d34 (patch)
treea5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/selection-chemistry.h
downloadinkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz
inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/selection-chemistry.h')
-rw-r--r--src/selection-chemistry.h108
1 files changed, 108 insertions, 0 deletions
diff --git a/src/selection-chemistry.h b/src/selection-chemistry.h
new file mode 100644
index 000000000..9fbeaa9ec
--- /dev/null
+++ b/src/selection-chemistry.h
@@ -0,0 +1,108 @@
+#ifndef __SP_SELECTION_CHEMISTRY_H__
+#define __SP_SELECTION_CHEMISTRY_H__
+
+/*
+ * Miscellanous operations on selected items
+ *
+ * Authors:
+ * Lauris Kaplinski <lauris@kaplinski.com>
+ * Frank Felfe <innerspace@iname.com>
+ * bulia byak <buliabyak@users.sf.net>
+ *
+ * Copyright (C) 1999-2005 authors
+ * Copyright (C) 2001-2002 Ximian, Inc.
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#include "forward.h"
+#include "libnr/nr-forward.h"
+
+namespace Inkscape { class Selection; }
+
+class SPCSSAttr;
+
+void sp_selection_delete();
+void sp_selection_duplicate();
+void sp_edit_clear_all();
+
+void sp_edit_select_all();
+void sp_edit_select_all_in_all_layers ();
+void sp_edit_invert ();
+void sp_edit_invert_in_all_layers ();
+
+void sp_selection_clone();
+void sp_selection_unlink();
+void sp_select_clone_original ();
+
+void sp_selection_tile(bool apply = true);
+void sp_selection_untile();
+
+void sp_selection_group();
+void sp_selection_ungroup();
+
+void sp_selection_raise();
+void sp_selection_raise_to_top();
+void sp_selection_lower();
+void sp_selection_lower_to_bottom();
+
+SPCSSAttr *take_style_from_item (SPItem *item);
+
+void sp_selection_cut();
+void sp_selection_copy();
+void sp_selection_paste(bool in_place);
+void sp_selection_paste_style();
+
+void sp_selection_to_next_layer ();
+void sp_selection_to_prev_layer ();
+
+void sp_selection_apply_affine(Inkscape::Selection *selection, NR::Matrix const &affine, bool set_i2d = true);
+void sp_selection_remove_transform (void);
+void sp_selection_scale_absolute (Inkscape::Selection *selection, double x0, double x1, double y0, double y1);
+void sp_selection_scale_relative(Inkscape::Selection *selection, NR::Point const &align, NR::scale const &scale);
+void sp_selection_rotate_relative (Inkscape::Selection *selection, NR::Point const &center, gdouble angle);
+void sp_selection_skew_relative (Inkscape::Selection *selection, NR::Point const &align, double dx, double dy);
+void sp_selection_move_relative (Inkscape::Selection *selection, NR::Point const &move);
+void sp_selection_move_relative (Inkscape::Selection *selection, double dx, double dy);
+
+void sp_selection_rotate_90_cw (void);
+void sp_selection_rotate_90_ccw (void);
+void sp_selection_rotate (Inkscape::Selection *selection, gdouble angle);
+void sp_selection_rotate_screen (Inkscape::Selection *selection, gdouble angle);
+
+void sp_selection_scale (Inkscape::Selection *selection, gdouble grow);
+void sp_selection_scale_screen (Inkscape::Selection *selection, gdouble grow_pixels);
+void sp_selection_scale_times (Inkscape::Selection *selection, gdouble times);
+
+void sp_selection_move (gdouble dx, gdouble dy);
+void sp_selection_move_screen (gdouble dx, gdouble dy);
+
+void sp_selection_item_next (void);
+void sp_selection_item_prev (void);
+
+void scroll_to_show_item(SPDesktop *desktop, SPItem *item);
+
+void sp_undo (SPDesktop *desktop, SPDocument *doc);
+void sp_redo (SPDesktop *desktop, SPDocument *doc);
+
+void sp_selection_create_bitmap_copy ();
+
+/* selection cycling */
+
+typedef enum
+{
+ SP_CYCLE_SIMPLE,
+ SP_CYCLE_VISIBLE, /* cycle only visible items */
+ SP_CYCLE_FOCUS /* readjust visible area to view selected item */
+} SPCycleType;
+
+/* fixme: This should be moved into preference repr */
+#ifndef __SP_SELECTION_CHEMISTRY_C__
+extern SPCycleType SP_CYCLING;
+#else
+SPCycleType SP_CYCLING = SP_CYCLE_FOCUS;
+#endif
+
+#endif
+
+