Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / xforms / XFormsUIHelper1.idl
blob1045212d9cb949ca4d35fe58d05183a08d6e067e
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 .
19 #ifndef __com_sun_star_xforms_XFormsUIHelper1_idl__
20 #define __com_sun_star_xforms_XFormsUIHelper1_idl__
22 #include <com/sun/star/uno/XInterface.idl>
24 #include <com/sun/star/xml/dom/XNode.idl>
25 #include <com/sun/star/beans/XPropertySet.idl>
26 #include <com/sun/star/container/XSet.idl>
27 #include <com/sun/star/xforms/XDataTypeRepository.idl>
28 #include <com/sun/star/xml/dom/XDocument.idl>
29 #include <com/sun/star/frame/XModel.idl>
30 #include <com/sun/star/xforms/XModel.idl>
34 module com { module sun { module star { module xforms {
37 /** provide several helper methods for the UI
39 <b>This interfaces is for UI use only, and will likely be unsupported in
40 future versions.</b></p>
42 interface XFormsUIHelper1
44 string getDefaultServiceNameForNode( [in] com::sun::star::xml::dom::XNode xNode );
46 string getDefaultBindingExpressionForNode( [in] com::sun::star::xml::dom::XNode xNode );
48 string getNodeDisplayName( [in] com::sun::star::xml::dom::XNode xNode,
49 [in] boolean bDetail );
51 string getNodeName( [in] com::sun::star::xml::dom::XNode xNode );
53 string getBindingName( [in] com::sun::star::beans::XPropertySet xBinding,
54 [in] boolean bDetail );
56 string getSubmissionName( [in] com::sun::star::beans::XPropertySet xSubm,
57 [in] boolean bDetail );
59 // Creates a new binding based on the one passed as argument.
60 // The new binding does *not* contribute to the MIPs table and acts
61 // as a property set in disguise, which is what the UI needs this object for...
62 com::sun::star::beans::XPropertySet cloneBindingAsGhost( [in] com::sun::star::beans::XPropertySet binding );
64 void removeBindingIfUseless( [in] com::sun::star::beans::XPropertySet xBinding );
66 // handle instances
68 com::sun::star::xml::dom::XDocument newInstance( [in] string sName,
69 [in] string sURL,
70 [in] boolean bURLOnce );
72 void renameInstance( [in] string sFrom, [in] string sTo,
73 [in] string sURL,
74 [in] boolean bURLOnce );
76 void removeInstance( [in] string sName );
79 // handle models
80 com::sun::star::xforms::XModel newModel( [in] com::sun::star::frame::XModel xModel,
81 [in] string sName );
82 void renameModel( [in] com::sun::star::frame::XModel xModel,
83 [in] string sFrom, [in] string sTo );
84 void removeModel( [in] com::sun::star::frame::XModel xModel,
85 [in] string sName );
88 // DOM helpers
89 com::sun::star::xml::dom::XNode
90 createElement( [in] com::sun::star::xml::dom::XNode xParent,
91 [in] string sName );
92 com::sun::star::xml::dom::XNode
93 createAttribute( [in] com::sun::star::xml::dom::XNode xParent,
94 [in] string sName );
96 com::sun::star::xml::dom::XNode renameNode(
97 [in] com::sun::star::xml::dom::XNode xNode,
98 [in] string sName );
100 com::sun::star::beans::XPropertySet getBindingForNode(
101 [in] com::sun::star::xml::dom::XNode xNode,
102 [in] boolean bCreate );
104 void removeBindingForNode(
105 [in] com::sun::star::xml::dom::XNode xNode );
107 string getResultForExpression(
108 [in] com::sun::star::beans::XPropertySet xBinding,
109 [in] boolean bIsBindingExpression,
110 [in] string sExpression );
112 boolean isValidXMLName( [in] string sName );
114 boolean isValidPrefixName( [in] string sName );
116 void setNodeValue(
117 [in] com::sun::star::xml::dom::XNode xNode,
118 [in] string sValue );
123 }; }; }; };
125 #endif
127 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */