Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
selection-chemistry.h File Reference

Go to the source code of this file.

Namespaces

namespace  Inkscape
 Helper class to stream background task notifications as a series of messages.
 
namespace  Inkscape::LivePathEffect
 Live Path Effects code.
 
namespace  Inkscape::SelectionHelper
 

Enumerations

enum  SPSelectStrokeStyleType {
  SP_FILL_COLOR = 0 , SP_STROKE_COLOR = 1 , SP_STROKE_STYLE_WIDTH = 2 , SP_STROKE_STYLE_DASHES = 3 ,
  SP_STROKE_STYLE_MARKERS = 4 , SP_STROKE_STYLE_ALL = 5 , SP_STYLE_ALL = 6
}
 
enum  SPCycleType { SP_CYCLE_SIMPLE , SP_CYCLE_VISIBLE , SP_CYCLE_FOCUS }
 

Functions

void Inkscape::SelectionHelper::selectAll (SPDesktop *desktop)
 
void Inkscape::SelectionHelper::selectAllInAll (SPDesktop *desktop)
 
void Inkscape::SelectionHelper::selectNone (SPDesktop *desktop)
 
void Inkscape::SelectionHelper::selectSameFillStroke (SPDesktop *dt)
 
void Inkscape::SelectionHelper::selectSameFillColor (SPDesktop *dt)
 
void Inkscape::SelectionHelper::selectSameStrokeColor (SPDesktop *dt)
 
void Inkscape::SelectionHelper::selectSameStrokeStyle (SPDesktop *dt)
 
void Inkscape::SelectionHelper::selectSameObjectType (SPDesktop *dt)
 
void Inkscape::SelectionHelper::invert (SPDesktop *desktop)
 
void Inkscape::SelectionHelper::invertAllInAll (SPDesktop *desktop)
 
void Inkscape::SelectionHelper::reverse (SPDesktop *dt)
 
void Inkscape::SelectionHelper::fixSelection (SPDesktop *desktop)
 
void sp_edit_clear_all (Inkscape::Selection *selection)
 
void sp_edit_select_all (SPDesktop *desktop)
 
void sp_edit_select_all_in_all_layers (SPDesktop *desktop)
 
void sp_edit_invert (SPDesktop *desktop)
 
void sp_edit_invert_in_all_layers (SPDesktop *desktop)
 
SPCSSAttrtake_style_from_item (SPObject *object)
 
void sp_selection_paste (SPDesktop *desktop, bool in_place, bool on_page=false)
 
void sp_set_style_clipboard (SPCSSAttr *css)
 
void sp_selection_item_next (SPDesktop *desktop)
 
void sp_selection_item_prev (SPDesktop *desktop)
 
void sp_selection_next_patheffect_param (SPDesktop *dt)
 
void sp_select_same_fill_stroke_style (SPDesktop *desktop, gboolean fill, gboolean strok, gboolean style)
 
void sp_select_same_object_type (SPDesktop *desktop)
 
std::vector< SPItem * > sp_get_same_style (SPItem *sel, std::vector< SPItem * > &src, SPSelectStrokeStyleType type=SP_STYLE_ALL)
 
std::vector< SPItem * > sp_get_same_object_type (SPItem *sel, std::vector< SPItem * > &src)
 
void scroll_to_show_item (SPDesktop *desktop, SPItem *item)
 If item is not entirely visible then adjust visible area to centre on the centre on of item.
 
bool fit_canvas_to_drawing (SPDocument *, bool with_margins=false)
 
void fit_canvas_to_drawing (SPDesktop *)
 
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)
 
std::vector< SPItem * > get_all_items (SPObject *from, SPDesktop *desktop, bool onlyvisible, bool onlysensitive, bool ingroups, std::vector< SPItem * > const &exclude={})
 

Variables

SPCycleType SP_CYCLING
 

Enumeration Type Documentation

◆ SPCycleType

Enumerator
SP_CYCLE_SIMPLE 
SP_CYCLE_VISIBLE 
SP_CYCLE_FOCUS 

Definition at line 106 of file selection-chemistry.h.

