From de1626183e28848a36fe293cea05f256d7ba4086 Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Thu, 25 Aug 2011 21:35:19 +0200 Subject: Filters. Removing unecessary height, width, x and y attributes in some filters elements. Extensions. New Text>Extract extension. Translations. Translation template and file list update. (bzr r10580) --- src/extension/internal/filter/bumps.h | 2 +- src/extension/internal/filter/color.h | 24 ++++++++++++------------ src/extension/internal/filter/image.h | 2 +- src/extension/internal/filter/paint.h | 16 ++++++++-------- src/extension/internal/filter/shadows.h | 10 +++++----- src/extension/internal/filter/transparency.h | 8 ++++---- 6 files changed, 31 insertions(+), 31 deletions(-) (limited to 'src') diff --git a/src/extension/internal/filter/bumps.h b/src/extension/internal/filter/bumps.h index f002c8b37..9f971b0de 100644 --- a/src/extension/internal/filter/bumps.h +++ b/src/extension/internal/filter/bumps.h @@ -242,7 +242,7 @@ Bump::get_filter_text (Inkscape::Extension::Extension * ext) } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" diff --git a/src/extension/internal/filter/color.h b/src/extension/internal/filter/color.h index ecdf25f39..0f892365c 100644 --- a/src/extension/internal/filter/color.h +++ b/src/extension/internal/filter/color.h @@ -107,7 +107,7 @@ Brilliance::get_filter_text (Inkscape::Extension::Extension * ext) } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n", brightness.str().c_str(), sat.str().c_str(), sat.str().c_str(), lightness.str().c_str(), sat.str().c_str(), brightness.str().c_str(), @@ -211,7 +211,7 @@ ChannelPaint::get_filter_text (Inkscape::Extension::Extension * ext) } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" @@ -280,7 +280,7 @@ ColorShift::get_filter_text (Inkscape::Extension::Extension * ext) sat << ext->get_param_float("sat"); _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n", shift.str().c_str(), sat.str().c_str() ); @@ -385,7 +385,7 @@ Colorize::get_filter_text (Inkscape::Extension::Extension * ext) } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" @@ -473,7 +473,7 @@ ComponentTransfer::get_filter_text (Inkscape::Extension::Extension * ext) << "\n"; } _filter = g_strdup_printf( - "\n" + "\n" "\n" "%s\n" "\n" @@ -590,7 +590,7 @@ Duochrome::get_filter_text (Inkscape::Extension::Extension * ext) } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" @@ -777,7 +777,7 @@ FadeToBW::get_filter_text (Inkscape::Extension::Extension * ext) } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n", level.str().c_str(), wlevel.str().c_str(), level.str().c_str(), wlevel.str().c_str(), @@ -871,7 +871,7 @@ Greyscale::get_filter_text (Inkscape::Extension::Extension * ext) } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n", line.str().c_str(), line.str().c_str(), line.str().c_str(), transparency.str().c_str() ); return _filter; @@ -1069,7 +1069,7 @@ Lighting::get_filter_text (Inkscape::Extension::Extension * ext) offset << ext->get_param_float("offset"); _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" @@ -1372,7 +1372,7 @@ Quadritone::get_filter_text (Inkscape::Extension::Extension * ext) blend2 << ext->get_param_enum("blend2"); _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" @@ -1452,7 +1452,7 @@ Solarize::get_filter_text (Inkscape::Extension::Extension * ext) } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" @@ -1607,7 +1607,7 @@ Tritone::get_filter_text (Inkscape::Extension::Extension * ext) } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" diff --git a/src/extension/internal/filter/image.h b/src/extension/internal/filter/image.h index b0a6367e1..60e1a1665 100644 --- a/src/extension/internal/filter/image.h +++ b/src/extension/internal/filter/image.h @@ -97,7 +97,7 @@ EdgeDetect::get_filter_text (Inkscape::Extension::Extension * ext) } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n", matrix.str().c_str(), inverted.str().c_str(), level.str().c_str()); diff --git a/src/extension/internal/filter/paint.h b/src/extension/internal/filter/paint.h index 678c0c08f..cf0c869a6 100644 --- a/src/extension/internal/filter/paint.h +++ b/src/extension/internal/filter/paint.h @@ -183,7 +183,7 @@ Chromolitho::get_filter_text (Inkscape::Extension::Extension * ext) graincol << "0"; _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" @@ -274,7 +274,7 @@ CrossEngraving::get_filter_text (Inkscape::Extension::Extension * ext) trans << "blend"; _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" @@ -434,7 +434,7 @@ Drawing::get_filter_text (Inkscape::Extension::Extension * ext) ios << "flood2"; _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" @@ -544,7 +544,7 @@ Electrize::get_filter_text (Inkscape::Extension::Extension * ext) } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" @@ -638,7 +638,7 @@ NeonDraw::get_filter_text (Inkscape::Extension::Extension * ext) } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" @@ -804,7 +804,7 @@ PointEngraving::get_filter_text (Inkscape::Extension::Extension * ext) iop << "flood1"; _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" @@ -942,7 +942,7 @@ Posterize::get_filter_text (Inkscape::Extension::Extension * ext) antialias << "0.01"; _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" @@ -1018,7 +1018,7 @@ PosterizeBasic::get_filter_text (Inkscape::Extension::Extension * ext) transf << " 1"; _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" diff --git a/src/extension/internal/filter/shadows.h b/src/extension/internal/filter/shadows.h index a1a82111d..b816a3e10 100644 --- a/src/extension/internal/filter/shadows.h +++ b/src/extension/internal/filter/shadows.h @@ -63,8 +63,8 @@ public: "\n" "<_item value=\"outer\">" N_("Outer") "\n" "<_item value=\"inner\">" N_("Inner") "\n" - "<_item value=\"innercut\">" N_("Inner cutout") "\n" "<_item value=\"outercut\">" N_("Outer cutout") "\n" + "<_item value=\"innercut\">" N_("Inner cutout") "\n" "\n" "\n" "\n" @@ -116,7 +116,7 @@ ColorizableDropShadow::get_filter_text (Inkscape::Extension::Extension * ext) b << ((color >> 8) & 0xff); // Select object or user-defined color - if ((g_ascii_strcasecmp("outercut", type) == 0)) { + if ((g_ascii_strcasecmp("innercut", type) == 0)) { if (ext->get_param_bool("objcolor")) { comp2in1 << "SourceGraphic"; comp2in2 << "offset"; @@ -145,12 +145,12 @@ ColorizableDropShadow::get_filter_text (Inkscape::Extension::Extension * ext) comp2op << "atop"; comp2in1 << "offset"; comp2in2 << "SourceGraphic"; - } else if ((g_ascii_strcasecmp("innercut", type) == 0)) { + } else if ((g_ascii_strcasecmp("outercut", type) == 0)) { comp1op << "in"; comp2op << "out"; comp2in1 << "offset"; comp2in2 << "SourceGraphic"; - } else { //outercut + } else { //innercut comp1op << "out"; comp1in1 << "flood"; comp1in2 << "SourceGraphic"; @@ -158,7 +158,7 @@ ColorizableDropShadow::get_filter_text (Inkscape::Extension::Extension * ext) } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n" diff --git a/src/extension/internal/filter/transparency.h b/src/extension/internal/filter/transparency.h index add50b169..79657749a 100644 --- a/src/extension/internal/filter/transparency.h +++ b/src/extension/internal/filter/transparency.h @@ -170,7 +170,7 @@ ChannelTransparency::get_filter_text (Inkscape::Extension::Extension * ext) } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n", red.str().c_str(), green.str().c_str(), blue.str().c_str(), alpha.str().c_str(), @@ -236,16 +236,16 @@ LightEraser::get_filter_text (Inkscape::Extension::Extension * ext) expand << (ext->get_param_float("expand") * 0.2125) << " " << (ext->get_param_float("expand") * 0.7154) << " " << (ext->get_param_float("expand") * 0.0721); - erode << (-ext->get_param_float("erode") * 720 / 1000); + erode << (-ext->get_param_float("erode")); } else { expand << (-ext->get_param_float("expand") * 0.2125) << " " << (-ext->get_param_float("expand") * 0.7154) << " " << (-ext->get_param_float("expand") * 0.0721); - erode << (ext->get_param_float("erode") * 720 / 1000); + erode << ext->get_param_float("erode"); } _filter = g_strdup_printf( - "\n" + "\n" "\n" "\n" "\n", expand.str().c_str(), erode.str().c_str(), opacity.str().c_str()); -- cgit v1.2.3