bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / inc / fuzoom.hxx
blob3e80b33e474ed74eb20b1eef97be1b27656fd91f
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 INCLUDED_SD_SOURCE_UI_INC_FUZOOM_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_FUZOOM_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_OVERRIDE();
36 static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
38 // Mouse- & Key-Events
39 virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE;
40 virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE;
41 virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE;
43 virtual void Activate() SAL_OVERRIDE; ///< activates the function
44 virtual void Deactivate() SAL_OVERRIDE; ///< deactivates the function
46 protected:
47 virtual ~FuZoom();
49 Point aBeginPosPix;
50 Point aBeginPos;
51 Point aEndPos;
52 Rectangle aZoomRect;
53 bool bVisible;
54 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: */