◆ SPSelectStrokeStyleType

Enumerator
SP_FILL_COLOR 
SP_STROKE_COLOR 
SP_STROKE_STYLE_WIDTH 
SP_STROKE_STYLE_DASHES 
SP_STROKE_STYLE_MARKERS 
SP_STROKE_STYLE_ALL 
SP_STYLE_ALL 

Definition at line 76 of file selection-chemistry.h.

Function Documentation

◆ fit_canvas_to_drawing() [1/2]

void fit_canvas_to_drawing ( SPDesktop desktop)

◆ fit_canvas_to_drawing() [2/2]

bool fit_canvas_to_drawing ( SPDocument doc,
bool  with_margins 
)
Parameters
with_marginsmargins defined in the xml under <sodipodi:namedview> "fit-margin-..." attributes. See SPDocument::fitToRect.

WARNING: this is a page naive and it will break multi page documents.

Definition at line 4230 of file selection-chemistry.cpp.

References SPDocument::ensureUpToDate(), SPDocument::fitToRect(), SPDocument::getRoot(), and root.

Referenced by InkFileExportCmd::do_export_vector(), fit_canvas_drawing(), fit_canvas_to_drawing(), Inkscape::Extension::Internal::GdkpixbufInput::open(), and Inkscape::Extension::Internal::Svg::open().

◆ get_all_items()

std::vector< SPItem * > get_all_items ( SPObject from,
SPDesktop desktop,
bool  onlyvisible,
bool  onlysensitive,
bool  ingroups,
std::vector< SPItem * > const &  exclude = {} 
)

◆ scroll_to_show_item()

void scroll_to_show_item ( SPDesktop desktop,
SPItem item 
)

◆ sp_edit_clear_all()

◆ sp_edit_invert()

void sp_edit_invert ( SPDesktop desktop)

Definition at line 739 of file selection-chemistry.cpp.

References desktop, and sp_edit_select_all_full().

Referenced by Inkscape::SelectionHelper::invert().

◆ sp_edit_invert_in_all_layers()

void sp_edit_invert_in_all_layers ( SPDesktop desktop)

◆ sp_edit_select_all()

void sp_edit_select_all ( SPDesktop desktop)

Definition at line 729 of file selection-chemistry.cpp.

References desktop, and sp_edit_select_all_full().

Referenced by Inkscape::SelectionHelper::selectAll().

◆ sp_edit_select_all_in_all_layers()

void sp_edit_select_all_in_all_layers ( SPDesktop desktop)

◆ sp_get_same_object_type()

std::vector< SPItem * > sp_get_same_object_type ( SPItem sel,
std::vector< SPItem * > &  src 
)

Definition at line 2126 of file selection-chemistry.cpp.

References SPObject::cloned, item, and item_type_match().

Referenced by sp_select_same_object_type().

◆ sp_get_same_style()

◆ sp_select_same_fill_stroke_style()

◆ sp_select_same_object_type()

◆ sp_selection_item_next()

◆ sp_selection_item_prev()

◆ sp_selection_next_patheffect_param()

◆ sp_selection_paste()

void sp_selection_paste ( SPDesktop desktop,
bool  in_place,
bool  on_page = false 
)

◆ sp_set_style_clipboard()

void sp_set_style_clipboard ( SPCSSAttr css)

◆ take_style_from_item()

◆ unhide_all()

void unhide_all ( SPDesktop dt)

Definition at line 4302 of file selection-chemistry.cpp.

References process_all(), and unhide().

◆ unhide_all_in_all_layers()

void unhide_all_in_all_layers ( SPDesktop dt)

Definition at line 4306 of file selection-chemistry.cpp.

References process_all(), and unhide().

◆ unlock_all()

void unlock_all ( SPDesktop dt)

Definition at line 4294 of file selection-chemistry.cpp.

References process_all(), and unlock().

◆ unlock_all_in_all_layers()

void unlock_all_in_all_layers ( SPDesktop dt)

Definition at line 4298 of file selection-chemistry.cpp.

References process_all(), and unlock().

Variable Documentation

◆ SP_CYCLING