~ubuntu-branches/debian/experimental/inkscape/experimental

« back to all changes in this revision

Viewing changes to src/extension/init.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "db.h"
26
26
#include "internal/svgz.h"
27
27
#include "internal/ps.h"
28
 
#include "internal/pdf.h"
29
 
#ifdef WITH_GNOME_PRINT
30
 
# include "internal/gnome.h"
 
28
#ifdef HAVE_CAIRO_PDF
 
29
# include "internal/pdf-cairo.h"
31
30
#endif
32
31
#ifdef WIN32
33
32
# include "internal/win32.h"
 
33
# include "internal/emf-win32-inout.h"
 
34
# include "internal/emf-win32-print.h"
34
35
#endif
35
36
#include "internal/ps-out.h"
36
 
#include "internal/pdf-out.h"
 
37
#ifdef HAVE_CAIRO_PDF
 
38
# include "internal/cairo-pdf-out.h"
 
39
# include "internal/cairo-renderer-pdf-out.h"
 
40
# include "internal/cairo-png-out.h"
 
41
# include "internal/cairo-ps-out.h"
 
42
#endif
 
43
#ifdef HAVE_POPPLER
 
44
# include "internal/pdfinput/pdf-input.h"
 
45
#endif
 
46
#ifdef HAVE_POPPLER_GLIB
 
47
# include "internal/pdf-input-cairo.h"
 
48
#endif
37
49
#include "internal/pov-out.h"
38
50
#include "internal/odf.h"
39
51
#include "internal/latex-pstricks-out.h"
43
55
#include "internal/bluredge.h"
44
56
#include "internal/gimpgrad.h"
45
57
#include "internal/grid.h"
 
58
#ifdef WITH_LIBWPG
 
59
#include "internal/wpg-input.h"
 
60
#endif
46
61
#include "prefs-utils.h"
47
62
#include "io/sys.h"
48
63
 
 
64
#ifdef WITH_IMAGE_MAGICK
 
65
#include "internal/bitmap/adaptiveThreshold.h"
 
66
#include "internal/bitmap/addNoise.h"
 
67
#include "internal/bitmap/blur.h"
 
68
#include "internal/bitmap/channel.h"
 
69
#include "internal/bitmap/charcoal.h"
 
70
#include "internal/bitmap/colorize.h"
 
71
#include "internal/bitmap/contrast.h"
 
72
#include "internal/bitmap/cycleColormap.h"
 
73
#include "internal/bitmap/despeckle.h"
 
74
#include "internal/bitmap/edge.h"
 
75
#include "internal/bitmap/emboss.h"
 
76
#include "internal/bitmap/enhance.h"
 
77
#include "internal/bitmap/equalize.h"
 
78
#include "internal/bitmap/gaussianBlur.h"
 
79
#include "internal/bitmap/implode.h"
 
80
#include "internal/bitmap/level.h"
 
81
#include "internal/bitmap/levelChannel.h"
 
82
#include "internal/bitmap/medianFilter.h"
 
83
#include "internal/bitmap/modulate.h"
 
84
#include "internal/bitmap/negate.h"
 
85
#include "internal/bitmap/normalize.h"
 
86
#include "internal/bitmap/oilPaint.h"
 
87
#include "internal/bitmap/opacity.h"
 
88
#include "internal/bitmap/raise.h"
 
89
#include "internal/bitmap/reduceNoise.h"
 
90
#include "internal/bitmap/sample.h"
 
91
#include "internal/bitmap/shade.h"
 
92
#include "internal/bitmap/sharpen.h"
 
93
#include "internal/bitmap/solarize.h"
 
94
#include "internal/bitmap/spread.h"
 
95
#include "internal/bitmap/swirl.h"
 
96
//#include "internal/bitmap/threshold.h"
 
97
#include "internal/bitmap/unsharpmask.h"
 
98
#include "internal/bitmap/wave.h"
 
99
#endif /* WITH_IMAGE_MAGICK */
 
100
 
49
101
extern gboolean inkscape_app_use_gui( Inkscape::Application const *app );
50
102
 
51
103
namespace Inkscape {
105
157
    Internal::PsOutput::init();
106
158
    Internal::EpsOutput::init();
107
159
    Internal::PrintPS::init();
108
 
    Internal::PdfOutput::init();
109
 
    Internal::PrintPDF::init();
110
 
#ifdef WITH_GNOME_PRINT
111
 
    Internal::PrintGNOME::init();
 
160
#ifdef HAVE_CAIRO_PDF
 
161
    Internal::CairoPdfOutput::init();
 
162
    Internal::PrintCairoPDF::init();
 
163
    if (0) {
 
164
    Internal::CairoRendererPdfOutput::init();
 
165
    Internal::CairoRendererOutput::init();
 
166
    }
 
167
    Internal::CairoPsOutput::init();
 
168
#endif
 
169
#ifdef HAVE_POPPLER
 
170
    Internal::PdfInput::init();
 
171
#endif
 
172
#ifdef HAVE_POPPLER_GLIB
 
173
    if (1) {
 
174
    Internal::PdfInputCairo::init();
 
175
    }
112
176
#endif
113
177
#ifdef WIN32
114
178
    Internal::PrintWin32::init();
 
179
    Internal::PrintEmfWin32::init();
 
180
    Internal::EmfWin32::init();
115
181
#endif
116
182
    Internal::PovOutput::init();
117
183
    Internal::OdfOutput::init();
118
184
    Internal::PrintLatex::init();
119
185
    Internal::LatexOutput::init();
 
186
#ifdef WITH_LIBWPG
 
187
    Internal::WpgInput::init();
 
188
#endif
120
189
 
121
190
    /* Effects */
122
191
    Internal::BlurEdge::init();
123
192
    Internal::GimpGrad::init();
124
193
    Internal::Grid::init();
 
194
        
 
195
    /* Raster Effects */
 
196
#ifdef WITH_IMAGE_MAGICK
 
197
    Internal::Bitmap::AdaptiveThreshold::init();
 
198
    Internal::Bitmap::AddNoise::init();
 
199
    Internal::Bitmap::Blur::init();
 
200
    Internal::Bitmap::Channel::init();
 
201
    Internal::Bitmap::Charcoal::init();
 
202
    Internal::Bitmap::Colorize::init();
 
203
    Internal::Bitmap::Contrast::init();
 
204
    Internal::Bitmap::CycleColormap::init();
 
205
    Internal::Bitmap::Edge::init();
 
206
    Internal::Bitmap::Despeckle::init();
 
207
    Internal::Bitmap::Emboss::init();
 
208
    Internal::Bitmap::Enhance::init();
 
209
    Internal::Bitmap::Equalize::init();
 
210
    Internal::Bitmap::GaussianBlur::init();
 
211
    Internal::Bitmap::Implode::init();
 
212
    Internal::Bitmap::Level::init();
 
213
    Internal::Bitmap::LevelChannel::init();
 
214
    Internal::Bitmap::MedianFilter::init();
 
215
    Internal::Bitmap::Modulate::init();
 
216
    Internal::Bitmap::Negate::init();
 
217
    Internal::Bitmap::Normalize::init();
 
218
    Internal::Bitmap::OilPaint::init();
 
219
    Internal::Bitmap::Opacity::init();
 
220
    Internal::Bitmap::Raise::init();
 
221
    Internal::Bitmap::ReduceNoise::init();
 
222
    Internal::Bitmap::Sample::init();
 
223
    Internal::Bitmap::Shade::init();
 
224
    Internal::Bitmap::Sharpen::init();
 
225
    Internal::Bitmap::Solarize::init();
 
226
    Internal::Bitmap::Spread::init();
 
227
    Internal::Bitmap::Swirl::init();
 
228
    //Internal::Bitmap::Threshold::init();
 
229
    Internal::Bitmap::Unsharpmask::init();
 
230
    Internal::Bitmap::Wave::init();
 
231
#endif /* WITH_IMAGE_MAGICK */
125
232
 
126
233
    /* Load search path for extensions */
127
234
    if (Inkscape::Extension::Extension::search_path.size() == 0)
226
333
 
227
334
    Inkscape::Extension::Extension::error_file_open();
228
335
    while (count != 0) {
229
 
        // printf("Check extensions pass %d\n", pass++);
230
336
        count = 0;
231
337
        db.foreach(check_extensions_internal, (gpointer)&count);
232
338
        if (count != 0) anyfail = true;