Files
libreoffice/chart2/source/controller/inc/ChartDocumentWrapper.hxx
Stephan Bergmann e57ca02849 Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only).  See the mail thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html>
"Dynamic Exception Specifications" for details.

Most changes have been done automatically by the rewriting loplugin:dynexcspec
(after enabling the rewriting mode, to be committed shortly).  The way it only
removes exception specs from declarations if it also sees a definition, it
identified some dead declarations-w/o-definitions (that have been removed
manually) and some cases where a definition appeared in multiple include files
(which have also been cleaned up manually).  There's also been cases of macro
paramters (that were used to abstract over exception specs) that have become
unused now (and been removed).

Furthermore, some code needed to be cleaned up manually
(avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no
configurations available that would actually build that code.  Missing @throws
documentation has not been applied in such manual clean-up.

Change-Id: I3408691256c9b0c12bc5332de976743626e13960
Reviewed-on: https://gerrit.libreoffice.org/33574
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-01-26 12:54:43 +00:00

179 lines
8.1 KiB
C++

/* -*- 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
#include "WrappedPropertySet.hxx"
#include <com/sun/star/chart2/XChartDocument.hpp>
#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>
#include <com/sun/star/util/XRefreshable.hpp>
#include <cppuhelper/implbase.hxx>
#include <osl/mutex.hxx>
#include <unotools/eventlisteneradapter.hxx>
#include <comphelper/uno3.hxx>
#include <memory>
namespace chart
{
namespace wrapper
{
class Chart2ModelContact;
class ChartDocumentWrapper_Base : public ::cppu::ImplInheritanceHelper
< WrappedPropertySet
, css::chart::XChartDocument
, css::drawing::XDrawPageSupplier
, css::lang::XMultiServiceFactory
, css::lang::XServiceInfo
, css::uno::XAggregation
>
{
};
class ChartDocumentWrapper : public ChartDocumentWrapper_Base
, public ::utl::OEventListenerAdapter
{
public:
explicit ChartDocumentWrapper( const css::uno::Reference< css::uno::XComponentContext > & xContext );
virtual ~ChartDocumentWrapper() override;
/// 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;}
void setUpdateAddIn( bool bUpdateAddIn );
bool getUpdateAddIn() const { return m_bUpdateAddIn;}
void setBaseDiagram( const OUString& rBaseDiagram );
const OUString& getBaseDiagram() const { return m_aBaseDiagram;}
css::uno::Reference< css::drawing::XShapes > getAdditionalShapes() const;
/// @throws css::uno::RuntimeException
css::uno::Reference< css::drawing::XDrawPage > impl_getDrawPage() const;
protected:
// ____ 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;
// ____ 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;
// ____ 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;
// ____ XInterface (for new interfaces) ____
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
// ____ ::utl::OEventListenerAdapter ____
virtual void _disposing( const css::lang::EventObject& rSource ) override;
// ____ XDrawPageSupplier ____
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL getDrawPage() override;
// ____ 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;
// ____ 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;
// ____ 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;
private: //methods
void impl_resetAddIn();
private: //member
std::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
css::uno::Reference< css::uno::XInterface > m_xDelegator;
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;
css::uno::Reference< css::util::XRefreshable > m_xAddIn;
OUString m_aBaseDiagram;
bool m_bUpdateAddIn;
css::uno::Reference< css::uno::XInterface > m_xChartView;
css::uno::Reference< css::lang::XMultiServiceFactory>
m_xShapeFactory;
bool m_bIsDisposed;
};
} // namespace wrapper
} // namespace chart
// CHART_CHARTDOCUMENT_HXX
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */