LCOV - code coverage report
Current view: top level - include/xmloff - styleexp.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 1 100.0 %
Date: 2015-06-13 12:38:46 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             : #ifndef INCLUDED_XMLOFF_STYLEEXP_HXX
      20             : #define INCLUDED_XMLOFF_STYLEEXP_HXX
      21             : 
      22             : #include <sal/config.h>
      23             : #include <xmloff/dllapi.h>
      24             : #include <rtl/ustring.hxx>
      25             : #include <com/sun/star/uno/Reference.h>
      26             : 
      27             : #include <salhelper/simplereferenceobject.hxx>
      28             : 
      29             : namespace com { namespace sun { namespace star
      30             : {
      31             :     namespace style
      32             :     {
      33             :         class XStyle;
      34             :     }
      35             :     namespace beans
      36             :     {
      37             :         class XPropertySet;
      38             :     }
      39             :     namespace container
      40             :     {
      41             :         class XNameAccess;
      42             :     }
      43             : 
      44             : } } }
      45             : 
      46             : class XMLPropertySetMapper;
      47             : class SvXMLExportPropertyMapper;
      48             : class SvXMLAutoStylePoolP;
      49             : class SvXMLExport;
      50             : 
      51             : class XMLOFF_DLLPUBLIC XMLStyleExport : public salhelper::SimpleReferenceObject
      52             : {
      53             :     SvXMLExport& rExport;
      54             : protected:
      55             :     const OUString sIsPhysical;
      56             :     const OUString sIsAutoUpdate;
      57             :     const OUString sFollowStyle;
      58             :     const OUString sNumberingStyleName;
      59             :     const OUString sOutlineLevel;
      60             : 
      61       73527 :     SvXMLExport& GetExport() { return rExport; }
      62             :     const SvXMLExport& GetExport() const  { return rExport; }
      63             : 
      64             : private:
      65             : 
      66             :     const OUString sPoolStyleName;
      67             : 
      68             :     SvXMLAutoStylePoolP *pAutoStylePool;
      69             : 
      70             : protected:
      71             : 
      72             :     bool exportStyle(
      73             :         const ::com::sun::star::uno::Reference<
      74             :         ::com::sun::star::style::XStyle > & rStyle,
      75             :         const OUString& rXMLFamily,
      76             :         const rtl::Reference < SvXMLExportPropertyMapper >& rPropMapper,
      77             :         const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xStyles,
      78             :         const OUString* pPrefix = 0L );
      79             : 
      80             :     virtual void exportStyleAttributes(
      81             :         const ::com::sun::star::uno::Reference<
      82             :                 ::com::sun::star::style::XStyle > & rStyle );
      83             : 
      84             :     virtual void exportStyleContent(
      85             :         const ::com::sun::star::uno::Reference<
      86             :                 ::com::sun::star::style::XStyle > & rStyle );
      87             : public:
      88             :     XMLStyleExport(
      89             :         SvXMLExport& rExp,
      90             :         const OUString& rPoolStyleName,
      91             :         SvXMLAutoStylePoolP *pAutoStyleP=0 );
      92             :     virtual ~XMLStyleExport();
      93             : 
      94             : //  void exportStyleFamily(
      95             : //      const OUString& rFamily, const OUString& rXMLFamily,
      96             : //      const rtl::Reference < XMLPropertySetMapper >& rPropMapper,
      97             : //      bool bUsed, sal_uInt16 nFamily = 0,
      98             : //      const OUString* pPrefix = 0L);
      99             : 
     100             : //  void exportStyleFamily(
     101             : //      const sal_Char *pFamily, const OUString& rXMLFamily,
     102             : //      const rtl::Reference < XMLPropertySetMapper >& rPropMapper,
     103             : //      bool bUsed, sal_uInt16 nFamily = 0,
     104             : //      const OUString* pPrefix = 0L);
     105             : 
     106             :     bool exportDefaultStyle(
     107             :         const ::com::sun::star::uno::Reference<
     108             :                 ::com::sun::star::beans::XPropertySet > & xPropSet,
     109             :         const OUString& rXMLFamily,
     110             :         const rtl::Reference < SvXMLExportPropertyMapper >& rPropMapper );
     111             : 
     112             :     void exportStyleFamily(
     113             :         const OUString& rFamily, const OUString& rXMLFamily,
     114             :         const rtl::Reference < SvXMLExportPropertyMapper >& rPropMapper,
     115             :         bool bUsed, sal_uInt16 nFamily = 0,
     116             :         const OUString* pPrefix = 0L);
     117             : 
     118             :     void exportStyleFamily(
     119             :         const sal_Char *pFamily, const OUString& rXMLFamily,
     120             :         const rtl::Reference < SvXMLExportPropertyMapper >& rPropMapper,
     121             :         bool bUsed, sal_uInt16 nFamily = 0,
     122             :         const OUString* pPrefix = 0L);
     123             : };
     124             : 
     125             : #endif
     126             : 
     127             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11