LCOV - code coverage report
Current view: top level - reportdesign/source/ui/inc - DataProviderHandler.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 2 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef RPT_DATAPROVIDERHANDLER_HXX
      30                 :            : #define RPT_DATAPROVIDERHANDLER_HXX
      31                 :            : 
      32                 :            : #include "sal/config.h"
      33                 :            : 
      34                 :            : #include "cppuhelper/compbase2.hxx"
      35                 :            : #include "cppuhelper/basemutex.hxx"
      36                 :            : 
      37                 :            : #include "com/sun/star/uno/XComponentContext.hpp"
      38                 :            : #include "com/sun/star/inspection/XPropertyHandler.hpp"
      39                 :            : #include "com/sun/star/chart2/XChartDocument.hpp"
      40                 :            : #include "com/sun/star/chart2/data/XDatabaseDataProvider.hpp"
      41                 :            : #include "com/sun/star/report/XReportComponent.hpp"
      42                 :            : #include "com/sun/star/script/XTypeConverter.hpp"
      43                 :            : #include "com/sun/star/lang/XServiceInfo.hpp"
      44                 :            : 
      45                 :            : #include <memory>
      46                 :            : 
      47                 :            : //........................................................................
      48                 :            : namespace rptui
      49                 :            : {
      50                 :            : //........................................................................
      51                 :            : 
      52                 :            :     class OPropertyInfoService;
      53                 :            : 
      54                 :            :     typedef ::cppu::WeakComponentImplHelper2<   ::com::sun::star::inspection::XPropertyHandler
      55                 :            :                                             ,   ::com::sun::star::lang::XServiceInfo> DataProviderHandler_Base;
      56                 :            : 
      57                 :            :     class DataProviderHandler:
      58                 :            :         private ::cppu::BaseMutex,
      59                 :            :         public DataProviderHandler_Base
      60                 :            :     {
      61                 :            :     public:
      62                 :            :         // XServiceInfo - static versions
      63                 :            :         static ::rtl::OUString getImplementationName_Static(  ) throw(::com::sun::star::uno::RuntimeException);
      64                 :            :         static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_static(  ) throw(::com::sun::star::uno::RuntimeException);
      65                 :            :         static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
      66                 :            :                         create(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >&);
      67                 :            : 
      68                 :            :         explicit DataProviderHandler(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & context);
      69                 :            :     private:
      70                 :            : 
      71                 :            :         // XServiceInfo
      72                 :            :         virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
      73                 :            :         virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
      74                 :            :         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException);
      75                 :            : 
      76                 :            :         // ::com::sun::star::lang::XComponent:
      77                 :            :         virtual void SAL_CALL addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & xListener)   throw (::com::sun::star::uno::RuntimeException);
      78                 :            :         virtual void SAL_CALL removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw (::com::sun::star::uno::RuntimeException);
      79                 :            : 
      80                 :            :         // ::com::sun::star::inspection::XPropertyHandler:
      81                 :            :         virtual void SAL_CALL inspect(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & Component) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::NullPointerException);
      82                 :            :         virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(const ::rtl::OUString & PropertyName) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::beans::UnknownPropertyException);
      83                 :            :         virtual void SAL_CALL setPropertyValue(const ::rtl::OUString & PropertyName, const ::com::sun::star::uno::Any & Value) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::beans::UnknownPropertyException);
      84                 :            :         virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState(const ::rtl::OUString & PropertyName) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::beans::UnknownPropertyException);
      85                 :            :         virtual ::com::sun::star::inspection::LineDescriptor SAL_CALL describePropertyLine(const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlFactory >& ControlFactory ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::NullPointerException, ::com::sun::star::uno::RuntimeException);
      86                 :            :         virtual ::com::sun::star::uno::Any SAL_CALL convertToPropertyValue(const ::rtl::OUString & PropertyName, const ::com::sun::star::uno::Any & ControlValue) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::beans::UnknownPropertyException);
      87                 :            :         virtual ::com::sun::star::uno::Any SAL_CALL convertToControlValue(const ::rtl::OUString & PropertyName, const ::com::sun::star::uno::Any & PropertyValue, const ::com::sun::star::uno::Type & ControlValueType) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::beans::UnknownPropertyException);
      88                 :            :         virtual void SAL_CALL addPropertyChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener > & Listener) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::NullPointerException);
      89                 :            :         virtual void SAL_CALL removePropertyChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener > & _rxListener) throw (::com::sun::star::uno::RuntimeException);
      90                 :            :         virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getSupportedProperties() throw (::com::sun::star::uno::RuntimeException);
      91                 :            :         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupersededProperties() throw (::com::sun::star::uno::RuntimeException);
      92                 :            :         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getActuatingProperties() throw (::com::sun::star::uno::RuntimeException);
      93                 :            :         virtual ::sal_Bool SAL_CALL isComposable(const ::rtl::OUString & PropertyName) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::beans::UnknownPropertyException);
      94                 :            :         virtual ::com::sun::star::inspection::InteractiveSelectionResult SAL_CALL onInteractivePropertySelection(const ::rtl::OUString & PropertyName, ::sal_Bool Primary, ::com::sun::star::uno::Any & out_Data, const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XObjectInspectorUI > & InspectorUI) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::NullPointerException);
      95                 :            :         virtual void SAL_CALL actuatingPropertyChanged(const ::rtl::OUString & ActuatingPropertyName, const ::com::sun::star::uno::Any & NewValue, const ::com::sun::star::uno::Any & OldValue, const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XObjectInspectorUI > & InspectorUI, ::sal_Bool FirstTimeInit) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::NullPointerException);
      96                 :            :         virtual ::sal_Bool SAL_CALL suspend(::sal_Bool Suspend) throw (::com::sun::star::uno::RuntimeException);
      97                 :            : 
      98                 :            :     protected:
      99                 :          0 :         virtual ~DataProviderHandler() {}
     100                 :            :     private:
     101                 :            :         DataProviderHandler(DataProviderHandler &); // not defined
     102                 :            :         void operator =(DataProviderHandler &); // not defined
     103                 :            : 
     104                 :            : 
     105                 :            :         bool impl_dialogLinkedFields_nothrow( ::osl::ClearableMutexGuard& _rClearBeforeDialog ) const;
     106                 :            :         bool impl_dialogChartType_nothrow( ::osl::ClearableMutexGuard& _rClearBeforeDialog ) const;
     107                 :            :         void impl_updateChartTitle_throw(const ::com::sun::star::uno::Any& _aValue);
     108                 :            : 
     109                 :            :         // overload WeakComponentImplHelperBase::disposing()
     110                 :            :         // This function is called upon disposing the component,
     111                 :            :         // if your component needs special work when it becomes
     112                 :            :         // disposed, do it here.
     113                 :            :         virtual void SAL_CALL disposing();
     114                 :            : 
     115                 :            :         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >                m_xContext;
     116                 :            :         ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyHandler >          m_xFormComponentHandler; /// delegatee
     117                 :            :         ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDatabaseDataProvider>    m_xDataProvider; /// inspectee
     118                 :            :         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >                       m_xFormComponent; /// inspectee
     119                 :            :         ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent >              m_xReportComponent; /// inspectee
     120                 :            :         ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartDocument>                 m_xChartModel;
     121                 :            :         ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >        m_xMasterDetails;
     122                 :            :         /// type converter, needed on various occasions
     123                 :            :         ::com::sun::star::uno::Reference< ::com::sun::star::script::XTypeConverter >                m_xTypeConverter;
     124                 :            :         SAL_WNODEPRECATED_DECLARATIONS_PUSH
     125                 :            :         ::std::auto_ptr< OPropertyInfoService >                                                     m_pInfoService;
     126                 :            :         SAL_WNODEPRECATED_DECLARATIONS_POP
     127                 :            :     };
     128                 :            : //........................................................................
     129                 :            : } // namespace rptui
     130                 :            : //........................................................................
     131                 :            : 
     132                 :            : #endif // RPT_DATAPROVIDERHANDLER_HXX
     133                 :            : 
     134                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10