Files
libreoffice/chart2/source/controller/inc/ChartDocumentWrapper.hxx

179 lines
8.1 KiB
C++
Raw Normal View History

2010-10-27 12:43:08 +01:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* 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 .
*/
#ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_INC_CHARTDOCUMENTWRAPPER_HXX
#define INCLUDED_CHART2_SOURCE_CONTROLLER_INC_CHARTDOCUMENTWRAPPER_HXX
2003-12-18 12:50:56 +00:00
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
#include "WrappedPropertySet.hxx"
#include <com/sun/star/chart2/XChartDocument.hpp>
2003-12-18 12:50:56 +00:00
#include <com/sun/star/chart/XChartDocument.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/uno/XAggregation.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
#include <com/sun/star/util/XRefreshable.hpp>
#include <cppuhelper/implbase.hxx>
2003-12-18 12:50:56 +00:00
#include <osl/mutex.hxx>
#include <unotools/eventlisteneradapter.hxx>
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
#include <comphelper/uno3.hxx>
2003-12-18 12:50:56 +00:00
#include <memory>
2003-12-18 12:50:56 +00:00
namespace chart
{
namespace wrapper
{
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
class Chart2ModelContact;
class ChartDocumentWrapper_Base : public ::cppu::ImplInheritanceHelper
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
< WrappedPropertySet
, css::chart::XChartDocument
, css::drawing::XDrawPageSupplier
, css::lang::XMultiServiceFactory
, css::lang::XServiceInfo
, css::uno::XAggregation
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
>
2003-12-18 12:50:56 +00:00
{
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
};
class ChartDocumentWrapper : public ChartDocumentWrapper_Base
, public ::utl::OEventListenerAdapter
2003-12-18 12:50:56 +00:00
{
public:
explicit ChartDocumentWrapper( const css::uno::Reference< css::uno::XComponentContext > & xContext );
virtual ~ChartDocumentWrapper() override;
2003-12-18 12:50:56 +00:00
/// XServiceInfo declarations
virtual OUString SAL_CALL getImplementationName() override;
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
void setAddIn( const css::uno::Reference< css::util::XRefreshable >& xAddIn );
const css::uno::Reference< css::util::XRefreshable >& getAddIn() const { return m_xAddIn;}
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
void setUpdateAddIn( bool bUpdateAddIn );
bool getUpdateAddIn() const { return m_bUpdateAddIn;}
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
void setBaseDiagram( const OUString& rBaseDiagram );
const OUString& getBaseDiagram() const { return m_aBaseDiagram;}
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
css::uno::Reference< css::drawing::XShapes > getAdditionalShapes() const;
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
/// @throws css::uno::RuntimeException
css::uno::Reference< css::drawing::XDrawPage > impl_getDrawPage() const;
2003-12-18 12:50:56 +00:00
protected:
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
2003-12-18 12:50:56 +00:00
// ____ chart::XChartDocument ____
virtual css::uno::Reference< css::drawing::XShape > SAL_CALL getTitle() override;
virtual css::uno::Reference< css::drawing::XShape > SAL_CALL getSubTitle() override;
virtual css::uno::Reference< css::drawing::XShape > SAL_CALL getLegend() override;
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getArea() override;
virtual css::uno::Reference< css::chart::XDiagram > SAL_CALL getDiagram() override;
virtual void SAL_CALL setDiagram( const css::uno::Reference<
css::chart::XDiagram >& xDiagram ) override;
virtual css::uno::Reference< css::chart::XChartData > SAL_CALL getData() override;
virtual void SAL_CALL attachData( const css::uno::Reference<
css::chart::XChartData >& xData ) override;
2003-12-18 12:50:56 +00:00
// ____ XModel ____
virtual sal_Bool SAL_CALL attachResource( const OUString& URL,
const css::uno::Sequence< css::beans::PropertyValue >& Arguments ) override;
virtual OUString SAL_CALL getURL() override;
virtual css::uno::Sequence<
css::beans::PropertyValue > SAL_CALL getArgs() override;
virtual void SAL_CALL connectController( const css::uno::Reference<
css::frame::XController >& Controller ) override;
virtual void SAL_CALL disconnectController( const css::uno::Reference<
css::frame::XController >& Controller ) override;
virtual void SAL_CALL lockControllers() override;
virtual void SAL_CALL unlockControllers() override;
virtual sal_Bool SAL_CALL hasControllersLocked() override;
virtual css::uno::Reference<
css::frame::XController > SAL_CALL getCurrentController() override;
virtual void SAL_CALL setCurrentController( const css::uno::Reference< css::frame::XController >& Controller ) override;
virtual css::uno::Reference<css::uno::XInterface > SAL_CALL getCurrentSelection() override;
2003-12-18 12:50:56 +00:00
// ____ XComponent ____
virtual void SAL_CALL dispose() override;
virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) override;
virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override;
2003-12-18 12:50:56 +00:00
// ____ XInterface (for new interfaces) ____
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
2003-12-18 12:50:56 +00:00
// ____ ::utl::OEventListenerAdapter ____
virtual void _disposing( const css::lang::EventObject& rSource ) override;
2003-12-18 12:50:56 +00:00
// ____ XDrawPageSupplier ____
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL getDrawPage() override;
2003-12-18 12:50:56 +00:00
// ____ XMultiServiceFactory ____
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( const OUString& aServiceSpecifier ) override;
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments(
const OUString& ServiceSpecifier,
const css::uno::Sequence< css::uno::Any >& Arguments ) override;
virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override;
2003-12-18 12:50:56 +00:00
// ____ XAggregation ____
virtual void SAL_CALL setDelegator(
const css::uno::Reference< css::uno::XInterface >& rDelegator ) override;
virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type& aType ) override;
2003-12-18 12:50:56 +00:00
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
// ____ WrappedPropertySet ____
virtual const css::uno::Sequence< css::beans::Property >& getPropertySequence() override;
virtual const std::vector< WrappedProperty* > createWrappedProperties() override;
virtual css::uno::Reference< css::beans::XPropertySet > getInnerPropertySet() override;
2003-12-18 12:50:56 +00:00
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
private: //methods
void impl_resetAddIn();
private: //member
std::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
css::uno::Reference< css::uno::XInterface > m_xDelegator;
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
css::uno::Reference< css::drawing::XShape > m_xTitle;
css::uno::Reference< css::drawing::XShape > m_xSubTitle;
css::uno::Reference< css::drawing::XShape > m_xLegend;
css::uno::Reference< css::chart::XChartData > m_xChartData;
css::uno::Reference< css::chart::XDiagram > m_xDiagram;
css::uno::Reference< css::beans::XPropertySet > m_xArea;
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
css::uno::Reference< css::util::XRefreshable > m_xAddIn;
OUString m_aBaseDiagram;
bool m_bUpdateAddIn;
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
css::uno::Reference< css::uno::XInterface > m_xChartView;
css::uno::Reference< css::lang::XMultiServiceFactory>
m_xShapeFactory;
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/08/08 15:00:54 iha 1.2.4.17: don't refresh addin when loading is not finished 2006/03/12 01:17:40 iha 1.2.4.16: changed communication between model, view and controller; implemented old AddIn Interface; changed owneship and lifetime of view 2006/03/10 10:20:41 iha 1.2.4.15: don't use leading underscore 2006/02/17 20:57:54 iha 1.2.4.14: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/02/06 13:55:39 iha 1.2.4.13: make WrappedPropertySet a MutexContainer 2005/11/15 15:30:20 bm 1.2.4.12: garbage collection, disposing, reference release issues 2005/11/08 16:08:10 bm 1.2.4.11: update mechanism for old API wrapper. Todo: implement for all objects and especially for chartdocument 2005/11/07 17:11:10 bm 1.2.4.10: XRefreshable removed 2005/10/07 11:24:59 bm 1.2.4.9: RESYNC: (1.2-1.3); FILE MERGED 2005/07/18 17:12:18 iha 1.2.4.8: update view in old api wrapped before saving 2005/07/07 16:27:48 bm 1.2.4.7: use wrapper for area to get correct named properties (hatches, gradients etc.) 2005/06/07 15:37:56 iha 1.2.4.6: removed inactive XNumberFormatsSupplier interface from wrapper 2005/05/31 19:02:10 iha 1.2.4.5: create old api without controller 2005/04/19 17:37:26 iha 1.2.4.4: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 14:28:37 iha 1.2.4.3: save - old api - access correct gradient and oher lists 2004/03/02 09:34:53 bm 1.2.4.2: properties added (esp. the Has... properties) 2004/02/13 16:51:18 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:52:45 +00:00
bool m_bIsDisposed;
2003-12-18 12:50:56 +00:00
};
} // namespace wrapper
} // namespace chart
// CHART_CHARTDOCUMENT_HXX
#endif
2010-10-27 12:43:08 +01:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */