xref: /trunk/main/sc/source/ui/inc/fusel.hxx (revision 38d50f7b)
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 SC_FUSEL_HXX
25 #define SC_FUSEL_HXX
26 
27 #ifndef _SV_HXX
28 #endif
29 
30 #include "fudraw.hxx"
31 
32 //class Outliner;
33 //class OutlinerView;
34 class SdrPageView;
35 
36 
37 /*************************************************************************
38 |*
39 |* Basisklasse fuer alle Funktionen
40 |*
41 \************************************************************************/
42 
43 class FuSelection : public FuDraw
44 {
45 public:
46 	FuSelection(ScTabViewShell* pViewSh, Window* pWin, ScDrawView* pView,
47 		   SdrModel* pDoc, SfxRequest& rReq );
48 
49 	virtual ~FuSelection();
50 									   // Mouse- & Key-Events
51 	virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
52 	virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
53 	virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
54 	virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
55 	virtual sal_uInt8 Command(const CommandEvent& rCEvt);
56 
57 	virtual void Activate();		   // Function aktivieren
58 	virtual void Deactivate();		   // Function deaktivieren
59 
60 	void    ActivateNoteHandles(SdrObject* pObj);
61 
62 protected:
63 //	Outliner*		pOutliner;
64 //	OutlinerView*	pOutlinerView;
65 	sal_Bool			bVCAction;
66 
67 private:
68 	sal_Bool TestDetective( SdrPageView* pPV, const Point& rPos );	// -> fusel2
69 
70     bool                IsNoteCaptionMarked() const;
71 	bool                IsNoteCaptionClicked( const Point& rPos ) const;
72 };
73 
74 
75 
76 #endif		// _SD_FUSEL_HXX
77 
78