LCOV - code coverage report
Current view: top level - include/xmloff - xmlnumi.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 2 2 100.0 %
Date: 2014-11-03 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_XMLNUMI_HXX
      21             : #define INCLUDED_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 SvxXMLListLevelStyleContext_Impl;
      31             : typedef std::vector<SvxXMLListLevelStyleContext_Impl *> SvxXMLListStyle_Impl;
      32             : 
      33             : class SvxXMLListStyleContext : public SvXMLStyleContext
      34             : {
      35             :     const OUString       sIsPhysical;
      36             :     const OUString       sNumberingRules;
      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             :     bool                        bConsecutive : 1;
      46             :     bool                        bOutline : 1;
      47             : 
      48             : protected:
      49             : 
      50             :     virtual void SetAttribute( sal_uInt16 nPrefixKey,
      51             :                                const OUString& rLocalName,
      52             :                                const OUString& rValue ) SAL_OVERRIDE;
      53             : 
      54             : public:
      55             : 
      56             :     TYPEINFO_OVERRIDE();
      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             :             bool bOutl = 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 ) SAL_OVERRIDE;
      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         126 :         ::com::sun::star::container::XIndexReplace >& GetNumRules() const
      80         126 :         { return xNumRules; }
      81             :     bool IsOutline() const { return bOutline; }
      82             :     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             :         bool bOrdered );
      96             : 
      97             :     virtual void CreateAndInsertLate( bool bOverwrite ) SAL_OVERRIDE;
      98             : 
      99             :     void CreateAndInsertAuto() const;
     100             : };
     101             : 
     102             : #endif // INCLUDED_XMLOFF_XMLNUMI_HXX
     103             : 
     104             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10