Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef __EDITENG_JUSTIFYITEM_HXX__
30 : : #define __EDITENG_JUSTIFYITEM_HXX__
31 : :
32 : : #include "editeng/editengdllapi.h"
33 : : #include "editeng/svxenum.hxx"
34 : : #include <svl/eitem.hxx>
35 : : #include <sal/types.h>
36 : :
37 [ - + ]: 6460 : class EDITENG_DLLPUBLIC SvxHorJustifyItem: public SfxEnumItem
38 : : {
39 : : public:
40 : : TYPEINFO();
41 : :
42 : : SvxHorJustifyItem( const sal_uInt16 nId );
43 : :
44 : : SvxHorJustifyItem(
45 : : const SvxCellHorJustify eJustify /*= SVX_HOR_JUSTIFY_STANDARD*/,
46 : : const sal_uInt16 nId );
47 : :
48 : : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
49 : : SfxMapUnit eCoreMetric,
50 : : SfxMapUnit ePresMetric,
51 : : String &rText, const IntlWrapper * = 0 ) const;
52 : :
53 : : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
54 : : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
55 : :
56 : : virtual sal_uInt16 GetValueCount() const;
57 : : virtual String GetValueText( sal_uInt16 nVal ) const;
58 : : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
59 : : virtual SfxPoolItem* Create( SvStream& rStream, sal_uInt16 nVer ) const;
60 : :
61 : 258 : inline SvxHorJustifyItem& operator=(const SvxHorJustifyItem& rHorJustify)
62 : : {
63 : 258 : SetValue( rHorJustify.GetValue() );
64 : 258 : return *this;
65 : : }
66 : : };
67 : :
68 : : //------------------------------------------------------------------------
69 : :
70 [ - + ]: 4666 : class EDITENG_DLLPUBLIC SvxVerJustifyItem: public SfxEnumItem
71 : : {
72 : : public:
73 : : TYPEINFO();
74 : :
75 : : SvxVerJustifyItem( const sal_uInt16 nId );
76 : :
77 : : SvxVerJustifyItem(
78 : : const SvxCellVerJustify eJustify /*= SVX_VER_JUSTIFY_STANDARD*/,
79 : : const sal_uInt16 nId );
80 : :
81 : : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
82 : : SfxMapUnit eCoreMetric,
83 : : SfxMapUnit ePresMetric,
84 : : String &rText, const IntlWrapper * = 0 ) const;
85 : :
86 : : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
87 : : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
88 : :
89 : : virtual sal_uInt16 GetValueCount() const;
90 : : virtual String GetValueText( sal_uInt16 nVal ) const;
91 : : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
92 : : virtual SfxPoolItem* Create( SvStream& rStream, sal_uInt16 nVer ) const;
93 : :
94 : 257 : inline SvxVerJustifyItem& operator=(const SvxVerJustifyItem& rVerJustify)
95 : : {
96 : 257 : SetValue( rVerJustify.GetValue() );
97 : 257 : return *this;
98 : : }
99 : : };
100 : :
101 : : //------------------------------------------------------------------------
102 : :
103 [ - + ]: 6384 : class EDITENG_DLLPUBLIC SvxJustifyMethodItem: public SfxEnumItem
104 : : {
105 : : public:
106 : : SvxJustifyMethodItem(
107 : : const SvxCellJustifyMethod eMethod,
108 : : const sal_uInt16 nId );
109 : :
110 : : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
111 : : SfxMapUnit eCoreMetric,
112 : : SfxMapUnit ePresMetric,
113 : : String &rText, const IntlWrapper * = 0 ) const;
114 : :
115 : : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
116 : : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
117 : :
118 : : virtual sal_uInt16 GetValueCount() const;
119 : : virtual String GetValueText( sal_uInt16 nVal ) const;
120 : : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
121 : : virtual SfxPoolItem* Create( SvStream& rStream, sal_uInt16 nVer ) const;
122 : :
123 : : SvxJustifyMethodItem& operator=(const SvxJustifyMethodItem& r);
124 : : };
125 : :
126 : : #endif
127 : :
128 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|