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