1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef SC_FUSEL_HXX 29 #define SC_FUSEL_HXX 30 31 #ifndef _SV_HXX 32 #endif 33 34 #include "fudraw.hxx" 35 36 //class Outliner; 37 //class OutlinerView; 38 class SdrPageView; 39 40 41 /************************************************************************* 42 |* 43 |* Basisklasse fuer alle Funktionen 44 |* 45 \************************************************************************/ 46 47 class FuSelection : public FuDraw 48 { 49 public: 50 FuSelection(ScTabViewShell* pViewSh, Window* pWin, ScDrawView* pView, 51 SdrModel* pDoc, SfxRequest& rReq ); 52 53 virtual ~FuSelection(); 54 // Mouse- & Key-Events 55 virtual sal_Bool KeyInput(const KeyEvent& rKEvt); 56 virtual sal_Bool MouseMove(const MouseEvent& rMEvt); 57 virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt); 58 virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt); 59 virtual sal_uInt8 Command(const CommandEvent& rCEvt); 60 61 virtual void Activate(); // Function aktivieren 62 virtual void Deactivate(); // Function deaktivieren 63 64 void ActivateNoteHandles(SdrObject* pObj); 65 66 protected: 67 // Outliner* pOutliner; 68 // OutlinerView* pOutlinerView; 69 sal_Bool bVCAction; 70 71 private: 72 sal_Bool TestDetective( SdrPageView* pPV, const Point& rPos ); // -> fusel2 73 74 bool IsNoteCaptionMarked() const; 75 bool IsNoteCaptionClicked( const Point& rPos ) const; 76 }; 77 78 79 80 #endif // _SD_FUSEL_HXX 81 82