1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _SVX_KERNITEM_HXX 24 #define _SVX_KERNITEM_HXX 25 26 // include --------------------------------------------------------------- 27 28 #include <svl/intitem.hxx> 29 #include <editeng/editengdllapi.h> 30 31 class SvXMLUnitConverter; 32 namespace rtl 33 { 34 class OUString; 35 } 36 37 // class SvxKerningItem -------------------------------------------------- 38 39 // Achtung: Twips-Werte 40 // Twips: 0 = kein Kerning 41 42 /* [Beschreibung] 43 44 Dieses Item beschreibt die Schrift-Laufweite. 45 */ 46 47 class EDITENG_DLLPUBLIC SvxKerningItem : public SfxInt16Item 48 { 49 public: 50 TYPEINFO(); 51 52 SvxKerningItem( const short nKern /*= 0*/, const sal_uInt16 nId ); 53 54 // "pure virtual Methoden" vom SfxPoolItem 55 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 56 virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const; 57 virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const; 58 virtual int ScaleMetrics( long nMult, long nDiv ); 59 virtual int HasMetrics() const; 60 61 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, 62 SfxMapUnit eCoreMetric, 63 SfxMapUnit ePresMetric, 64 String &rText, const IntlWrapper * = 0 ) const; 65 operator =(const SvxKerningItem & rKern)66 inline SvxKerningItem& operator=(const SvxKerningItem& rKern) { 67 SetValue( rKern.GetValue() ); 68 return *this; 69 } 70 71 virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; 72 virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); 73 }; 74 75 #endif 76 77