xref: /trunk/main/sc/source/ui/drawfunc/chartsh.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 #include <editeng/eeitem.hxx>
31 #include <svx/fontwork.hxx>
32 //CHINA001 #include <svx/labdlg.hxx>
33 #include <svl/srchitem.hxx>
34 #include <svx/tabarea.hxx>
35 #include <svx/tabline.hxx>
36 //CHINA001 #include <svx/transfrm.hxx>
37 #include <sfx2/app.hxx>
38 #include <sfx2/objface.hxx>
39 #include <sfx2/request.hxx>
40 #include <svl/whiter.hxx>
41 #include <vcl/msgbox.hxx>
42 
43 #include "chartsh.hxx"
44 #include "drwlayer.hxx"
45 #include "sc.hrc"
46 #include "viewdata.hxx"
47 #include "document.hxx"
48 #include "docpool.hxx"
49 #include "drawview.hxx"
50 #include "scresid.hxx"
51 #include <svx/svdobj.hxx>
52 #include <sfx2/sidebar/EnumContext.hxx>
53 
54 #define ScChartShell
55 #include "scslots.hxx"
56 
57 
SFX_IMPL_INTERFACE(ScChartShell,ScDrawShell,ScResId (SCSTR_CHARTSHELL))58 SFX_IMPL_INTERFACE(ScChartShell, ScDrawShell, ScResId(SCSTR_CHARTSHELL) )
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_CHART) );
63     //SFX_OBJECTMENU_REGISTRATION( SID_OBJECTMENU0, ScResId(RID_OBJECTMENU_DRAW) );
64 }
65 
66 TYPEINIT1( ScChartShell, ScDrawShell );
67 
ScChartShell(ScViewData * pData)68 ScChartShell::ScChartShell(ScViewData* pData) :
69 	ScDrawShell(pData)
70 {
71 	SetHelpId(HID_SCSHELL_CHARTSH);
72 	SetName(String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("ChartObject")));
73     SfxShell::SetContextName(sfx2::sidebar::EnumContext::GetContextName(sfx2::sidebar::EnumContext::Context_Chart));
74 }
75 
~ScChartShell()76 ScChartShell::~ScChartShell()
77 {
78 }
79 
80 
HandleSelectionChange(void)81 void ScChartShell::HandleSelectionChange (void)
82 {
83     // Do not call the implementation in the base class.  Let
84     // Activate()/Deactivate() handle context switches.
85 }
86