X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsp-lpe-item.h;h=d1baa4309a3f2061f3b894985b08fa4f8ef8a6de;hb=0dc33d4ce43e0bb49c63aa53b826ec4a1ff68e28;hp=4823390defff8909742fd5fa8559314998105423;hpb=8fd48ac0af8adc1c726581baee9b8de8b493f603;p=inkscape.git diff --git a/src/sp-lpe-item.h b/src/sp-lpe-item.h index 4823390de..d1baa4309 100644 --- a/src/sp-lpe-item.h +++ b/src/sp-lpe-item.h @@ -15,7 +15,6 @@ */ #include "sp-item.h" -#include "display/display-forward.h" #include @@ -26,16 +25,22 @@ #define SP_IS_LPE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_LPE_ITEM)) struct LivePathEffectObject; +struct SPCurve; + namespace Inkscape{ +namespace Display { + class TemporaryItem; +} namespace LivePathEffect{ class LPEObjectReference; class Effect; -}; -}; +} +} typedef std::list PathEffectList; -struct SPLPEItem : public SPItem { +class SPLPEItem : public SPItem { +public: int path_effects_enabled; PathEffectList* path_effect_list; @@ -43,6 +48,9 @@ struct SPLPEItem : public SPItem { Inkscape::LivePathEffect::LPEObjectReference* current_path_effect; std::vector lpe_helperpaths; + + void replacePathEffects( std::vector const old_lpeobjs, + std::vector const new_lpeobjs ); }; struct SPLPEItemClass { @@ -57,8 +65,7 @@ void sp_lpe_item_update_patheffect (SPLPEItem *lpeitem, bool wholetree, bool wri bool sp_lpe_item_perform_path_effect(SPLPEItem *lpeitem, SPCurve *curve); void sp_lpe_item_add_path_effect(SPLPEItem *lpeitem, gchar *value, bool reset); void sp_lpe_item_add_path_effect(SPLPEItem *lpeitem, LivePathEffectObject * new_lpeobj); -void sp_lpe_item_replace_path_effect(SPLPEItem *lpeitem, LivePathEffectObject * old_lpeobj, - LivePathEffectObject * new_lpeobj); +bool sp_lpe_item_fork_path_effects_if_necessary(SPLPEItem *lpeitem, unsigned int nr_of_allowed_users = 1); void sp_lpe_item_remove_all_path_effects(SPLPEItem *lpeitem, bool keep_paths); void sp_lpe_item_remove_current_path_effect(SPLPEItem *lpeitem, bool keep_paths); void sp_lpe_item_down_current_path_effect(SPLPEItem *lpeitem); @@ -86,4 +93,4 @@ bool sp_lpe_item_path_effects_enabled(SPLPEItem *lpeitem); fill-column:99 End: */ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :