/inkscape/src/ |
H A D | uri.cpp | 12 #include "uri.h" 24 URI::URI(const URI &uri) { argument 25 uri._impl->reference(); 26 _impl = uri._impl; 30 xmlURIPtr uri; local 34 uri = xmlParseURI(preformed); 35 if (!uri) { 38 _impl = Impl::create(uri); 45 URI &URI::operator=(URI const &uri) { argument 47 uri 53 create(xmlURIPtr uri) argument 57 Impl(xmlURIPtr uri) argument 136 to_native_filename(gchar const* uri) argument 213 const gchar *uri = tmp.data(); local 220 gchar *uri = g_filename_to_uri(path, NULL, NULL); local [all...] |
H A D | uri.h | 15 #include <libxml/uri.h> 16 #include "bad-uri-exception.h" 33 URI(URI const &uri); 105 static char *to_native_filename(char const* uri) throw(BadURIException); 123 URI &operator=(URI const &uri); 128 static Impl *create(xmlURIPtr uri); 144 Impl(xmlURIPtr uri);
|
H A D | uri-references.cpp | 19 #include "uri.h" 20 #include "uri-references.h" 21 #include "extract-uri.h" 121 void URIReference::attach(const URI &uri) throw(BadURIException) argument 134 gchar *filename = uri.toString(); 142 if (document && uri.getPath() && !skip) { 144 std::string path = uri.getFullPath(base); 158 gchar const *fragment = uri.getFragment(); 159 if (!uri.isRelative() || uri 245 sp_css_uri_reference_resolve(SPDocument *document, const gchar *uri) argument 260 sp_uri_reference_resolve(SPDocument *document, const gchar *uri) argument [all...] |
H A D | resource-manager.cpp | 131 bool extractFilepath( Glib::ustring const &href, std::string &uri ); 148 bool ResourceManagerImpl::extractFilepath( Glib::ustring const &href, std::string &uri ) 152 uri.clear(); 161 uri = Glib::filename_from_uri(href); // TODO see if we can get this to throw 162 // TODO debug g_message(" [%s]", uri.c_str()); 168 uri = Glib::filename_from_utf8( href ); 188 std::string uri; local 189 if ( extractFilepath( href, uri ) ) { 190 if ( Glib::path_is_absolute(uri) ) { 191 if ( !Glib::file_test(uri, Gli 222 Glib::ustring uri = (*it)->get_uri(); local 242 std::string uri; local [all...] |
H A D | uri-test.h | 5 * Test uri.h 7 * Written to aid with refactoring the uri handling to support fullPath 15 #include "uri.h" 37 void toStringTest( std::string uri, std::string expected ) { argument 38 stringTest( URI(uri.c_str()).toString(), expected ); 40 void pathTest( std::string uri, std::string expected ) { argument 41 stringTest( ValueOrEmpty(URI(uri.c_str()).getPath()), expected ); 72 std::ofstream fhl("/tmp/cxxtest-uri.svg", std::ofstream::out); 73 stringTest( URI("cxxtest-uri.svg").getFullPath("/tmp"), std::string("/tmp/cxxtest-uri [all...] |
H A D | uri-references.h | 23 #include "bad-uri-exception.h" 67 * @param uri the URI to watch 69 void attach(URI const& uri) throw(BadURIException); 152 SPObject* sp_css_uri_reference_resolve( SPDocument *document, const char *uri ); 154 SPObject *sp_uri_reference_resolve (SPDocument *document, const char *uri);
|
H A D | file.h | 36 // Get the name of the default template uri 68 const Glib::ustring &uri, 93 bool file_save_remote(SPDocument *doc, const Glib::ustring &uri, 139 SPObject* file_import(SPDocument *in_doc, const Glib::ustring &uri,
|
H A D | id-clash.cpp | 21 #include "extract-uri.h" 110 gchar *uri = extract_uri(value); local 111 if (uri && uri[0] == '#') { 113 refmap[uri+1].push_back(idref); 115 g_free(uri); 166 gchar *uri = extract_uri(value); local 167 if (uri && uri[0] == '#') { 169 refmap[uri 180 gchar *uri = extract_uri(value); local [all...] |
/inkscape/src/extension/internal/ |
H A D | gdkpixbuf-input.h | 13 char const *uri);
|
H A D | wpg-input.h | 28 const gchar *uri );
|
H A D | svg.cpp | 151 _load_uri (const gchar *uri) argument 159 gchar* uri_local = g_filename_from_utf8( uri, -1, &bytesRead, &bytesWritten, &error); 188 \param uri The path to the file (UTF-8) 193 Svg::open (Inkscape::Extension::Input */*mod*/, const gchar *uri) argument 196 if (!gnome_vfs_initialized() || gnome_vfs_uri_is_local(gnome_vfs_uri_new(uri))) { 198 return SPDocument::createNewDoc(uri, TRUE); 200 gchar * buffer = _load_uri(uri); 202 g_warning("Error: Could not open file '%s' with VFS\n", uri); 210 return SPDocument::createNewDoc(uri, TRUE); 221 \param uri Th [all...] |
H A D | cdr-input.h | 34 const gchar *uri );
|
H A D | svg.h | 31 const gchar *uri );
|
H A D | vsd-input.h | 34 const gchar *uri );
|
H A D | cairo-ps-out.h | 46 gchar const *uri);
|
/inkscape/src/io/ |
H A D | uristream.cpp | 92 : uri(source) 94 //get information from uri 95 char const *schemestr = uri.getScheme(); 106 cpath = uri.toNativeFilename(); 120 data = (unsigned char *) uri.getPath(); 132 UriInputStream::UriInputStream(FILE *source, Inkscape::URI &uri) argument 133 : uri(uri), 238 UriReader::UriReader(Inkscape::URI &uri) argument 241 inputStream = new UriInputStream(uri); 438 UriWriter(Inkscape::URI &uri) argument [all...] |
H A D | uristream.h | 18 #include <uri.h> 40 UriInputStream(FILE *source, Inkscape::URI &uri); 53 Inkscape::URI &uri; member in class:Inkscape::IO::UriInputStream 128 Inkscape::URI &uri; member in class:Inkscape::IO::UriOutputStream
|
/inkscape/src/xml/ |
H A D | rebase-hrefs-test.h | 6 #include "uri.h" 78 URI uri(things[i]); 80 gchar *str = uri.toString(); 81 g_message( "abs:%d isRel:%d scheme:[%s] path:[%s][%s] uri[%s] / [%s]", (int)isAbs, 82 (int)uri.isRelative(), 83 uri.getScheme(), 84 uri.getPath(), 85 uri.getOpaque(), 98 g_message(" uri from [%s] to [%s]", things[i], again.toString() ); 101 g_message( "abs:%d isRel:%d scheme:[%s] path:[%s][%s] uri[ [all...] |
H A D | repr-util.cpp | 41 #define OSB_NS_URI "http://www.openswatchbook.org/uri/2009/osb" 46 unsigned int uri, prefix; member in struct:SPXMLNs 70 static char *sp_xml_ns_auto_prefix(char const *uri); 90 defaults[0].uri = g_quark_from_static_string(SP_SODIPODI_NS_URI); 94 defaults[1].uri = g_quark_from_static_string(SP_XLINK_NS_URI); 98 defaults[2].uri = g_quark_from_static_string(SP_SVG_NS_URI); 102 defaults[3].uri = g_quark_from_static_string(SP_INKSCAPE_NS_URI); 106 defaults[4].uri = g_quark_from_static_string(SP_RDF_NS_URI); 110 defaults[5].uri = g_quark_from_static_string(SP_CC_NS_URI); 114 defaults[6].uri 148 sp_xml_ns_auto_prefix(char const *uri) argument 174 sp_xml_ns_uri_prefix(gchar const *uri, gchar const *suggested) argument 237 char const *uri; local [all...] |
H A D | rebase-hrefs.cpp | 207 * font-face-uri, foreignObject, glyphRef, handler, linearGradient, mpath, pattern, 227 std::string uri; local 233 uri = tmp; 235 if ( uri.substr(0, 7) == "file://" ) { 236 uri = Glib::filename_from_uri(uri); 240 std::string href = uri; 242 href = sp_relative_path_from_path(uri, old_abs_base); 246 href = sp_relative_path_from_path(uri, new_abs_base);
|
/inkscape/src/extension/ |
H A D | input.h | 50 SPDocument * open (gchar const *uri); 55 bool prefs (gchar const *uri);
|
H A D | input.cpp | 135 \param uri The filename to create the document from 143 Input::open (const gchar *uri) argument 153 SPDocument *const doc = imp->open(this, uri); 212 Input::prefs (const gchar *uri) argument 222 controls = imp->prefs_input(this, uri);
|
/inkscape/src/live_effects/parameter/ |
H A D | path-reference.h | 12 #include <uri-references.h>
|
/inkscape/src/ui/cache/ |
H A D | svg_preview_cache.h | 39 Glib::ustring cache_key(gchar const *uri, gchar const *name, unsigned psize) const; 42 GdkPixbuf* get_preview(const gchar* uri, const gchar* id, Inkscape::DrawingItem *root, double scale_factor, unsigned int psize);
|
H A D | svg_preview_cache.cpp | 86 Glib::ustring SvgPreview::cache_key(gchar const *uri, gchar const *name, unsigned psize) const { argument 88 key += (uri!=NULL) ? uri : ""; 109 GdkPixbuf* SvgPreview::get_preview(const gchar* uri, const gchar* id, Inkscape::DrawingItem */*root*/, argument 112 Glib::ustring key = cache_key(uri, id, psize);
|