xref: /trunk/main/sd/source/ui/inc/fuzoom.hxx (revision 67e470da)
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 SD_FU_ZOOM_HXX
25 #define SD_FU_ZOOM_HXX
26 
27 #ifndef _SV_POINTR_HXX //autogen
28 #include <vcl/pointr.hxx>
29 #endif
30 #include "fupoor.hxx"
31 
32 namespace sd {
33 
34 extern sal_uInt16 SidArrayZoom[];
35 
36 class FuZoom
37     : public FuPoor
38 {
39 public:
40 	TYPEINFO();
41 
42 	static FunctionReference Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
43 
44     // Mouse- & Key-Events
45 	virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
46 	virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
47 	virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
48 
49 	virtual void Activate();		// Function aktivieren
50 	virtual void Deactivate();		// Function deaktivieren
51 
52 protected:
53 	virtual ~FuZoom (void);
54 
55 	Point		aBeginPosPix;
56 	Point		aBeginPos;
57 	Point		aEndPos;
58 	Rectangle	aZoomRect;
59 	sal_Bool		bVisible;
60 	sal_Bool		bStartDrag;
61 	Pointer 	aPtr;
62 
63 private:
64 	FuZoom (
65         ViewShell* pViewSh,
66         ::sd::Window* pWin,
67         ::sd::View* pView,
68         SdDrawDocument* pDoc,
69         SfxRequest& rReq);
70 };
71 
72 } // end of namespace sd
73 
74 #endif
75 
76