LCOV - code coverage report
Current view: top level - libreoffice/xmloff/inc - XMLChartPropertySetMapper.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-17 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          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 _XMLOFF_CHARTPROPERTYSETMAPPER_HXX_
      20             : #define _XMLOFF_CHARTPROPERTYSETMAPPER_HXX_
      21             : 
      22             : #include <xmloff/uniref.hxx>
      23             : #include <xmloff/xmlprmap.hxx>
      24             : #include <xmloff/xmlexppr.hxx>
      25             : #include <xmloff/xmlimppr.hxx>
      26             : #include <xmloff/xmlimp.hxx>
      27             : 
      28             : namespace rtl { class OUString; }
      29             : 
      30             : extern const XMLPropertyMapEntry aXMLChartPropMap[];
      31             : 
      32             : class SvXMLExport;
      33             : 
      34             : // ----------------------------------------
      35             : 
      36           0 : class XMLChartPropHdlFactory : public XMLPropertyHandlerFactory
      37             : {
      38             : private:
      39             :     const XMLPropertyHandler* GetShapePropertyHandler( sal_Int32 nType ) const;
      40             : 
      41             : public:
      42             :     virtual ~XMLChartPropHdlFactory();
      43             :     virtual const XMLPropertyHandler* GetPropertyHandler( sal_Int32 nType ) const;
      44             : };
      45             : 
      46             : // ----------------------------------------
      47             : 
      48             : class XMLChartPropertySetMapper : public XMLPropertySetMapper
      49             : {
      50             : public:
      51             :     XMLChartPropertySetMapper();
      52             :     ~XMLChartPropertySetMapper();
      53             : };
      54             : 
      55             : // ----------------------------------------
      56             : 
      57             : class XMLChartExportPropertyMapper : public SvXMLExportPropertyMapper
      58             : {
      59             : private:
      60             :     const rtl::OUString msTrue;
      61             :     const rtl::OUString msFalse;
      62             :     bool mbAdaptPercentage;
      63             : 
      64             :     SvXMLExport& mrExport;
      65             : 
      66             : protected:
      67             :     virtual void ContextFilter(
      68             :         ::std::vector< XMLPropertyState >& rProperties,
      69             :         ::com::sun::star::uno::Reference<
      70             :             ::com::sun::star::beans::XPropertySet > rPropSet ) const;
      71             : 
      72             : private:
      73             :     /// this method is called for every item that has the MID_FLAG_ELEMENT_EXPORT flag set
      74             :     virtual void handleElementItem(
      75             :         SvXMLExport& rExport,
      76             :         const XMLPropertyState& rProperty, sal_uInt16 nFlags,
      77             :         const ::std::vector< XMLPropertyState > *pProperties = 0,
      78             :         sal_uInt32 nIdx = 0  ) const;
      79             : 
      80             :     /// this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_EXPORT flag set
      81             :     virtual void handleSpecialItem(
      82             :         SvXMLAttributeList& rAttrList, const XMLPropertyState& rProperty,
      83             :         const SvXMLUnitConverter& rUnitConverter, const SvXMLNamespaceMap& rNamespaceMap,
      84             :         const ::std::vector< XMLPropertyState > *pProperties = 0,
      85             :         sal_uInt32 nIdx = 0  ) const;
      86             : 
      87             : public:
      88             :     XMLChartExportPropertyMapper( const UniReference< XMLPropertySetMapper >& rMapper,
      89             :                                   SvXMLExport& rExport );
      90             :     virtual ~XMLChartExportPropertyMapper();
      91             : 
      92             :     void setAdaptPercentage( bool bNewValue );
      93             : };
      94             : 
      95             : // ----------------------------------------
      96             : 
      97             : class XMLChartImportPropertyMapper : public SvXMLImportPropertyMapper
      98             : {
      99             : private:
     100             :     SvXMLImport& mrImport;
     101             : 
     102             : public:
     103             :     XMLChartImportPropertyMapper( const UniReference< XMLPropertySetMapper >& rMapper,
     104             :                                   const SvXMLImport& rImport );
     105             :     virtual ~XMLChartImportPropertyMapper();
     106             : 
     107             :     virtual bool handleSpecialItem(
     108             :         XMLPropertyState& rProperty,
     109             :         ::std::vector< XMLPropertyState >& rProperties,
     110             :         const ::rtl::OUString& rValue,
     111             :         const SvXMLUnitConverter& rUnitConverter,
     112             :         const SvXMLNamespaceMap& rNamespaceMap ) const;
     113             : 
     114             :     virtual void finished(
     115             :         ::std::vector< XMLPropertyState >& rProperties,
     116             :         sal_Int32 nStartIndex, sal_Int32 nEndIndex ) const;
     117             : };
     118             : 
     119             : #endif  // _XMLOFF_CHARTPROPERTYSETMAPPER_HXX_
     120             : 
     121             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10