LCOV - code coverage report
Current view: top level - linguistic2 - ConversionDictionaryList.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 10 0.0 %
Date: 2013-07-09 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_LINGUISTIC2_CONVERSIONDICTIONARYLIST_HPP
       2             : #define INCLUDED_COM_SUN_STAR_LINGUISTIC2_CONVERSIONDICTIONARYLIST_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include <cassert>
       7             : 
       8             : #include "com/sun/star/linguistic2/XConversionDictionaryList.hpp"
       9             : #include "com/sun/star/uno/DeploymentException.hpp"
      10             : #include "com/sun/star/uno/Exception.hpp"
      11             : #include "com/sun/star/uno/RuntimeException.hpp"
      12             : #include "com/sun/star/uno/XComponentContext.hpp"
      13             : #include "com/sun/star/uno/Reference.hxx"
      14             : #include "cppu/unotype.hxx"
      15             : #include "rtl/ustring.h"
      16             : #include "rtl/ustring.hxx"
      17             : 
      18             : namespace com { namespace sun { namespace star { namespace linguistic2 {
      19             : 
      20             : class ConversionDictionaryList {
      21             : public:
      22           0 :     static ::com::sun::star::uno::Reference< css::linguistic2::XConversionDictionaryList > create(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & the_context) {
      23             :         assert(the_context.is());
      24           0 :         ::com::sun::star::uno::Reference< css::linguistic2::XConversionDictionaryList > the_instance;
      25             :         try {
      26           0 :             the_instance = ::com::sun::star::uno::Reference< css::linguistic2::XConversionDictionaryList >(the_context->getServiceManager()->createInstanceWithContext(::rtl::OUString( "com.sun.star.linguistic2.ConversionDictionaryList" ), the_context), ::com::sun::star::uno::UNO_QUERY);
      27           0 :         } catch (const ::com::sun::star::uno::RuntimeException &) {
      28           0 :             throw;
      29           0 :         } catch (const ::com::sun::star::uno::Exception & the_exception) {
      30           0 :             throw ::com::sun::star::uno::DeploymentException(::rtl::OUString( "component context fails to supply service com.sun.star.linguistic2.ConversionDictionaryList of type com.sun.star.linguistic2.XConversionDictionaryList: " ) + the_exception.Message, the_context);
      31             :         }
      32           0 :         if (!the_instance.is()) {
      33           0 :             throw ::com::sun::star::uno::DeploymentException(::rtl::OUString( "component context fails to supply service com.sun.star.linguistic2.ConversionDictionaryList of type com.sun.star.linguistic2.XConversionDictionaryList" ), the_context);
      34             :         }
      35           0 :         return the_instance;
      36             :     }
      37             : 
      38             : private:
      39             :     ConversionDictionaryList(); // not implemented
      40             :     ConversionDictionaryList(ConversionDictionaryList &); // not implemented
      41             :     ~ConversionDictionaryList(); // not implemented
      42             :     void operator =(ConversionDictionaryList); // not implemented
      43             : };
      44             : 
      45             : } } } }
      46             : 
      47             : #endif // INCLUDED_COM_SUN_STAR_LINGUISTIC2_CONVERSIONDICTIONARYLIST_HPP

Generated by: LCOV version 1.10