LCOV - code coverage report
Current view: top level - libreoffice/chart2/source/controller/inc - dlg_CreationWizard_UNO.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 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 _CHART2_CREATION_WIZARD_UNO_HXX
      21             : #define _CHART2_CREATION_WIZARD_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             : //.............................................................................
      40             : namespace chart
      41             : {
      42             : //.............................................................................
      43             : 
      44             : class CreationWizard;
      45             : class CreationWizardUnoDlg : public MutexContainer
      46             :                             , public ::cppu::OComponentHelper
      47             :                             , public ::com::sun::star::ui::dialogs::XExecutableDialog
      48             :                             , public ::com::sun::star::lang::XServiceInfo
      49             :                             , public ::com::sun::star::lang::XInitialization
      50             :                             , public ::com::sun::star::frame::XTerminateListener
      51             :                             , public ::com::sun::star::beans::XPropertySet
      52             : {
      53             : public:
      54             :     CreationWizardUnoDlg( const ::com::sun::star::uno::Reference<
      55             :         ::com::sun::star::uno::XComponentContext >& xContext );
      56             :     virtual ~CreationWizardUnoDlg();
      57             : 
      58             :     // XInterface
      59             :     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException);
      60             :     virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException);
      61             :     virtual void SAL_CALL acquire() throw ();
      62             :     virtual void SAL_CALL release() throw ();
      63             : 
      64             :     // XTypeProvider
      65             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw (::com::sun::star::uno::RuntimeException);
      66             :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId(  ) throw (::com::sun::star::uno::RuntimeException);
      67             : 
      68             :     // XServiceInfo
      69             :     APPHELPER_XSERVICEINFO_DECL()
      70           0 :     APPHELPER_SERVICE_FACTORY_HELPER(CreationWizardUnoDlg)
      71             : 
      72             :     // XExecutableDialog
      73             :     virtual void SAL_CALL setTitle( const ::rtl::OUString& aTitle ) throw (::com::sun::star::uno::RuntimeException);
      74             :     virtual sal_Int16 SAL_CALL execute(  ) throw (::com::sun::star::uno::RuntimeException);
      75             : 
      76             :     // XInitialization
      77             :     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);
      78             : 
      79             :     // XTerminateListener
      80             :     virtual void SAL_CALL queryTermination( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::frame::TerminationVetoException, ::com::sun::star::uno::RuntimeException);
      81             :     virtual void SAL_CALL notifyTermination( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
      82             : 
      83             :     virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
      84             : 
      85             :     //XPropertySet
      86             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw (::com::sun::star::uno::RuntimeException);
      87             :     virtual void SAL_CALL setPropertyValue( const ::rtl::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);
      88             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      89             :     virtual void SAL_CALL addPropertyChangeListener( const ::rtl::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);
      90             :     virtual void SAL_CALL removePropertyChangeListener( const ::rtl::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);
      91             :     virtual void SAL_CALL addVetoableChangeListener( const ::rtl::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);
      92             :     virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::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);
      93             : 
      94             :     DECL_LINK( DialogEventHdl, VclWindowEvent* );
      95             : 
      96             : protected:
      97             :     // ____ OComponentHelper ____
      98             :     /// Called in dispose method after the listeners were notified.
      99             :     virtual void SAL_CALL disposing();
     100             : 
     101             : private:
     102             :     //no default constructor
     103             :     CreationWizardUnoDlg();
     104             :     void createDialogOnDemand();
     105             : 
     106             : private:
     107             :     ::com::sun::star::uno::Reference<
     108             :         ::com::sun::star::frame::XModel >           m_xChartModel;
     109             :     ::com::sun::star::uno::Reference<
     110             :         ::com::sun::star::uno::XComponentContext>    m_xCC;
     111             :     com::sun::star::uno::Reference<
     112             :         com::sun::star::awt::XWindow >               m_xParentWindow;
     113             : 
     114             :     CreationWizard*     m_pDialog;
     115             :     sal_Bool            m_bUnlockControllersOnExecute;
     116             : };
     117             : 
     118             : //.............................................................................
     119             : } //namespace chart
     120             : //.............................................................................
     121             : #endif
     122             : 
     123             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10