LCOV - code coverage report
Current view: top level - include/xmloff - xmlnume.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             : 
      20             : #ifndef INCLUDED_XMLOFF_XMLNUME_HXX
      21             : #define INCLUDED_XMLOFF_XMLNUME_HXX
      22             : 
      23             : #include <rtl/ustring.hxx>
      24             : #include <tools/mapunit.hxx>
      25             : #include <xmloff/attrlist.hxx>
      26             : 
      27             : namespace com { namespace sun { namespace star {
      28             :     namespace frame { class XModel; }
      29             :     namespace style { class XStyle; }
      30             :     namespace container { class XIndexReplace; }
      31             :     namespace beans { struct PropertyValue; }
      32             : } } }
      33             : 
      34             : class SvXMLNamespaceMap;
      35             : class SvXMLUnitConverter;
      36             : class SvXMLExportItemMapper;
      37             : class SvXMLExport;
      38             : class XMLTextListAutoStylePool;
      39             : 
      40             : class XMLOFF_DLLPUBLIC SvxXMLNumRuleExport
      41             : {
      42             :     SvXMLExport& rExport;
      43             :     const OUString sNumberingRules;
      44             :     const OUString sIsPhysical;
      45             :     const OUString sIsContinuousNumbering;
      46             :     // Boolean indicating, if properties for position-and-space-mode LABEL_ALIGNEMNT
      47             :     // are exported or not. (#i89178#)
      48             :     // These properties have been introduced in ODF 1.2. Thus, its export have
      49             :     // to be suppressed on writing ODF 1.0 respectively ODF 1.1
      50             :     bool mbExportPositionAndSpaceModeLabelAlignment;
      51             : 
      52             :     SAL_DLLPRIVATE void exportLevelStyle(
      53             :             sal_Int32 nLevel,
      54             :             const ::com::sun::star::uno::Sequence<
      55             :                 ::com::sun::star::beans::PropertyValue>& rProps,
      56             :             bool bOutline=false );
      57             : 
      58             : protected:
      59             : 
      60             :     /// Override this to add attributes to the <list-style> element.
      61             :     SAL_DLLPRIVATE virtual void AddListStyleAttributes();
      62             : 
      63             :     SAL_DLLPRIVATE bool exportStyle( const ::com::sun::star::uno::Reference<
      64             :                             ::com::sun::star::style::XStyle >& rStyle );
      65             :     SAL_DLLPRIVATE void exportOutline();
      66             : 
      67       54230 :     SvXMLExport& GetExport() { return rExport; }
      68             : 
      69             : public:
      70             : 
      71             :     SvxXMLNumRuleExport( SvXMLExport& rExport );
      72             :     virtual ~SvxXMLNumRuleExport();
      73             : 
      74             :     // should be private but sw::StoredChapterNumberingExport needs it
      75             :     void exportLevelStyles(
      76             :             const ::com::sun::star::uno::Reference<
      77             :                 ::com::sun::star::container::XIndexReplace > & xNumRule,
      78             :             bool bOutline=false );
      79             : 
      80             :     void exportStyles( bool bUsed,
      81             :                        XMLTextListAutoStylePool *pPool,
      82             :                        bool bExportChapterNumbering = true );
      83             :     void exportNumberingRule(
      84             :             const OUString& rName, bool bIsHidden,
      85             :             const ::com::sun::star::uno::Reference<
      86             :                 ::com::sun::star::container::XIndexReplace > & xNumRule );
      87             : };
      88             : 
      89             : #endif // INCLUDED_XMLOFF_XMLNUME_HXX
      90             : 
      91             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11