/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: chartsh.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2006-05-02 15:47:56 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. * * * GNU Lesser General Public License Version 2.1 * ============================================= * Copyright 2005 by Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, CA 94303, USA * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * ************************************************************************/ #ifdef PCH #include "ui_pch.hxx" #endif #pragma hdrstop //------------------------------------------------------------------ #include #include //CHINA001 #include #include #include #include //CHINA001 #include #include #include #include #include #include #include "chartsh.hxx" #include "drwlayer.hxx" #include "sc.hrc" #include "viewdata.hxx" #include "document.hxx" #include "docpool.hxx" #include "drawview.hxx" #include "scresid.hxx" #ifndef _SVDOBJ_HXX //autogen #include #endif #define ScChartShell #include "scslots.hxx" SFX_IMPL_INTERFACE(ScChartShell, ScDrawShell, ScResId(SCSTR_CHARTSHELL) ) { SFX_OBJECTBAR_REGISTRATION( SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER, ScResId(RID_DRAW_OBJECTBAR) ); SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_CHART) ); //SFX_OBJECTMENU_REGISTRATION( SID_OBJECTMENU0, ScResId(RID_OBJECTMENU_DRAW) ); } TYPEINIT1( ScChartShell, ScDrawShell ); ScChartShell::ScChartShell(ScViewData* pData) : ScDrawShell(pData) { SetHelpId(HID_SCSHELL_CHARTSH); SetName(String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("ChartObject"))); } ScChartShell::~ScChartShell() { }