selection-chemistry.h revision 3db4920631ecd4906f629a529c97684316d23055
1N/A#ifndef __SP_SELECTION_CHEMISTRY_H__
1N/A#define __SP_SELECTION_CHEMISTRY_H__
1N/A
1N/A/*
1N/A * Miscellanous operations on selected items
1N/A *
1N/A * Authors:
1N/A * Lauris Kaplinski <lauris@kaplinski.com>
1N/A * Frank Felfe <innerspace@iname.com>
1N/A * bulia byak <buliabyak@users.sf.net>
1N/A *
1N/A * Copyright (C) 1999-2005 authors
1N/A * Copyright (C) 2001-2002 Ximian, Inc.
1N/A *
1N/A * Released under GNU GPL, read the file 'COPYING' for more information
1N/A */
1N/A
1N/A#include "forward.h"
1N/A#include "libnr/nr-forward.h"
1N/A
1N/Anamespace Inkscape { class Selection; }
1N/A
1N/Aclass SPCSSAttr;
1N/A
1N/Avoid sp_selection_delete();
1N/Avoid sp_selection_duplicate();
1N/Avoid sp_edit_clear_all();
1N/A
1N/Avoid sp_edit_select_all();
1N/Avoid sp_edit_select_all_in_all_layers ();
1N/Avoid sp_edit_invert ();
1N/Avoid sp_edit_invert_in_all_layers ();
1N/A
1N/Avoid sp_selection_clone();
1N/Avoid sp_selection_unlink();
1N/Avoid sp_select_clone_original ();
1N/A
1N/Avoid sp_selection_tile(bool apply = true);
1N/Avoid sp_selection_untile();
1N/A
1N/Avoid sp_selection_group();
1N/Avoid sp_selection_ungroup();
1N/A
1N/Avoid sp_selection_raise();
1N/Avoid sp_selection_raise_to_top();
1N/Avoid sp_selection_lower();
1N/Avoid sp_selection_lower_to_bottom();
1N/A
1N/ASPCSSAttr *take_style_from_item (SPItem *item);
1N/A
1N/Avoid sp_selection_cut();
1N/Avoid sp_selection_copy();
1N/Avoid sp_selection_paste(bool in_place);
1N/Avoid sp_selection_paste_style();
1N/A
1N/Avoid sp_selection_paste_size(bool apply_x, bool apply_y);
1N/Avoid sp_selection_paste_size_separately(bool apply_x, bool apply_y);
1N/A
1N/Avoid sp_selection_to_next_layer ();
1N/Avoid sp_selection_to_prev_layer ();
1N/A
1N/Avoid sp_selection_apply_affine(Inkscape::Selection *selection, NR::Matrix const &affine, bool set_i2d = true);
1N/Avoid sp_selection_remove_transform (void);
1N/Avoid sp_selection_scale_absolute (Inkscape::Selection *selection, double x0, double x1, double y0, double y1);
1N/Avoid sp_selection_scale_relative(Inkscape::Selection *selection, NR::Point const &align, NR::scale const &scale);
1N/Avoid sp_selection_rotate_relative (Inkscape::Selection *selection, NR::Point const &center, gdouble angle);
1N/Avoid sp_selection_skew_relative (Inkscape::Selection *selection, NR::Point const &align, double dx, double dy);
1N/Avoid sp_selection_move_relative (Inkscape::Selection *selection, NR::Point const &move);
1N/Avoid sp_selection_move_relative (Inkscape::Selection *selection, double dx, double dy);
1N/A
1N/Avoid sp_selection_rotate_90_cw (void);
1N/Avoid sp_selection_rotate_90_ccw (void);
1N/Avoid sp_selection_rotate (Inkscape::Selection *selection, gdouble angle);
1N/Avoid sp_selection_rotate_screen (Inkscape::Selection *selection, gdouble angle);
1N/A
1N/Avoid sp_selection_scale (Inkscape::Selection *selection, gdouble grow);
1N/Avoid sp_selection_scale_screen (Inkscape::Selection *selection, gdouble grow_pixels);
1N/Avoid sp_selection_scale_times (Inkscape::Selection *selection, gdouble times);
1N/A
1N/Avoid sp_selection_move (gdouble dx, gdouble dy);
1N/Avoid sp_selection_move_screen (gdouble dx, gdouble dy);
1N/A
1N/Avoid sp_selection_item_next (void);
1N/Avoid sp_selection_item_prev (void);
1N/A
1N/Avoid scroll_to_show_item(SPDesktop *desktop, SPItem *item);
1N/A
1N/Avoid sp_undo (SPDesktop *desktop, SPDocument *doc);
1N/Avoid sp_redo (SPDesktop *desktop, SPDocument *doc);
1N/A
1N/Avoid sp_selection_get_export_hints (Inkscape::Selection *selection, const char **filename, float *xdpi, float *ydpi);
1N/Avoid sp_document_get_export_hints (SPDocument * doc, const char **filename, float *xdpi, float *ydpi);
1N/A
1N/Avoid sp_selection_create_bitmap_copy ();
1N/A
1N/Avoid sp_selection_set_mask(bool apply_clip_path, bool apply_to_layer);
1N/Avoid sp_selection_unset_mask(bool apply_clip_path);
1N/A
1N/Avoid fit_canvas_to_selection(SPDesktop *desktop);
1N/Avoid fit_canvas_to_drawing(SPDocument *doc);
1N/Avoid fit_canvas_to_selection_or_drawing(SPDesktop *desktop);
1N/A
1N/A/* selection cycling */
1N/A
1N/Atypedef enum
1N/A{
1N/A SP_CYCLE_SIMPLE,
1N/A SP_CYCLE_VISIBLE, /* cycle only visible items */
1N/A SP_CYCLE_FOCUS /* readjust visible area to view selected item */
1N/A} SPCycleType;
1N/A
1N/A/* fixme: This should be moved into preference repr */
1N/A#ifndef __SP_SELECTION_CHEMISTRY_C__
1N/Aextern SPCycleType SP_CYCLING;
1N/A#else
1N/ASPCycleType SP_CYCLING = SP_CYCLE_FOCUS;
1N/A#endif
1N/A
1N/A#endif
1N/A
1N/A
1N/A