LCOV - code coverage report
Current view: top level - include/xmloff - XMLPageExport.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 4 0.0 %
Date: 2014-04-14 Functions: 0 6 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             : 
      20             : #ifndef INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX
      21             : #define INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX
      22             : 
      23             : #include <sal/config.h>
      24             : #include <xmloff/dllapi.h>
      25             : #include <sal/types.h>
      26             : #include <rtl/ustring.hxx>
      27             : #include <vector>
      28             : #include <xmloff/attrlist.hxx>
      29             : #include <xmloff/uniref.hxx>
      30             : #include <com/sun/star/container/XIndexAccess.hpp>
      31             : 
      32             : namespace com { namespace sun { namespace star {
      33             :     namespace style { class XStyle; }
      34             :     namespace container { class XIndexReplace; class XNameAccess;}
      35             :     namespace beans { class XPropertySet; }
      36             : } } }
      37             : 
      38             : class SvXMLExport;
      39             : class XMLPropertyHandlerFactory;
      40             : class XMLPropertySetMapper;
      41             : class SvXMLExportPropertyMapper;
      42             : 
      43             : 
      44             : 
      45           0 : struct XMLPageExportNameEntry
      46             : {
      47             :     OUString         sPageMasterName;
      48             :     OUString         sStyleName;
      49             : };
      50             : 
      51             : 
      52             : 
      53             : class XMLOFF_DLLPUBLIC XMLPageExport : public UniRefBase
      54             : {
      55             :     SvXMLExport& rExport;
      56             : 
      57             :     const OUString sIsPhysical;
      58             :     const OUString sFollowStyle;
      59             : 
      60             :     ::com::sun::star::uno::Reference<
      61             :         ::com::sun::star::container::XNameAccess > xPageStyles;
      62             : 
      63             :     ::std::vector< XMLPageExportNameEntry > aNameVector;
      64             :     SAL_DLLPRIVATE bool findPageMasterName( const OUString& rStyleName, OUString& rPMName ) const;
      65             : 
      66             :     UniReference < XMLPropertyHandlerFactory > xPageMasterPropHdlFactory;
      67             :     UniReference < XMLPropertySetMapper > xPageMasterPropSetMapper;
      68             :     UniReference < SvXMLExportPropertyMapper > xPageMasterExportPropMapper;
      69             : 
      70             : protected:
      71             : 
      72           0 :     SvXMLExport& GetExport() { return rExport; }
      73             : 
      74             :     virtual void collectPageMasterAutoStyle(
      75             :                 const ::com::sun::star::uno::Reference <
      76             :                     ::com::sun::star::beans::XPropertySet > & rPropSet,
      77             :                 OUString& rPageMasterName );
      78             : 
      79             :     virtual void exportMasterPageContent(
      80             :                 const ::com::sun::star::uno::Reference <
      81             :                     ::com::sun::star::beans::XPropertySet > & rPropSet,
      82             :                  bool bAutoStyles );
      83             : 
      84             :     bool exportStyle(
      85             :                 const ::com::sun::star::uno::Reference<
      86             :                     ::com::sun::star::style::XStyle >& rStyle,
      87             :                 bool bAutoStyles );
      88             : 
      89             :     void exportStyles( bool bUsed, bool bAutoStyles );
      90             : 
      91             : public:
      92             :     XMLPageExport( SvXMLExport& rExp );
      93             :     virtual ~XMLPageExport();
      94             : 
      95           0 :     void    collectAutoStyles( bool bUsed )     { exportStyles( bUsed, true ); }
      96             :     void    exportAutoStyles();
      97           0 :     void    exportMasterStyles( bool bUsed )    { exportStyles( bUsed, false ); }
      98             : 
      99             :     //text grid enhancement for better CJK support
     100             :     void exportDefaultStyle();
     101             : };
     102             : 
     103             : #endif // INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX
     104             : 
     105             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10