fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / include / editeng / optitems.hxx
blob34970ebbc42c5a2e97723407a6dbeee2ff72d399
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 .
19 #ifndef _EDITENG_OPTITEMS_HXX
20 #define _EDITENG_OPTITEMS_HXX
22 #include <svl/poolitem.hxx>
23 #include <com/sun/star/uno/Reference.hxx>
24 #include <editeng/editengdllapi.h>
26 // forward ---------------------------------------------------------------
27 namespace com { namespace sun { namespace star {
28 namespace linguistic2{
29 class XSpellChecker1;
30 }}}}
33 // class SfxSpellCheckItem -----------------------------------------------
35 class EDITENG_DLLPUBLIC SfxSpellCheckItem: public SfxPoolItem
37 public:
38 TYPEINFO();
40 SfxSpellCheckItem( ::com::sun::star::uno::Reference<
41 ::com::sun::star::linguistic2::XSpellChecker1 > &xChecker,
42 sal_uInt16 nWhich );
43 SfxSpellCheckItem( const SfxSpellCheckItem& rItem );
45 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
46 SfxMapUnit eCoreMetric,
47 SfxMapUnit ePresMetric,
48 OUString &rText, const IntlWrapper * = 0 ) const;
50 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
51 virtual int operator==( const SfxPoolItem& ) const;
53 ::com::sun::star::uno::Reference<
54 ::com::sun::star::linguistic2::XSpellChecker1 >
55 GetXSpellChecker() const { return xSpellCheck; }
57 private:
58 ::com::sun::star::uno::Reference<
59 ::com::sun::star::linguistic2::XSpellChecker1 > xSpellCheck;
63 // class SfxHyphenRegionItem ---------------------------------------------
65 class EDITENG_DLLPUBLIC SfxHyphenRegionItem: public SfxPoolItem
67 sal_uInt8 nMinLead;
68 sal_uInt8 nMinTrail;
70 public:
71 TYPEINFO();
73 SfxHyphenRegionItem( const sal_uInt16 nId );
74 SfxHyphenRegionItem( const SfxHyphenRegionItem& rItem );
76 virtual int operator==( const SfxPoolItem& ) const;
77 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
78 SfxMapUnit eCoreMetric,
79 SfxMapUnit ePresMetric,
80 OUString &rText, const IntlWrapper * = 0 ) const;
82 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
83 virtual SfxPoolItem* Create( SvStream& rStrm, sal_uInt16 nVer ) const;
84 virtual SvStream& Store( SvStream& rStrm, sal_uInt16 ) const;
86 inline sal_uInt8 &GetMinLead() { return nMinLead; }
87 inline sal_uInt8 GetMinLead() const { return nMinLead; }
89 inline sal_uInt8 &GetMinTrail() { return nMinTrail; }
90 inline sal_uInt8 GetMinTrail() const { return nMinTrail; }
92 inline SfxHyphenRegionItem& operator=( const SfxHyphenRegionItem& rNew )
94 nMinLead = rNew.GetMinLead();
95 nMinTrail = rNew.GetMinTrail();
96 return *this;
100 #endif
102 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */