1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
22 #include <svl/intitem.hxx>
25 #include "pagedesc.hxx"
31 /*--------------------------------------------------------------------
32 Description: container for FootNote
33 --------------------------------------------------------------------*/
34 class SW_DLLPUBLIC SwPageFtnInfoItem
: public SfxPoolItem
36 SwPageFtnInfo aFtnInfo
;
40 SwPageFtnInfoItem(const sal_uInt16 nId
, SwPageFtnInfo
& rInfo
);
41 SwPageFtnInfoItem(const SwPageFtnInfoItem
& rItem
);
44 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const;
45 virtual int operator==( const SfxPoolItem
& ) const;
46 virtual SfxItemPresentation
GetPresentation( SfxItemPresentation ePres
,
47 SfxMapUnit eCoreMetric
,
48 SfxMapUnit ePresMetric
,
50 const IntlWrapper
* pIntl
= 0 ) const;
52 virtual bool QueryValue( com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const;
53 virtual bool PutValue( const com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 );
55 SwPageFtnInfo
& GetPageFtnInfo() { return aFtnInfo
; }
56 const SwPageFtnInfo
& GetPageFtnInfo() const { return aFtnInfo
; }
57 void SetPageFtnInfo(SwPageFtnInfo
& rInf
) { aFtnInfo
= rInf
; }
60 class SW_DLLPUBLIC SwPtrItem
: public SfxPoolItem
65 SwPtrItem( const sal_uInt16 nId
= FN_PARAM_GRF_DIALOG
, void* pPtr
= 0);
66 SwPtrItem( const SwPtrItem
& rItem
);
68 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const;
69 virtual int operator==( const SfxPoolItem
& ) const;
71 void SetValue(void * pPtr
) { pMisc
= pPtr
; }
72 void* GetValue() const { return pMisc
; }
75 class SW_DLLPUBLIC SwUINumRuleItem
: public SfxPoolItem
80 SwUINumRuleItem( const SwNumRule
& rRule
, const sal_uInt16
= FN_PARAM_ACT_NUMBER
);
81 SwUINumRuleItem( const SwUINumRuleItem
& rItem
);
82 virtual ~SwUINumRuleItem();
84 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const;
85 virtual int operator==( const SfxPoolItem
& ) const;
87 virtual bool QueryValue( com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const;
88 virtual bool PutValue( const com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 );
90 const SwNumRule
* GetNumRule() const { return pRule
; }
91 SwNumRule
* GetNumRule() { return pRule
; }
94 class SwBackgroundDestinationItem
: public SfxUInt16Item
97 SwBackgroundDestinationItem(sal_uInt16 nWhich
, sal_uInt16 nValue
);
99 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const;
102 class SW_DLLPUBLIC SwPaMItem
: public SfxPoolItem
107 SwPaMItem( const sal_uInt16 nId
= FN_PARAM_PAM
, SwPaM
* pPaM
= NULL
);
108 SwPaMItem( const SwPaMItem
& rItem
);
110 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const;
111 virtual int operator==( const SfxPoolItem
& ) const;
113 void SetValue(SwPaM
* pPaM
) { m_pPaM
= pPaM
; }
114 SwPaM
* GetValue() const { return m_pPaM
; }
117 #endif // _UIITEMS_HXX
119 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */