20#ifndef __GRADIENT_LOADER__
21#define __GRADIENT_LOADER__
25#include <tqstringlist.h>
29#include <koffice_export.h>
52 int gradientRepeatMethod;
54 TQPtrList<KoColorStop> colorStops;
57class KOPAINTER_EXPORT KoGradientManager
63 gradient_type_linear = 0,
64 gradient_type_radial = 1,
65 gradient_type_conic = 2
68 enum KoGradientInterpolation
70 interpolation_linear = 0,
71 interpolation_curved = 1,
72 interpolation_sine = 2,
73 interpolation_sphere_increasing = 3,
74 interpolation_sphere_decreasing = 4
77 enum KoGradientColorType
80 color_type_hsv_ccw = 1,
81 color_type_hsv_cw = 2,
86 enum KoGradientRepeatMethod
88 repeat_method_none = 0,
89 repeat_method_reflect = 1,
90 repeat_method_repeat = 2
96 KoGradient* loadGradient( const TQString& filename);
97 static TQStringList filters()
99 TQStringList filterList;
100 filterList << "*.kgr" << "*.svg" << "*.ggr";
105 KoGradient* loadKarbonGradient(TQFile* file);
106 KoGradient* loadChalkGradient(TQFile* file);
107 KoGradient* loadSvgGradient(TQFile* file);
108 KoGradient* parseKarbonGradient( const TQDomElement& element);
109 KoGradient* parseSvgGradient( const TQDomElement& element);
110 void parseSvgColor(TQColor &color, const TQString &s);
|