Inkscape
Vector Graphics Editor
|
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 } |
Variables | |
SPCycleType | SP_CYCLING |
enum SPCycleType |
Enumerator | |
---|---|
SP_CYCLE_SIMPLE | |
SP_CYCLE_VISIBLE | |
SP_CYCLE_FOCUS |
Definition at line 106 of file selection-chemistry.h.
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.
void fit_canvas_to_drawing | ( | SPDesktop * | desktop | ) |
Definition at line 4246 of file selection-chemistry.cpp.
References desktop, Inkscape::DocumentUndo::done(), fit_canvas_to_drawing(), and SPDesktop::getDocument().
bool fit_canvas_to_drawing | ( | SPDocument * | doc, |
bool | with_margins | ||
) |
with_margins | margins 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().
std::vector< SPItem * > get_all_items | ( | SPObject * | from, |
SPDesktop * | desktop, | ||
bool | onlyvisible, | ||
bool | onlysensitive, | ||
bool | ingroups, | ||
std::vector< SPItem * > const & | exclude = {} |
||
) |
Definition at line 662 of file selection-chemistry.cpp.
References desktop, and get_all_items_recursive().
Referenced by Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::remove_filter(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::select_filter_elements(), sp_edit_select_all_full(), sp_select_same_fill_stroke_style(), and sp_select_same_object_type().
If item is not entirely visible then adjust visible area to centre on the centre on of item.
Definition at line 2513 of file selection-chemistry.cpp.
References Geom::GenericOptRect< C >::contains(), SPDesktop::d2w(), desktop, SPItem::desktopVisualBounds(), SPDesktop::get_display_area(), item, and SPDesktop::scroll_relative().
Referenced by Inkscape::ObjectSet::cloneOriginal(), Inkscape::UI::Dialog::Find::onAction(), sp_selection_item_next(), and sp_selection_item_prev().
void sp_edit_clear_all | ( | Inkscape::Selection * | selection | ) |
Definition at line 613 of file selection-chemistry.cpp.
References Inkscape::ObjectSet::clear(), Inkscape::LayerManager::currentLayer(), SPObject::deleteObject(), Inkscape::ObjectSet::desktop(), desktop, Inkscape::DocumentUndo::done(), SPDesktop::getDocument(), item, items, and SPDesktop::layerManager().
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().
void sp_edit_invert_in_all_layers | ( | SPDesktop * | desktop | ) |
Definition at line 744 of file selection-chemistry.cpp.
References desktop, and sp_edit_select_all_full().
Referenced by Inkscape::SelectionHelper::invertAllInAll().
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().
void sp_edit_select_all_in_all_layers | ( | SPDesktop * | desktop | ) |
Definition at line 734 of file selection-chemistry.cpp.
References desktop, and sp_edit_select_all_full().
Referenced by Inkscape::SelectionHelper::selectAllInAll().
Definition at line 2126 of file selection-chemistry.cpp.
References SPObject::cloned, item, and item_type_match().
Referenced by sp_select_same_object_type().
std::vector< SPItem * > sp_get_same_style | ( | SPItem * | sel, |
std::vector< SPItem * > & | src, | ||
SPSelectStrokeStyleType | type = SP_STYLE_ALL |
||
) |
Definition at line 2143 of file selection-chemistry.cpp.
References len, SPStyle::marker, SPStyle::marker_ptrs, objects_query_strokewidth(), SP_FILL_COLOR, sp_get_same_fill_or_stroke_color(), SP_STROKE_COLOR, SP_STROKE_STYLE_ALL, SP_STROKE_STYLE_DASHES, SP_STROKE_STYLE_MARKERS, SP_STROKE_STYLE_WIDTH, SP_STYLE_ALL, SPStyle::stroke_dasharray, SPStyle::stroke_width, SPObject::style, and SPIString::value().
Referenced by sp_select_same_fill_stroke_style().
void sp_select_same_fill_stroke_style | ( | SPDesktop * | desktop, |
gboolean | fill, | ||
gboolean | strok, | ||
gboolean | style | ||
) |
Definition at line 1912 of file selection-chemistry.cpp.
References Inkscape::Selection::activeContext(), Inkscape::ObjectSet::clear(), Inkscape::LayerManager::currentRoot(), desktop, fill, Inkscape::Preferences::get(), get_all_items(), Inkscape::Preferences::getBool(), Inkscape::Preferences::getInt(), SPDesktop::getSelection(), items, Inkscape::ObjectSet::items(), SPDesktop::layerManager(), PREFS_SELECTION_ALL, PREFS_SELECTION_LAYER, PREFS_SELECTION_LAYER_RECURSIVE, root, Inkscape::ObjectSet::setList(), SP_FILL_COLOR, sp_get_same_style(), SP_STROKE_COLOR, SP_STROKE_STYLE_ALL, and stroke.
Referenced by Inkscape::SelectionHelper::selectSameFillColor(), Inkscape::SelectionHelper::selectSameFillStroke(), Inkscape::SelectionHelper::selectSameStrokeColor(), and Inkscape::SelectionHelper::selectSameStrokeStyle().
void sp_select_same_object_type | ( | SPDesktop * | desktop | ) |
Definition at line 1984 of file selection-chemistry.cpp.
References Inkscape::ObjectSet::clear(), Inkscape::LayerManager::currentRoot(), desktop, Inkscape::Preferences::get(), get_all_items(), Inkscape::Preferences::getBool(), SPDesktop::getSelection(), items, Inkscape::ObjectSet::items(), SPDesktop::layerManager(), Inkscape::ObjectSet::setList(), and sp_get_same_object_type().
Referenced by Inkscape::SelectionHelper::selectSameObjectType().
void sp_selection_item_next | ( | SPDesktop * | desktop | ) |
Definition at line 2425 of file selection-chemistry.cpp.
References Inkscape::Selection::activeContext(), Inkscape::LayerManager::currentRoot(), desktop, Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), Inkscape::Preferences::getInt(), SPDesktop::getSelection(), item, Inkscape::ObjectSet::items(), SPDesktop::layerManager(), PREFS_SELECTION_ALL, PREFS_SELECTION_LAYER, PREFS_SELECTION_LAYER_RECURSIVE, root, scroll_to_show_item(), Inkscape::Selection::set(), SP_CYCLE_FOCUS, SP_CYCLE_VISIBLE, and SP_CYCLING.
void sp_selection_item_prev | ( | SPDesktop * | desktop | ) |
Definition at line 2454 of file selection-chemistry.cpp.
References Inkscape::Selection::activeContext(), Inkscape::LayerManager::currentRoot(), desktop, Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), SPDesktop::getDocument(), Inkscape::Preferences::getInt(), SPDesktop::getSelection(), item, Inkscape::ObjectSet::items(), SPDesktop::layerManager(), PREFS_SELECTION_ALL, PREFS_SELECTION_LAYER, PREFS_SELECTION_LAYER_RECURSIVE, root, scroll_to_show_item(), Inkscape::Selection::set(), SP_CYCLE_FOCUS, SP_CYCLE_VISIBLE, and SP_CYCLING.
void sp_selection_next_patheffect_param | ( | SPDesktop * | dt | ) |
Definition at line 2484 of file selection-chemistry.cpp.
References Inkscape::MessageStack::flash(), SPDesktop::getSelection(), Inkscape::ObjectSet::isEmpty(), item, SPDesktop::messageStack(), Inkscape::ObjectSet::singleItem(), and Inkscape::WARNING_MESSAGE.
Referenced by path_effect_parameter_next().
void sp_selection_paste | ( | SPDesktop * | desktop, |
bool | in_place, | ||
bool | on_page = false |
||
) |
Definition at line 1285 of file selection-chemistry.cpp.
References desktop, Inkscape::DocumentUndo::done(), Inkscape::UI::ClipboardManager::get(), SPDesktop::getDocument(), and Inkscape::UI::ClipboardManager::paste().
Referenced by paste(), paste_in_place(), and paste_on_page().
void sp_set_style_clipboard | ( | SPCSSAttr * | css | ) |
Definition at line 1232 of file selection-chemistry.cpp.
References css, Geom::Affine::descrim(), SPObject::firstChild(), SPObject::getNext(), SPItem::i2doc_affine(), item, sp_css_attr_from_object(), sp_css_attr_scale(), sp_css_attr_unset_blacklist(), sp_css_attr_unset_text(), sp_repr_css_attr_unref(), sp_repr_css_merge(), and SP_STYLE_FLAG_IFSET().
Referenced by Inkscape::UI::Tools::get_style_at_cursor(), and Inkscape::UI::Dialog::StyleFromSelectionToTool().
void unhide_all | ( | SPDesktop * | dt | ) |
Definition at line 4302 of file selection-chemistry.cpp.
References process_all(), and unhide().
void unhide_all_in_all_layers | ( | SPDesktop * | dt | ) |
Definition at line 4306 of file selection-chemistry.cpp.
References process_all(), and unhide().
void unlock_all | ( | SPDesktop * | dt | ) |
Definition at line 4294 of file selection-chemistry.cpp.
References process_all(), and unlock().
void unlock_all_in_all_layers | ( | SPDesktop * | dt | ) |
Definition at line 4298 of file selection-chemistry.cpp.
References process_all(), and unlock().
|
extern |
Definition at line 103 of file selection-chemistry.cpp.
Referenced by Inkscape::ObjectSet::cloneOriginal(), sp_selection_item_next(), and sp_selection_item_prev().