LCOV - code coverage report
Current view: top level - xmloff/source/draw - sdpropls.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 1 100.0 %
Date: 2014-11-03 Functions: 1 1 100.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             : 
      20             : #ifndef INCLUDED_XMLOFF_SOURCE_DRAW_SDPROPLS_HXX
      21             : #define INCLUDED_XMLOFF_SOURCE_DRAW_SDPROPLS_HXX
      22             : 
      23             : #include <com/sun/star/frame/XModel.hpp>
      24             : #include <xmloff/xmlnume.hxx>
      25             : #include <xmloff/maptype.hxx>
      26             : #include <xmloff/xmltypes.hxx>
      27             : #include <xmloff/xmlement.hxx>
      28             : #include <xmloff/prhdlfac.hxx>
      29             : #include <xmloff/xmlprmap.hxx>
      30             : #include <xmloff/xmlexppr.hxx>
      31             : #include <xmlsdtypes.hxx>
      32             : 
      33             : // entry list for graphic properties
      34             : 
      35             : extern const XMLPropertyMapEntry aXMLSDProperties[];
      36             : 
      37             : // entry list for presentation page properties
      38             : 
      39             : extern const XMLPropertyMapEntry aXMLSDPresPageProps[];
      40             : extern const XMLPropertyMapEntry aXMLSDPresPageProps_onlyHeadersFooter[];
      41             : 
      42             : // enum maps for attributes
      43             : 
      44             : extern SvXMLEnumMapEntry const aXML_ConnectionKind_EnumMap[];
      45             : extern SvXMLEnumMapEntry const aXML_CircleKind_EnumMap[];
      46             : 
      47             : /** contains the attribute to property mapping for a drawing layer table */
      48             : extern const XMLPropertyMapEntry aXMLTableShapeAttributes[];
      49             : 
      50             : // factory for own graphic properties
      51             : 
      52             : class SvXMLExport;
      53             : class SvXMLImport;
      54             : 
      55             : class XMLSdPropHdlFactory : public XMLPropertyHandlerFactory
      56             : {
      57             : private:
      58             :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel;
      59             :     SvXMLExport* mpExport;
      60             :     SvXMLImport* mpImport;
      61             : 
      62             : public:
      63             :     XMLSdPropHdlFactory( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >, SvXMLExport& rExport );
      64             :     XMLSdPropHdlFactory( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >, SvXMLImport& rImport );
      65             :     virtual ~XMLSdPropHdlFactory();
      66             :     virtual const XMLPropertyHandler* GetPropertyHandler( sal_Int32 nType ) const SAL_OVERRIDE;
      67             : };
      68             : 
      69             : class XMLShapePropertySetMapper : public XMLPropertySetMapper
      70             : {
      71             : public:
      72             :     XMLShapePropertySetMapper(const rtl::Reference< XMLPropertyHandlerFactory >& rFactoryRef, bool bForExport);
      73             :     virtual ~XMLShapePropertySetMapper();
      74             : };
      75             : 
      76             : class XMLShapeExportPropertyMapper : public SvXMLExportPropertyMapper
      77             : {
      78             : private:
      79             :     SvxXMLNumRuleExport maNumRuleExp;
      80             :     bool mbIsInAutoStyles;
      81             : 
      82             : protected:
      83             :     virtual void ContextFilter(
      84             :         bool bEnableFoFontFamily,
      85             :         ::std::vector< XMLPropertyState >& rProperties,
      86             :         ::com::sun::star::uno::Reference<
      87             :             ::com::sun::star::beans::XPropertySet > rPropSet ) const SAL_OVERRIDE;
      88             : public:
      89             :     XMLShapeExportPropertyMapper( const rtl::Reference< XMLPropertySetMapper >& rMapper, SvXMLExport& rExport );
      90             :     virtual ~XMLShapeExportPropertyMapper();
      91             : 
      92             :     virtual void        handleElementItem(
      93             :                             SvXMLExport& rExport,
      94             :                             const XMLPropertyState& rProperty,
      95             :                             sal_uInt16 nFlags,
      96             :                             const ::std::vector< XMLPropertyState >* pProperties = 0,
      97             :                             sal_uInt32 nIdx = 0
      98             :                             ) const SAL_OVERRIDE;
      99             : 
     100         156 :     void SetAutoStyles( bool bIsInAutoStyles ) { mbIsInAutoStyles = bIsInAutoStyles; }
     101             : 
     102             :     virtual void handleSpecialItem(
     103             :             SvXMLAttributeList& rAttrList,
     104             :             const XMLPropertyState& rProperty,
     105             :             const SvXMLUnitConverter& rUnitConverter,
     106             :             const SvXMLNamespaceMap& rNamespaceMap,
     107             :             const ::std::vector< XMLPropertyState > *pProperties = 0,
     108             :             sal_uInt32 nIdx = 0 ) const SAL_OVERRIDE;
     109             : };
     110             : 
     111             : class XMLPageExportPropertyMapper : public SvXMLExportPropertyMapper
     112             : {
     113             : private:
     114             :     SvXMLExport& mrExport;
     115             : 
     116             : protected:
     117             :     virtual void ContextFilter(
     118             :         bool bEnableFoFontFamily,
     119             :         ::std::vector< XMLPropertyState >& rProperties,
     120             :         ::com::sun::star::uno::Reference<
     121             :             ::com::sun::star::beans::XPropertySet > rPropSet ) const SAL_OVERRIDE;
     122             : public:
     123             :     XMLPageExportPropertyMapper( const rtl::Reference< XMLPropertySetMapper >& rMapper, SvXMLExport& rExport );
     124             :     virtual ~XMLPageExportPropertyMapper();
     125             : 
     126             :     virtual void        handleElementItem(
     127             :                             SvXMLExport& rExport,
     128             :                             const XMLPropertyState& rProperty,
     129             :                             sal_uInt16 nFlags,
     130             :                             const ::std::vector< XMLPropertyState >* pProperties = 0,
     131             :                             sal_uInt32 nIdx = 0
     132             :                             ) const SAL_OVERRIDE;
     133             : };
     134             : 
     135             : #endif // INCLUDED_XMLOFF_SOURCE_DRAW_SDPROPLS_HXX
     136             : 
     137             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10