LCOV - code coverage report
Current view: top level - include/xmloff - controlpropertyhdl.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 5 5 100.0 %
Date: 2015-06-13 12:38:46 Functions: 10 10 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_CONTROLPROPERTYHDL_HXX
      21             : #define INCLUDED_XMLOFF_CONTROLPROPERTYHDL_HXX
      22             : 
      23             : #include <sal/config.h>
      24             : #include <xmloff/dllapi.h>
      25             : #include <xmloff/prhdlfac.hxx>
      26             : #include <rtl/ref.hxx>
      27             : #include <rtl/ustring.hxx>
      28             : #include <xmloff/xmlexppr.hxx>
      29             : #include <xmloff/XMLConstantsPropertyHandler.hxx>
      30             : 
      31             : struct SvXMLEnumMapEntry;
      32             : class Color;
      33             : 
      34             : namespace xmloff
      35             : {
      36             : 
      37             : 
      38             :     class IFormsExportContext;
      39             :     class OFormLayerXMLImport_Impl;
      40             : 
      41             : 
      42             :     //= ORotationAngleHandler
      43             : 
      44         654 :     class ORotationAngleHandler : public XMLPropertyHandler
      45             :     {
      46             :     public:
      47             :         ORotationAngleHandler();
      48             : 
      49             :         virtual bool importXML( const OUString& _rStrImpValue, ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const SAL_OVERRIDE;
      50             :         virtual bool exportXML( OUString& _rStrExpValue, const ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const SAL_OVERRIDE;
      51             :     };
      52             : 
      53             : 
      54             :     //= OFontWidthHandler
      55             : 
      56         654 :     class OFontWidthHandler : public XMLPropertyHandler
      57             :     {
      58             :     public:
      59             :         OFontWidthHandler();
      60             : 
      61             :         virtual bool importXML( const OUString& _rStrImpValue, ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const SAL_OVERRIDE;
      62             :         virtual bool exportXML( OUString& _rStrExpValue, const ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const SAL_OVERRIDE;
      63             :     };
      64             : 
      65             : 
      66             :     //= OControlBorderHandlerBase
      67             : 
      68       14620 :     class OControlBorderHandler : public XMLPropertyHandler
      69             :     {
      70             :     public:
      71             :         enum BorderFacet
      72             :         {
      73             :             STYLE,
      74             :             COLOR
      75             :         };
      76             : 
      77             :         OControlBorderHandler( const BorderFacet _eFacet );
      78             : 
      79             :         virtual bool importXML( const OUString& _rStrImpValue, ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const SAL_OVERRIDE;
      80             :         virtual bool exportXML( OUString& _rStrExpValue, const ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const SAL_OVERRIDE;
      81             : 
      82             :     private:
      83             :         BorderFacet m_eFacet;
      84             :     };
      85             : 
      86             : 
      87             :     //= OControlTextEmphasisHandler
      88             : 
      89        7062 :     class OControlTextEmphasisHandler : public XMLPropertyHandler
      90             :     {
      91             :     public:
      92             :         OControlTextEmphasisHandler();
      93             : 
      94             :         virtual bool importXML( const OUString& _rStrImpValue, ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const SAL_OVERRIDE;
      95             :         virtual bool exportXML( OUString& _rStrExpValue, const ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const SAL_OVERRIDE;
      96             :     };
      97             : 
      98             : 
      99             :     //= ImageScaleModeHandler
     100             : 
     101        7062 :     class XMLOFF_DLLPUBLIC ImageScaleModeHandler : public XMLConstantsPropertyHandler
     102             :     {
     103             :     public:
     104             :         ImageScaleModeHandler();
     105             :     };
     106             : 
     107             : 
     108             :     //= OControlPropertyHandlerFactory
     109             : 
     110             :     class XMLOFF_DLLPUBLIC OControlPropertyHandlerFactory : public XMLPropertyHandlerFactory
     111             :     {
     112             :     protected:
     113             :         mutable XMLConstantsPropertyHandler*    m_pTextAlignHandler;
     114             :         mutable OControlBorderHandler*          m_pControlBorderStyleHandler;
     115             :         mutable OControlBorderHandler*          m_pControlBorderColorHandler;
     116             :         mutable ORotationAngleHandler*          m_pRotationAngleHandler;
     117             :         mutable OFontWidthHandler*              m_pFontWidthHandler;
     118             :         mutable XMLConstantsPropertyHandler*    m_pFontEmphasisHandler;
     119             :         mutable XMLConstantsPropertyHandler*    m_pFontReliefHandler;
     120             : 
     121             :     protected:
     122             :         virtual ~OControlPropertyHandlerFactory();
     123             : 
     124             :     public:
     125             :         OControlPropertyHandlerFactory();
     126             : 
     127             :         virtual const XMLPropertyHandler* GetPropertyHandler(sal_Int32 _nType) const SAL_OVERRIDE;
     128             :     };
     129             : 
     130             : 
     131             : }   // namespace xmloff
     132             : 
     133             : 
     134             : #endif // INCLUDED_XMLOFF_CONTROLPROPERTYHDL_HXX
     135             : 
     136             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11