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 .
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
);
56 com
::sun
::star
::xml
::dom
::XDocument newInstance
( [in] string sName
,
58 [in] boolean bURLOnce
);
60 void renameInstance
( [in] string sFrom
, [in] string sTo
,
62 [in] boolean bURLOnce
);
64 void removeInstance
( [in] string sName
);
68 com
::sun
::star
::xforms
::XModel newModel
( [in] com
::sun
::star
::frame
::XModel xModel
,
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
,
77 com
::sun
::star
::xml
::dom
::XNode
78 createElement
( [in] com
::sun
::star
::xml
::dom
::XNode xParent
,
80 com
::sun
::star
::xml
::dom
::XNode
81 createAttribute
( [in] com
::sun
::star
::xml
::dom
::XNode xParent
,
84 com
::sun
::star
::xml
::dom
::XNode renameNode
(
85 [in] com
::sun
::star
::xml
::dom
::XNode xNode
,
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
);
105 [in] com
::sun
::star
::xml
::dom
::XNode xNode
,
106 [in] string sValue
);
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */