tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / udkapi / com / sun / star / uri / XVndSunStarScriptUrl.idl
blob4647bf1847a42d72b8818f96086c5b7ec3bcbf14
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 module com { module sun { module star { module uri {
22 /**
23 represents absolute “vnd.sun.star.script” URLs.
25 <p>These URLs are of the form<br/>
26 &nbsp;&nbsp;&nbsp;<var>vnd-sun-star-script-url</var> =
27 <code>"VND.SUN.STAR.SCRIPT:"</code> <var>name</var> [<code>"?"</code>
28 <var>parameter</var> *(<code>"&"</code> <var>parameter</var>)]<br/>
29 &nbsp;&nbsp;&nbsp;<var>name</var> = 1*<var>schar</var><br/>
30 &nbsp;&nbsp;&nbsp;<var>parameter</var> = <var>key</var> <code>"="</code>
31 <var>value</var><br/>
32 &nbsp;&nbsp;&nbsp;<var>key</var> = 1*<var>schar</var><br/>
33 &nbsp;&nbsp;&nbsp;<var>value</var> = *<var>schar</var><br/>
34 &nbsp;&nbsp;&nbsp;<var>schar</var> = <var>unreserved</var> / <var>escaped</var> /
35 <code>"$"</code> / <code>"+"</code> / <code>","</code> / <code>":"</code> /
36 <code>";"</code> / <code>"@"</code> / <code>"["</code> /
37 <code>"]"</code><br/>
38 See <a href="http://www.ietf.org/rfc/rfc3986.txt">RFC&nbsp;3986</a>
39 <a href="http://www.ietf.org/rfc/rfc2234.txt">RFC&nbsp;2234</a> for
40 details.</p>
42 <p>The names, keys, and values are arbitrary Unicode strings (non-empty
43 Unicode strings in the case of names and keys), encoded as UTF-8 byte
44 sequences. It is an error if any of them does not represent a valid UTF-8
45 byte sequence. Keys are compared for equality character-by-character,
46 without considering case folding or normalization. There may be multiple
47 parameters with equal keys.</p>
49 @since OOo 2.0
51 published interface XVndSunStarScriptUrl: com::sun::star::uno::XInterface {
52 /**
53 returns the name part of this URL.
55 @returns
56 the non-escaped value of the name part.
58 string getName();
60 /**
61 sets the name part of this URL.
63 @param name
64 specifies the non-escaped new name part of the URL.
66 @throws ::com::sun::star::lang::IllegalArgumentException
67 if name is empty
69 @since OOo 3.0
71 void setName([in] string name)
72 raises ( ::com::sun::star::lang::IllegalArgumentException );
74 /**
75 returns whether this URL has a parameter with a given key.
77 @param key
78 a non-escaped key.
80 @returns
81 `TRUE` if this URL has at least one parameter with the given key. In
82 particular, if <code>key</code> is an empty `string`, `FALSE`
83 is returned.
85 boolean hasParameter([in] string key);
87 /**
88 returns the value of a parameter with a given key.
90 @param key
91 a non-escaped key.
93 @returns
94 the non-escaped value of the first parameter with the given key. If
95 there is no parameter with the given key, or if <code>key</code> is an
96 empty `string`, an empty `string` is returned.
98 string getParameter([in] string key);
101 sets the value of a parameter with a given key.
103 @param key
104 a non-escaped key
106 @param value
107 the non-escaped value to be set for the parameter. If there already is a
108 parameter with this key, the value of its first appearance will be replaced.
109 Otherwise, a parameter with the given key/value will be appended.
111 @throws ::com::sun::star::lang::IllegalArgumentException
112 if key is empty
114 @since OOo 3.0
116 void setParameter( [in] string key, [in] string value )
117 raises ( ::com::sun::star::lang::IllegalArgumentException );
120 }; }; }; };
122 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */