tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / offapi / com / sun / star / xforms / XFormsUIHelper1.idl
bloba47bb053572b33b55c7dbfc18d445107bfc1205d
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 .
22 module com { module sun { module star { module xforms {
25 /** provide several helper methods for the UI
27 <b>This interfaces is for UI use only, and will likely be unsupported in
28 future versions.</b></p>
30 interface XFormsUIHelper1
32 string getDefaultServiceNameForNode( [in] com::sun::star::xml::dom::XNode xNode );
34 string getDefaultBindingExpressionForNode( [in] com::sun::star::xml::dom::XNode xNode );
36 string getNodeDisplayName( [in] com::sun::star::xml::dom::XNode xNode,
37 [in] boolean bDetail );
39 string getNodeName( [in] com::sun::star::xml::dom::XNode xNode );
41 string getBindingName( [in] com::sun::star::beans::XPropertySet xBinding,
42 [in] boolean bDetail );
44 string getSubmissionName( [in] com::sun::star::beans::XPropertySet xSubm,
45 [in] boolean bDetail );
47 // Creates a new binding based on the one passed as argument.
48 // The new binding does *not* contribute to the MIPs table and acts
49 // as a property set in disguise, which is what the UI needs this object for...
50 com::sun::star::beans::XPropertySet cloneBindingAsGhost( [in] com::sun::star::beans::XPropertySet binding );
52 void removeBindingIfUseless( [in] com::sun::star::beans::XPropertySet xBinding );
54 // handle instances
56 com::sun::star::xml::dom::XDocument newInstance( [in] string sName,
57 [in] string sURL,
58 [in] boolean bURLOnce );
60 void renameInstance( [in] string sFrom, [in] string sTo,
61 [in] string sURL,
62 [in] boolean bURLOnce );
64 void removeInstance( [in] string sName );
67 // handle models
68 com::sun::star::xforms::XModel newModel( [in] com::sun::star::frame::XModel xModel,
69 [in] string sName );
70 void renameModel( [in] com::sun::star::frame::XModel xModel,
71 [in] string sFrom, [in] string sTo );
72 void removeModel( [in] com::sun::star::frame::XModel xModel,
73 [in] string sName );
76 // DOM helpers
77 com::sun::star::xml::dom::XNode
78 createElement( [in] com::sun::star::xml::dom::XNode xParent,
79 [in] string sName );
80 com::sun::star::xml::dom::XNode
81 createAttribute( [in] com::sun::star::xml::dom::XNode xParent,
82 [in] string sName );
84 com::sun::star::xml::dom::XNode renameNode(
85 [in] com::sun::star::xml::dom::XNode xNode,
86 [in] string sName );
88 com::sun::star::beans::XPropertySet getBindingForNode(
89 [in] com::sun::star::xml::dom::XNode xNode,
90 [in] boolean bCreate );
92 void removeBindingForNode(
93 [in] com::sun::star::xml::dom::XNode xNode );
95 string getResultForExpression(
96 [in] com::sun::star::beans::XPropertySet xBinding,
97 [in] boolean bIsBindingExpression,
98 [in] string sExpression );
100 boolean isValidXMLName( [in] string sName );
102 boolean isValidPrefixName( [in] string sName );
104 void setNodeValue(
105 [in] com::sun::star::xml::dom::XNode xNode,
106 [in] string sValue );
111 }; }; }; };
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */