LCOV - code coverage report
Current view: top level - include/xmloff - xmlnumi.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 2 2 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_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             : 
      30             : class SvxXMLListLevelStyleContext_Impl;
      31             : typedef std::vector<SvxXMLListLevelStyleContext_Impl *> SvxXMLListStyle_Impl;
      32             : 
      33             : class XMLOFF_DLLPUBLIC SvxXMLListStyleContext
      34             :     : public SvXMLStyleContext
      35             : {
      36             :     const OUString       sIsPhysical;
      37             :     const OUString       sNumberingRules;
      38             :     const OUString       sIsContinuousNumbering;
      39             : 
      40             :     ::com::sun::star::uno::Reference <
      41             :         ::com::sun::star::container::XIndexReplace > xNumRules;
      42             : 
      43             :     SvxXMLListStyle_Impl        *pLevelStyles;
      44             : 
      45             :     sal_Int32                   nLevels;
      46             :     bool                        bConsecutive : 1;
      47             :     bool                        bOutline : 1;
      48             : 
      49             : protected:
      50             : 
      51             :     SAL_DLLPRIVATE virtual void SetAttribute( sal_uInt16 nPrefixKey,
      52             :                                const OUString& rLocalName,
      53             :                                const OUString& rValue ) SAL_OVERRIDE;
      54             : 
      55             : public:
      56             : 
      57             :     TYPEINFO_OVERRIDE();
      58             : 
      59             :     SvxXMLListStyleContext(
      60             :             SvXMLImport& rImport, sal_uInt16 nPrfx,
      61             :             const OUString& rLName,
      62             :             const ::com::sun::star::uno::Reference<
      63             :                     ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
      64             :             bool bOutl = false );
      65             : 
      66             :     virtual ~SvxXMLListStyleContext();
      67             : 
      68             :     virtual SvXMLImportContext *CreateChildContext(
      69             :             sal_uInt16 nPrefix,
      70             :             const OUString& rLocalName,
      71             :             const ::com::sun::star::uno::Reference<
      72             :                     ::com::sun::star::xml::sax::XAttributeList >& xAttrList ) SAL_OVERRIDE;
      73             : 
      74             :     void FillUnoNumRule(
      75             :             const css::uno::Reference<
      76             :                     css::container::XIndexReplace> & rNumRule) const;
      77             : 
      78             :     const ::com::sun::star::uno::Reference <
      79         114 :         ::com::sun::star::container::XIndexReplace >& GetNumRules() const
      80         114 :         { 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.11