Inkscape
Vector Graphics Editor
|
Go to the source code of this file.
Enumerations | |
enum class | ObjectAlignTarget { LAST , FIRST , BIGGEST , SMALLEST , PAGE , DRAWING , SELECTION } |
enum | SortOrder { SelectionOrder , ZOrder , Rotate } |
Functions | |
void | object_align_on_canvas (InkscapeApplication *app) |
void | object_align (const Glib::VariantBase &value, InkscapeApplication *app) |
void | object_distribute (const Glib::VariantBase &value, InkscapeApplication *app) |
static bool | operator< (const Baseline &a, const Baseline &b) |
void | object_distribute_text (const Glib::VariantBase &value, InkscapeApplication *app) |
void | object_align_text (const Glib::VariantBase &value, InkscapeApplication *app) |
static bool | PositionCompare (const SPItem *a, const SPItem *b) |
void | exchange (Inkscape::Selection *selection, SortOrder order) |
void | randomize (Inkscape::Selection *selection) |
void | object_rearrange (const Glib::VariantBase &value, InkscapeApplication *app) |
void | object_remove_overlaps (const Glib::VariantBase &value, InkscapeApplication *app) |
void | add_actions_object_align (InkscapeApplication *app) |
Variables | |
const Glib::ustring | SECTION = NC_("Action Section", "Object") |
std::vector< std::vector< Glib::ustring > > | raw_data_object_align |
std::vector< std::vector< Glib::ustring > > | hint_data_object_align |
|
strong |
Enumerator | |
---|---|
LAST | |
FIRST | |
BIGGEST | |
SMALLEST | |
PAGE | |
DRAWING | |
SELECTION |
Definition at line 49 of file actions-object-align.cpp.
enum SortOrder |
Enumerator | |
---|---|
SelectionOrder | |
ZOrder | |
Rotate |
Definition at line 597 of file actions-object-align.cpp.
void add_actions_object_align | ( | InkscapeApplication * | app | ) |
Definition at line 824 of file actions-object-align.cpp.
References InkActionHintData::add_data(), InkActionExtraData::add_data(), Inkscape::Preferences::get(), InkscapeApplication::get_action_extra_data(), InkscapeApplication::get_action_hint_data(), InkscapeApplication::gio_app(), hint_data_object_align, object_align(), object_align_on_canvas(), object_align_text(), object_distribute(), object_distribute_text(), object_rearrange(), object_remove_overlaps(), and raw_data_object_align.
Referenced by InkscapeApplication::InkscapeApplication().
void exchange | ( | Inkscape::Selection * | selection, |
SortOrder | order | ||
) |
Definition at line 607 of file actions-object-align.cpp.
References Inkscape::ObjectSet::center(), delta, SPItem::getCenter(), item, items, Inkscape::ObjectSet::items(), SPItem::move_rel(), order, PositionCompare(), Rotate, SelectionOrder, and ZOrder.
Referenced by object_rearrange().
void object_align | ( | const Glib::VariantBase & | value, |
InkscapeApplication * | app | ||
) |
Definition at line 88 of file actions-object-align.cpp.
References BIGGEST, Inkscape::LivePathEffect::BOOL_OP, desktop, SPItem::desktopPreferredBounds(), SPObject::document, Inkscape::DocumentUndo::done(), DRAWING, SPDocument::ensureUpToDate(), FIRST, Inkscape::Preferences::get(), InkscapeApplication::get_active_document(), InkscapeApplication::get_active_selection(), Inkscape::Preferences::getBool(), Inkscape::Preferences::getString(), has_hidder_filter(), Inkscape::ObjectSet::HORIZONTAL, SPDesktop::is_yaxisdown(), item, LAST, SPItem::move_rel(), PAGE, SELECTION, show_output(), SMALLEST, Inkscape::ObjectSet::VERTICAL, Geom::X, and Geom::Y.
Referenced by add_actions_object_align().
void object_align_on_canvas | ( | InkscapeApplication * | app | ) |
Definition at line 60 of file actions-object-align.cpp.
References Inkscape::Preferences::get(), InkscapeApplication::gio_app(), Inkscape::Preferences::setBool(), and show_output().
Referenced by add_actions_object_align().
void object_align_text | ( | const Glib::VariantBase & | value, |
InkscapeApplication * | app | ||
) |
Definition at line 467 of file actions-object-align.cpp.
References Inkscape::Text::Layout::baselineAnchorPoint(), BIGGEST, SPItem::desktopPreferredBounds(), Inkscape::DocumentUndo::done(), DRAWING, FIRST, Inkscape::Preferences::get(), InkscapeApplication::get_active_document(), InkscapeApplication::get_active_selection(), Inkscape::Preferences::getString(), Inkscape::ObjectSet::HORIZONTAL, SPItem::i2dt_affine(), item, LAST, SPItem::move_rel(), PAGE, SELECTION, SMALLEST, te_get_layout(), Inkscape::ObjectSet::VERTICAL, Geom::X, and Geom::Y.
Referenced by add_actions_object_align().
void object_distribute | ( | const Glib::VariantBase & | value, |
InkscapeApplication * | app | ||
) |
Definition at line 272 of file actions-object-align.cpp.
References BBoxSort::anchor, Geom::are_near(), Inkscape::DocumentUndo::done(), Inkscape::Preferences::get(), InkscapeApplication::get_active_document(), InkscapeApplication::get_active_selection(), Inkscape::Preferences::getBool(), Inkscape::Preferences::getInt(), item, BBoxSort::item, SPItem::move_rel(), Inkscape::Preferences::setInt(), SP_CLONE_COMPENSATION_UNMOVED, Geom::X, and Geom::Y.
Referenced by add_actions_object_align().
void object_distribute_text | ( | const Glib::VariantBase & | value, |
InkscapeApplication * | app | ||
) |
Definition at line 410 of file actions-object-align.cpp.
References Inkscape::Text::Layout::baselineAnchorPoint(), Inkscape::DocumentUndo::done(), Geom::Point::get(), InkscapeApplication::get_active_document(), InkscapeApplication::get_active_selection(), SPItem::i2dt_affine(), item, te_get_layout(), Geom::X, and Geom::Y.
Referenced by add_actions_object_align().
void object_rearrange | ( | const Glib::VariantBase & | value, |
InkscapeApplication * | app | ||
) |
Definition at line 696 of file actions-object-align.cpp.
References Inkscape::DocumentUndo::done(), exchange(), Inkscape::Preferences::get(), InkscapeApplication::get_active_document(), InkscapeApplication::get_active_selection(), Inkscape::Preferences::getInt(), graphlayout(), items, randomize(), Rotate, SelectionOrder, Inkscape::Preferences::setInt(), show_output(), SP_CLONE_COMPENSATION_UNMOVED, unclump(), and ZOrder.
Referenced by add_actions_object_align().
void object_remove_overlaps | ( | const Glib::VariantBase & | value, |
InkscapeApplication * | app | ||
) |
Definition at line 736 of file actions-object-align.cpp.
References Inkscape::DocumentUndo::done(), Inkscape::Preferences::get(), InkscapeApplication::get_active_document(), InkscapeApplication::get_active_selection(), Inkscape::Preferences::getInt(), items, removeoverlap(), Inkscape::Preferences::setInt(), show_output(), and SP_CLONE_COMPENSATION_UNMOVED.
Referenced by add_actions_object_align().
|
static |
Definition at line 404 of file actions-object-align.cpp.
Definition at line 603 of file actions-object-align.cpp.
References sp_item_repr_compare_position().
Referenced by exchange().
void randomize | ( | Inkscape::Selection * | selection | ) |
Definition at line 641 of file actions-object-align.cpp.
References delta, SPItem::getCenter(), index, item, items, Inkscape::ObjectSet::items(), and SPItem::move_rel().
Referenced by object_rearrange().
std::vector<std::vector<Glib::ustring> > hint_data_object_align |
Definition at line 813 of file actions-object-align.cpp.
Referenced by add_actions_object_align().
std::vector<std::vector<Glib::ustring> > raw_data_object_align |
Definition at line 771 of file actions-object-align.cpp.
Referenced by add_actions_object_align().
const Glib::ustring SECTION = NC_("Action Section", "Object") |
Definition at line 769 of file actions-object-align.cpp.