LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/offapi/com/sun/star/script/provider - ScriptFrameworkErrorException.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 13 13 100.0 %
Date: 2012-12-27 Functions: 5 5 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_SCRIPT_PROVIDER_SCRIPTFRAMEWORKERROREXCEPTION_HPP
       2             : #define INCLUDED_COM_SUN_STAR_SCRIPT_PROVIDER_SCRIPTFRAMEWORKERROREXCEPTION_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/script/provider/ScriptFrameworkErrorException.hdl"
       7             : 
       8             : #include "com/sun/star/uno/Exception.hpp"
       9             : #include "com/sun/star/uno/Type.hxx"
      10             : #include "cppu/unotype.hxx"
      11             : #include "osl/mutex.hxx"
      12             : #include "rtl/ustring.hxx"
      13             : #include "rtl/instance.hxx"
      14             : #include "sal/types.h"
      15             : 
      16             : namespace com { namespace sun { namespace star { namespace script { namespace provider {
      17             : 
      18           1 : inline ScriptFrameworkErrorException::ScriptFrameworkErrorException() SAL_THROW(())
      19             :     : css::uno::Exception()
      20             :     , scriptName()
      21             :     , language()
      22           1 :     , errorType(0)
      23           1 : { }
      24             : 
      25           1 : inline ScriptFrameworkErrorException::ScriptFrameworkErrorException(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< css::uno::XInterface >& Context_, const ::rtl::OUString& scriptName_, const ::rtl::OUString& language_, const ::sal_Int32& errorType_) SAL_THROW(())
      26             :     : css::uno::Exception(Message_, Context_)
      27             :     , scriptName(scriptName_)
      28             :     , language(language_)
      29           1 :     , errorType(errorType_)
      30           1 : { }
      31             : 
      32             : ScriptFrameworkErrorException::ScriptFrameworkErrorException(ScriptFrameworkErrorException const & the_other): css::uno::Exception(the_other), scriptName(the_other.scriptName), language(the_other.language), errorType(the_other.errorType) {}
      33             : 
      34           2 : ScriptFrameworkErrorException::~ScriptFrameworkErrorException() {}
      35             : 
      36             : ScriptFrameworkErrorException & ScriptFrameworkErrorException::operator =(ScriptFrameworkErrorException const & the_other) {
      37             :     //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
      38             :     css::uno::Exception::operator =(the_other);
      39             :     scriptName = the_other.scriptName;
      40             :     language = the_other.language;
      41             :     errorType = the_other.errorType;
      42             :     return *this;
      43             : }
      44             : 
      45             : } } } } }
      46             : 
      47             : namespace com { namespace sun { namespace star { namespace script { namespace provider {
      48             : 
      49           2 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::script::provider::ScriptFrameworkErrorException const *) {
      50             :     static typelib_TypeDescriptionReference * the_type = 0;
      51           2 :     if ( !the_type )
      52             :     {
      53           1 :         typelib_static_type_init( &the_type, typelib_TypeClass_EXCEPTION, "com.sun.star.script.provider.ScriptFrameworkErrorException" );
      54             :     }
      55           2 :     return * reinterpret_cast< ::com::sun::star::uno::Type * >( &the_type );
      56             : }
      57             : 
      58             : } } } } }
      59             : 
      60           1 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::script::provider::ScriptFrameworkErrorException const *) SAL_THROW(()) {
      61           1 :     return ::cppu::UnoType< css::script::provider::ScriptFrameworkErrorException >::get();
      62             : }
      63             : 
      64             : #endif // INCLUDED_COM_SUN_STAR_SCRIPT_PROVIDER_SCRIPTFRAMEWORKERROREXCEPTION_HPP

Generated by: LCOV version 1.10