LCOV - code coverage report
Current view: top level - xmloff/source/text - txtexppr.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 1 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             : #ifndef INCLUDED_XMLOFF_SOURCE_TEXT_TXTEXPPR_HXX
      20             : #define INCLUDED_XMLOFF_SOURCE_TEXT_TXTEXPPR_HXX
      21             : 
      22             : 
      23             : #include <xmloff/xmlexppr.hxx>
      24             : #include "txtdrope.hxx"
      25             : #include <xmloff/xmltabe.hxx>
      26             : #include "XMLTextColumnsExport.hxx"
      27             : #include "XMLBackgroundImageExport.hxx"
      28             : 
      29             : class SvXMLExport;
      30             : class XMLTextExportPropertySetMapper: public SvXMLExportPropertyMapper
      31             : {
      32             :     SvXMLExport& rExport;
      33             : 
      34             :     OUString sDropCharStyle;
      35             :     bool bDropWholeWord;
      36             : 
      37             :     void ContextFontFilter(
      38             :                 bool bEnableFoFontFamily,
      39             :                 XMLPropertyState *pFontNameState,
      40             :                 XMLPropertyState *pFontFamilyNameState,
      41             :                 XMLPropertyState *pFontStyleNameState,
      42             :                 XMLPropertyState *pFontFamilyState,
      43             :                 XMLPropertyState *pFontPitchState,
      44             :                 XMLPropertyState *pFontCharsetState ) const;
      45             :     static void ContextFontHeightFilter(
      46             :                 XMLPropertyState* pCharHeightState,
      47             :                 XMLPropertyState* pCharPropHeightState,
      48             :                 XMLPropertyState* pCharDiffHeightState );
      49             : 
      50             : protected:
      51             : //  SvXMLUnitConverter& mrUnitConverter;
      52             : //  const Reference< xml::sax::XDocumentHandler > & mrHandler;
      53             :     XMLTextDropCapExport maDropCapExport;
      54             :     SvxXMLTabStopExport maTabStopExport;
      55             :     XMLTextColumnsExport maTextColumnsExport;
      56             :     XMLBackgroundImageExport maBackgroundImageExport;
      57             : 
      58             :     /** Application-specific filter. By default do nothing. */
      59             :     virtual void ContextFilter(
      60             :             bool bEnableFoFontFamily,
      61             :             ::std::vector< XMLPropertyState >& rProperties,
      62             :             ::com::sun::star::uno::Reference<
      63             :                         ::com::sun::star::beans::XPropertySet > rPropSet ) const SAL_OVERRIDE;
      64       15762 :     const SvXMLExport& GetExport() const { return rExport; }
      65             : 
      66             : public:
      67             : 
      68             :     XMLTextExportPropertySetMapper(
      69             :             const rtl::Reference< XMLPropertySetMapper >& rMapper,
      70             :             SvXMLExport& rExt );
      71             :     virtual ~XMLTextExportPropertySetMapper();
      72             : 
      73             :     virtual void handleElementItem(
      74             :         SvXMLExport& rExport,
      75             :         const XMLPropertyState& rProperty,
      76             :         SvXmlExportFlags nFlags,
      77             :         const ::std::vector< XMLPropertyState > *pProperties = 0,
      78             :         sal_uInt32 nIdx = 0 ) const SAL_OVERRIDE;
      79             : 
      80             :     virtual void handleSpecialItem(
      81             :         SvXMLAttributeList& rAttrList,
      82             :         const XMLPropertyState& rProperty,
      83             :         const SvXMLUnitConverter& rUnitConverter,
      84             :         const SvXMLNamespaceMap& rNamespaceMap,
      85             :         const ::std::vector< XMLPropertyState > *pProperties = 0,
      86             :         sal_uInt32 nIdx = 0 ) const SAL_OVERRIDE;
      87             : };
      88             : 
      89             : 
      90             : #endif
      91             : 
      92             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11