Line data Source code
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 RPT_XMLREPORTELEMENTBASE_HXX
20 : #define RPT_XMLREPORTELEMENTBASE_HXX
21 :
22 : #include <xmloff/xmlictxt.hxx>
23 : #include <com/sun/star/report/XReportComponent.hpp>
24 : #include <vector>
25 :
26 : namespace rptxml
27 : {
28 : class ORptFilter;
29 : class OXMLTable;
30 :
31 0 : class SAL_NO_VTABLE IMasterDetailFieds
32 : {
33 : public:
34 : virtual void addMasterDetailPair(const ::std::pair< ::rtl::OUString,::rtl::OUString >& _aPair) = 0;
35 :
36 : protected:
37 0 : ~IMasterDetailFieds() {}
38 : };
39 :
40 : class OXMLReportElementBase : public SvXMLImportContext
41 : {
42 : OXMLReportElementBase(const OXMLReportElementBase&);
43 : void operator =(const OXMLReportElementBase&);
44 : protected:
45 : ORptFilter& m_rImport;
46 : OXMLTable* m_pContainer;
47 : ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent > m_xComponent;
48 :
49 : virtual SvXMLImportContext* _CreateChildContext( sal_uInt16 nPrefix,
50 : const ::rtl::OUString& rLocalName,
51 : const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
52 : public:
53 :
54 : OXMLReportElementBase( ORptFilter& rImport
55 : ,sal_uInt16 nPrfx
56 : ,const ::rtl::OUString& rLName
57 : ,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent >& _xComponent
58 : ,OXMLTable* _pContainer);
59 : virtual ~OXMLReportElementBase();
60 :
61 : virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
62 : const ::rtl::OUString& rLocalName,
63 : const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
64 :
65 : virtual void EndElement();
66 : };
67 : // -----------------------------------------------------------------------------
68 : } // namespace rptxml
69 : // -----------------------------------------------------------------------------
70 :
71 : #endif // RPT_XMLREPORTELEMENTBASE_HXX
72 :
73 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|