Searched defs:filename (Results 1 - 25 of 50) sorted by relevance

12

/inkscape/src/extension/internal/
H A Dcairo-png-out.cpp52 png_render_document_to_file(SPDocument *doc, gchar const *filename) argument
74 ctx->saveAsPng(filename);
88 \brief This function calls the output module with the filename
93 void CairoRendererOutput::save(Inkscape::Extension::Output * /*mod*/, SPDocument *doc, gchar const *filename) argument
95 if (!png_render_document_to_file(doc, filename)) {
H A Dlatex-pstricks-out.cpp49 void LatexOutput::save(Inkscape::Extension::Output * /*mod2*/, SPDocument *doc, gchar const *filename) argument
57 mod->set_param_string("destination", filename);
H A Dsvg.cpp162 g_warning( "Error converting filename to locale encoding.");
185 \brief This function takes in a filename of a SVG document and
221 \param uri The filename to save the file to.
239 Svg::save(Inkscape::Extension::Output *mod, SPDocument *doc, gchar const *filename) argument
242 g_return_if_fail(filename != NULL);
270 if (!sp_repr_save_rebased_file(rdoc, filename, SP_SVG_NS_URI,
271 doc->getBase(), filename)) {
H A Dgimpgrad.cpp99 \param filename The filename of the gradient to be opened
132 GimpGrad::open (Inkscape::Extension::Input */*module*/, gchar const *filename) argument
134 Inkscape::IO::dump_fopen_call(filename, "I");
135 FILE *gradient = Inkscape::IO::fopen_utf8name(filename, "r");
H A Dcairo-ps-out.cpp68 ps_print_document_to_file(SPDocument *doc, gchar const *filename, unsigned int level, bool texttopath, bool omittext, argument
104 bool ret = ctx->setPsTarget(filename);
124 \brief This function calls the output module with the filename
127 \param filename Filename to save to (probably will end in .ps)
130 CairoPsOutput::save(Inkscape::Extension::Output *mod, SPDocument *doc, gchar const *filename) argument
190 final_name = g_strdup_printf("> %s", filename);
204 ret = latex_render_document_text_to_file(doc, filename, new_exportId, new_areaDrawing, new_areaPage, 0., false);
213 \brief This function calls the output module with the filename
216 \param filename Filename to save to (probably will end in .ps)
219 CairoEpsOutput::save(Inkscape::Extension::Output *mod, SPDocument *doc, gchar const *filename) argument
[all...]
H A Dcairo-renderer-pdf-out.cpp60 pdf_render_document_to_file(SPDocument *doc, gchar const *filename, unsigned int level, argument
101 bool ret = ctx->setPdfTarget (filename);
120 \brief This function calls the output module with the filename
123 \param filename Filename to save to (probably will end in .pdf)
126 an '>' on the front of the filename. This is the syntax used to
130 CairoRendererPdfOutput::save(Inkscape::Extension::Output *mod, SPDocument *doc, gchar const *filename) argument
209 final_name = g_strdup_printf("> %s", filename);
221 ret = latex_render_document_text_to_file(doc, filename, new_exportId, new_exportDrawing, new_exportCanvas, new_bleedmargin_px, true);
H A Dlatex-text-renderer.cpp55 * @param filename This should be the filename without '_tex' extension to which the tex code should be written. Output goes to <filename>_tex, note the underscore instead of period.
58 latex_render_document_text_to_file( SPDocument *doc, gchar const *filename, argument
85 bool ret = renderer->setTargetFile(filename);
133 LaTeXTextRenderer::setTargetFile(gchar const *filename) { argument
134 if (filename != NULL) {
135 while (isspace(*filename)) filename += 1;
137 _filename = g_path_get_basename(filename);
[all...]
/inkscape/src/io/
H A Dresource.cpp30 Util::ptr_shared<char> get_path(Domain domain, Type type, char const *filename) argument
74 default: return get_path(SYSTEM, type, filename);
80 if (filename) {
81 gchar *temp=g_build_filename(path, filename, NULL);
H A Duristream.cpp53 gchar *filename = g_filename_from_utf8( utf8name, -1, NULL, NULL, NULL ); local
54 if ( filename ) {
56 fp = std::fopen(filename, "rb");
58 fp = std::fopen(filename, "wb");
59 g_free(filename);
72 g_message("Unable to convert filename from UTF-8 to UTF-16 [%s]", safe);
H A Dsys.cpp107 gchar *filename = g_filename_from_utf8( utf8name, -1, NULL, NULL, NULL ); local
108 if ( filename )
111 fp = std::fopen(filename, mode);
113 g_free(filename);
115 filename = 0;
140 gchar *filename = g_filename_from_utf8( utf8name, -1, NULL, NULL, NULL ); local
141 if ( filename )
144 retval = ::mkdir(filename, S_IRWXU | S_IRGRP | S_IXGRP);
146 g_free(filename);
148 filename
187 gchar *filename = NULL; local
216 gchar *filename = NULL; local
251 gchar *filename = NULL; local
[all...]
H A Dinkjar.cpp179 guint8 *filename = (guint8 *)g_malloc(sizeof(guint8) local
181 if (!read(filename, filename_length)) {
182 g_free(filename);
185 filename[filename_length] = '\0';
188 std::printf("Filename is %s\n", filename);
191 return filename;
238 gchar *filename = (gchar *)read_filename(filename_length); local
241 if (filename == NULL)
246 _last_filename = filename;
251 if ((c_ptr = std::strrchr(filename, '/')) !
522 gchar *filename; local
[all...]
/inkscape/src/extension/
H A Dinit.cpp281 * compares its filename with SP_MODULE_EXTENSION. Of those that pass, build_from_file is called
307 gchar *filename; local
308 while ((filename = (gchar *)g_dir_read_name(directory)) != NULL) {
309 if (strlen(filename) < strlen(SP_MODULE_EXTENSION)) {
313 if (strcmp(SP_MODULE_EXTENSION, filename + (strlen(filename) - strlen(SP_MODULE_EXTENSION)))) {
317 gchar *pathname = g_build_filename(dirname, filename, (char *) NULL);
H A Doutput.cpp112 a filename extension and a MIME type. Then it calls the parent
138 \brief Get the filename extension for this extension
202 \param filename File to save the document as
214 Output::save(SPDocument *doc, gchar const *filename) argument
217 imp->save(this, doc, filename);
H A Dextension.cpp667 gchar * filename = g_filename_from_utf8( ext_error_file, -1, NULL, NULL, NULL ); local
668 error_file.open(filename);
671 filename);
673 g_free(filename);
H A Dsystem.cpp53 * \return A new document created from the filename passed in
57 * \param filename The file that should be opened
61 * function is called, with the parameter being a gpointer array. It contains both the filename
72 SPDocument *open(Extension *key, gchar const *filename) argument
78 parray[0] = (gpointer)filename;
114 if (!imod->prefs(filename)) {
118 SPDocument *doc = imod->open(filename);
132 doc->setUri(filename);
143 * if it matches the filename for autodetection.
145 * \param in_data An array of pointers containing the filename, an
164 gchar const *filename = (gchar const *)parray[0]; local
211 save(Extension *key, SPDocument *doc, gchar const *filename, bool setextension, bool check_overwrite, bool official, Inkscape::Extension::FileSaveMethod save_method) argument
380 gchar const *filename = (gchar const *)parray[0]; local
548 build_from_file(gchar const *filename) argument
[all...]
/inkscape/src/2geom/
H A Dsvg-path-parser.h179 inline PathVector read_svgd(char const *filename) { argument
180 FILE* fi = fopen(filename, "r");
/inkscape/src/extension/internal/filter/
H A Dfilter-file.cpp64 gchar *filename; local
65 while ((filename = (gchar *)g_dir_read_name(directory)) != NULL) {
66 if (strlen(filename) < strlen(INKSCAPE_FILTER_FILE)) {
70 if (strcmp(INKSCAPE_FILTER_FILE, filename + (strlen(filename) - strlen(INKSCAPE_FILTER_FILE)))) {
74 gchar *pathname = g_build_filename(dirname, filename, NULL);
85 Filter::filters_load_file (gchar * filename, gchar * menuname) argument
87 Inkscape::XML::Document *doc = sp_repr_read_file(filename, INKSCAPE_EXTENSION_URI);
89 g_warning("File (%s) is not parseable as XML. Ignored.", filename);
96 g_warning("File (%s) is not SVG. Ignored.", filename);
[all...]
/inkscape/src/
H A Dprint.cpp93 void sp_print_document_to_file(SPDocument *doc, gchar const *filename) argument
102 mod->set_param_string("destination", (gchar *)filename);
H A Duri-references.cpp134 gchar *filename = uri.toString(); local
136 if (g_str_has_suffix(filename, ".jpg") || g_str_has_suffix(filename, ".JPG") ||
137 g_str_has_suffix(filename, ".png") || g_str_has_suffix(filename, ".PNG")) {
152 g_warning("Can't get document for referenced URI: %s", filename);
153 g_free(filename);
156 g_free(filename);
H A Dinkview.cpp95 static bool is_jar(char const *filename);
540 static bool is_jar(char const *filename) argument
544 size_t const filename_len = strlen(filename);
548 char const *extension = filename + filename_len - 4;
H A Duri.cpp138 gchar *filename = NULL; local
140 filename = tmp.toNativeFilename();
141 return filename;
175 gchar *filename = g_filename_from_uri(uriString, NULL, NULL); local
177 if (filename) {
178 return filename;
/inkscape/src/extension/implementation/
H A Dxslt.cpp78 Glib::ustring filename = fname; local
81 if ( Inkscape::IO::file_test(filename.c_str(), G_FILE_TEST_EXISTS) )
82 return filename;
140 gchar const *filename)
142 xmlDocPtr filein = xmlParseFile(filename);
165 s = g_strdup(filename);
173 name = g_strdup(filename);
177 SPDocument * doc = SPDocument::createDoc(rdoc, filename, base, name, true, NULL);
184 void XSLT::save(Inkscape::Extension::Output *module, SPDocument *doc, gchar const *filename) argument
186 /* TODO: Should we assume filename t
139 open(Inkscape::Extension::Input * , gchar const *filename) argument
[all...]
/inkscape/src/helper/
H A Dpixbuf-ops.cpp67 bool sp_export_jpg_file(SPDocument *doc, gchar const *filename, argument
73 sp_generate_internal_bitmap(doc, filename, x0, y0, x1, y1,
78 gboolean saved = gdk_pixbuf_save(pixbuf->getPixbufRaw(), filename, "jpeg", NULL, "quality", c, NULL);
96 Inkscape::Pixbuf *sp_generate_internal_bitmap(SPDocument *doc, gchar const */*filename*/,
H A Dpng-write.cpp127 gchar const *filename, unsigned long int width, unsigned long int height, double xdpi, double ydpi,
131 g_return_val_if_fail(filename != NULL, false);
143 Inkscape::IO::dump_fopen_call(filename, "M");
144 fp = Inkscape::IO::fopen_utf8name(filename, "wb");
384 ExportResult sp_export_png_file(SPDocument *doc, gchar const *filename, argument
392 return sp_export_png_file(doc, filename, Geom::Rect(Geom::Point(x0,y0),Geom::Point(x1,y1)),
396 ExportResult sp_export_png_file(SPDocument *doc, gchar const *filename, argument
405 g_return_val_if_fail(filename != NULL, EXPORT_ERROR);
411 if (!force_overwrite && !sp_ui_overwrite_file(filename)) {
473 write_status = sp_png_write_rgba_striped(doc, filename, widt
126 sp_png_write_rgba_striped(SPDocument *doc, gchar const *filename, unsigned long int width, unsigned long int height, double xdpi, double ydpi, int (* get_rows)(guchar const **rows, void **to_free, int row, int num_rows, void *data), void *data) argument
[all...]
/inkscape/src/libdepixelize/
H A Dkopftracer2011.cpp81 Splines Kopf2011::to_voronoi(const std::string &filename, argument
84 return to_voronoi(Gdk::Pixbuf::create_from_file(filename), options);
110 Splines Kopf2011::to_grouped_voronoi(const std::string &filename, argument
113 return to_grouped_voronoi(Gdk::Pixbuf::create_from_file(filename), options);
181 Splines Kopf2011::to_splines(const std::string &filename, argument
184 return to_splines(Gdk::Pixbuf::create_from_file(filename), options);

Completed in 344 milliseconds

12