Searched defs:uri (Results 1 - 25 of 42) sorted by relevance

12

/inkscape/src/extension/internal/
H A Dwpg-input.cpp82 SPDocument *WpgInput::open(Inkscape::Extension::Input * /*mod*/, const gchar * uri) argument
84 RVNGInputStream* input = new RVNGFileStream(uri);
H A Dsvg.cpp151 _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 Dcdr-input.cpp224 SPDocument *CdrInput::open(Inkscape::Extension::Input * /*mod*/, const gchar * uri) argument
226 RVNGFileStream input(uri);
H A Dgdkpixbuf-input.cpp26 GdkpixbufInput::open(Inkscape::Extension::Input *mod, char const *uri) argument
66 boost::scoped_ptr<Inkscape::Pixbuf> pb(Inkscape::Pixbuf::create_from_file(uri));
86 ir = new ImageResolution(uri);
126 // convert filename to uri
127 gchar* _uri = g_filename_to_uri(uri, NULL, NULL);
132 image_node->setAttribute("xlink:href", uri);
H A Dvsd-input.cpp227 SPDocument *VsdInput::open(Inkscape::Extension::Input * /*mod*/, const gchar * uri) argument
229 RVNGFileStream input(uri);
H A Djavafx-out.cpp399 String uri = (str ? str : ""); local
401 if (uri.size() > 0 && uri[0]=='#') {
402 uri = uri.substr(1);
404 out(" fill: %s()\n", sanatize(uri).c_str());
/inkscape/src/
H A Duri-test.h5 * 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 Dstyle-test.h55 TestCase(gchar const* src, gchar const* dst = 0, gchar const* uri = 0) : src(src), dst(dst), uri(uri) {}
58 gchar const* uri; member in struct:StyleTest::TestCase
247 if ( cases[i].uri ) {
250 TS_ASSERT_EQUALS( style.fill.value.href->getURI()->toString(), std::string(cases[i].uri) );
H A Ddir-util.cpp220 char *prepend_current_dir_if_relative(gchar const *uri) argument
222 if (!uri) {
238 inkscape_rel2abs (uri, cwd_utf8, full_path, 1000);
H A Drdf.h33 char const *uri; /* URL for the RDF/Work/license element */ member in struct:rdf_license_t
H A Duri-references.cpp19 #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 Ddocument.h104 char *uri; ///< A filename (not a URI yet), or NULL member in class:SPDocument
106 char *name; ///< basename(uri) or other human-readable label for the document.
141 char const *getURI() const { return uri; }
142 void setUri(char const *uri);
148 /** basename(uri) or other human-readable label for the document. */
229 static SPDocument *createNewDoc(char const*uri, unsigned int keepalive,
232 SPDocument *createChildDoc(std::string const &uri);
239 static SPDocument *createDoc(Inkscape::XML::Document *rdoc, char const *uri,
270 void changeUriAndHrefs(char const *uri);
H A Did-clash.cpp21 #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...]
H A Dresource-manager.cpp131 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 Duri.cpp12 #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 Drdf.cpp1050 const gchar *uri = getWorkEntity(document, *entity); local
1053 if (uri != NULL) {
1055 if (g_strcmp0(uri, license->uri) == 0) {
1091 license_by_uri->uri,
1093 license_by_properties->uri);
1113 license_by_properties->uri);
1116 setWorkEntity(document, *entity, license_by_properties->uri);
1153 repr->setAttribute("rdf:about", license->uri );
H A Dstyle-internal.cpp40 #include "extract-uri.h"
54 void sp_style_set_ipaint_to_uri(SPStyle *style, SPIPaint *paint, const Inkscape::URI *uri, SPDocument *document);
55 void sp_style_set_ipaint_to_uri_string (SPStyle *style, SPIPaint *paint, const gchar *uri);
1192 gchar *uri = extract_uri( str, &str ); local
1193 if(uri == NULL || uri[0] == '\0') {
1212 // std::cout << "uri: " << (uri?uri:"null") << std::endl;
1214 sp_style_set_ipaint_to_uri_string ( style, this, uri);
1293 const gchar* uri = this->value.href->getURI()->toString(); local
1294 css << "url(" << uri << ")"; local
1659 gchar *uri = extract_uri(str); local
1708 gchar *uri = this->href->getURI()->toString(); local
[all...]
/inkscape/src/io/
H A Duristream.h18 #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
H A Duristream.cpp92 : 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...]
/inkscape/src/ui/view/
H A Dview.cpp48 _onDocumentURISet (gchar const* uri, View* v) argument
50 v->onDocumentURISet (uri);
/inkscape/src/extension/
H A Dinput.cpp135 \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/xml/
H A Drebase-hrefs.cpp207 * 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);
H A Drepr-util.cpp41 #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...]
/inkscape/src/ui/cache/
H A Dsvg_preview_cache.cpp86 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);
/inkscape/src/libcroco/
H A Dcr-om-parser.c504 CRString *uri = NULL; local
523 uri = cr_string_dup (a_uri) ;
529 (ctxt->stylesheet, uri, media_list, NULL);
554 if (uri) {
555 cr_string_destroy (uri);
939 *@a_file_uri: the uri of the file.

Completed in 50 milliseconds

12