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 .
19 #ifndef __com_sun_star_form_XForms_idl__
20 #define __com_sun_star_form_XForms_idl__
22 #include
<com
/sun
/star
/container
/XNameContainer.idl
>
23 #include
<com
/sun
/star
/container
/XIndexContainer.idl
>
24 #include
<com
/sun
/star
/container
/XEnumerationAccess.idl
>
25 #include
<com
/sun
/star
/container
/XContainer.idl
>
26 #include
<com
/sun
/star
/container
/XChild.idl
>
27 #include
<com
/sun
/star
/lang
/XComponent.idl
>
28 #include
<com
/sun
/star
/script
/XEventAttacherManager.idl
>
29 #include
<com
/sun
/star
/util
/XCloneable.idl
>
32 module com
{ module sun
{ module star
{ module form
{
36 @since LibreOffice 4.1
38 published
interface XForms
40 /** allows to register listeners to be notified of changes in the container.
42 interface com
::sun
::star
::container
::XContainer
;
44 /** allows to add/remove elements by name.
46 interface com
::sun
::star
::container
::XNameContainer
; // ->XNameReplace->XNameAccess->XElementAccess->XInterface
48 /** gives access to the elements by index.
50 interface com
::sun
::star
::container
::XIndexContainer
; // ->XIndexReplace->XIndexAccess->XElementAccess->XInterface
52 /** creates an enumeration of the elements.
54 interface com
::sun
::star
::container
::XEnumerationAccess
; // ->XElementAccess->XInterface
56 /** This interface has to be implemented to supply the scripting environment
57 for the contained components.
59 <p>The interface allows managing of scripts associated with dependent components, accessed by index.
60 However, as a client of the FormComponents service, there's no need to bother with
61 the container aspect of the com::sun::star::script::XEventAttacherManager
62 directly. A FormComponents container will automatically synchronize the elements
63 you put into it with the scripting information obtained at the
64 com::sun::star::script::XEventAttacherManager interface.</p>
66 <p>For instance, at any time you can obtain the events associated with
67 the <code>n</code><sup>th</sup>
68 element in the form components by calling
69 com::sun::star::script::XEventAttacherManager::getScriptEvents()
70 with parameter <code>n</code>. In particular, this invariant is always met, even after you
71 inserted/removed elements into/from the container.</p>
73 interface com
::sun
::star
::script
::XEventAttacherManager
; // ->XInterface
75 interface com
::sun
::star
::container
::XChild
;
77 interface com
::sun
::star
::util
::XCloneable
;
79 interface com
::sun
::star
::lang
::XComponent
;
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */