selection-chemistry.h revision 981b809bc6ed10a21e89444d9447e5475801874f
0N/A#ifndef __SP_SELECTION_CHEMISTRY_H__
0N/A#define __SP_SELECTION_CHEMISTRY_H__
0N/A
0N/A/*
911N/A * Miscellanous operations on selected items
810N/A *
0N/A * Authors:
0N/A * Lauris Kaplinski <lauris@kaplinski.com>
0N/A * Frank Felfe <innerspace@iname.com>
0N/A * bulia byak <buliabyak@users.sf.net>
0N/A *
0N/A * Copyright (C) 1999-2005 authors
0N/A * Copyright (C) 2001-2002 Ximian, Inc.
0N/A *
0N/A * Released under GNU GPL, read the file 'COPYING' for more information
0N/A */
0N/A
0N/A#include "forward.h"
0N/A#include "libnr/nr-forward.h"
0N/A
0N/Anamespace Inkscape { class Selection; }
0N/A
0N/Aclass SPCSSAttr;
0N/A
0N/Avoid sp_selection_delete();
0N/Avoid sp_selection_duplicate();
0N/Avoid sp_edit_clear_all();
0N/A
0N/Avoid sp_edit_select_all();
0N/Avoid sp_edit_select_all_in_all_layers ();
0N/Avoid sp_edit_invert ();
0N/Avoid sp_edit_invert_in_all_layers ();
0N/A
0N/Avoid sp_selection_clone();
493N/Avoid sp_selection_unlink();
493N/Avoid sp_select_clone_original ();
0N/A
0N/Avoid sp_selection_tile(bool apply = true);
493N/Avoid sp_selection_untile();
0N/A
911N/Avoid sp_selection_group();
911N/Avoid sp_selection_ungroup();
911N/A
911N/Avoid sp_selection_raise();
0N/Avoid sp_selection_raise_to_top();
493N/Avoid sp_selection_lower();
156N/Avoid sp_selection_lower_to_bottom();
0N/A
0N/ASPCSSAttr *take_style_from_item (SPItem *item);
0N/A
0N/Avoid sp_selection_cut();
0N/Avoid sp_selection_copy();
837N/Avoid sp_selection_paste(bool in_place);
837N/Avoid sp_selection_paste_style();
0N/A
355N/Avoid sp_selection_paste_size(bool apply_x, bool apply_y);
355N/Avoid sp_selection_paste_size_separately(bool apply_x, bool apply_y);
355N/A
355N/Avoid sp_selection_to_next_layer ();
837N/Avoid sp_selection_to_prev_layer ();
837N/A
0N/Avoid sp_selection_apply_affine(Inkscape::Selection *selection, NR::Matrix const &affine, bool set_i2d = true);
0N/Avoid sp_selection_remove_transform (void);
0N/Avoid sp_selection_scale_absolute (Inkscape::Selection *selection, double x0, double x1, double y0, double y1);
0N/Avoid sp_selection_scale_relative(Inkscape::Selection *selection, NR::Point const &align, NR::scale const &scale);
0N/Avoid sp_selection_rotate_relative (Inkscape::Selection *selection, NR::Point const &center, gdouble angle);
0N/Avoid sp_selection_skew_relative (Inkscape::Selection *selection, NR::Point const &align, double dx, double dy);
0N/Avoid sp_selection_move_relative (Inkscape::Selection *selection, NR::Point const &move);
0N/Avoid sp_selection_move_relative (Inkscape::Selection *selection, double dx, double dy);
0N/A
0N/Avoid sp_selection_rotate_90_cw (void);
0N/Avoid sp_selection_rotate_90_ccw (void);
837N/Avoid sp_selection_rotate (Inkscape::Selection *selection, gdouble angle);
837N/Avoid sp_selection_rotate_screen (Inkscape::Selection *selection, gdouble angle);
222N/A
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_get_export_hints (Inkscape::Selection *selection, const char **filename, float *xdpi, float *ydpi);
void sp_document_get_export_hints (SPDocument * doc, const char **filename, float *xdpi, float *ydpi);
void sp_selection_create_bitmap_copy ();
void sp_selection_set_mask(bool apply_clip_path, bool apply_to_layer);
void sp_selection_unset_mask(bool apply_clip_path);
void fit_canvas_to_selection(SPDesktop *desktop);
void fit_canvas_to_drawing(SPDocument *doc);
void fit_canvas_to_selection_or_drawing(SPDesktop *desktop);
void unlock_all(SPDesktop *dt);
void unlock_all_in_all_layers(SPDesktop *dt);
void unhide_all(SPDesktop *dt);
void unhide_all_in_all_layers(SPDesktop *dt);
GSList * sp_selection_get_clipboard();
/* 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