LCOV - code coverage report
Current view: top level - xmloff/inc/xmloff - xmlnume.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2012-08-25 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef _XMLOFF_XMLNUME_HXX
      30                 :            : #define _XMLOFF_XMLNUME_HXX
      31                 :            : 
      32                 :            : #include <rtl/ustring.hxx>
      33                 :            : #include <tools/mapunit.hxx>
      34                 :            : #include <xmloff/XMLStringVector.hxx>
      35                 :            : #include <xmloff/attrlist.hxx>
      36                 :            : 
      37                 :            : namespace com { namespace sun { namespace star {
      38                 :            :     namespace frame { class XModel; }
      39                 :            :     namespace style { class XStyle; }
      40                 :            :     namespace container { class XIndexReplace; }
      41                 :            :     namespace beans { struct PropertyValue; }
      42                 :            : } } }
      43                 :            : 
      44                 :            : class SvXMLNamespaceMap;
      45                 :            : class SvXMLUnitConverter;
      46                 :            : class SvXMLExportItemMapper;
      47                 :            : class SvXMLExport;
      48                 :            : class XMLTextListAutoStylePool;
      49                 :            : 
      50                 :            : class SvxXMLNumRuleExport
      51                 :            : {
      52                 :            :     SvXMLExport& rExport;
      53                 :            :     const ::rtl::OUString sCDATA;
      54                 :            :     const ::rtl::OUString sWS;
      55                 :            :     const ::rtl::OUString sNumberingRules;
      56                 :            :     const ::rtl::OUString sIsPhysical;
      57                 :            :     const ::rtl::OUString sIsContinuousNumbering;
      58                 :            :     // Boolean indicating, if properties for position-and-space-mode LABEL_ALIGNEMNT
      59                 :            :     // are exported or not. (#i89178#)
      60                 :            :     // These properties have been introduced in ODF 1.2. Thus, its export have
      61                 :            :     // to be suppressed on writing ODF 1.0 respectively ODF 1.1
      62                 :            :     bool mbExportPositionAndSpaceModeLabelAlignment;
      63                 :            : 
      64                 :            :     void exportLevelStyles(
      65                 :            :             const ::com::sun::star::uno::Reference<
      66                 :            :                 ::com::sun::star::container::XIndexReplace > & xNumRule,
      67                 :            :             sal_Bool bOutline=sal_False );
      68                 :            : 
      69                 :            :     void exportLevelStyle(
      70                 :            :             sal_Int32 nLevel,
      71                 :            :             const ::com::sun::star::uno::Sequence<
      72                 :            :                 ::com::sun::star::beans::PropertyValue>& rProps,
      73                 :            :             sal_Bool bOutline=sal_False );
      74                 :            : 
      75                 :            : protected:
      76                 :            : 
      77                 :            :     // This method may be overloaded to add attributes to the <list-style>
      78                 :            :     // element.
      79                 :            :     virtual void AddListStyleAttributes();
      80                 :            : 
      81                 :            :     sal_Bool exportStyle( const ::com::sun::star::uno::Reference<
      82                 :            :                             ::com::sun::star::style::XStyle >& rStyle );
      83                 :            :     void exportOutline();
      84                 :            : 
      85                 :       8894 :     SvXMLExport& GetExport() { return rExport; }
      86                 :            : 
      87                 :            :      virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexReplace >  GetUNONumRule() const;
      88                 :            : 
      89                 :            : public:
      90                 :            : 
      91                 :            :     SvxXMLNumRuleExport( SvXMLExport& rExport );
      92                 :            :     virtual ~SvxXMLNumRuleExport();
      93                 :            : 
      94                 :            :     void exportStyles( sal_Bool bUsed,
      95                 :            :                        XMLTextListAutoStylePool *pPool,
      96                 :            :                        sal_Bool bExportChapterNumbering = sal_True );
      97                 :            :     void exportNumberingRule(
      98                 :            :             const ::rtl::OUString& rName,
      99                 :            :             const ::com::sun::star::uno::Reference<
     100                 :            :                 ::com::sun::star::container::XIndexReplace > & xNumRule );
     101                 :            : };
     102                 :            : 
     103                 :            : #endif  //  _XMLOFF_XMLNUME_HXX
     104                 :            : 
     105                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10