From 532f77b14a76fc04e6bdeca3625f9a55b5f11bdf Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Tue, 25 Oct 2016 00:58:43 +0200 Subject: CPPification: almost all sp_object_set_whatever and sp_selection_whatever global functions are now methods of ObjectSet*, with these additional benefits: - They can now act on any SelectionSet, not just the current selection; - Whenever possible, they don't need a desktop anymore and can run if called from GUI. I hope I did not break too many things in the process. *: So instead of callink sp_selection_move(desktop,x,y), you call myobjectset->move(x,y) (bzr r15189) --- src/path-chemistry.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/path-chemistry.h') diff --git a/src/path-chemistry.h b/src/path-chemistry.h index 7b9beaed8..3bcd0486a 100644 --- a/src/path-chemistry.h +++ b/src/path-chemistry.h @@ -18,6 +18,7 @@ class SPItem; namespace Inkscape { class Selection; +class ObjectSet; namespace XML { class Node; } // namespace XML @@ -25,13 +26,13 @@ class Node; typedef unsigned int guint32; -void sp_selected_path_combine (SPDesktop *desktop, bool skip_undo = false); -void sp_selected_path_break_apart (SPDesktop *desktop, bool skip_undo = false); -// interactive=true only has an effect if desktop != NULL, i.e. if a GUI is available -void sp_selected_path_to_curves (Inkscape::Selection *selection, SPDesktop *desktop, bool interactive = true); -void sp_selected_to_lpeitems(SPDesktop *desktop); +//void sp_selected_path_combine (SPDesktop *desktop, bool skip_undo = false); +//void sp_selected_path_break_apart (SPDesktop *desktop, bool skip_undo = false); + //interactive=true only has an effect if desktop != NULL, i.e. if a GUI is available +//void sp_selected_path_to_curves (Inkscape::Selection *selection, SPDesktop *desktop, bool interactive = true); +//void sp_selected_to_lpeitems(ObjectSet *selection); Inkscape::XML::Node *sp_selected_item_to_curved_repr(SPItem *item, guint32 text_grouping_policy); -void sp_selected_path_reverse (SPDesktop *desktop); +//void sp_selected_path_reverse (SPDesktop *desktop); bool sp_item_list_to_curves(const std::vector &items, std::vector &selected, std::vector &to_select, bool skip_all_lpeitems = false); #endif // SEEN_PATH_CHEMISTRY_H -- cgit v1.2.3