1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef RPT_XMLREPORT_HXX 24 #define RPT_XMLREPORT_HXX 25 26 #include "xmlReportElementBase.hxx" 27 #include <vector> 28 29 namespace rptxml 30 { 31 class ORptFilter; 32 class OXMLReport : public OXMLReportElementBase, public IMasterDetailFieds 33 { 34 ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition > m_xComponent; 35 ::std::vector< ::rtl::OUString> m_aMasterFields; 36 ::std::vector< ::rtl::OUString> m_aDetailFields; 37 OXMLReport(const OXMLReport&); 38 void operator =(const OXMLReport&); 39 public: 40 41 OXMLReport( ORptFilter& rImport, sal_uInt16 nPrfx, 42 const ::rtl::OUString& rLName, 43 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList 44 ,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition >& _xComponent 45 ,OXMLTable* _pContainer); 46 virtual ~OXMLReport(); 47 48 virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix, 49 const ::rtl::OUString& rLocalName, 50 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList ); 51 52 virtual void EndElement(); 53 54 virtual void addMasterDetailPair(const ::std::pair< ::rtl::OUString,::rtl::OUString >& _aPair); 55 56 private: 57 /** initializes our object's properties whose runtime (API) default is different from the file 58 format default. 59 */ 60 void impl_initRuntimeDefaults() const; 61 }; 62 // ----------------------------------------------------------------------------- 63 } // namespace rptxml 64 // ----------------------------------------------------------------------------- 65 66 #endif // RPT_XMLREPORT_HXX 67