2007-04-25 15:02:54 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 23:56:47 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2007-04-25 15:02:54 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2007-04-25 15:02:54 +00:00
|
|
|
*
|
2008-04-10 23:56:47 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2007-04-25 15:02:54 +00:00
|
|
|
*
|
2008-04-10 23:56:47 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2007-04-25 15:02:54 +00:00
|
|
|
*
|
2008-04-10 23:56:47 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2007-04-25 15:02:54 +00:00
|
|
|
*
|
2008-04-10 23:56:47 +00:00
|
|
|
* OpenOffice.org 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 version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2007-04-25 15:02:54 +00:00
|
|
|
*
|
2008-04-10 23:56:47 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2007-04-25 15:02:54 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef SC_VBA_CHARTOBJECT_HXX
|
|
|
|
#define SC_VBA_CHARTOBJECT_HXX
|
|
|
|
#include <cppuhelper/implbase1.hxx>
|
|
|
|
#include <com/sun/star/uno/XComponentContext.hpp>
|
|
|
|
#include <com/sun/star/table/XTableChart.hpp>
|
2007-12-07 09:50:30 +00:00
|
|
|
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
|
|
|
|
#include <com/sun/star/container/XNamed.hpp>
|
|
|
|
#include <com/sun/star/document/XEmbeddedObjectSupplier.hpp>
|
2009-02-13 13:03:24 +00:00
|
|
|
#include <ooo/vba/excel/XChartObject.hpp>
|
2009-09-18 15:24:22 +00:00
|
|
|
#include <vbahelper/vbahelperinterface.hxx>
|
2007-12-07 09:50:30 +00:00
|
|
|
#include <memory>
|
2007-04-25 15:02:54 +00:00
|
|
|
|
2009-02-13 13:03:24 +00:00
|
|
|
typedef InheritedHelperInterfaceImpl1<ov::excel::XChartObject > ChartObjectImpl_BASE;
|
2007-04-25 15:02:54 +00:00
|
|
|
|
|
|
|
class ScVbaChartObject : public ChartObjectImpl_BASE
|
|
|
|
{
|
|
|
|
|
2007-12-07 09:50:30 +00:00
|
|
|
css::uno::Reference< css::table::XTableChart > xTableChart;
|
|
|
|
css::uno::Reference< css::document::XEmbeddedObjectSupplier > xEmbeddedObjectSupplier;
|
|
|
|
css::uno::Reference< css::beans::XPropertySet > xPropertySet;
|
|
|
|
css::uno::Reference< css::drawing::XDrawPageSupplier > xDrawPageSupplier;
|
|
|
|
css::uno::Reference< css::drawing::XDrawPage > xDrawPage;
|
|
|
|
css::uno::Reference< css::drawing::XShape > xShape;
|
|
|
|
css::uno::Reference< css::container::XNamed > xNamed;
|
|
|
|
rtl::OUString sPersistName;
|
2009-02-13 13:03:24 +00:00
|
|
|
std::auto_ptr<ov::ShapeHelper> oShapeHelper;
|
2007-12-07 09:50:30 +00:00
|
|
|
css::uno::Reference< css::container::XNamed > xNamedShape;
|
|
|
|
rtl::OUString getPersistName();
|
|
|
|
css::uno::Reference< css::drawing::XShape > setShape() throw ( css::script::BasicErrorException );
|
2007-04-25 15:02:54 +00:00
|
|
|
public:
|
2009-02-13 13:03:24 +00:00
|
|
|
ScVbaChartObject( const css::uno::Reference< ov::XHelperInterface >& _xParent, const css::uno::Reference< css::uno::XComponentContext >& _xContext, const css::uno::Reference< css::table::XTableChart >& _xTableChart, const css::uno::Reference< css::drawing::XDrawPageSupplier >& _xDrawPageSupplier );
|
2007-04-25 15:02:54 +00:00
|
|
|
virtual ::rtl::OUString SAL_CALL getName() throw (css::uno::RuntimeException);
|
2007-12-07 09:50:30 +00:00
|
|
|
virtual void SAL_CALL setName( const ::rtl::OUString& sName ) throw (css::uno::RuntimeException);
|
2009-02-13 13:03:24 +00:00
|
|
|
virtual css::uno::Reference< ov::excel::XChart > SAL_CALL getChart() throw (css::uno::RuntimeException);
|
2007-12-07 09:50:30 +00:00
|
|
|
virtual void SAL_CALL Delete() throw ( css::script::BasicErrorException );
|
|
|
|
virtual void Activate() throw ( css::script::BasicErrorException );
|
|
|
|
// XHelperInterface
|
|
|
|
virtual rtl::OUString& getServiceImplName();
|
|
|
|
virtual css::uno::Sequence<rtl::OUString> getServiceNames();
|
|
|
|
// non interface methods
|
|
|
|
double getHeight();
|
|
|
|
void setHeight( double _fheight ) throw ( css::script::BasicErrorException );
|
|
|
|
double getWidth();
|
|
|
|
void setWidth( double _fwidth ) throw ( css::script::BasicErrorException );
|
|
|
|
double getLeft();
|
|
|
|
void setLeft( double _fleft );
|
|
|
|
double getTop();
|
|
|
|
void setTop( double _ftop );
|
|
|
|
// should make this part of the XHelperInterface with a default
|
|
|
|
// implementation returning NULL
|
|
|
|
css::uno::Reference< css::uno::XInterface > getUnoObject() throw ( css::script::BasicErrorException );
|
2007-04-25 15:02:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //SC_VBA_WINDOW_HXX
|