LibreOffice
LibreOffice 4.2 SDK API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
XFormsUIHelper1.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 #ifndef __com_sun_star_xforms_XFormsUIHelper1_idl__
20 #define __com_sun_star_xforms_XFormsUIHelper1_idl__
21 
23 
32 
33 
34 
35 module com { module sun { module star { module xforms {
36 
37 
43 interface XFormsUIHelper1
44 {
45  string getDefaultServiceNameForNode( [in] com::sun::star::xml::dom::XNode xNode );
46 
47  string getDefaultBindingExpressionForNode( [in] com::sun::star::xml::dom::XNode xNode );
48 
49  string getNodeDisplayName( [in] com::sun::star::xml::dom::XNode xNode,
50  [in] boolean bDetail );
51 
52  string getNodeName( [in] com::sun::star::xml::dom::XNode xNode );
53 
54  string getBindingName( [in] com::sun::star::beans::XPropertySet xBinding,
55  [in] boolean bDetail );
56 
57  string getSubmissionName( [in] com::sun::star::beans::XPropertySet xSubm,
58  [in] boolean bDetail );
59 
60  // Creates a new binding based on the one passed as argument.
61  // The new binding does *not* contribute to the MIPs table and acts
62  // as a property set in disguise, which is what the UI needs this object for...
64 
65  void removeBindingIfUseless( [in] com::sun::star::beans::XPropertySet xBinding );
66 
67  // handle instances
68 
69  com::sun::star::xml::dom::XDocument newInstance( [in] string sName,
70  [in] string sURL,
71  [in] boolean bURLOnce );
72 
73  void renameInstance( [in] string sFrom, [in] string sTo,
74  [in] string sURL,
75  [in] boolean bURLOnce );
76 
77  void removeInstance( [in] string sName );
78 
79 
80  // handle models
82  [in] string sName );
83  void renameModel( [in] com::sun::star::frame::XModel xModel,
84  [in] string sFrom, [in] string sTo );
85  void removeModel( [in] com::sun::star::frame::XModel xModel,
86  [in] string sName );
87 
88 
89  // DOM helpers
91  createElement( [in] com::sun::star::xml::dom::XNode xParent,
92  [in] string sName );
94  createAttribute( [in] com::sun::star::xml::dom::XNode xParent,
95  [in] string sName );
96 
99  [in] string sName );
100 
101  com::sun::star::beans::XPropertySet getBindingForNode(
103  [in] boolean bCreate );
104 
105  void removeBindingForNode(
106  [in] com::sun::star::xml::dom::XNode xNode );
107 
108  string getResultForExpression(
110  [in] boolean bIsBindingExpression,
111  [in] string sExpression );
112 
113  boolean isValidXMLName( [in] string sName );
114 
115  boolean isValidPrefixName( [in] string sName );
116 
117  void setNodeValue(
119  [in] string sValue );
120 
121 };
122 
123 
124 }; }; }; };
125 
126 #endif
127 
128 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
represent an XForms model
Definition: XModel.idl:40
The primary dom datatype.
Definition: XNode.idl:68
represents a component which is created from an URL and arguments.
Definition: XModel.idl:58
provide several helper methods for the UI
Definition: XFormsUIHelper1.idl:43
provides information about and access to the properties from an implementation.
Definition: XPropertySet.idl:63
Definition: XDocument.idl:35