LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/xmloff - XMLPageExport.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 3 100.0 %
Date: 2012-12-27 Functions: 3 3 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 _XMLOFF_XMLPAGEEXPORT_HXX
      21             : #define _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             : struct XMLPageExportNameEntry
      46             : {
      47             :     ::rtl::OUString         sPageMasterName;
      48             :     ::rtl::OUString         sStyleName;
      49             : };
      50             : 
      51             : //______________________________________________________________________________
      52             : 
      53             : class XMLOFF_DLLPUBLIC XMLPageExport : public UniRefBase
      54             : {
      55             :     SvXMLExport& rExport;
      56             : 
      57             :     const ::rtl::OUString sIsPhysical;
      58             :     const ::rtl::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 sal_Bool findPageMasterName( const ::rtl::OUString& rStyleName, ::rtl::OUString& rPMName ) const;
      65             : 
      66             :     UniReference < XMLPropertyHandlerFactory > xPageMasterPropHdlFactory;
      67             :     UniReference < XMLPropertySetMapper > xPageMasterPropSetMapper;
      68             :     UniReference < SvXMLExportPropertyMapper > xPageMasterExportPropMapper;
      69             : 
      70             : protected:
      71             : 
      72          96 :     SvXMLExport& GetExport() { return rExport; }
      73             : 
      74             :     virtual void collectPageMasterAutoStyle(
      75             :                 const ::com::sun::star::uno::Reference <
      76             :                     ::com::sun::star::beans::XPropertySet > & rPropSet,
      77             :                 ::rtl::OUString& rPageMasterName );
      78             : 
      79             :     virtual void exportMasterPageContent(
      80             :                 const ::com::sun::star::uno::Reference <
      81             :                     ::com::sun::star::beans::XPropertySet > & rPropSet,
      82             :                  sal_Bool bAutoStyles );
      83             : 
      84             :     sal_Bool exportStyle(
      85             :                 const ::com::sun::star::uno::Reference<
      86             :                     ::com::sun::star::style::XStyle >& rStyle,
      87             :                 sal_Bool bAutoStyles );
      88             : 
      89             :     void exportStyles( sal_Bool bUsed, sal_Bool bAutoStyles );
      90             : 
      91             : public:
      92             :     XMLPageExport( SvXMLExport& rExp );
      93             :     ~XMLPageExport();
      94             : 
      95           4 :     void    collectAutoStyles( sal_Bool bUsed )     { exportStyles( bUsed, sal_True ); }
      96             :     void    exportAutoStyles();
      97           4 :     void    exportMasterStyles( sal_Bool bUsed )    { exportStyles( bUsed, sal_False ); }
      98             : 
      99             :     //text grid enhancement for better CJK support
     100             :     void exportDefaultStyle();
     101             : };
     102             : 
     103             : #endif  //  _XMLOFF_XMLTEXTMASTERPAGEEXPORT_HXX
     104             : 
     105             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10