xref: /aoo41x/main/sd/source/ui/inc/Client.hxx (revision c45d927a)
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_CLIENT_HXX
25 #define SD_CLIENT_HXX
26 
27 
28 #ifndef _SFX_CLIENTSH_HXX //autogen
29 #include <sfx2/ipclient.hxx>
30 #endif
31 class SdrGrafObj;
32 class SdrOle2Obj;
33 class OutlinerParaObject;
34 
35 namespace sd {
36 
37 class ViewShell;
38 
39 /*************************************************************************
40 |*
41 |* Client
42 |*
43 \************************************************************************/
44 
45 class Client : public SfxInPlaceClient
46 {
47     ViewShell*      mpViewShell;
48 	SdrOle2Obj* 	pSdrOle2Obj;
49 	SdrGrafObj* 	pSdrGrafObj;
50 	OutlinerParaObject* pOutlinerParaObj;
51 
52     virtual void    ObjectAreaChanged();
53     virtual void    RequestNewObjectArea( Rectangle& );
54     virtual void    ViewChanged();
55 	virtual void	MakeVisible();
56 
57 public:
58 	Client (SdrOle2Obj* pObj, ViewShell* pSdViewShell, ::Window* pWindow);
59 	virtual ~Client (void);
60 
61 	SdrOle2Obj* 	GetSdrOle2Obj() const { return pSdrOle2Obj; }
62 	void			SetSdrGrafObj(SdrGrafObj* pObj) { pSdrGrafObj = pObj; }
63 	SdrGrafObj* 	GetSdrGrafObj() const { return pSdrGrafObj; }
64 	void			SetOutlinerParaObj (OutlinerParaObject* pObj) { pOutlinerParaObj = pObj; }
65 	OutlinerParaObject* 	GetOutlinerParaObject () const { return pOutlinerParaObj; }
66 };
67 
68 } // end of namespace sd
69 
70 #endif
71 
72