tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / offapi / com / sun / star / frame / ProtocolHandler.idl
blob182b6e4a05eb0bfc3d5d83515004bd96fef8effc
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 .
21 module com { module sun { module star { module frame {
23 /** special dispatch provider registered for URL protocols
25 <p>
26 The generic dispatch mechanism on a Frame
27 search for such registered protocol handler and use it if it agrees with
28 the dispatched URL.
29 </p>
31 <p>
32 Supported URLs must match follow format:
33 <code><i>protocol scheme</i>:<i>protocol specific part</i></code>
34 If a handler provides optional arguments ("?") or jump marks ("#") depends from his
35 definition and implementation. The generic dispatch provider will use registered
36 URL pattern to detect right handler.
37 </p>
39 published service ProtocolHandler
41 /** used from the generic dispatch mechanism of the frame, to ask ProtocolHandler
42 for his agreement for the dispatched URL
44 <p>
45 Such asked handler can agree by returning itself or a special sub dispatch object, which
46 can handle the given URL. Of course he can disagree with it by returning an empty reference.
47 </p>
49 interface XDispatchProvider;
51 /** initialize the new handler instance with some context information
53 <p>
54 Sometimes it can be useful for a handler object, to know something about the
55 environment, in which it runs - especially the frame. For this case the generic
56 code (which uses the handler) will ask for this optional interface and use it, if it exist.
57 Following parameters are passed to the service:
58 <ul>
59 <li>sequence< any >[0] => the frame for which this ProtocolHandler was created [com.sun.star.frame.XFrame]</li>
60 </ul>
61 </p>
63 <p>
64 Please note: if this mechanism is used it seems not useful (nor possible) to implement a ProtocolHandler
65 as a singleton. Otherwise the implementation can't distinguish between different environments
66 and her corresponding dispatch requests.
67 </p>
69 [optional] interface ::com::sun::star::lang::XInitialization;
73 }; }; }; };
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */