bump product version to 4.1.6.2
[LibreOffice.git] / sd / source / ui / inc / fuzoom.hxx
blobdb35409c00de4e624369fc24b14610c1e0b70b4e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef SD_FU_ZOOM_HXX
21 #define SD_FU_ZOOM_HXX
23 #include <vcl/pointr.hxx>
24 #include "fupoor.hxx"
26 namespace sd {
28 extern sal_uInt16 SidArrayZoom[];
30 class FuZoom
31 : public FuPoor
33 public:
34 TYPEINFO();
36 static FunctionReference Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
38 // Mouse- & Key-Events
39 virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
40 virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
41 virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
43 virtual void Activate(); ///< activates the function
44 virtual void Deactivate(); ///< deactivates the function
46 protected:
47 virtual ~FuZoom (void);
49 Point aBeginPosPix;
50 Point aBeginPos;
51 Point aEndPos;
52 Rectangle aZoomRect;
53 sal_Bool bVisible;
54 sal_Bool bStartDrag;
55 Pointer aPtr;
57 private:
58 FuZoom (
59 ViewShell* pViewSh,
60 ::sd::Window* pWin,
61 ::sd::View* pView,
62 SdDrawDocument* pDoc,
63 SfxRequest& rReq);
66 } // end of namespace sd
68 #endif
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */