xref: /aoo42x/main/sw/inc/fmteiro.hxx (revision 1d2dbeb0)
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 _FMTEIRO_HXX
24 #define _FMTEIRO_HXX
25 
26 
27 #include <svl/eitem.hxx>
28 #include <hintids.hxx>
29 #include <format.hxx>
30 #include "swdllapi.h"
31 
32 class IntlWrapper;
33 
34 class SW_DLLPUBLIC SwFmtEditInReadonly : public SfxBoolItem
35 {
36 public:
SwFmtEditInReadonly(sal_uInt16 nId=RES_EDIT_IN_READONLY,sal_Bool bPrt=sal_False)37 	SwFmtEditInReadonly( sal_uInt16 nId = RES_EDIT_IN_READONLY,
38 					 sal_Bool bPrt = sal_False ) : SfxBoolItem( nId, bPrt ) {}
39 
40 	// "pure virtual Methoden" vom SfxPoolItem
41 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
42 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
43 									SfxMapUnit eCoreMetric,
44 									SfxMapUnit ePresMetric,
45 									String &rText,
46                                     const IntlWrapper*    pIntl = 0 ) const;
47 };
48 
GetEditInReadonly(sal_Bool bInP) const49 inline const SwFmtEditInReadonly &SwAttrSet::GetEditInReadonly(sal_Bool bInP) const
50 	{ return (const SwFmtEditInReadonly&)Get( RES_EDIT_IN_READONLY,bInP); }
51 
GetEditInReadonly(sal_Bool bInP) const52 inline const SwFmtEditInReadonly &SwFmt::GetEditInReadonly(sal_Bool bInP) const
53 	{ return aSet.GetEditInReadonly(bInP); }
54 
55 #endif
56 
57