Lines Matching defs:fileName
58 ImageIcon::ImageIcon(const Glib::ustring &fileName)
61 showSvgFile(fileName);
129 Glib::ustring fileName = theFileName;
131 fileName = Glib::filename_to_utf8(fileName);
133 SPDocument *doc = SPDocument::createNewDoc (fileName.c_str(), 0);
135 g_warning("SVGView: error loading document '%s'\n", fileName.c_str());
171 Glib::ustring fileName = theFileName;
186 Glib::RefPtr<Gdk::Pixbuf> img = Gdk::Pixbuf::create_from_file(fileName);
232 fileName = Glib::filename_to_utf8(fileName);
235 /* FIXME: Do proper XML quoting for fileName. */
239 fileName.c_str(),
354 isValidImageIconFile(const Glib::ustring &fileName)
364 if (hasSuffix(fileName, ext))
374 bool ImageIcon::show(const Glib::ustring &fileName)
376 if (!Glib::file_test(fileName, Glib::FILE_TEST_EXISTS)) {
381 if (Glib::file_test(fileName, Glib::FILE_TEST_IS_REGULAR)) {
382 gchar *fName = const_cast<gchar *>(fileName.c_str()); // this const-cast seems not necessary, was it put there because of older sys/stat.h version?
398 if (hasSuffix(fileName, svg) || hasSuffix(fileName, svgz)) {
399 if (!showSvgFile(fileName)) {
404 } else if (isValidImageIconFile(fileName)) {
405 if (!showBitmap(fileName)) {