xref: /aoo42x/main/sw/source/ui/shells/olesh.cxx (revision efeef26f)
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 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_sw.hxx"
26 
27 
28 #include <sfx2/app.hxx>
29 #include <sfx2/request.hxx>
30 #include <sfx2/objface.hxx>
31 #include <sfx2/objitem.hxx>
32 #include <wrtsh.hxx>
33 #include <view.hxx>
34 #ifndef _HELPID_H
35 #include <helpid.h>
36 #endif
37 #ifndef _GLOBALS_HRC
38 #include <globals.hrc>
39 #endif
40 #include <frmsh.hxx>
41 #ifndef _OLESH_HXX
42 #include <olesh.hxx>
43 #endif
44 
45 #ifndef _CMDID_H
46 #include <cmdid.h>
47 #endif
48 #ifndef _POPUP_HRC
49 #include <popup.hrc>
50 #endif
51 #ifndef _SHELLS_HRC
52 #include <shells.hrc>
53 #endif
54 
55 
56 #define SwOleShell
57 #include <sfx2/msg.hxx>
58 #include <swslots.hxx>
59 
60 
61 SFX_IMPL_INTERFACE(SwOleShell, SwFrameShell, SW_RES(STR_SHELLNAME_OBJECT))
62 {
63 	SFX_POPUPMENU_REGISTRATION(SW_RES(MN_OLE_POPUPMENU));
64 	SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_OLE_TOOLBOX));
65 }
66 
67 
68 SwOleShell::SwOleShell(SwView &_rView) :
69     SwFrameShell(_rView)
70 
71 {
72 	SetName(String::CreateFromAscii("Object"));
73 	SetHelpId(SW_OLESHELL);
74 }
75 
76 
77