xref: /trunk/main/svx/inc/svx/zoomslideritem.hxx (revision 4dc4eaf1)
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 
24 #ifndef _SVX_ZOOMSLIDERITEM_HXX
25 #define _SVX_ZOOMSLIDERITEM_HXX
26 
27 #include <svl/intitem.hxx>
28 #ifndef _SVX_SVXIDS_HRC
29 #include <svx/svxids.hrc>
30 #endif
31 #include <com/sun/star/uno/Sequence.hxx>
32 #include "svx/svxdllapi.h"
33 
34 //-------------------------------------------------------------------------
35 
36 class SVX_DLLPUBLIC SvxZoomSliderItem: public SfxUInt16Item
37 {
38 	com::sun::star::uno::Sequence < sal_Int32 > maValues;
39 	sal_uInt16 mnMinZoom;
40 	sal_uInt16 mnMaxZoom;
41 
42 public:
43 	TYPEINFO();
44 
45 	SvxZoomSliderItem( sal_uInt16 nCurrentZoom = 100, sal_uInt16 nMinZoom = 20, sal_uInt16 nMaxZoom = 600, sal_uInt16 nWhich = SID_ATTR_ZOOMSLIDER );
46 	SvxZoomSliderItem( const SvxZoomSliderItem& );
47 	~SvxZoomSliderItem();
48 
49 	void AddSnappingPoint( sal_Int32 nNew );
50 	const com::sun::star::uno::Sequence < sal_Int32 >& GetSnappingPoints() const;
GetMinZoom() const51 	sal_uInt16 GetMinZoom() const {return mnMinZoom;}
GetMaxZoom() const52 	sal_uInt16 GetMaxZoom() const {return mnMaxZoom;}
53 
54 	// "pure virtual methods" from SfxPoolItem
55 	virtual int				operator==( const SfxPoolItem& ) const;
56 	virtual SfxPoolItem*	Clone( SfxItemPool *pPool = 0 ) const;
57 	virtual SfxPoolItem*	Create( SvStream& rStrm, sal_uInt16 nVersion ) const; // empty
58 	virtual SvStream&		Store( SvStream& rStrm , sal_uInt16 nItemVersion ) const; // empty
59 	virtual sal_Bool		QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; // empty
60 	virtual sal_Bool		PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); // empty
61 };
62 
63 //------------------------------------------------------------------------
64 
65 #endif
66 
67 /* vim: set noet sw=4 ts=4: */
68