diff options
author | Noel Grandin <noel@peralex.com> | 2013-03-27 14:20:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-04-23 16:05:56 +0200 |
commit | 1165aac95b8e44f41fc16a44bfec4c1c05801ac8 (patch) | |
tree | 7887802f0d1ba62ab95bad1c6fe8ebf323c87a91 /offapi | |
parent | 9ffb86c7e93c1633866ed89f0749831fd7f31a35 (diff) |
fdo#46808, convert form::Forms to new style
Change-Id: I966ed18d45dc8a04c97a703d3c83382714025f2c
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/UnoApi_offapi.mk | 5 | ||||
-rw-r--r-- | offapi/com/sun/star/form/Forms.idl | 10 | ||||
-rw-r--r-- | offapi/com/sun/star/form/XForms.idl | 86 | ||||
-rw-r--r-- | offapi/type_reference/types.rdb | bin | 7439360 -> 7439360 bytes |
4 files changed, 92 insertions, 9 deletions
diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index b43877b1ca7a..cae76f660462 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -144,6 +144,9 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/embed,\ OOoEmbeddedObjectFactory \ StorageFactory \ )) +$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/form,\ + Forms \ +)) $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/form/control,\ FilterControl \ )) @@ -790,7 +793,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/form,\ FormControlModel \ FormController \ FormControllerDispatcher \ - Forms \ PropertyBrowserController \ modules \ )) @@ -2440,6 +2442,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,offapi/com/sun/star/form,\ XErrorBroadcaster \ XErrorListener \ XForm \ + XForms \ XFormComponent \ XFormController \ XFormControllerListener \ diff --git a/offapi/com/sun/star/form/Forms.idl b/offapi/com/sun/star/form/Forms.idl index 196e18c1174b..2b86048ac2c2 100644 --- a/offapi/com/sun/star/form/Forms.idl +++ b/offapi/com/sun/star/form/Forms.idl @@ -19,10 +19,7 @@ #ifndef __com_sun_star_form_Forms_idl__ #define __com_sun_star_form_Forms_idl__ -#include <com/sun/star/container/XNameContainer.idl> -#include <com/sun/star/container/XIndexContainer.idl> -#include <com/sun/star/container/XEnumerationAccess.idl> -#include <com/sun/star/form/FormComponents.idl> +#include <com/sun/star/form/XForms.idl> module com { module sun { module star { module form { @@ -36,10 +33,7 @@ @see com::sun::star::form::component::Form */ -published service Forms -{ - service FormComponents; -}; +published service Forms : XForms; }; }; }; }; diff --git a/offapi/com/sun/star/form/XForms.idl b/offapi/com/sun/star/form/XForms.idl new file mode 100644 index 000000000000..4571d9c28d6c --- /dev/null +++ b/offapi/com/sun/star/form/XForms.idl @@ -0,0 +1,86 @@ +/* -*- 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 . + */ +#ifndef __com_sun_star_form_XForms_idl__ +#define __com_sun_star_form_XForms_idl__ + +#include <com/sun/star/container/XNameContainer.idl> +#include <com/sun/star/container/XIndexContainer.idl> +#include <com/sun/star/container/XEnumerationAccess.idl> +#include <com/sun/star/container/XContainer.idl> +#include <com/sun/star/container/XChild.idl> +#include <com/sun/star/lang/XComponent.idl> +#include <com/sun/star/script/XEventAttacherManager.idl> +#include <com/sun/star/util/XCloneable.idl> + + +module com { module sun { module star { module form { + + +/** + @since LibreOffice 4.1 + */ +published interface XForms +{ + /** allows to register listeners to be notified of changes in the container. + */ + interface com::sun::star::container::XContainer; + + /** allows to add/remove elements by name. + */ + interface com::sun::star::container::XNameContainer; // ->XNameReplace->XNameAccess->XElementAccess->XInterface + + /** gives access to the elements by index. + */ + interface com::sun::star::container::XIndexContainer; // ->XIndexReplace->XIndexAccess->XElementAccess->XInterface + + /** creates an enumeration of the elements. + */ + interface com::sun::star::container::XEnumerationAccess; // ->XElementAccess->XInterface + + /** This interface has to be implemented to supply the scripting environment + for the contained components. + + <p>The interface allows managing of scripts associated with dependent components, accessed by index. + However, as a client of the <type>FormComponents</type> service, there's no need to bother with + the container aspect of the <type scope="com::sun::star::script">XEventAttacherManager</type> + directly. A <type>FormComponents</type> container will automatically synchronize the elements + you put into it with the scripting information obtained at the + <type scope="com::sun::star::script">XEventAttacherManager</type> interface.</p> + + <p>For instance, at any time you can obtain the events associated with the <code>n</code><super>th</super> + element in the form components by calling + <member scope="com::sun::star::script">XEventAttacherManager::getScriptEvents</member> + with parameter <code>n</code>. In particular, this invariant is always met, even after you + inserted/removed elements into/from the container.</p> + */ + interface com::sun::star::script::XEventAttacherManager; // ->XInterface + + interface com::sun::star::container::XChild; + + interface com::sun::star::util::XCloneable; + + interface com::sun::star::lang::XComponent; +}; + + +}; }; }; }; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/type_reference/types.rdb b/offapi/type_reference/types.rdb Binary files differindex ecd1b60cac58..097590fe8c91 100644 --- a/offapi/type_reference/types.rdb +++ b/offapi/type_reference/types.rdb |