xref: /trunk/main/svx/inc/svx/xflbmsxy.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef _SVX_XFLBMSXY_HXX
29 #define _SVX_XFLBMSXY_HXX
30 
31 #include <svl/metitem.hxx>
32 #include "svx/svxdllapi.h"
33 
34 /*************************************************************************
35 |*
36 |*
37 |*
38 \************************************************************************/
39 
40 class SVX_DLLPUBLIC XFillBmpSizeXItem : public SfxMetricItem
41 {
42 public:
43 							TYPEINFO();
44 							XFillBmpSizeXItem( long nSizeX = 0 );
45 							SVX_DLLPRIVATE XFillBmpSizeXItem( SvStream& rIn );
46 
47 	SVX_DLLPRIVATE virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const;
48 	SVX_DLLPRIVATE virtual SfxPoolItem*    Create( SvStream& rIn, sal_uInt16 nVer ) const;
49 
50 	SVX_DLLPRIVATE virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
51 									SfxMapUnit eCoreMetric,
52 									SfxMapUnit ePresMetric,
53                                     String &rText, const IntlWrapper * = 0 ) const;
54 
55 	// Dieses Item nimmt sowohl metrische als auch
56 	// Prozentwerte ( sind negativ ) auf; das muessen
57 	// wir hier beruecksichtigen
58 	SVX_DLLPRIVATE virtual FASTBOOL		HasMetrics() const;
59 };
60 
61 /*************************************************************************
62 |*
63 |*
64 |*
65 \************************************************************************/
66 
67 class SVX_DLLPUBLIC XFillBmpSizeYItem : public SfxMetricItem
68 {
69 public:
70 							TYPEINFO();
71 							XFillBmpSizeYItem( long nSizeY = 0 );
72 							SVX_DLLPRIVATE XFillBmpSizeYItem( SvStream& rIn );
73 
74 	SVX_DLLPRIVATE virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const;
75 	SVX_DLLPRIVATE virtual SfxPoolItem*    Create( SvStream& rIn, sal_uInt16 nVer ) const;
76 
77 	SVX_DLLPRIVATE virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
78 									SfxMapUnit eCoreMetric,
79 									SfxMapUnit ePresMetric,
80                                     String &rText, const IntlWrapper * = 0 ) const;
81 
82 	// Dieses Item nimmt sowohl metrische als auch
83 	// Prozentwerte ( sind negativ ) auf; das muessen
84 	// wir hier beruecksichtigen
85 	SVX_DLLPRIVATE virtual FASTBOOL		HasMetrics() const;
86 };
87 
88 #endif
89