LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/include/xmloff - xmlnume.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2013-07-09 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 _XMLOFF_XMLNUME_HXX
      21             : #define _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 SvxXMLNumRuleExport
      41             : {
      42             :     SvXMLExport& rExport;
      43             :     const OUString sCDATA;
      44             :     const OUString sWS;
      45             :     const OUString sNumberingRules;
      46             :     const OUString sIsPhysical;
      47             :     const OUString sIsContinuousNumbering;
      48             :     // Boolean indicating, if properties for position-and-space-mode LABEL_ALIGNEMNT
      49             :     // are exported or not. (#i89178#)
      50             :     // These properties have been introduced in ODF 1.2. Thus, its export have
      51             :     // to be suppressed on writing ODF 1.0 respectively ODF 1.1
      52             :     bool mbExportPositionAndSpaceModeLabelAlignment;
      53             : 
      54             :     void exportLevelStyles(
      55             :             const ::com::sun::star::uno::Reference<
      56             :                 ::com::sun::star::container::XIndexReplace > & xNumRule,
      57             :             sal_Bool bOutline=sal_False );
      58             : 
      59             :     void exportLevelStyle(
      60             :             sal_Int32 nLevel,
      61             :             const ::com::sun::star::uno::Sequence<
      62             :                 ::com::sun::star::beans::PropertyValue>& rProps,
      63             :             sal_Bool bOutline=sal_False );
      64             : 
      65             : protected:
      66             : 
      67             :     // This method may be overloaded to add attributes to the <list-style>
      68             :     // element.
      69             :     virtual void AddListStyleAttributes();
      70             : 
      71             :     sal_Bool exportStyle( const ::com::sun::star::uno::Reference<
      72             :                             ::com::sun::star::style::XStyle >& rStyle );
      73             :     void exportOutline();
      74             : 
      75       12702 :     SvXMLExport& GetExport() { return rExport; }
      76             : 
      77             : public:
      78             : 
      79             :     SvxXMLNumRuleExport( SvXMLExport& rExport );
      80             :     virtual ~SvxXMLNumRuleExport();
      81             : 
      82             :     void exportStyles( sal_Bool bUsed,
      83             :                        XMLTextListAutoStylePool *pPool,
      84             :                        sal_Bool bExportChapterNumbering = sal_True );
      85             :     void exportNumberingRule(
      86             :             const OUString& rName, sal_Bool bIsHidden,
      87             :             const ::com::sun::star::uno::Reference<
      88             :                 ::com::sun::star::container::XIndexReplace > & xNumRule );
      89             : };
      90             : 
      91             : #endif  //  _XMLOFF_XMLNUME_HXX
      92             : 
      93             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10