2003-10-06 08:58:36 +00:00
/*************************************************************************
*
2005-09-07 23:54:14 +00:00
* OpenOffice . org - a multi - platform office productivity suite
2003-10-06 08:58:36 +00:00
*
2005-09-07 23:54:14 +00:00
* $ RCSfile : ChartModel . hxx , v $
2003-10-06 08:58:36 +00:00
*
2007-08-17 11:14:47 +00:00
* $ Revision : 1.9 $
2003-10-06 08:58:36 +00:00
*
2007-08-17 11:14:47 +00:00
* last change : $ Author : ihi $ $ Date : 2007 - 08 - 17 12 : 14 : 47 $
2003-10-06 08:58:36 +00:00
*
2005-09-07 23:54:14 +00:00
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1 .
2003-10-06 08:58:36 +00:00
*
*
2005-09-07 23:54:14 +00:00
* GNU Lesser General Public License Version 2.1
* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* Copyright 2005 by Sun Microsystems , Inc .
* 901 San Antonio Road , Palo Alto , CA 94303 , USA
2003-10-06 08:58:36 +00:00
*
2005-09-07 23:54:14 +00:00
* 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 .
2003-10-06 08:58:36 +00:00
*
2005-09-07 23:54:14 +00:00
* 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 .
2003-10-06 08:58:36 +00:00
*
2005-09-07 23:54:14 +00:00
* 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
2003-10-06 08:58:36 +00:00
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
# ifndef _CHART_MODEL_HXX
# define _CHART_MODEL_HXX
# include "LifeTime.hxx"
# include "ServiceMacros.hxx"
# include <com/sun/star/frame/XModel.hpp>
2007-05-22 17:32:37 +00:00
# include <com/sun/star/frame/XStorable2.hpp>
2003-10-06 08:58:36 +00:00
# include <com/sun/star/util/XModifiable.hpp>
# include <com/sun/star/util/XCloseable.hpp>
# include <com/sun/star/view/XPrintable.hpp>
# include <com/sun/star/document/XEventBroadcaster.hpp>
# include <com/sun/star/document/XEventsSupplier.hpp>
# include <com/sun/star/document/XDocumentInfoSupplier.hpp>
# include <com/sun/star/document/XViewDataSupplier.hpp>
2007-05-22 17:32:37 +00:00
# include <com/sun/star/document/XFilter.hpp>
# include <com/sun/star/lang/XMultiServiceFactory.hpp>
2003-10-06 08:58:36 +00:00
# include <com/sun/star/lang/XServiceInfo.hpp>
# include <com/sun/star/uno/XComponentContext.hpp>
2007-05-22 17:32:37 +00:00
# include <com/sun/star/util/XCloneable.hpp>
# include <com/sun/star/embed/XVisualObject.hpp>
# include <com/sun/star/document/XStorageBasedDocument.hpp>
# include <com/sun/star/lang/XUnoTunnel.hpp>
# include <com/sun/star/util/XNumberFormatsSupplier.hpp>
# include <com/sun/star/container/XChild.hpp>
2007-07-25 07:49:18 +00:00
# include <com/sun/star/chart2/XUndoSupplier.hpp>
2003-10-06 08:58:36 +00:00
2004-01-26 08:13:31 +00:00
// public API
2007-05-22 17:32:37 +00:00
# include <com/sun/star/chart2/data/XDataProvider.hpp>
# include <com/sun/star/chart2/data/XDataReceiver.hpp>
2004-01-26 08:13:31 +00:00
# include <com/sun/star/chart2/XChartDocument.hpp>
# include <com/sun/star/chart2/XTitled.hpp>
2003-10-06 08:58:36 +00:00
2007-05-22 17:32:37 +00:00
# include <com/sun/star/frame/XLoadable.hpp>
# include <com/sun/star/embed/XEmbeddedObject.hpp>
# include <com/sun/star/embed/XStorage.hpp>
# include <com/sun/star/datatransfer/XTransferable.hpp>
2003-10-06 08:58:36 +00:00
2007-07-25 07:49:18 +00:00
# if ! defined(INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_18)
# define INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_18
# define COMPHELPER_IMPLBASE_INTERFACE_NUMBER 18
2007-05-22 17:32:37 +00:00
# include "comphelper/implbase_var.hxx"
2004-01-26 08:13:31 +00:00
# endif
2007-05-22 17:32:37 +00:00
# ifndef _OSL_MUTEX_HXX_
# include <osl/mutex.hxx>
2004-01-26 08:13:31 +00:00
# endif
2007-05-22 17:32:37 +00:00
# ifndef _CPPUHELPER_INTERFACECONTAINER_HXX_
# include <cppuhelper/interfacecontainer.hxx>
2004-01-26 08:13:31 +00:00
# endif
2007-05-22 17:32:37 +00:00
# ifndef _GRFMGR_HXX
# include <goodies/grfmgr.hxx>
2003-10-06 08:58:36 +00:00
# endif
// for auto_ptr
# include <memory>
//=============================================================================
/** this is an example implementation for the service ::com::sun::star::document::OfficeDocument
*/
namespace chart
{
namespace impl
{
class ImplChartModel ;
// Note: needed for queryInterface (if it calls the base-class implementation)
2007-07-25 07:49:18 +00:00
typedef : : comphelper : : WeakImplHelper18 <
2003-10-06 08:58:36 +00:00
// ::com::sun::star::frame::XModel //comprehends XComponent (required interface), base of XChartDocument
: : com : : sun : : star : : util : : XCloseable //comprehends XCloseBroadcaster
2007-05-22 17:32:37 +00:00
, : : com : : sun : : star : : frame : : XStorable2 //(extension of XStorable)
// ,::com::sun::star::frame::XStorable //(required interface) base of XStorable2
2003-10-06 08:58:36 +00:00
, : : com : : sun : : star : : util : : XModifiable //comprehends XModifyBroadcaster (required interface)
// ,::com::sun::star::view::XPrintable //(optional interface)
// ,::com::sun::star::document::XEventBroadcaster //(optional interface)
// ,::com::sun::star::document::XEventsSupplier //(optional interface)
// ,::com::sun::star::document::XDocumentInfoSupplier //(optional interface)
// ,::com::sun::star::document::XViewDataSupplier //(optional interface)
// ,::com::sun::star::uno::XWeak // implemented by WeakImplHelper(optional interface)
// ,::com::sun::star::uno::XInterface // implemented by WeakImplHelper(optional interface)
// ,::com::sun::star::lang::XTypeProvider // implemented by WeakImplHelper
, : : com : : sun : : star : : lang : : XServiceInfo
2004-01-26 08:13:31 +00:00
// ,::com::sun::star::chart2::XModelDataProvider
, : : com : : sun : : star : : chart2 : : XChartDocument // derived from XModel
2007-05-22 17:32:37 +00:00
, : : com : : sun : : star : : chart2 : : data : : XDataReceiver // public API
// ,::com::sun::star::style::XStyleFamiliesSupplier
2004-01-26 08:13:31 +00:00
, : : com : : sun : : star : : chart2 : : XTitled
, : : com : : sun : : star : : frame : : XLoadable
2007-05-22 17:32:37 +00:00
, : : com : : sun : : star : : util : : XCloneable
, : : com : : sun : : star : : embed : : XVisualObject
, : : com : : sun : : star : : lang : : XMultiServiceFactory
, : : com : : sun : : star : : document : : XStorageBasedDocument
, : : com : : sun : : star : : lang : : XUnoTunnel
, : : com : : sun : : star : : util : : XNumberFormatsSupplier
, : : com : : sun : : star : : container : : XChild
, : : com : : sun : : star : : util : : XModifyListener
, : : com : : sun : : star : : datatransfer : : XTransferable
2007-07-25 07:49:18 +00:00
, : : com : : sun : : star : : chart2 : : XUndoSupplier
2003-10-06 08:58:36 +00:00
>
ChartModel_Base ;
}
class ChartModel : public impl : : ChartModel_Base
{
private :
mutable : : apphelper : : CloseableLifeTimeManager m_aLifeTimeManager ;
mutable : : osl : : Mutex m_aModelMutex ;
sal_Bool volatile m_bReadOnly ;
sal_Bool volatile m_bModified ;
2007-05-22 17:32:37 +00:00
sal_Int32 m_nInLoad ;
sal_Bool volatile m_bUpdateNotificationsPending ;
2003-10-06 08:58:36 +00:00
: : rtl : : OUString m_aResource ;
: : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > m_aMediaDescriptor ;
2007-05-22 17:32:37 +00:00
: : cppu : : OInterfaceContainerHelper m_aControllers ;
2003-10-06 08:58:36 +00:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : frame : : XController > m_xCurrentController ;
sal_uInt16 m_nControllerLockCount ;
// ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aPrinterOptions;
: : std : : auto_ptr < impl : : ImplChartModel > m_pImplChartModel ;
2003-11-04 11:37:45 +00:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : uno : : XComponentContext > m_xContext ;
2004-01-26 08:13:31 +00:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : uno : : XAggregation > m_xOldModelAgg ;
2007-05-22 17:32:37 +00:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > m_xStorage ;
//the content of this should be always synchronized with the current m_xViewWindow size. The variable is necessary to hold the information as long as no view window exists.
: : com : : sun : : star : : awt : : Size m_aVisualAreaSize ;
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : frame : : XModel > m_xParent ;
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : data : : XRangeHighlighter > m_xRangeHighlighter ;
: : std : : vector < GraphicObject > m_aGraphicObjectVector ;
2003-11-04 11:37:45 +00:00
2003-10-06 08:58:36 +00:00
private :
//private methods
: : rtl : : OUString impl_g_getLocation ( ) ;
sal_Bool
impl_isControllerConnected ( const com : : sun : : star : : uno : : Reference <
com : : sun : : star : : frame : : XController > & xController ) ;
com : : sun : : star : : uno : : Reference < com : : sun : : star : : frame : : XController >
impl_getCurrentController ( )
throw ( com : : sun : : star : : uno : : RuntimeException ) ;
void SAL_CALL
impl_notifyModifiedListeners ( )
throw ( com : : sun : : star : : uno : : RuntimeException ) ;
2007-05-22 17:32:37 +00:00
void SAL_CALL
impl_notifyCloseListeners ( )
throw ( com : : sun : : star : : uno : : RuntimeException ) ;
void SAL_CALL
impl_notifyStorageChangeListeners ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2003-10-06 08:58:36 +00:00
2004-01-26 08:13:31 +00:00
void impl_killInternalData ( ) throw ( com : : sun : : star : : util : : CloseVetoException ) ;
2007-05-22 17:32:37 +00:00
void impl_createOldModelAgg ( ) ;
void impl_store (
const : : com : : sun : : star : : uno : : Sequence <
: : com : : sun : : star : : beans : : PropertyValue > & rMediaDescriptor ,
const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : embed : : XStorage > & xStorage ) ;
void impl_load (
const : : com : : sun : : star : : uno : : Sequence <
: : com : : sun : : star : : beans : : PropertyValue > & rMediaDescriptor ,
const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : embed : : XStorage > & xStorage ) ;
void impl_loadGraphics (
const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : embed : : XStorage > & xStorage ) ;
: : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : document : : XFilter >
impl_createFilter ( const : : com : : sun : : star : : uno : : Sequence <
: : com : : sun : : star : : beans : : PropertyValue > & rMediaDescriptor ) ;
2003-10-06 08:58:36 +00:00
public :
//no default constructor
ChartModel ( : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : uno : : XComponentContext > const & xContext ) ;
2007-05-22 17:32:37 +00:00
explicit ChartModel ( const ChartModel & rOther ) ;
2003-10-06 08:58:36 +00:00
virtual ~ ChartModel ( ) ;
//-----------------------------------------------------------------
// ::com::sun::star::lang::XServiceInfo
//-----------------------------------------------------------------
APPHELPER_XSERVICEINFO_DECL ( )
APPHELPER_SERVICE_FACTORY_HELPER ( ChartModel )
//-----------------------------------------------------------------
// ::com::sun::star::frame::XModel (required interface)
//-----------------------------------------------------------------
virtual sal_Bool SAL_CALL
attachResource ( const : : rtl : : OUString & rURL
, const : : com : : sun : : star : : uno : : Sequence <
: : com : : sun : : star : : beans : : PropertyValue > & rMediaDescriptor )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : rtl : : OUString SAL_CALL
getURL ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > SAL_CALL
getArgs ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
connectController ( const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : frame : : XController > & xController )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
disconnectController ( const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : frame : : XController > & xController )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
lockControllers ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
unlockControllers ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual sal_Bool SAL_CALL
hasControllersLocked ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : frame : : XController > SAL_CALL
getCurrentController ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
setCurrentController ( const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : frame : : XController > & xController )
throw ( : : com : : sun : : star : : container : : NoSuchElementException
, : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : uno : : XInterface > SAL_CALL
getCurrentSelection ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
//-----------------------------------------------------------------
// ::com::sun::star::lang::XComponent (base of XModel)
//-----------------------------------------------------------------
virtual void SAL_CALL
dispose ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
addEventListener ( const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : lang : : XEventListener > & xListener )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
removeEventListener ( const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : lang : : XEventListener > & xListener )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
//-----------------------------------------------------------------
// ::com::sun::star::util::XCloseable
//-----------------------------------------------------------------
virtual void SAL_CALL
close ( sal_Bool bDeliverOwnership )
2004-01-26 08:13:31 +00:00
throw ( : : com : : sun : : star : : util : : CloseVetoException ,
: : com : : sun : : star : : uno : : RuntimeException ) ;
2003-10-06 08:58:36 +00:00
//-----------------------------------------------------------------
// ::com::sun::star::util::XCloseBroadcaster (base of XCloseable)
//-----------------------------------------------------------------
virtual void SAL_CALL
addCloseListener ( const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : util : : XCloseListener > & xListener )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
removeCloseListener ( const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : util : : XCloseListener > & xListener )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2007-05-22 17:32:37 +00:00
//-----------------------------------------------------------------
// ::com::sun::star::frame::XStorable2 (extension of XStorable)
//-----------------------------------------------------------------
virtual void SAL_CALL storeSelf (
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & rMediaDescriptor )
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : io : : IOException ,
: : com : : sun : : star : : uno : : RuntimeException ) ;
2003-10-06 08:58:36 +00:00
//-----------------------------------------------------------------
// ::com::sun::star::frame::XStorable (required interface)
//-----------------------------------------------------------------
virtual sal_Bool SAL_CALL
hasLocation ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : rtl : : OUString SAL_CALL
getLocation ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual sal_Bool SAL_CALL
isReadonly ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
store ( ) throw ( : : com : : sun : : star : : io : : IOException
, : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
storeAsURL ( const : : rtl : : OUString & rURL
, const : : com : : sun : : star : : uno : : Sequence <
: : com : : sun : : star : : beans : : PropertyValue > & rMediaDescriptor )
throw ( : : com : : sun : : star : : io : : IOException
, : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
storeToURL ( const : : rtl : : OUString & rURL
, const : : com : : sun : : star : : uno : : Sequence <
: : com : : sun : : star : : beans : : PropertyValue > & rMediaDescriptor )
throw ( : : com : : sun : : star : : io : : IOException
, : : com : : sun : : star : : uno : : RuntimeException ) ;
//-----------------------------------------------------------------
// ::com::sun::star::util::XModifiable (required interface)
//-----------------------------------------------------------------
virtual sal_Bool SAL_CALL
isModified ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
setModified ( sal_Bool bModified )
throw ( : : com : : sun : : star : : beans : : PropertyVetoException
, : : com : : sun : : star : : uno : : RuntimeException ) ;
//-----------------------------------------------------------------
// ::com::sun::star::util::XModifyBroadcaster (base of XModifiable)
//-----------------------------------------------------------------
virtual void SAL_CALL
addModifyListener ( const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : util : : XModifyListener > & xListener )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
removeModifyListener ( const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : util : : XModifyListener > & xListener )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2007-05-22 17:32:37 +00:00
// ____ XModifyListener ____
virtual void SAL_CALL modified (
const : : com : : sun : : star : : lang : : EventObject & aEvent )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
// ____ XEventListener (base of XModifyListener) ____
virtual void SAL_CALL disposing (
const : : com : : sun : : star : : lang : : EventObject & Source )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
// ____ datatransferable::XTransferable ____
virtual : : com : : sun : : star : : uno : : Any SAL_CALL getTransferData (
const : : com : : sun : : star : : datatransfer : : DataFlavor & aFlavor )
throw ( : : com : : sun : : star : : datatransfer : : UnsupportedFlavorException ,
: : com : : sun : : star : : io : : IOException ,
: : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : datatransfer : : DataFlavor > SAL_CALL getTransferDataFlavors ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : sal_Bool SAL_CALL isDataFlavorSupported (
const : : com : : sun : : star : : datatransfer : : DataFlavor & aFlavor )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
//-----------------------------------------------------------------
// lang::XTypeProvider (overloaded method of WeakImplHelper)
//-----------------------------------------------------------------
virtual : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : uno : : Type > SAL_CALL
getTypes ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2003-10-06 08:58:36 +00:00
/*
//-----------------------------------------------------------------
// ::com::sun::star::view::XPrintable (optional interface)
//-----------------------------------------------------------------
virtual : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > SAL_CALL
getPrinter ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
setPrinter ( const : : com : : sun : : star : : uno : : Sequence <
: : com : : sun : : star : : beans : : PropertyValue > & rPrinter )
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException
, : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
print ( const : : com : : sun : : star : : uno : : Sequence <
: : com : : sun : : star : : beans : : PropertyValue > & rOptions )
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException
, : : com : : sun : : star : : uno : : RuntimeException ) ;
//-----------------------------------------------------------------
// ::com::sun::star::document::XEventBroadcaster (optional interface)
//-----------------------------------------------------------------
virtual void SAL_CALL
addEventListener ( const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : document : : XEventListener > & xListener )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
removeEventListener ( const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : document : : XEventListener > & xListener )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
//-----------------------------------------------------------------
// ::com::sun::star::document::XEventsSupplier (optional interface)
//-----------------------------------------------------------------
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : container : : XNameReplace > SAL_CALL
getEvents ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
//-----------------------------------------------------------------
// ::com::sun::star::document::XDocumentInfoSupplier (optional interface)
//-----------------------------------------------------------------
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : document : : XDocumentInfo > SAL_CALL
getDocumentInfo ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
//-----------------------------------------------------------------
// ::com::sun::star::document::XViewDataSupplier (optional interface)
//-----------------------------------------------------------------
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : container : : XIndexAccess > SAL_CALL
getViewData ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL
setViewData ( const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : container : : XIndexAccess > & xData )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
*/
//-----------------------------------------------------------------
// ::com::sun::star::style::XStyleFamiliesSupplier
//-----------------------------------------------------------------
2007-05-22 17:32:37 +00:00
// virtual ::com::sun::star::uno::Reference<
// ::com::sun::star::container::XNameAccess > SAL_CALL
// getStyleFamilies() throw (::com::sun::star::uno::RuntimeException);
2003-10-06 08:58:36 +00:00
//-----------------------------------------------------------------
2004-01-26 08:13:31 +00:00
// ::com::sun::star::chart2::XModelDataProvider
2003-10-06 08:58:36 +00:00
//-----------------------------------------------------------------
// virtual ::com::sun::star::uno::Sequence<
// ::com::sun::star::uno::Reference<
2004-01-26 08:13:31 +00:00
// ::com::sun::star::chart2::XDataSeries > > SAL_CALL
2003-10-06 08:58:36 +00:00
// getDataSeries() throw (::com::sun::star::uno::RuntimeException);
//-----------------------------------------------------------------
2004-01-26 08:13:31 +00:00
// ::com::sun::star::chart2::XChartDocument
2003-10-06 08:58:36 +00:00
//-----------------------------------------------------------------
virtual : : com : : sun : : star : : uno : : Reference <
2004-01-26 08:13:31 +00:00
: : com : : sun : : star : : chart2 : : XDiagram > SAL_CALL
2007-05-22 17:32:37 +00:00
getFirstDiagram ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL setFirstDiagram (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : XDiagram > & xDiagram )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2003-10-06 08:58:36 +00:00
virtual void SAL_CALL
2004-01-26 08:13:31 +00:00
createInternalDataProvider ( sal_Bool bCloneExistingData )
throw ( : : com : : sun : : star : : util : : CloseVetoException ,
2003-10-06 08:58:36 +00:00
: : com : : sun : : star : : uno : : RuntimeException ) ;
2007-05-22 17:32:37 +00:00
virtual : : sal_Bool SAL_CALL hasInternalDataProvider ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : data : : XDataProvider > SAL_CALL
getDataProvider ( )
2004-01-26 08:13:31 +00:00
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2003-10-06 08:58:36 +00:00
virtual void SAL_CALL
setChartTypeManager ( const : : com : : sun : : star : : uno : : Reference <
2004-01-26 08:13:31 +00:00
: : com : : sun : : star : : chart2 : : XChartTypeManager > & xNewManager )
2003-10-06 08:58:36 +00:00
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2004-01-26 08:13:31 +00:00
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : XChartTypeManager > SAL_CALL
2003-10-06 08:58:36 +00:00
getChartTypeManager ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2003-10-17 13:48:14 +00:00
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : beans : : XPropertySet > SAL_CALL
getPageBackground ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2003-10-06 08:58:36 +00:00
2004-01-26 08:13:31 +00:00
// ____ XDataReceiver (public API) ____
virtual void SAL_CALL
attachDataProvider ( const : : com : : sun : : star : : uno : : Reference <
2007-05-22 17:32:37 +00:00
: : com : : sun : : star : : chart2 : : data : : XDataProvider > & xProvider )
2004-01-26 08:13:31 +00:00
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2007-05-22 17:32:37 +00:00
virtual void SAL_CALL setArguments (
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & aArguments )
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : uno : : Sequence < : : rtl : : OUString > SAL_CALL getUsedRangeRepresentations ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : data : : XDataSource > SAL_CALL getUsedData ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL attachNumberFormatsSupplier ( const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : util : : XNumberFormatsSupplier > & xSupplier )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : data : : XRangeHighlighter > SAL_CALL getRangeHighlighter ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2004-01-26 08:13:31 +00:00
2003-11-04 11:37:45 +00:00
// ____ XTitled ____
2003-10-06 08:58:36 +00:00
virtual : : com : : sun : : star : : uno : : Reference <
2007-08-17 11:14:47 +00:00
: : com : : sun : : star : : chart2 : : XTitle > SAL_CALL getTitleObject ( )
2003-10-06 08:58:36 +00:00
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2007-08-17 11:14:47 +00:00
virtual void SAL_CALL setTitleObject ( const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : chart2 : : XTitle > & Title )
2003-10-06 08:58:36 +00:00
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
// ____ XInterface (for old API wrapper) ____
virtual : : com : : sun : : star : : uno : : Any SAL_CALL queryInterface ( const : : com : : sun : : star : : uno : : Type & aType )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2004-01-26 08:13:31 +00:00
// ____ XLoadable ____
virtual void SAL_CALL initNew ( )
throw ( : : com : : sun : : star : : frame : : DoubleInitializationException ,
: : com : : sun : : star : : io : : IOException ,
: : com : : sun : : star : : uno : : Exception ,
: : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL load ( const : : com : : sun : : star : : uno : : Sequence <
2007-05-22 17:32:37 +00:00
: : com : : sun : : star : : beans : : PropertyValue > & rMediaDescriptor )
2004-01-26 08:13:31 +00:00
throw ( : : com : : sun : : star : : frame : : DoubleInitializationException ,
: : com : : sun : : star : : io : : IOException ,
: : com : : sun : : star : : uno : : Exception ,
: : com : : sun : : star : : uno : : RuntimeException ) ;
2007-05-22 17:32:37 +00:00
// ____ XCloneable ____
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : util : : XCloneable > SAL_CALL createClone ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
// ____ XVisualObject ____
virtual void SAL_CALL setVisualAreaSize (
: : sal_Int64 nAspect ,
const : : com : : sun : : star : : awt : : Size & aSize )
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : uno : : Exception ,
: : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : awt : : Size SAL_CALL getVisualAreaSize (
: : sal_Int64 nAspect )
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : uno : : Exception ,
: : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : embed : : VisualRepresentation SAL_CALL getPreferredVisualRepresentation (
: : sal_Int64 nAspect )
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : uno : : Exception ,
: : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : sal_Int32 SAL_CALL getMapUnit (
: : sal_Int64 nAspect )
throw ( : : com : : sun : : star : : uno : : Exception ,
: : com : : sun : : star : : uno : : RuntimeException ) ;
// ____ XMultiServiceFactory ____
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : uno : : XInterface > SAL_CALL
createInstance ( const : : rtl : : OUString & aServiceSpecifier )
throw ( : : com : : sun : : star : : uno : : Exception , : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : uno : : XInterface > SAL_CALL
createInstanceWithArguments ( const : : rtl : : OUString & ServiceSpecifier
, const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : uno : : Any > & Arguments )
throw ( : : com : : sun : : star : : uno : : Exception , : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : uno : : Sequence < : : rtl : : OUString > SAL_CALL
getAvailableServiceNames ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
// ____ XStorageBasedDocument ____
virtual void SAL_CALL loadFromStorage (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > & xStorage ,
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & rMediaDescriptor )
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : frame : : DoubleInitializationException ,
: : com : : sun : : star : : io : : IOException ,
: : com : : sun : : star : : uno : : Exception ,
: : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL storeToStorage (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > & xStorage ,
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & rMediaDescriptor )
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : io : : IOException ,
: : com : : sun : : star : : uno : : Exception ,
: : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL switchToStorage (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > & xStorage )
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : io : : IOException ,
2004-01-26 08:13:31 +00:00
: : com : : sun : : star : : uno : : Exception ,
: : com : : sun : : star : : uno : : RuntimeException ) ;
2007-05-22 17:32:37 +00:00
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > SAL_CALL getDocumentStorage ( )
throw ( : : com : : sun : : star : : io : : IOException ,
: : com : : sun : : star : : uno : : Exception ,
2004-01-26 08:13:31 +00:00
: : com : : sun : : star : : uno : : RuntimeException ) ;
2007-05-22 17:32:37 +00:00
virtual void SAL_CALL addStorageChangeListener (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : document : : XStorageChangeListener > & xListener )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual void SAL_CALL removeStorageChangeListener (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : document : : XStorageChangeListener > & xListener )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
// for SvNumberFormatsSupplierObj
// ____ XUnoTunnel ___
virtual : : sal_Int64 SAL_CALL getSomething ( const : : com : : sun : : star : : uno : : Sequence < : : sal_Int8 > & aIdentifier )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
// ____ XNumberFormatsSupplier ____
virtual : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : beans : : XPropertySet > SAL_CALL getNumberFormatSettings ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : util : : XNumberFormats > SAL_CALL getNumberFormats ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2004-05-10 16:17:38 +00:00
2007-05-22 17:32:37 +00:00
// ____ XChild ____
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : uno : : XInterface > SAL_CALL getParent ( )
2004-05-10 16:17:38 +00:00
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2007-05-22 17:32:37 +00:00
virtual void SAL_CALL setParent (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : uno : : XInterface > & Parent )
throw ( : : com : : sun : : star : : lang : : NoSupportException ,
: : com : : sun : : star : : uno : : RuntimeException ) ;
2007-07-25 07:49:18 +00:00
// ____ XUndoSupplier ____
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : XUndoManager > SAL_CALL getUndoManager ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2003-10-06 08:58:36 +00:00
} ;
} // namespace chart
# endif