1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef __com_sun_star_uri_XVndSunStarScriptUrl_idl__
21 #define __com_sun_star_uri_XVndSunStarScriptUrl_idl__
23 #include
<com
/sun
/star
/lang
/IllegalArgumentException.idl
>
24 #include
<com
/sun
/star
/uno
/XInterface.idl
>
26 module com
{ module sun
{ module star
{ module uri
{
29 represents absolute “vnd.sun.star.script” URLs.
31 <p>These URLs are of the form<br/>
32 <var>vnd-sun-star-script-url</var> =
33 <code>"VND.SUN.STAR.SCRIPT:"</code> <var>name</var> [<code>"?"</code>
34 <var>parameter</var> *(<code>"&"</code> <var>parameter</var>)]<br/>
35 <var>name</var> = 1*<var>schar</var><br/>
36 <var>parameter</var> = <var>key</var> <code>"="</code>
38 <var>key</var> = 1*<var>schar</var><br/>
39 <var>value</var> = *<var>schar</var><br/>
40 <var>schar</var> = <var>unreserved</var> / <var>escaped</var> /
41 <code>"$"</code> / <code>"+"</code> / <code>","</code> / <code>":"</code> /
42 <code>";"</code> / <code>"@"</code> / <code>"["</code> /
44 See <a href="http://www.ietf.org/rfc/rfc2396.txt">RFC 2396</a>,
45 <a href="http://www.ietf.org/rfc/rfc2732.txt">RFC 2732</a>, and
46 <a href="http://www.ietf.org/rfc/rfc2234.txt">RFC 2234</a> for
49 <p>The names, keys, and values are arbitrary Unicode strings (non-empty
50 Unicode strings in the case of names and keys), encoded as UTF-8 byte
51 sequences. It is an error if any of them does not represent a valid UTF-8
52 byte sequence. Keys are compared for equality character-by-character,
53 without considering case folding or normalization. There may be multiple
54 parameters with equal keys.</p>
58 published
interface XVndSunStarScriptUrl
: com
::sun
::star
::uno
::XInterface
{
60 returns the name part of this URL.
63 the non-escaped value of the name part.
68 sets the name part of this URL.
71 specifies the non-escaped new name part of the URL.
73 @throws ::com::sun::star::lang::IllegalArgumentException
78 void setName
([in] string name
)
79 raises
( ::com
::sun
::star
::lang
::IllegalArgumentException
);
82 returns whether this URL has a parameter with a given key.
88 `TRUE` if this URL has at least one parameter with the given key. In
89 particular, if <code>key</code> is an empty `string`, `FALSE`
92 boolean hasParameter
([in] string key
);
95 returns the value of a parameter with a given key.
101 the non-escaped value of the first parameter with the given key. If
102 there is no parameter with the given key, or if <code>key</code> is an
103 empty `string`, an empty `string` is returned.
105 string getParameter
([in] string key
);
108 sets the value of a parameter with a given key.
114 the non-escaped value to be set for the parameter. If there already is a
115 parameter with this key, the value of its first appearance will be replaced.
116 Otherwise, a parameter with the given key/value will be appended.
118 @throws ::com::sun::star::lang::IllegalArgumentException
123 void setParameter
( [in] string key
, [in] string value
)
124 raises
( ::com
::sun
::star
::lang
::IllegalArgumentException
);
131 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */