5687eba49f
...which were used by ildc, which is gone since
a8485d558f
"[API CHANGE] Remove deprecated idlc
and regmerge from the SDK", and have always been ignored as legacy by its
unoidl-write replacement.
This change has been carried out (making use of GNU sed extensions) with
> for i in $(git ls-files \*.idl); do sed -i -z -E -e 's/\n\n((#[^\n]*\n)+\n)*(#[^\n]*\n)+\n?/\n\n/g' -e 's/\n(#[^\n]*\n)+/\n/g' "$i"; done && git checkout extensions/source/activex/so_activex.idl odk/examples/OLE/activex/so_activex.idl
which apparently happened to do the work. (The final two files are not UNOIDL
source files.)
Change-Id: Ic9369e05d46e8f7e8a304ab01740b171b92335cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135683
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
151 lines
6.5 KiB
Text
151 lines
6.5 KiB
Text
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/*
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* This file incorporates work covered by the following license notice:
|
|
*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
* with this work for additional information regarding copyright
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
*/
|
|
|
|
module com { module sun { module star { module uri {
|
|
|
|
/**
|
|
creates URI references.
|
|
|
|
<p>See <a href="http://www.ietf.org/rfc/rfc3986.txt">RFC 3986</a> for a
|
|
description of URI references and related terms.</p>
|
|
|
|
@since OOo 2.0
|
|
*/
|
|
published interface XUriReferenceFactory: com::sun::star::uno::XInterface {
|
|
/**
|
|
parses the textual representation of a URI reference.
|
|
|
|
@param uriReference
|
|
the textual representation of a URI reference.
|
|
|
|
@returns
|
|
an object that supports
|
|
com::sun::star::uri::XUriReference (and possibly also
|
|
additional, scheme-specific interfaces), if the given input can be parsed
|
|
into a URI reference; otherwise, `NULL` is returned.
|
|
*/
|
|
XUriReference parse([in] string uriReference);
|
|
|
|
/**
|
|
resolves a relative URI reference to absolute form.
|
|
|
|
@param baseUriReference
|
|
the base URI reference. If the given <code>uriReference</code> is a
|
|
same-document reference, <code>baseUriReference</code> is used as a
|
|
reference to the current document.
|
|
|
|
@param uriReference
|
|
any URI reference. Backwards-compatible relative URI references starting
|
|
with a scheme component (see RFC 3986, Sections 5.2.2 and 5.4,2)
|
|
are not supported; instead, they are interpreted as absolute
|
|
URI references.
|
|
|
|
@param processAdditionalSpecialSegments
|
|
if `TRUE`, special segments (“<code>.</code>” and
|
|
“<code>..</code>”) within the path of the base URI (except
|
|
for the last, cut-off segment), and within an already absolute <code>uriReference</code>, are
|
|
processed as required by
|
|
RFC 3986. If `FALSE`, such special segments
|
|
are treated like ordinary segments.
|
|
Conformance with RFC 3986 requires `TRUE` to be passed.
|
|
|
|
@param excessParentSegments
|
|
details how excess special parent segments
|
|
(“<code>..</code>”) are handled.
|
|
Conformance with RFC 3986 requires REMOVE to be passed.
|
|
|
|
@returns
|
|
a fresh object that supports
|
|
com::sun::star::uri::XUriReference (and possibly also
|
|
additional, scheme-specific interfaces), if the given
|
|
<code>uriReference</code> can be resolved
|
|
to an absolute URI reference, relative to the given
|
|
<code>baseUriReference</code>; otherwise, `NULL` is returned.
|
|
Especially, if <code>baseUriReference</code> is `NULL`, or is not an
|
|
absolute URI reference, or if <code>uriReference</code> is
|
|
`NULL`, then `NULL` is always returned.
|
|
*/
|
|
XUriReference makeAbsolute(
|
|
[in] XUriReference baseUriReference, [in] XUriReference uriReference,
|
|
[in] boolean processAdditionalSpecialSegments,
|
|
[in] RelativeUriExcessParentSegments excessParentSegments);
|
|
|
|
/**
|
|
changes an absolute URI reference to relative form.
|
|
|
|
@param baseUriReference
|
|
the base URI reference.
|
|
|
|
@param uriReference
|
|
any URI reference.
|
|
|
|
@param preferAuthorityOverRelativePath
|
|
controls how a relative URI reference is generated when both
|
|
<code>baseUriReference</code> (e.g.,
|
|
“<code>scheme://auth/a/b</code>”) and
|
|
<code>uriReference</code> (e.g.,
|
|
“<code>scheme://auth//c/d</code>”) have the same scheme and
|
|
authority components, and the path component of <code>uriReference</code>
|
|
starts with “<code>//</code>”. If `TRUE`, the generated
|
|
relative URI reference includes an authority component (e.g.,
|
|
“<code>//auth//c/d</code>”); if `FALSE`, the generated
|
|
relative URI reference has a relative path (e.g.,
|
|
“<code>..//c/d</code>”).
|
|
|
|
@param preferAbsoluteOverRelativePath
|
|
controls how a relative URI reference is generated when both
|
|
<code>baseUriReference</code> (e.g.,
|
|
“<code>scheme://auth/a/b</code>”) and
|
|
<code>uriReference</code> (e.g.,
|
|
“<code>scheme://auth/c/d</code>”) have the same scheme and
|
|
authority components (if present), but share no common path segments. If
|
|
`TRUE`, the generated relative URI reference has an absolute path (e.g.,
|
|
“<code>/c/d</code>”); if `FALSE`, the generated relative URI
|
|
reference has a relative path (e.g., “<code>../c/d</code>”).
|
|
|
|
@param encodeRetainedSpecialSegments
|
|
if `TRUE`, special segments (“<code>.</code>” and
|
|
“<code>..</code>”) that are already present in the path
|
|
component of the given <code>uriReference</code> and which end up in a
|
|
relative path returned from this method, are encoded (as
|
|
“<code>%2E</code>” and “<code>%2E%2E</code>”,
|
|
respectively).
|
|
|
|
@returns
|
|
a fresh object that supports
|
|
com::sun::star::uri::XUriReference, if the given
|
|
<code>uriReference</code> is either already relative, or has a relative
|
|
path, or is of a different scheme than the given
|
|
<code>baseUriReference</code>, or can be changed to a relative URI
|
|
reference, relative to the given <code>baseUriReference</code>;
|
|
otherwise, `NULL` is returned. Especially, if
|
|
<code>baseUriReference</code> is `NULL`, or is not an absolute
|
|
URI reference, or if <code>uriReference</code> is `NULL`,
|
|
then `NULL` is always returned.
|
|
*/
|
|
XUriReference makeRelative(
|
|
[in] XUriReference baseUriReference, [in] XUriReference uriReference,
|
|
[in] boolean preferAuthorityOverRelativePath,
|
|
[in] boolean preferAbsoluteOverRelativePath,
|
|
[in] boolean encodeRetainedSpecialSegments);
|
|
};
|
|
|
|
}; }; }; };
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|