2010-10-27 12:43:08 +01:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2012-07-17 12:30:48 +01:00
/*
* This file is part of the LibreOffice project .
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License , v . 2.0 . If a copy of the MPL was not distributed with this
* file , You can obtain one at http : //mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice :
*
* Licensed to the Apache Software Foundation ( ASF ) under one or more
* contributor license agreements . See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership . The ASF licenses this file to you under the Apache
* License , Version 2.0 ( the " License " ) ; you may not use this file
* except in compliance with the License . You may obtain a copy of
* the License at http : //www.apache.org/licenses/LICENSE-2.0 .
*/
2013-10-23 22:48:59 +02:00
# ifndef INCLUDED_CHART2_SOURCE_MODEL_MAIN_CHARTMODEL_HXX
# define INCLUDED_CHART2_SOURCE_MODEL_MAIN_CHARTMODEL_HXX
2003-10-06 08:58:36 +00:00
# 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>
2008-06-06 08:14:09 +00:00
# include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
2010-11-15 22:12:20 +01:00
# include <com/sun/star/document/XUndoManagerSupplier.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>
2010-08-19 09:18:38 +02:00
# include <com/sun/star/lang/XInitialization.hpp>
2003-10-06 08:58:36 +00:00
# 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>
2008-07-01 15:35:39 +00:00
# include <com/sun/star/chart2/data/XDataSource.hpp>
2009-12-18 16:34:15 +01:00
# include <com/sun/star/chart2/XChartTypeTemplate.hpp>
# include <com/sun/star/container/XNameContainer.hpp>
2012-03-28 03:24:47 +02:00
# include <com/sun/star/qa/XDumper.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
2012-07-14 05:37:24 +02:00
# ifndef INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_22
2012-03-26 18:37:19 +02:00
# define INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_22
# define COMPHELPER_IMPLBASE_INTERFACE_NUMBER 22
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
# include <osl/mutex.hxx>
2010-11-15 22:12:20 +01:00
# include <rtl/ref.hxx>
2007-05-22 17:32:37 +00:00
# include <cppuhelper/interfacecontainer.hxx>
2009-12-15 21:55:40 +01:00
# include <svtools/grfmgr.hxx>
2003-10-06 08:58:36 +00:00
2013-09-29 18:44:32 +02:00
# include <boost/scoped_ptr.hpp>
2003-10-06 08:58:36 +00:00
2010-08-18 18:11:16 +02:00
class SvNumberFormatter ;
2003-10-06 08:58:36 +00:00
namespace chart
{
namespace impl
{
// Note: needed for queryInterface (if it calls the base-class implementation)
2012-03-26 18:37:19 +02:00
typedef : : comphelper : : WeakImplHelper22 <
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)
2003-10-06 08:58:36 +00:00
, : : com : : sun : : star : : util : : XModifiable //comprehends XModifyBroadcaster (required interface)
, : : com : : sun : : star : : lang : : XServiceInfo
2010-08-19 09:18:38 +02:00
, : : com : : sun : : star : : lang : : XInitialization
2004-01-26 08:13:31 +00:00
, : : com : : sun : : star : : chart2 : : XChartDocument // derived from XModel
2007-05-22 17:32:37 +00:00
, : : com : : sun : : star : : chart2 : : data : : XDataReceiver // public API
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
2008-06-06 08:14:09 +00:00
, : : com : : sun : : star : : document : : XDocumentPropertiesSupplier
2008-07-01 15:35:39 +00:00
, : : com : : sun : : star : : chart2 : : data : : XDataSource
2010-11-15 22:12:20 +01:00
, : : com : : sun : : star : : document : : XUndoManagerSupplier
2012-03-26 18:37:19 +02:00
, : : com : : sun : : star : : qa : : XDumper
2003-10-06 08:58:36 +00:00
>
ChartModel_Base ;
}
2010-11-15 22:12:20 +01:00
class UndoManager ;
2013-10-15 07:55:26 +02:00
class ChartView ;
2010-11-15 22:12:20 +01:00
2013-10-15 07:55:26 +02:00
class OOO_DLLPUBLIC_CHARTTOOLS ChartModel : public impl : : ChartModel_Base
2003-10-06 08:58:36 +00:00
{
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
2013-10-22 14:06:56 +02:00
com : : sun : : star : : uno : : Reference < com : : sun : : star : : uno : : XInterface > xChartView ; // for the ref count
2013-10-15 07:55:26 +02:00
ChartView * mpChartView ;
OUString m_aResource ;
2003-10-06 08:58:36 +00:00
: : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > m_aMediaDescriptor ;
2008-06-06 08:14:09 +00:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : document : : XDocumentProperties > m_xDocumentProperties ;
2010-11-15 22:12:20 +01:00
: : rtl : : Reference < UndoManager > m_pUndoManager ;
2003-10-06 08:58:36 +00:00
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 ;
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
2009-12-18 16:34:15 +01:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : data : : XDataProvider > m_xDataProvider ;
/** is only valid if m_xDataProvider is set. If m_xDataProvider is set to an
external data provider this reference must be set to 0
*/
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : data : : XDataProvider > m_xInternalDataProvider ;
: : com : : sun : : star : : uno : : Reference < com : : sun : : star : : util : : XNumberFormatsSupplier >
m_xOwnNumberFormatsSupplier ;
: : com : : sun : : star : : uno : : Reference < com : : sun : : star : : util : : XNumberFormatsSupplier >
m_xNumberFormatsSupplier ;
2013-09-29 18:44:32 +02:00
boost : : scoped_ptr < SvNumberFormatter > m_apSvNumberFormatter ; // #i113784# avoid memory leak
2009-12-18 16:34:15 +01:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : XChartTypeManager >
m_xChartTypeManager ;
// Diagram Access
2010-05-28 13:05:15 +02:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : XDiagram >
m_xDiagram ;
2009-12-18 16:34:15 +01:00
Revert "fdo#46808, Convert chart2::Title service to new style"
This reverts commit d256dbede60533369d1aac64cca34721183f6a8a:
For one, the new css.chart2.XTitle2 looked unfinished, in that it transfered the
direct properties of the old-style css.chart2.Title service into attributes, but
left out all the properties inherited by the old-style service from
css.style.ParagraphProperties, css.drawing.FillProperties,
css.drawing.LineProperties (and that missing FIXME css.layout.LayoutElement,
whatever that is supposed to be). This needs more thought, to either make
available all propertiers as attributes, or none.
For another, this broke JunitTest_chart2_unoapi (sch.ChXChartDocument,
sch.ChartTitle), for hard-to-debug reasons.
Conflicts:
chart2/source/model/main/Title.cxx
chart2/source/model/main/Title.hxx
offapi/com/sun/star/chart2/XTitle2.idl
sc/source/filter/inc/xlchart.hxx
Change-Id: I4747208a13984904d0e409ea49a73b0f667c86c7
2013-05-23 10:11:49 +02:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : XTitle >
2009-12-18 16:34:15 +01:00
m_xTitle ;
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : beans : : XPropertySet >
m_xPageBackground ;
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : container : : XNameAccess > m_xXMLNamespaceMap ;
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : util : : XModifyListener > m_xModifyListener ;
2003-10-06 08:58:36 +00:00
private :
//private methods
2013-04-07 12:06:47 +02:00
OUString impl_g_getLocation ( ) ;
2003-10-06 08:58:36 +00:00
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_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 ) ;
2009-12-18 16:34:15 +01:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : XChartTypeTemplate > impl_createDefaultChartTypeTemplate ( ) ;
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : data : : XDataSource > impl_createDefaultData ( ) ;
2009-11-04 15:44:27 +00:00
void impl_adjustAdditionalShapesPositionAndSize (
const : : com : : sun : : star : : awt : : Size & aVisualAreaSize ) ;
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 )
2010-08-19 09:18:38 +02:00
// ::com::sun::star::lang::XInitialization
virtual void SAL_CALL initialize ( const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : uno : : Any > & aArguments )
throw ( : : com : : sun : : star : : uno : : Exception , : : com : : sun : : star : : uno : : RuntimeException ) ;
2003-10-06 08:58:36 +00:00
// ::com::sun::star::frame::XModel (required interface)
virtual sal_Bool SAL_CALL
2013-04-07 12:06:47 +02:00
attachResource ( const OUString & rURL
2003-10-06 08:58:36 +00:00
, const : : com : : sun : : star : : uno : : Sequence <
: : com : : sun : : star : : beans : : PropertyValue > & rMediaDescriptor )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2013-04-07 12:06:47 +02:00
virtual OUString SAL_CALL
2003-10-06 08:58:36 +00:00
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 ) ;
2013-04-07 12:06:47 +02:00
virtual OUString SAL_CALL
2003-10-06 08:58:36 +00:00
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
2013-04-07 12:06:47 +02:00
storeAsURL ( const OUString & rURL
2003-10-06 08:58:36 +00:00
, 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
2013-04-07 12:06:47 +02:00
storeToURL ( const OUString & rURL
2003-10-06 08:58:36 +00:00
, 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 ) ;
2008-06-06 08:14:09 +00:00
// ____ document::XDocumentPropertiesSupplier ____
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : document : : XDocumentProperties > SAL_CALL
getDocumentProperties ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2010-11-15 22:12:20 +01:00
// ____ document::XUndoManagerSupplier ____
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : document : : XUndoManager > SAL_CALL
getUndoManager ( ) 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 ) ;
2013-04-07 12:06:47 +02:00
virtual : : com : : sun : : star : : uno : : Sequence < OUString > SAL_CALL getUsedRangeRepresentations ( )
2007-05-22 17:32:37 +00:00
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 <
Revert "fdo#46808, Convert chart2::Title service to new style"
This reverts commit d256dbede60533369d1aac64cca34721183f6a8a:
For one, the new css.chart2.XTitle2 looked unfinished, in that it transfered the
direct properties of the old-style css.chart2.Title service into attributes, but
left out all the properties inherited by the old-style service from
css.style.ParagraphProperties, css.drawing.FillProperties,
css.drawing.LineProperties (and that missing FIXME css.layout.LayoutElement,
whatever that is supposed to be). This needs more thought, to either make
available all propertiers as attributes, or none.
For another, this broke JunitTest_chart2_unoapi (sch.ChXChartDocument,
sch.ChartTitle), for hard-to-debug reasons.
Conflicts:
chart2/source/model/main/Title.cxx
chart2/source/model/main/Title.hxx
offapi/com/sun/star/chart2/XTitle2.idl
sc/source/filter/inc/xlchart.hxx
Change-Id: I4747208a13984904d0e409ea49a73b0f667c86c7
2013-05-23 10:11:49 +02: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 <
Revert "fdo#46808, Convert chart2::Title service to new style"
This reverts commit d256dbede60533369d1aac64cca34721183f6a8a:
For one, the new css.chart2.XTitle2 looked unfinished, in that it transfered the
direct properties of the old-style css.chart2.Title service into attributes, but
left out all the properties inherited by the old-style service from
css.style.ParagraphProperties, css.drawing.FillProperties,
css.drawing.LineProperties (and that missing FIXME css.layout.LayoutElement,
whatever that is supposed to be). This needs more thought, to either make
available all propertiers as attributes, or none.
For another, this broke JunitTest_chart2_unoapi (sch.ChXChartDocument,
sch.ChartTitle), for hard-to-debug reasons.
Conflicts:
chart2/source/model/main/Title.cxx
chart2/source/model/main/Title.hxx
offapi/com/sun/star/chart2/XTitle2.idl
sc/source/filter/inc/xlchart.hxx
Change-Id: I4747208a13984904d0e409ea49a73b0f667c86c7
2013-05-23 10:11:49 +02:00
: : 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
2013-04-07 12:06:47 +02:00
createInstance ( const OUString & aServiceSpecifier )
2007-05-22 17:32:37 +00:00
throw ( : : com : : sun : : star : : uno : : Exception , : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : uno : : XInterface > SAL_CALL
2013-04-07 12:06:47 +02:00
createInstanceWithArguments ( const OUString & ServiceSpecifier
2007-05-22 17:32:37 +00:00
, const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : uno : : Any > & Arguments )
throw ( : : com : : sun : : star : : uno : : Exception , : : com : : sun : : star : : uno : : RuntimeException ) ;
2013-04-07 12:06:47 +02:00
virtual : : com : : sun : : star : : uno : : Sequence < OUString > SAL_CALL
2007-05-22 17:32:37 +00:00
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
2008-07-01 15:35:39 +00:00
// ____ XDataSource ____ allows access to the curently used data and data ranges
virtual : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : chart2 : : data : : XLabeledDataSequence > > SAL_CALL getDataSequences ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
2012-03-26 18:37:19 +02:00
// XDumper
2013-04-07 12:06:47 +02:00
virtual OUString SAL_CALL dump ( )
2012-03-26 18:37:19 +02:00
throw ( com : : sun : : star : : uno : : RuntimeException ) ;
2013-10-15 07:55:26 +02:00
// normal methods
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : util : : XNumberFormatsSupplier >
getNumberFormatsSupplier ( ) ;
2003-10-06 08:58:36 +00:00
} ;
} // namespace chart
# endif
2010-10-27 12:43:08 +01:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */