From 03d492341f6ffc28d110ecc3a773acdbdcc1e125 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Wed, 30 Jul 2008 10:57:48 +0000 Subject: New LPE: Text label (bzr r6472) --- src/live_effects/effect.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/live_effects/effect.cpp') diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index d365880a6..701b46d36 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -63,6 +63,7 @@ #include "live_effects/lpe-ruler.h" #include "live_effects/lpe-boolops.h" #include "live_effects/lpe-interpolate.h" +#include "live_effects/lpe-text_label.h" // end of includes namespace Inkscape { @@ -98,6 +99,7 @@ const Util::EnumData LPETypeData[] = { {SPIRO, N_("Spiro spline"), "spiro"}, {CURVE_STITCH, N_("Stitch Sub-Paths"), "curvestitching"}, {TANGENT_TO_CURVE, N_("Tangent to curve"), "tangent_to_curve"}, + {TEXT_LABEL, N_("Text label"), "text_label"}, {VONKOCH, N_("VonKoch"), "vonkoch"}, }; const Util::EnumDataConverter LPETypeConverter(LPETypeData, sizeof(LPETypeData)/sizeof(*LPETypeData)); @@ -187,6 +189,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case INTERPOLATE: neweffect = static_cast ( new LPEInterpolate(lpeobj) ); break; + case TEXT_LABEL: + neweffect = static_cast ( new LPETextLabel(lpeobj) ); + break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; -- cgit v1.2.3