nss: upgrade to release 3.73
[LibreOffice.git] / xmloff / source / xforms / xformsapi.hxx
blob4429376410416fea1c3c6f9906620dfd25beb2e8
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 INCLUDED_XMLOFF_SOURCE_XFORMS_XFORMSAPI_HXX
20 #define INCLUDED_XMLOFF_SOURCE_XFORMS_XFORMSAPI_HXX
23 // this is a collection of several functions to make dealing with the XForms
24 // API a little easier
27 #include <com/sun/star/uno/Any.hxx>
29 namespace com::sun::star {
30 namespace beans { class XPropertySet; }
31 namespace frame { class XModel; }
32 namespace uno { template<class A> class Reference; }
33 namespace xforms { class XDataTypeRepository; class XModel2; }
35 class SvXMLNamespaceMap;
37 css::uno::Reference<css::xforms::XModel2> xforms_createXFormsModel();
39 void xforms_addXFormsModel(
40 const css::uno::Reference<css::frame::XModel>& xDocument,
41 const css::uno::Reference<css::xforms::XModel2>& xModel );
43 css::uno::Reference<css::beans::XPropertySet> xforms_findXFormsBinding( css::uno::Reference<css::frame::XModel> const &, const OUString& );
45 css::uno::Reference<css::beans::XPropertySet> xforms_findXFormsSubmission( css::uno::Reference<css::frame::XModel> const &, const OUString& );
47 void xforms_setValue(
48 css::uno::Reference<css::beans::XPropertySet> const & xPropSet,
49 const OUString& rName,
50 const css::uno::Any& rAny );
52 template<typename T>
53 void xforms_setValue(
54 css::uno::Reference<css::beans::XPropertySet>& xPropSet,
55 const OUString& rName,
56 T& aValue )
58 xforms_setValue( xPropSet, rName, css::uno::makeAny( aValue ) );
61 sal_uInt16 xforms_getTypeClass(
62 const css::uno::Reference<css::xforms::XDataTypeRepository>& xRepository,
63 const SvXMLNamespaceMap& rNamespaceMap,
64 const OUString& rXMLName );
66 OUString xforms_getTypeName(
67 const css::uno::Reference<css::xforms::XDataTypeRepository>& xRepository,
68 const SvXMLNamespaceMap& rNamespaceMap,
69 const OUString& rXMLName );
71 OUString xforms_getBasicTypeName(
72 const css::uno::Reference<css::xforms::XDataTypeRepository>& xRepository,
73 const SvXMLNamespaceMap& rNamespaceMap,
74 const OUString& rXMLName );
76 #endif
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */