Lines Matching defs:filename
53 * \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)
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, and
154 * First thing that is checked is if the filename is shorter than the extension itself. There is
156 * of the filename (for the length of the extension), and the extension itself. If this passes
164 gchar const *filename = (gchar const *)parray[0];
172 gchar *filenamelower = g_utf8_strdown(filename, -1);
193 * \param filename The file that the document should be saved to
199 * function is called, with the parameter being a gpointer array. It contains both the filename
211 save(Extension *key, SPDocument *doc, gchar const *filename, bool setextension, bool check_overwrite, bool official,
217 parray[0] = (gpointer)filename;
237 g_warning("Unable to find output module to handle file: %s\n", filename);
252 gchar *lowerfile = g_utf8_strdown(filename, -1);
256 fileName = g_strdup_printf("%s%s", filename, omod->get_extension());
264 fileName = g_strdup(filename);
274 if (Inkscape::IO::file_test(filename, G_FILE_TEST_EXISTS) && !Inkscape::IO::file_is_writable(filename)) {
359 * if it matches the filename for autodetection.
361 * \param in_data An array of pointers containing the filename, and
370 * First thing that is checked is if the filename is shorter than the extension itself. There is
372 * of the filename (for the length of the extension), and the extension itself. If this passes
380 gchar const *filename = (gchar const *)parray[0];
388 gchar *filenamelower = g_utf8_strdown(filename, -1);
541 * \brief This function creates a module from a filename of an
543 * \param filename The file holding the XML description of the module.
548 build_from_file(gchar const *filename)
550 Inkscape::XML::Document *doc = sp_repr_read_file(filename, INKSCAPE_EXTENSION_URI);
551 std::string dir = Glib::path_get_dirname(filename);
556 g_warning("Unable to create extension from definition file %s.\n", filename);