LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/offapi/com/sun/star/sdb/application - CopyTableWizard.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 17 0.0 %
Date: 2012-12-27 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_SDB_APPLICATION_COPYTABLEWIZARD_HPP
       2             : #define INCLUDED_COM_SUN_STAR_SDB_APPLICATION_COPYTABLEWIZARD_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include <cassert>
       7             : 
       8             : #include "com/sun/star/uno/DeploymentException.hpp"
       9             : #include "com/sun/star/uno/Exception.hpp"
      10             : #include "com/sun/star/sdb/application/XCopyTableWizard.hpp"
      11             : #include "com/sun/star/task/XInteractionHandler.hpp"
      12             : #include "com/sun/star/uno/XComponentContext.hpp"
      13             : #include "com/sun/star/lang/WrappedTargetException.hpp"
      14             : #include "com/sun/star/lang/IllegalArgumentException.hpp"
      15             : #include "com/sun/star/uno/RuntimeException.hpp"
      16             : #include "com/sun/star/beans/XPropertySet.hpp"
      17             : #include "com/sun/star/sdbc/SQLException.hpp"
      18             : #include "com/sun/star/uno/Any.hxx"
      19             : #include "com/sun/star/uno/Reference.hxx"
      20             : #include "com/sun/star/uno/Sequence.hxx"
      21             : #include "cppu/unotype.hxx"
      22             : #include "rtl/ustring.h"
      23             : #include "rtl/ustring.hxx"
      24             : 
      25             : namespace com { namespace sun { namespace star { namespace sdb { namespace application {
      26             : 
      27             : class CopyTableWizard {
      28             : public:
      29           0 :     static ::com::sun::star::uno::Reference< css::sdb::application::XCopyTableWizard > create(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & the_context, const ::com::sun::star::uno::Reference< css::beans::XPropertySet >& Source, const ::com::sun::star::uno::Reference< css::beans::XPropertySet >& Destination) {
      30             :         assert(the_context.is());
      31           0 :         ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > the_arguments(2);
      32           0 :         the_arguments[0] <<= Source;
      33           0 :         the_arguments[1] <<= Destination;
      34           0 :         ::com::sun::star::uno::Reference< css::sdb::application::XCopyTableWizard > the_instance;
      35             :         try {
      36           0 :             the_instance = ::com::sun::star::uno::Reference< css::sdb::application::XCopyTableWizard >(the_context->getServiceManager()->createInstanceWithArgumentsAndContext(::rtl::OUString( "com.sun.star.sdb.application.CopyTableWizard" ), the_arguments, the_context), ::com::sun::star::uno::UNO_QUERY);
      37           0 :         } catch (::com::sun::star::uno::RuntimeException &) {
      38           0 :             throw;
      39           0 :         } catch (css::sdbc::SQLException &) {
      40           0 :             throw;
      41           0 :         } catch (css::lang::WrappedTargetException &) {
      42           0 :             throw;
      43           0 :         } catch (::com::sun::star::uno::Exception & the_exception) {
      44           0 :             throw ::com::sun::star::uno::DeploymentException(::rtl::OUString( "component context fails to supply service com.sun.star.sdb.application.CopyTableWizard of type com.sun.star.sdb.application.XCopyTableWizard: " ) + the_exception.Message, the_context);
      45             :         }
      46           0 :         if (!the_instance.is()) {
      47           0 :             throw ::com::sun::star::uno::DeploymentException(::rtl::OUString( "component context fails to supply service com.sun.star.sdb.application.CopyTableWizard of type com.sun.star.sdb.application.XCopyTableWizard" ), the_context);
      48             :         }
      49           0 :         return the_instance;
      50             :     }
      51             : 
      52             :     static ::com::sun::star::uno::Reference< css::sdb::application::XCopyTableWizard > createWithInteractionHandler(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & the_context, const ::com::sun::star::uno::Reference< css::beans::XPropertySet >& Source, const ::com::sun::star::uno::Reference< css::beans::XPropertySet >& Destination, const ::com::sun::star::uno::Reference< css::task::XInteractionHandler >& InteractionHandler) {
      53             :         assert(the_context.is());
      54             :         ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > the_arguments(3);
      55             :         the_arguments[0] <<= Source;
      56             :         the_arguments[1] <<= Destination;
      57             :         the_arguments[2] <<= InteractionHandler;
      58             :         ::com::sun::star::uno::Reference< css::sdb::application::XCopyTableWizard > the_instance;
      59             :         try {
      60             :             the_instance = ::com::sun::star::uno::Reference< css::sdb::application::XCopyTableWizard >(the_context->getServiceManager()->createInstanceWithArgumentsAndContext(::rtl::OUString( "com.sun.star.sdb.application.CopyTableWizard" ), the_arguments, the_context), ::com::sun::star::uno::UNO_QUERY);
      61             :         } catch (::com::sun::star::uno::RuntimeException &) {
      62             :             throw;
      63             :         } catch (css::sdbc::SQLException &) {
      64             :             throw;
      65             :         } catch (css::lang::WrappedTargetException &) {
      66             :             throw;
      67             :         } catch (::com::sun::star::uno::Exception & the_exception) {
      68             :             throw ::com::sun::star::uno::DeploymentException(::rtl::OUString( "component context fails to supply service com.sun.star.sdb.application.CopyTableWizard of type com.sun.star.sdb.application.XCopyTableWizard: " ) + the_exception.Message, the_context);
      69             :         }
      70             :         if (!the_instance.is()) {
      71             :             throw ::com::sun::star::uno::DeploymentException(::rtl::OUString( "component context fails to supply service com.sun.star.sdb.application.CopyTableWizard of type com.sun.star.sdb.application.XCopyTableWizard" ), the_context);
      72             :         }
      73             :         return the_instance;
      74             :     }
      75             : 
      76             : private:
      77             :     CopyTableWizard(); // not implemented
      78             :     CopyTableWizard(CopyTableWizard &); // not implemented
      79             :     ~CopyTableWizard(); // not implemented
      80             :     void operator =(CopyTableWizard); // not implemented
      81             : };
      82             : 
      83             : } } } } }
      84             : 
      85             : #endif // INCLUDED_COM_SUN_STAR_SDB_APPLICATION_COPYTABLEWIZARD_HPP

Generated by: LCOV version 1.10