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 INCLUDED_XMLOFF_XFORMSIMPORT_HXX 20 #define INCLUDED_XMLOFF_XFORMSIMPORT_HXX 21 22 #include <sal/config.h> 23 #include <xmloff/dllapi.h> 24 #include <rtl/ustring.hxx> 25 26 class SvXMLImport; 27 class SvXMLImportContext; 28 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; } 35 } 36 37 /** create import context for xforms:model element. */ 38 XMLOFF_DLLPUBLIC SvXMLImportContext* createXFormsModelContext( 39 SvXMLImport& rImport ); 40 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> 44 */ 45 void bindXFormsValueBinding( 46 css::uno::Reference<css::frame::XModel> const&, 47 const std::pair<css::uno::Reference<css::beans::XPropertySet>, OUString>&); 48 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> 52 */ 53 void bindXFormsListBinding( 54 css::uno::Reference<css::frame::XModel> const&, 55 const std::pair<css::uno::Reference<css::beans::XPropertySet>, OUString>&); 56 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> 60 */ 61 void bindXFormsSubmission( 62 css::uno::Reference<css::frame::XModel> const&, 63 const std::pair<css::uno::Reference<css::beans::XPropertySet>, OUString>&); 64 65 /** applies the given settings to the given XForms container 66 */ 67 void XMLOFF_DLLPUBLIC applyXFormsSettings( 68 const css::uno::Reference< css::container::XNameAccess >& _rXForms, 69 const css::uno::Sequence< css::beans::PropertyValue >& _rSettings 70 ); 71 72 #endif 73 74 75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 76