bump product version to 5.0.4.1
[LibreOffice.git] / dbaccess / source / filter / xml / xmlDataSourceSetting.hxx
blob57949e228c228634006cdd3cbaf9f1a55e2dc777
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_DBACCESS_SOURCE_FILTER_XML_XMLDATASOURCESETTING_HXX
20 #define INCLUDED_DBACCESS_SOURCE_FILTER_XML_XMLDATASOURCESETTING_HXX
22 #include <xmloff/xmlictxt.hxx>
23 #include <com/sun/star/beans/PropertyValue.hpp>
24 #include <com/sun/star/uno/Sequence.hxx>
26 namespace dbaxml
28 class ODBFilter;
29 class OXMLDataSourceSetting : public SvXMLImportContext
31 ::com::sun::star::beans::PropertyValue m_aSetting;
32 ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any> m_aInfoSequence;
33 OXMLDataSourceSetting* m_pContainer;
34 ::com::sun::star::uno::Type m_aPropType; // the type of the property the instance imports currently
35 bool m_bIsList;
37 ODBFilter& GetOwnImport();
38 static ::com::sun::star::uno::Any convertString(const ::com::sun::star::uno::Type& _rExpectedType, const OUString& _rReadCharacters);
39 public:
41 OXMLDataSourceSetting( ODBFilter& rImport, sal_uInt16 nPrfx,
42 const OUString& rLName,
43 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList
44 ,OXMLDataSourceSetting* _pContainer = NULL);
45 virtual ~OXMLDataSourceSetting();
47 virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
48 const OUString& rLocalName,
49 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList ) SAL_OVERRIDE;
51 virtual void EndElement() SAL_OVERRIDE;
53 virtual void Characters( const OUString& rChars ) SAL_OVERRIDE;
55 /** adds value to property
56 @param _sValue
57 The value to add.
59 void addValue(const OUString& _sValue);
61 } // namespace dbaxml
63 #endif // INCLUDED_DBACCESS_SOURCE_FILTER_XML_XMLDATASOURCESETTING_HXX
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */