Avoid potential negative array index access to cached text.
[LibreOffice.git] / include / xmloff / xformsimport.hxx
blob8a7ef2f6724dc753f1fda776a7aeff2a0004c976
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_XFORMSIMPORT_HXX
20 #define INCLUDED_XMLOFF_XFORMSIMPORT_HXX
22 #include <sal/config.h>
23 #include <xmloff/dllapi.h>
24 #include <rtl/ustring.hxx>
26 class SvXMLImport;
27 class SvXMLImportContext;
29 namespace com::sun::star {
30 namespace uno { template<typename T> class Reference; }
31 namespace uno { template <typename > class Sequence; }
32 namespace beans { class XPropertySet; struct PropertyValue; }
33 namespace frame { class XModel; }
34 namespace container { class XNameAccess; }
37 /** create import context for xforms:model element. */
38 XMLOFF_DLLPUBLIC SvXMLImportContext* createXFormsModelContext(
39 SvXMLImport& rImport );
41 /** perform the actual binding of an XForms-binding with the suitable control
42 * @param document which contains the XForms-model(s)
43 * @param pair<XForms binding ID, reference to control>
45 void bindXFormsValueBinding(
46 css::uno::Reference<css::frame::XModel> const&,
47 const std::pair<css::uno::Reference<css::beans::XPropertySet>, OUString>&);
49 /** perform the actual binding of an XForms-binding as list source with a list control
50 * @param document which contains the XForms-model(s)
51 * @param pair<XForms binding ID, reference to control>
53 void bindXFormsListBinding(
54 css::uno::Reference<css::frame::XModel> const&,
55 const std::pair<css::uno::Reference<css::beans::XPropertySet>, OUString>&);
57 /** perform the actual binding of an XForms submission with the suitable control
58 * @param document which contains the XForms-model(s)
59 * @param pair<XForms submission ID, reference to control>
61 void bindXFormsSubmission(
62 css::uno::Reference<css::frame::XModel> const&,
63 const std::pair<css::uno::Reference<css::beans::XPropertySet>, OUString>&);
65 /** applies the given settings to the given XForms container
67 void XMLOFF_DLLPUBLIC applyXFormsSettings(
68 const css::uno::Reference< css::container::XNameAccess >& _rXForms,
69 const css::uno::Sequence< css::beans::PropertyValue >& _rSettings
72 #endif
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */