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 53 #define ScChartShell 54 #include "scslots.hxx" 55 56 57 SFX_IMPL_INTERFACE(ScChartShell, ScDrawShell, ScResId(SCSTR_CHARTSHELL) ) 58 { 59 SFX_OBJECTBAR_REGISTRATION( SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER, 60 ScResId(RID_DRAW_OBJECTBAR) ); 61 SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_CHART) ); 62 //SFX_OBJECTMENU_REGISTRATION( SID_OBJECTMENU0, ScResId(RID_OBJECTMENU_DRAW) ); 63 } 64 65 TYPEINIT1( ScChartShell, ScDrawShell ); 66 67 ScChartShell::ScChartShell(ScViewData* pData) : 68 ScDrawShell(pData) 69 { 70 SetHelpId(HID_SCSHELL_CHARTSH); 71 SetName(String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("ChartObject"))); 72 } 73 74 ScChartShell::~ScChartShell() 75 { 76 } 77 78 79 80