xref: /aoo41x/main/sc/source/ui/drawfunc/oleobjsh.cxx (revision f120fe41)
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 #include <sfx2/sidebar/EnumContext.hxx>
54 
55 #define ScOleObjectShell
56 #include "scslots.hxx"
57 
58 
SFX_IMPL_INTERFACE(ScOleObjectShell,ScDrawShell,ScResId (SCSTR_OLEOBJECTSHELL))59 SFX_IMPL_INTERFACE(ScOleObjectShell, ScDrawShell, ScResId(SCSTR_OLEOBJECTSHELL) )
60 {
61 	SFX_OBJECTBAR_REGISTRATION( SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER,
62 								ScResId(RID_DRAW_OBJECTBAR) );
63 	SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_OLE) );
64 }
65 
66 TYPEINIT1( ScOleObjectShell, ScDrawShell );
67 
ScOleObjectShell(ScViewData * pData)68 ScOleObjectShell::ScOleObjectShell(ScViewData* pData) :
69 	ScDrawShell(pData)
70 {
71 	SetHelpId(HID_SCSHELL_OLEOBEJCTSH);
72 	SetName(String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("OleObject")));
73     SfxShell::SetContextName(sfx2::sidebar::EnumContext::GetContextName(sfx2::sidebar::EnumContext::Context_OLE));
74 }
75 
~ScOleObjectShell()76 ScOleObjectShell::~ScOleObjectShell()
77 {
78 }
79 
80 
HandleSelectionChange(void)81 void ScOleObjectShell::HandleSelectionChange (void)
82 {
83     // Do not call the implementation in the base class.  Let
84     // Activate()/Deactivate() handle context switches.
85 }
86