LCOV - code coverage report
Current view: top level - include/svl - rngitem.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 2 0.0 %
Date: 2014-11-03 Functions: 0 3 0.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_SVL_RNGITEM_HXX
      21             : #define INCLUDED_SVL_RNGITEM_HXX
      22             : 
      23             : #include <svl/svldllapi.h>
      24             : #include <svl/poolitem.hxx>
      25             : 
      26             : class SvStream;
      27             : 
      28             : 
      29             : 
      30           0 : class SVL_DLLPUBLIC SfxRangeItem : public SfxPoolItem
      31             : {
      32             : private:
      33             :     sal_uInt16                  nFrom;
      34             :     sal_uInt16                  nTo;
      35             : public:
      36             :                                 TYPEINFO_OVERRIDE();
      37             :                                 SfxRangeItem();
      38             :                                 SfxRangeItem( sal_uInt16 nWID, sal_uInt16 nFrom, sal_uInt16 nTo );
      39             :                                 SfxRangeItem( const SfxRangeItem& rItem );
      40             :     virtual bool                operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
      41             :     virtual bool GetPresentation( SfxItemPresentation ePres,
      42             :                                     SfxMapUnit eCoreMetric,
      43             :                                     SfxMapUnit ePresMetric,
      44             :                                     OUString &rText,
      45             :                                     const IntlWrapper * = 0 ) const SAL_OVERRIDE;
      46             :     virtual SfxPoolItem*        Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
      47           0 :     inline sal_uInt16&          From() { return nFrom; }
      48             :     inline sal_uInt16           From() const { return nFrom; }
      49             :     inline sal_uInt16&          To() { return nTo; }
      50             :     inline sal_uInt16           To() const { return nTo; }
      51             :     inline bool             HasRange() const { return nTo>nFrom; }
      52             :     virtual SfxPoolItem*        Create( SvStream &, sal_uInt16 nVersion ) const SAL_OVERRIDE;
      53             :     virtual SvStream&           Store( SvStream &, sal_uInt16 nItemVersion ) const SAL_OVERRIDE;
      54             : };
      55             : 
      56             : 
      57             : 
      58             : class SVL_DLLPUBLIC SfxUShortRangesItem : public SfxPoolItem
      59             : {
      60             : private:
      61             :     sal_uInt16*                 _pRanges;
      62             : 
      63             : public:
      64             :                                 TYPEINFO_OVERRIDE();
      65             :                                 SfxUShortRangesItem();
      66             :                                 SfxUShortRangesItem( sal_uInt16 nWID, SvStream &rStream );
      67             :                                 SfxUShortRangesItem( const SfxUShortRangesItem& rItem );
      68             :     virtual                     ~SfxUShortRangesItem();
      69             :     virtual bool                operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
      70             :     virtual bool GetPresentation( SfxItemPresentation ePres,
      71             :                                     SfxMapUnit eCoreMetric,
      72             :                                     SfxMapUnit ePresMetric,
      73             :                                     OUString &rText,
      74             :                                     const IntlWrapper * = 0 ) const SAL_OVERRIDE;
      75             :     virtual SfxPoolItem*        Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
      76             :     inline const sal_uInt16*    GetRanges() const { return _pRanges; }
      77             :     virtual SfxPoolItem*        Create( SvStream &, sal_uInt16 nVersion ) const SAL_OVERRIDE;
      78             :     virtual SvStream&           Store( SvStream &, sal_uInt16 nItemVersion ) const SAL_OVERRIDE;
      79             : };
      80             : 
      81             : #endif
      82             : 
      83             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10