LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/xmloff - styleexp.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2012-12-27 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 _XMLOFF_STYLEEXP_HXX_
      20             : #define _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 ::rtl::OUString sIsPhysical;
      56             :     const ::rtl::OUString sIsAutoUpdate;
      57             :     const ::rtl::OUString sFollowStyle;
      58             :     const ::rtl::OUString sNumberingStyleName;
      59             :     const ::rtl::OUString sOutlineLevel;
      60             : 
      61           4 :     SvXMLExport& GetExport() { return rExport; }
      62             :     const SvXMLExport& GetExport() const  { return rExport; }
      63             : 
      64             : private:
      65             : 
      66             :     const ::rtl::OUString sPoolStyleName;
      67             : 
      68             :     SvXMLAutoStylePoolP *pAutoStylePool;
      69             : 
      70             : protected:
      71             : 
      72             :     virtual sal_Bool exportStyle(
      73             :         const ::com::sun::star::uno::Reference<
      74             :         ::com::sun::star::style::XStyle > & rStyle,
      75             :         const ::rtl::OUString& rXMLFamily,
      76             :         const UniReference < SvXMLExportPropertyMapper >& rPropMapper,
      77             :         const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xStyles,
      78             :         const ::rtl::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 ::rtl::OUString& rPoolStyleName,
      91             :         SvXMLAutoStylePoolP *pAutoStyleP=0 );
      92             :     virtual ~XMLStyleExport();
      93             : 
      94             : //  void exportStyleFamily(
      95             : //      const ::rtl::OUString& rFamily, const ::rtl::OUString& rXMLFamily,
      96             : //      const UniReference < XMLPropertySetMapper >& rPropMapper,
      97             : //      sal_Bool bUsed, sal_uInt16 nFamily = 0,
      98             : //      const ::rtl::OUString* pPrefix = 0L);
      99             : 
     100             : //  void exportStyleFamily(
     101             : //      const sal_Char *pFamily, const ::rtl::OUString& rXMLFamily,
     102             : //      const UniReference < XMLPropertySetMapper >& rPropMapper,
     103             : //      sal_Bool bUsed, sal_uInt16 nFamily = 0,
     104             : //      const ::rtl::OUString* pPrefix = 0L);
     105             : 
     106             :     virtual sal_Bool exportDefaultStyle(
     107             :         const ::com::sun::star::uno::Reference<
     108             :                 ::com::sun::star::beans::XPropertySet > & xPropSet,
     109             :         const ::rtl::OUString& rXMLFamily,
     110             :         const UniReference < SvXMLExportPropertyMapper >& rPropMapper );
     111             : 
     112             :     void exportStyleFamily(
     113             :         const ::rtl::OUString& rFamily, const ::rtl::OUString& rXMLFamily,
     114             :         const UniReference < SvXMLExportPropertyMapper >& rPropMapper,
     115             :         sal_Bool bUsed, sal_uInt16 nFamily = 0,
     116             :         const ::rtl::OUString* pPrefix = 0L);
     117             : 
     118             :     void exportStyleFamily(
     119             :         const sal_Char *pFamily, const ::rtl::OUString& rXMLFamily,
     120             :         const UniReference < SvXMLExportPropertyMapper >& rPropMapper,
     121             :         sal_Bool bUsed, sal_uInt16 nFamily = 0,
     122             :         const ::rtl::OUString* pPrefix = 0L);
     123             : };
     124             : 
     125             : #endif
     126             : 
     127             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10