1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef __com_sun_star_xforms_XFormsUIHelper1_idl__
29 #define __com_sun_star_xforms_XFormsUIHelper1_idl__
31 #include
<com
/sun
/star
/uno
/XInterface.idl
>
33 #include
<com
/sun
/star
/xml
/dom
/XNode.idl
>
34 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
35 #include
<com
/sun
/star
/container
/XSet.idl
>
36 #include
<com
/sun
/star
/xforms
/XDataTypeRepository.idl
>
37 #include
<com
/sun
/star
/xml
/dom
/XDocument.idl
>
38 #include
<com
/sun
/star
/xml
/dom
/XNode.idl
>
39 #include
<com
/sun
/star
/frame
/XModel.idl
>
40 #include
<com
/sun
/star
/xforms
/XModel.idl
>
43 //=============================================================================
45 module com
{ module sun
{ module star
{ module xforms
{
47 //=============================================================================
49 /** provide several helper methods for the UI
51 <b>This interfaces is for UI use only, and will likely be unsupported in
54 interface XFormsUIHelper1
56 string getDefaultServiceNameForNode
( [in] com
::sun
::star
::xml
::dom
::XNode xNode
);
58 string getDefaultBindingExpressionForNode
( [in] com
::sun
::star
::xml
::dom
::XNode xNode
);
60 string getNodeDisplayName
( [in] com
::sun
::star
::xml
::dom
::XNode xNode
,
61 [in] boolean bDetail
);
63 string getNodeName
( [in] com
::sun
::star
::xml
::dom
::XNode xNode
);
65 string getBindingName
( [in] com
::sun
::star
::beans
::XPropertySet xBinding
,
66 [in] boolean bDetail
);
68 string getSubmissionName
( [in] com
::sun
::star
::beans
::XPropertySet xSubm
,
69 [in] boolean bDetail
);
71 // Creates a new binding based on the one passed as argument.
72 // The new binding does *not* contribute to the MIPs table and acts
73 // as a property set in disguise, which is what the UI needs this object for...
74 com
::sun
::star
::beans
::XPropertySet cloneBindingAsGhost
( [in] com
::sun
::star
::beans
::XPropertySet binding
);
76 void removeBindingIfUseless
( [in] com
::sun
::star
::beans
::XPropertySet xBinding
);
80 com
::sun
::star
::xml
::dom
::XDocument newInstance
( [in] string sName
,
82 [in] boolean bURLOnce
);
84 void renameInstance
( [in] string sFrom
, [in] string sTo
,
86 [in] boolean bURLOnce
);
88 void removeInstance
( [in] string sName
);
92 com
::sun
::star
::xforms
::XModel newModel
( [in] com
::sun
::star
::frame
::XModel xModel
,
94 void renameModel
( [in] com
::sun
::star
::frame
::XModel xModel
,
95 [in] string sFrom
, [in] string sTo
);
96 void removeModel
( [in] com
::sun
::star
::frame
::XModel xModel
,
101 com
::sun
::star
::xml
::dom
::XNode
102 createElement
( [in] com
::sun
::star
::xml
::dom
::XNode xParent
,
104 com
::sun
::star
::xml
::dom
::XNode
105 createAttribute
( [in] com
::sun
::star
::xml
::dom
::XNode xParent
,
108 com
::sun
::star
::xml
::dom
::XNode renameNode
(
109 [in] com
::sun
::star
::xml
::dom
::XNode xNode
,
112 com
::sun
::star
::beans
::XPropertySet getBindingForNode
(
113 [in] com
::sun
::star
::xml
::dom
::XNode xNode
,
114 [in] boolean bCreate
);
116 void removeBindingForNode
(
117 [in] com
::sun
::star
::xml
::dom
::XNode xNode
);
119 string getResultForExpression
(
120 [in] com
::sun
::star
::beans
::XPropertySet xBinding
,
121 [in] boolean bIsBindingExpression
,
122 [in] string sExpression
);
124 boolean isValidXMLName
( [in] string sName
);
126 boolean isValidPrefixName
( [in] string sName
);
129 [in] com
::sun
::star
::xml
::dom
::XNode xNode
,
130 [in] string sValue
);
134 //=============================================================================
138 /*=============================================================================
140 =============================================================================*/
143 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */