LCOV - code coverage report
Current view: top level - chart2/source/controller/inc - dlg_CreationWizard_UNO.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 1 0.0 %
Date: 2014-04-11 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_CREATIONWIZARD_UNO_HXX
      21             : #define INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_CREATIONWIZARD_UNO_HXX
      22             : 
      23             : #include "ServiceMacros.hxx"
      24             : #include "MutexContainer.hxx"
      25             : #include <cppuhelper/component.hxx>
      26             : #include <com/sun/star/awt/XWindow.hpp>
      27             : #include <com/sun/star/beans/XPropertySet.hpp>
      28             : #include <com/sun/star/frame/XModel.hpp>
      29             : #include <com/sun/star/frame/XTerminateListener.hpp>
      30             : #include <com/sun/star/lang/XInitialization.hpp>
      31             : #include <com/sun/star/lang/XServiceInfo.hpp>
      32             : #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
      33             : #include <com/sun/star/uno/XComponentContext.hpp>
      34             : 
      35             : // header for define DECL_LINK
      36             : #include <tools/link.hxx>
      37             : #include <vcl/vclevent.hxx>
      38             : 
      39             : namespace chart
      40             : {
      41             : 
      42             : class CreationWizard;
      43             : class CreationWizardUnoDlg : public MutexContainer
      44             :                             , public ::cppu::OComponentHelper
      45             :                             , public ::com::sun::star::ui::dialogs::XExecutableDialog
      46             :                             , public ::com::sun::star::lang::XServiceInfo
      47             :                             , public ::com::sun::star::lang::XInitialization
      48             :                             , public ::com::sun::star::frame::XTerminateListener
      49             :                             , public ::com::sun::star::beans::XPropertySet
      50             : {
      51             : public:
      52             :     CreationWizardUnoDlg( const ::com::sun::star::uno::Reference<
      53             :         ::com::sun::star::uno::XComponentContext >& xContext );
      54             :     virtual ~CreationWizardUnoDlg();
      55             : 
      56             :     // XInterface
      57             :     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      58             :     virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      59             :     virtual void SAL_CALL acquire() throw () SAL_OVERRIDE;
      60             :     virtual void SAL_CALL release() throw () SAL_OVERRIDE;
      61             : 
      62             :     // XTypeProvider
      63             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      64             :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      65             : 
      66             :     // XServiceInfo
      67             :     APPHELPER_XSERVICEINFO_DECL()
      68           0 :     APPHELPER_SERVICE_FACTORY_HELPER(CreationWizardUnoDlg)
      69             : 
      70             :     // XExecutableDialog
      71             :     virtual void SAL_CALL setTitle( const OUString& aTitle ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      72             :     virtual sal_Int16 SAL_CALL execute(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      73             : 
      74             :     // XInitialization
      75             :     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, std::exception) SAL_OVERRIDE;
      76             : 
      77             :     // XTerminateListener
      78             :     virtual void SAL_CALL queryTermination( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::frame::TerminationVetoException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      79             :     virtual void SAL_CALL notifyTermination( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      80             : 
      81             :     virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      82             : 
      83             :     //XPropertySet
      84             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      85             :     virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      86             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      87             :     virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      88             :     virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      89             :     virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      90             :     virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      91             : 
      92             :     DECL_LINK( DialogEventHdl, VclWindowEvent* );
      93             : 
      94             : protected:
      95             :     // ____ OComponentHelper ____
      96             :     /// Called in dispose method after the listeners were notified.
      97             :     virtual void SAL_CALL disposing() SAL_OVERRIDE;
      98             : 
      99             : private:
     100             :     //no default constructor
     101             :     CreationWizardUnoDlg();
     102             :     void createDialogOnDemand();
     103             : 
     104             : private:
     105             :     ::com::sun::star::uno::Reference<
     106             :         ::com::sun::star::frame::XModel >           m_xChartModel;
     107             :     ::com::sun::star::uno::Reference<
     108             :         ::com::sun::star::uno::XComponentContext>    m_xCC;
     109             :     com::sun::star::uno::Reference<
     110             :         com::sun::star::awt::XWindow >               m_xParentWindow;
     111             : 
     112             :     CreationWizard*     m_pDialog;
     113             :     sal_Bool            m_bUnlockControllersOnExecute;
     114             : };
     115             : 
     116             : } //namespace chart
     117             : #endif
     118             : 
     119             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10