xref: /aoo42x/main/sd/source/ui/inc/fudspord.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_DISPLAY_ORDER_HXX
25 #define SD_FU_DISPLAY_ORDER_HXX
26 
27 
28 #include "fupoor.hxx"
29 #include <vcl/pointr.hxx>
30 
31 class SdrDropMarkerOverlay;
32 class SdrObject;
33 
34 namespace sd {
35 
36 /*************************************************************************
37 |*
38 |* Funktion DisplayOrder
39 |*
40 \************************************************************************/
41 
42 class FuDisplayOrder
43     : public FuPoor
44 {
45 public:
46 	TYPEINFO();
47 
48 	static FunctionReference Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
49 
50     // Mouse- & Key-Events
51 	virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
52 	virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
53 	virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
54 
55 	virtual void Activate();		// Function aktivieren
56 	virtual void Deactivate();		// Function deaktivieren
57 
58 protected:
59 	virtual ~FuDisplayOrder (void);
60 	void implClearOverlay();
61 
62 	Pointer					maPtr;
63 	SdrObject* 				mpRefObj;
64 	SdrDropMarkerOverlay*	mpOverlay;
65 
66 private:
67 	FuDisplayOrder (
68         ViewShell* pViewSh,
69         ::sd::Window* pWin,
70         ::sd::View* pView,
71         SdDrawDocument* pDoc,
72         SfxRequest& rReq);
73 };
74 
75 } // end of namespace sd
76 
77 #endif		// _SD_FUDSPORD_HXX
78 
79