update emoji autocorrect entries from po-files
[LibreOffice.git] / include / svl / rngitem.hxx
blobac5bd12904aaf2c2bccf36832dc7ad4d8c1c69a9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SVL_RNGITEM_HXX
21 #define INCLUDED_SVL_RNGITEM_HXX
23 #include <svl/svldllapi.h>
24 #include <svl/poolitem.hxx>
26 class SvStream;
30 class SVL_DLLPUBLIC SfxRangeItem : public SfxPoolItem
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 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;
58 class SVL_DLLPUBLIC SfxUShortRangesItem : public SfxPoolItem
60 private:
61 sal_uInt16* _pRanges;
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;
81 #endif
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */