LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/include/xmloff - xmlnumi.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 2 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_XMLNUMI_HXX
      21             : #define _XMLOFF_XMLNUMI_HXX
      22             : 
      23             : #include <com/sun/star/container/XIndexReplace.hpp>
      24             : 
      25             : #include <xmloff/xmlstyle.hxx>
      26             : #include <com/sun/star/style/NumberingType.hpp>
      27             : 
      28             : namespace com { namespace sun { namespace star { namespace frame { class XModel; } } } }
      29             : class SvI18NMap;
      30             : class SvxXMLListStyle_Impl;
      31             : 
      32             : class SvxXMLListStyleContext : public SvXMLStyleContext
      33             : {
      34             :     const OUString       sIsPhysical;
      35             :     const OUString       sNumberingRules;
      36             :     const OUString       sName;
      37             :     const OUString       sIsContinuousNumbering;
      38             : 
      39             :     ::com::sun::star::uno::Reference <
      40             :         ::com::sun::star::container::XIndexReplace > xNumRules;
      41             : 
      42             :     SvxXMLListStyle_Impl        *pLevelStyles;
      43             : 
      44             :     sal_Int32                   nLevels;
      45             :     sal_Bool                    bConsecutive : 1;
      46             :     sal_Bool                    bOutline : 1;
      47             : 
      48             : protected:
      49             : 
      50             :     virtual void SetAttribute( sal_uInt16 nPrefixKey,
      51             :                                const OUString& rLocalName,
      52             :                                const OUString& rValue );
      53             : 
      54             : public:
      55             : 
      56             :     TYPEINFO();
      57             : 
      58             :     SvxXMLListStyleContext(
      59             :             SvXMLImport& rImport, sal_uInt16 nPrfx,
      60             :             const OUString& rLName,
      61             :             const ::com::sun::star::uno::Reference<
      62             :                     ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
      63             :             sal_Bool bOutl=sal_False );
      64             : 
      65             :     virtual ~SvxXMLListStyleContext();
      66             : 
      67             :     virtual SvXMLImportContext *CreateChildContext(
      68             :             sal_uInt16 nPrefix,
      69             :             const OUString& rLocalName,
      70             :             const ::com::sun::star::uno::Reference<
      71             :                     ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
      72             : 
      73             :     void FillUnoNumRule(
      74             :             const ::com::sun::star::uno::Reference<
      75             :                     ::com::sun::star::container::XIndexReplace > & rNumRule,
      76             :             const SvI18NMap *pI18NMap ) const;
      77             : 
      78             :     const ::com::sun::star::uno::Reference <
      79           8 :         ::com::sun::star::container::XIndexReplace >& GetNumRules() const
      80           8 :         { return xNumRules; }
      81             :     sal_Bool IsOutline() const { return bOutline; }
      82             :     sal_Bool IsConsecutive() const { return bConsecutive; }
      83             :     sal_Int32 GetLevels() const { return nLevels; }
      84             : 
      85             :     static ::com::sun::star::uno::Reference <
      86             :         ::com::sun::star::container::XIndexReplace >
      87             :     CreateNumRule(
      88             :         const ::com::sun::star::uno::Reference <
      89             :             ::com::sun::star::frame::XModel > & rModel );
      90             : 
      91             :     static void SetDefaultStyle(
      92             :         const ::com::sun::star::uno::Reference <
      93             :             ::com::sun::star::container::XIndexReplace > & rNumRule,
      94             :         sal_Int16 nLevel,
      95             :         sal_Bool bOrdered );
      96             : 
      97             :     virtual void CreateAndInsertLate( sal_Bool bOverwrite );
      98             : 
      99             :     void CreateAndInsertAuto() const;
     100             : };
     101             : 
     102             : #endif  //  _XMLOFF_XMLNUMI_HXX
     103             : 
     104             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10