LCOV - code coverage report
Current view: top level - include/xmloff - styleexp.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 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 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 <xmloff/uniref.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 UniRefBase
      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           0 :     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             :     virtual bool exportStyle(
      73             :         const ::com::sun::star::uno::Reference<
      74             :         ::com::sun::star::style::XStyle > & rStyle,
      75             :         const OUString& rXMLFamily,
      76             :         const UniReference < 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 UniReference < 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 UniReference < XMLPropertySetMapper >& rPropMapper,
     103             : //      bool bUsed, sal_uInt16 nFamily = 0,
     104             : //      const OUString* pPrefix = 0L);
     105             : 
     106             :     virtual bool exportDefaultStyle(
     107             :         const ::com::sun::star::uno::Reference<
     108             :                 ::com::sun::star::beans::XPropertySet > & xPropSet,
     109             :         const OUString& rXMLFamily,
     110             :         const UniReference < SvXMLExportPropertyMapper >& rPropMapper );
     111             : 
     112             :     void exportStyleFamily(
     113             :         const OUString& rFamily, const OUString& rXMLFamily,
     114             :         const UniReference < 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 UniReference < 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.10