xref: /trunk/main/sc/source/ui/drawfunc/oleobjsh.cxx (revision b3f79822)
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_sc.hxx"
26 
27 
28 
29 //------------------------------------------------------------------
30 
31 #include <editeng/eeitem.hxx>
32 #include <svx/fontwork.hxx>
33 //CHINA001 #include <svx/labdlg.hxx>
34 #include <svl/srchitem.hxx>
35 #include <svx/tabarea.hxx>
36 #include <svx/tabline.hxx>
37 //CHINA001 #include <svx/transfrm.hxx>
38 #include <sfx2/app.hxx>
39 #include <sfx2/objface.hxx>
40 #include <sfx2/request.hxx>
41 #include <svl/whiter.hxx>
42 #include <vcl/msgbox.hxx>
43 
44 #include "oleobjsh.hxx"
45 #include "drwlayer.hxx"
46 #include "sc.hrc"
47 #include "viewdata.hxx"
48 #include "document.hxx"
49 #include "docpool.hxx"
50 #include "drawview.hxx"
51 #include "scresid.hxx"
52 #include <svx/svdobj.hxx>
53 
54 #define ScOleObjectShell
55 #include "scslots.hxx"
56 
57 
58 SFX_IMPL_INTERFACE(ScOleObjectShell, ScDrawShell, ScResId(SCSTR_OLEOBJECTSHELL) )
59 {
60 	SFX_OBJECTBAR_REGISTRATION( SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER,
61 								ScResId(RID_DRAW_OBJECTBAR) );
62 	SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_OLE) );
63 }
64 
65 TYPEINIT1( ScOleObjectShell, ScDrawShell );
66 
67 ScOleObjectShell::ScOleObjectShell(ScViewData* pData) :
68 	ScDrawShell(pData)
69 {
70 	SetHelpId(HID_SCSHELL_OLEOBEJCTSH);
71 	SetName(String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("OleObject")));
72 }
73 
74 ScOleObjectShell::~ScOleObjectShell()
75 {
76 }
77 
78 
79 
80