Lines Matching refs:fileName

148     Glib::ustring fileName = theFileName;
150 fileName = Glib::filename_to_utf8(fileName);
156 SPDocument *doc = SPDocument::createNewDoc(fileName.c_str(), true);
158 g_warning("SVGView: error loading document '%s'\n", fileName.c_str());
196 Glib::ustring fileName = theFileName;
220 img = Gdk::Pixbuf::create_from_file(fileName);
242 if (hasSuffix(fileName, svg)) {
327 fileName = Glib::filename_to_utf8(fileName);
330 /* FIXME: Do proper XML quoting for fileName. */
333 fileName.c_str(), rectX, rectY, rectWidth, rectHeight, width.c_str(), height.c_str() );
540 bool SVGPreview::set(Glib::ustring &fileName, int dialogType)
543 if (!Glib::file_test(fileName, Glib::FILE_TEST_EXISTS)) {
549 if (Glib::file_test(fileName, Glib::FILE_TEST_IS_DIR)) {
554 if (Glib::file_test(fileName, Glib::FILE_TEST_IS_REGULAR)) {
555 Glib::ustring fileNameUtf8 = Glib::filename_to_utf8(fileName);
575 (hasSuffix(fileName, svg) || hasSuffix(fileName, svgz))) {
576 bool retval = setFileName(fileName);
579 } else if (isValidImageFile(fileName)) {
580 showImage(fileName);
663 Glib::ustring fileName = get_preview_filename();
667 if (fileName.empty() && gnome_vfs_initialized()) {
668 fileName = get_preview_uri();
672 if (enabled && !fileName.empty()) {
673 svgPreview.set(fileName, _dialogType);
1131 Glib::ustring fileName = fileNameEntry->get_text();
1133 fileName = Glib::filename_to_utf8(fileName);
1135 // g_message("User hit return. Text is '%s'\n", fileName.c_str());
1137 if (!Glib::path_is_absolute(fileName)) {
1139 // not this way: fileName = get_current_folder() + "/" + fileName;
1142 pathSegments.push_back(fileName);
1143 fileName = Glib::build_filename(pathSegments);
1146 // g_message("path:'%s'\n", fileName.c_str());
1148 if (Glib::file_test(fileName, Glib::FILE_TEST_IS_DIR)) {
1149 set_current_folder(fileName);
1150 } else if (/*Glib::file_test(fileName, Glib::FILE_TEST_IS_REGULAR)*/ 1) {
1153 set_filename(fileName);
1408 Glib::ustring fileName = fileNameEntry->get_text();
1410 fileName = Glib::filename_to_utf8(fileName);
1412 // g_message("User hit return. Text is '%s'\n", fileName.c_str());
1414 if (!Glib::path_is_absolute(fileName)) {
1416 // not this way: fileName = get_current_folder() + "/" + fileName;
1419 pathSegments.push_back(fileName);
1420 fileName = Glib::build_filename(pathSegments);
1423 // g_message("path:'%s'\n", fileName.c_str());
1425 if (Glib::file_test(fileName, Glib::FILE_TEST_IS_DIR)) {
1426 set_current_folder(fileName);
1427 } else if (/*Glib::file_test(fileName, Glib::FILE_TEST_IS_REGULAR)*/ 1) {
1430 set_filename(fileName);