summaryrefslogtreecommitdiff
path: root/tools/source/fsys/urlobj.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sb@openoffice.org>2000-10-16 05:50:00 +0000
committerStephan Bergmann <sb@openoffice.org>2000-10-16 05:50:00 +0000
commit1b511873f0d9b7beee10f210efd0f597fd12bcdb (patch)
tree38620f298585a038679516ea0e5681d243444e48 /tools/source/fsys/urlobj.cxx
parentfd60940b8e839a4bfff99579541235d3394103a4 (diff)
#78581# Added URL scheme 'vnd.sun.star.webdav'. Warning: this scheme
might only be temporal and might therefore be removed again.
Diffstat (limited to 'tools/source/fsys/urlobj.cxx')
-rw-r--r--tools/source/fsys/urlobj.cxx18
1 files changed, 13 insertions, 5 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index e3c937c5a7d4..533092f0c8bf 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: urlobj.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:03:07 $
+ * last change: $Author: sb $ $Date: 2000-10-16 06:50:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -149,6 +149,11 @@ namespace unnamed_tools_urlobj {} using namespace unnamed_tools_urlobj;
hvalue = {RFC 822 <field-body> using *(escaped / ALPHA / DIGIT / "!" / "$" / "'" / "(" / ")" / "*" / "+" / "," / "-" / "." / "/" / ":" / ";" / "@" / "_" / "~")}
+ ; private (see RFC 1738, RFC 2396)
+ vnd-sun-star-webdav-url = "VND.SUN.STAR.WEBDAV://" hostport ["/" segment *("/" segment) ["?" *uric]]
+ segment = *(pchar / ";")
+
+
; private (see RFC 1738)
news-url = "NEWS://" login ["/" (group / message)]
group = *uric
@@ -331,8 +336,8 @@ static INetURLObject::SchemeInfo const aSchemeInfoMap[INET_PROT_END]
true, false },
{ "mailto", "mailto:", 0, false, false, false, false, false,
false, false, true },
- { 0, 0, 0, false, false, false, false, false, false, false,
- false },
+ { "vnd.sun.star.webdav", "vnd.sun.star.webdav://", 80, true, false,
+ false, false, true, true, true, true },
{ "news", "news:", 119, true, true, false, true, true, true,
false, false },
{ "private", "private:", 0, false, false, false, false, false,
@@ -1830,7 +1835,9 @@ INetURLObject::getPrefix(sal_Unicode const *& rBegin,
{ "staroffice:", "private:", INET_PROT_PRIV_SOFFICE,
PrefixInfo::EXTERNAL },
{ "vim:", "staroffice.vim:", INET_PROT_VIM,
- PrefixInfo::INTERNAL } };
+ PrefixInfo::INTERNAL },
+ { "vnd.sun.star.webdav:", 0, INET_PROT_VND_SUN_STAR_WEBDAV,
+ PrefixInfo::OFFICIAL } };
PrefixInfo const * pFirst = aMap + 1;
PrefixInfo const * pLast = aMap + sizeof aMap / sizeof (PrefixInfo) - 1;
PrefixInfo const * pMatch = 0;
@@ -2107,6 +2114,7 @@ bool INetURLObject::parsePath(sal_Unicode const ** pBegin,
break;
case INET_PROT_HTTP:
+ case INET_PROT_VND_SUN_STAR_WEBDAV:
case INET_PROT_HTTPS:
if (pPos < pEnd && *pPos != '/')
{