xref: /AOO41X/main/soldep/inc/soldep/depwin.hxx (revision 53a9af0a251b18e3c3b23eacf3a4922b098ea5c4)
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 _FMRWRK_DEPWIN_HXX
25 #define _FMRWRK_DEPWIN_HXX
26 
27 #ifndef _SV_WRKWIN_HXX
28 #include <vcl/wrkwin.hxx>
29 #endif
30 #include <vcl/menu.hxx>
31 #include <svtools/scrwin.hxx>
32 #include <soldep/connctr.hxx>
33 
34 class Depper;
35 
36 class DepWin : public Window
37 {
38 private:
39     ConnectorList   ConList;
40 
41     ObjectWin*      mpNewConWin;
42     sal_Bool            mbStartNewCon;
43     Point           maNewConStart;
44     Point           maNewConEnd;
45     ObjectWin*      mpSelectedProject;
46 
47 public:
48     PopupMenu*      mpPopup;
49 //  Depper*         mpDepperDontuseme;
50 
51                     DepWin( Window* pParent, WinBits nWinStyle );
52                     ~DepWin();
53     void            AddConnector( Connector* pNewCon );
54     void            RemoveConnector( Connector* piOldCon );
55     void            NewConnector( ObjectWin* pWin );
56     ConnectorList*  GetConnectorList();
ClearConnectorList()57     void            ClearConnectorList() { ConList.Clear();}
58     void            Paint( const Rectangle& rRect );
59     void            MouseButtonUp( const MouseEvent& rMEvt );
60     virtual void    Command( const CommandEvent& rEvent);
61 //  void            Resize();
62     void            MouseMove( const MouseEvent& rMEvt );
IsStartNewCon()63     sal_Bool            IsStartNewCon() { return mbStartNewCon; };
64     void            SetPopupHdl( void* pHdl );
SetSelectedProject(ObjectWin * object)65     void            SetSelectedProject( ObjectWin* object ) { mpSelectedProject = object; };
GetSelectedProject()66     ObjectWin*      GetSelectedProject() { return mpSelectedProject; };
67 //  DECL_LINK( PopupSelected, PopupMenu* );
68     void    DrawOutput( OutputDevice* pDevice, const Point& rOffset  );
69 };
70 
71 #endif
72