Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 : #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_UIITEMS_HXX
20 : #define INCLUDED_SW_SOURCE_UIBASE_INC_UIITEMS_HXX
21 :
22 : #include <svl/intitem.hxx>
23 : #include "swdllapi.h"
24 : #include "cmdid.h"
25 : #include "pagedesc.hxx"
26 :
27 : class SwNumRule;
28 : class IntlWrapper;
29 : class SwPaM;
30 :
31 : // container for FootNote
32 : class SW_DLLPUBLIC SwPageFtnInfoItem : public SfxPoolItem
33 : {
34 : SwPageFtnInfo aFtnInfo;
35 :
36 : public:
37 :
38 : SwPageFtnInfoItem(const sal_uInt16 nId, SwPageFtnInfo& rInfo);
39 : SwPageFtnInfoItem(const SwPageFtnInfoItem& rItem );
40 : virtual ~SwPageFtnInfoItem();
41 :
42 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
43 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
44 : virtual bool GetPresentation( SfxItemPresentation ePres,
45 : SfxMapUnit eCoreMetric,
46 : SfxMapUnit ePresMetric,
47 : OUString &rText,
48 : const IntlWrapper* pIntl = 0 ) const SAL_OVERRIDE;
49 :
50 : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
51 : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
52 :
53 19734 : SwPageFtnInfo& GetPageFtnInfo() { return aFtnInfo; }
54 68458 : const SwPageFtnInfo& GetPageFtnInfo() const { return aFtnInfo; }
55 : void SetPageFtnInfo(SwPageFtnInfo& rInf) { aFtnInfo = rInf; }
56 : };
57 :
58 0 : class SW_DLLPUBLIC SwPtrItem : public SfxPoolItem
59 : {
60 : void* pMisc;
61 :
62 : public:
63 : SwPtrItem( const sal_uInt16 nId = FN_PARAM_GRF_DIALOG, void* pPtr = 0);
64 : SwPtrItem( const SwPtrItem& rItem );
65 :
66 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
67 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
68 :
69 : void SetValue(void * pPtr) { pMisc= pPtr; }
70 0 : void* GetValue() const { return pMisc; }
71 : };
72 :
73 : class SW_DLLPUBLIC SwUINumRuleItem : public SfxPoolItem
74 : {
75 : SwNumRule* pRule;
76 :
77 : public:
78 : SwUINumRuleItem( const SwNumRule& rRule, const sal_uInt16 = FN_PARAM_ACT_NUMBER);
79 : SwUINumRuleItem( const SwUINumRuleItem& rItem );
80 : virtual ~SwUINumRuleItem();
81 :
82 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
83 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
84 :
85 : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
86 : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
87 :
88 : const SwNumRule* GetNumRule() const { return pRule; }
89 0 : SwNumRule* GetNumRule() { return pRule; }
90 : };
91 :
92 0 : class SwBackgroundDestinationItem : public SfxUInt16Item
93 : {
94 : public:
95 : SwBackgroundDestinationItem(sal_uInt16 nWhich, sal_uInt16 nValue);
96 :
97 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
98 : };
99 :
100 0 : class SW_DLLPUBLIC SwPaMItem : public SfxPoolItem
101 : {
102 : SwPaM* m_pPaM;
103 :
104 : public:
105 : SwPaMItem( const sal_uInt16 nId = FN_PARAM_PAM, SwPaM* pPaM = NULL);
106 : SwPaMItem( const SwPaMItem& rItem );
107 :
108 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
109 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
110 :
111 : void SetValue(SwPaM * pPaM) { m_pPaM= pPaM; }
112 0 : SwPaM* GetValue() const { return m_pPaM; }
113 : };
114 :
115 : #endif // INCLUDED_SW_SOURCE_UIBASE_INC_UIITEMS_HXX
116 :
117 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|