[Libreoffice-commits] core.git: stoc/inc stoc/Library_bootstrap.mk stoc/source stoc/util

Stephan Bergmann sbergman at redhat.com
Mon Aug 19 08:56:19 PDT 2013


 stoc/Library_bootstrap.mk                                 |   15 
 stoc/inc/bootstrapservices.hxx                            |    7 
 stoc/source/bootstrap/services.cxx                        |    6 
 stoc/source/registry_tdprovider/base.hxx                  |  618 --------------
 stoc/source/registry_tdprovider/functiondescription.cxx   |  103 --
 stoc/source/registry_tdprovider/functiondescription.hxx   |   80 -
 stoc/source/registry_tdprovider/methoddescription.cxx     |  133 ---
 stoc/source/registry_tdprovider/methoddescription.hxx     |   76 -
 stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx  |  615 -------------
 stoc/source/registry_tdprovider/rdbtdp_tdenumeration.hxx  |  109 --
 stoc/source/registry_tdprovider/structtypedescription.cxx |  129 --
 stoc/source/registry_tdprovider/structtypedescription.hxx |   98 --
 stoc/source/registry_tdprovider/td.cxx                    |   67 -
 stoc/source/registry_tdprovider/tdcomp.cxx                |  177 ----
 stoc/source/registry_tdprovider/tdconsts.cxx              |  100 --
 stoc/source/registry_tdprovider/tdef.cxx                  |   70 -
 stoc/source/registry_tdprovider/tdenum.cxx                |  125 --
 stoc/source/registry_tdprovider/tdiface.cxx               |  565 ------------
 stoc/source/registry_tdprovider/tdmodule.cxx              |  115 --
 stoc/source/registry_tdprovider/tdprop.cxx                |   57 -
 stoc/source/registry_tdprovider/tdprovider.cxx            |  605 -------------
 stoc/source/registry_tdprovider/tdservice.cxx             |  513 -----------
 stoc/source/registry_tdprovider/tdsingleton.cxx           |  119 --
 stoc/util/bootstrap.component                             |    2 
 24 files changed, 4504 deletions(-)

New commits:
commit da40cdd0e8a2a4ce2b3636f39c91b7129f1a6ed4
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Aug 19 16:27:13 2013 +0200

    Remove com.sun.star.comp.stoc.RegistryTypeDescriptionProvider
    
    ...which had become unused with the new cppuhelper/source/typemanager.cxx.
    
    Change-Id: Ic84d11cc9ecd1e7d73aa2757c14ffd46fa21e890

diff --git a/stoc/Library_bootstrap.mk b/stoc/Library_bootstrap.mk
index 7615a5c..a636917 100644
--- a/stoc/Library_bootstrap.mk
+++ b/stoc/Library_bootstrap.mk
@@ -47,21 +47,6 @@ $(eval $(call gb_Library_add_exception_objects,bootstrap,\
     stoc/source/implementationregistration/implreg \
     stoc/source/implementationregistration/mergekeys \
     stoc/source/loader/dllcomponentloader \
-    stoc/source/registry_tdprovider/functiondescription \
-    stoc/source/registry_tdprovider/methoddescription \
-    stoc/source/registry_tdprovider/rdbtdp_tdenumeration \
-    stoc/source/registry_tdprovider/structtypedescription \
-    stoc/source/registry_tdprovider/td \
-    stoc/source/registry_tdprovider/tdcomp \
-    stoc/source/registry_tdprovider/tdconsts \
-    stoc/source/registry_tdprovider/tdef \
-    stoc/source/registry_tdprovider/tdenum \
-    stoc/source/registry_tdprovider/tdiface \
-    stoc/source/registry_tdprovider/tdmodule \
-    stoc/source/registry_tdprovider/tdprop \
-    stoc/source/registry_tdprovider/tdprovider \
-    stoc/source/registry_tdprovider/tdservice \
-    stoc/source/registry_tdprovider/tdsingleton \
     stoc/source/security/access_controller \
     stoc/source/security/file_policy \
     stoc/source/security/permissions \
diff --git a/stoc/inc/bootstrapservices.hxx b/stoc/inc/bootstrapservices.hxx
index a754d13..43a10ba 100644
--- a/stoc/inc/bootstrapservices.hxx
+++ b/stoc/inc/bootstrapservices.hxx
@@ -84,13 +84,6 @@ namespace stoc_bootstrap
     throw(::com::sun::star::uno::Exception);
     ::com::sun::star::uno::Sequence< OUString > loader_getSupportedServiceNames();
     OUString loader_getImplementationName();
-
-    //registry_tdprovider
-    ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ProviderImpl_create(
-        const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& )
-    throw(::com::sun::star::uno::Exception);
-    ::com::sun::star::uno::Sequence< OUString > rdbtdp_getSupportedServiceNames();
-    OUString rdbtdp_getImplementationName();
 } // namespace
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/bootstrap/services.cxx b/stoc/source/bootstrap/services.cxx
index b35295f..e1295cb 100644
--- a/stoc/source/bootstrap/services.cxx
+++ b/stoc/source/bootstrap/services.cxx
@@ -88,12 +88,6 @@ static struct ImplementationEntry g_entries[] =
     loader_getSupportedServiceNames, createSingleComponentFactory,
     0, 0
     },
-    //registry_tdprovider
-    {
-    ProviderImpl_create, rdbtdp_getImplementationName,
-    rdbtdp_getSupportedServiceNames, createSingleComponentFactory,
-    0, 0
-    },
     //end
     { 0, 0, 0, 0, 0, 0 }
 };
diff --git a/stoc/source/registry_tdprovider/base.hxx b/stoc/source/registry_tdprovider/base.hxx
deleted file mode 100644
index a4328b7..0000000
--- a/stoc/source/registry_tdprovider/base.hxx
+++ /dev/null
@@ -1,618 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _STOC_RDBTDP_BASE_HXX
-#define _STOC_RDBTDP_BASE_HXX
-
-#include <osl/diagnose.h>
-#include <osl/mutex.hxx>
-#include <cppuhelper/weak.hxx>
-#include <cppuhelper/implbase1.hxx>
-#include <cppuhelper/implbase2.hxx>
-#include <cppuhelper/implementationentry.hxx>
-
-#include "registry/refltype.hxx"
-
-#include <list>
-#include <memory>
-#include <vector>
-
-#include <com/sun/star/reflection/XTypeDescription.hpp>
-#include <com/sun/star/reflection/XTypeDescriptionEnumerationAccess.hpp>
-#include <com/sun/star/reflection/XInterfaceTypeDescription.hpp>
-#include <com/sun/star/reflection/XInterfaceTypeDescription2.hpp>
-#include <com/sun/star/reflection/XCompoundTypeDescription.hpp>
-#include <com/sun/star/reflection/XConstantTypeDescription.hpp>
-#include <com/sun/star/reflection/XConstantsTypeDescription.hpp>
-#include <com/sun/star/reflection/XEnumTypeDescription.hpp>
-#include <com/sun/star/reflection/XIndirectTypeDescription.hpp>
-#include <com/sun/star/reflection/XServiceConstructorDescription.hpp>
-#include <com/sun/star/reflection/XServiceTypeDescription.hpp>
-#include <com/sun/star/reflection/XServiceTypeDescription2.hpp>
-#include <com/sun/star/reflection/XSingletonTypeDescription2.hpp>
-#include <com/sun/star/reflection/XModuleTypeDescription.hpp>
-#include <com/sun/star/reflection/XPublished.hpp>
-#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <com/sun/star/registry/XRegistryKey.hpp>
-
-using namespace std;
-using namespace osl;
-using namespace cppu;
-using namespace com::sun::star::uno;
-using namespace com::sun::star::lang;
-using namespace com::sun::star::container;
-using namespace com::sun::star::reflection;
-
-//--------------------------------------------------------------------------------------------------
-
-namespace stoc_rdbtdp
-{
-
-com::sun::star::uno::Reference< XTypeDescription > resolveTypedefs(
-    com::sun::star::uno::Reference< XTypeDescription > const & type);
-
-
-::osl::Mutex & getMutex();
-
-//--------------------------------------------------------------------------------------------------
-
-typedef ::std::list< ::com::sun::star::uno::Reference<
-            ::com::sun::star::registry::XRegistryKey > > RegistryKeyList;
-
-//--------------------------------------------------------------------------------------------------
-
-class RegistryKeyCloser
-{
-public:
-    RegistryKeyCloser( const ::com::sun::star::uno::Reference<
-        ::com::sun::star::registry::XRegistryKey > & xKey )
-    : m_xKey( xKey ) {}
-    ~RegistryKeyCloser()
-    { if ( m_xKey.is() ) { try { if ( m_xKey->isValid() ) m_xKey->closeKey(); } catch (...) {} } }
-
-    void reset() { m_xKey.clear(); }
-private:
-    ::com::sun::star::uno::Reference<
-        ::com::sun::star::registry::XRegistryKey > m_xKey;
-};
-
-//--------------------------------------------------------------------------------------------------
-
-// helper to create XTypeDescription instances using typereg::Reader
-// (used from Type Provider and Type Description Enumeration implementation)
-::com::sun::star::uno::Reference<
-    ::com::sun::star::reflection::XTypeDescription >
-createTypeDescription(
-    const ::com::sun::star::uno::Sequence< sal_Int8 > & rData,
-    const ::com::sun::star::uno::Reference<
-        ::com::sun::star::container::XHierarchicalNameAccess > & xNameAccess,
-    bool bReturnEmptyRefForUnknownType );
-
-
-//--------------------------------------------------------------------------------------------------
-inline sal_Int32 getRTValueAsInt32( const RTConstValue & rVal )
-{
-    switch (rVal.m_type)
-    {
-    case RT_TYPE_BYTE:
-        return rVal.m_value.aByte;
-    case RT_TYPE_INT16:
-        return rVal.m_value.aShort;
-    case RT_TYPE_UINT16:
-        return rVal.m_value.aUShort;
-    case RT_TYPE_INT32:
-        return rVal.m_value.aLong;
-    case RT_TYPE_UINT32:
-        return rVal.m_value.aULong;
-    default:
-        OSL_FAIL( "### unexpected value type!" );
-        return 0;
-    }
-}
-//--------------------------------------------------------------------------------------------------
-inline Any getRTValue( const RTConstValue & rVal )
-{
-    switch (rVal.m_type)
-    {
-    case RT_TYPE_BOOL:
-        return Any( &rVal.m_value.aBool, ::getCppuBooleanType() );
-    case RT_TYPE_BYTE:
-        return Any( &rVal.m_value.aByte, ::getCppuType( (const sal_Int8 *)0 ) );
-    case RT_TYPE_INT16:
-        return Any( &rVal.m_value.aShort, ::getCppuType( (const sal_Int16 *)0 ) );
-    case RT_TYPE_UINT16:
-        return Any( &rVal.m_value.aUShort, ::getCppuType( (const sal_uInt16 *)0 ) );
-    case RT_TYPE_INT32:
-        return Any( &rVal.m_value.aLong, ::getCppuType( (const sal_Int32 *)0 ) );
-    case RT_TYPE_UINT32:
-        return Any( &rVal.m_value.aULong, ::getCppuType( (const sal_uInt32 *)0 ) );
-    case RT_TYPE_INT64:
-        return Any( &rVal.m_value.aHyper, ::getCppuType( (const sal_Int64 *)0 ) );
-    case RT_TYPE_UINT64:
-        return Any( &rVal.m_value.aUHyper, ::getCppuType( (const sal_uInt64 *)0 ) );
-    case RT_TYPE_FLOAT:
-        return Any( &rVal.m_value.aFloat, ::getCppuType( (const float *)0 ) );
-    case RT_TYPE_DOUBLE:
-        return Any( &rVal.m_value.aDouble, ::getCppuType( (const double *)0 ) );
-    case RT_TYPE_STRING:
-    {
-        OUString aStr( rVal.m_value.aString );
-        return Any( &aStr, ::getCppuType( (const OUString *)0 ) );
-    }
-    default:
-        OSL_FAIL( "### unexpected RTValue!" );
-        return Any();
-    }
-}
-
-//==================================================================================================
-class TypeDescriptionImpl : public WeakImplHelper1< XTypeDescription >
-{
-    TypeClass           _eTypeClass;
-    OUString            _aName;
-
-public:
-    TypeDescriptionImpl( TypeClass eTypeClass, const OUString & rName )
-        : _eTypeClass( eTypeClass )
-        , _aName( rName )
-        {}
-    virtual ~TypeDescriptionImpl();
-
-    // XTypeDescription
-    virtual TypeClass SAL_CALL getTypeClass() throw(::com::sun::star::uno::RuntimeException);
-    virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
-};
-
-//==================================================================================================
-class InterfaceTypeDescriptionImpl:
-    public WeakImplHelper2< XInterfaceTypeDescription2, XPublished >
-{
-    com::sun::star::uno::Reference< XHierarchicalNameAccess >  _xTDMgr;
-    Sequence< sal_Int8 >                  _aBytes;
-
-    OUString                              _aName;
-
-    Sequence< OUString >                  _aBaseTypes;
-    Sequence< com::sun::star::uno::Reference< XTypeDescription > > _xBaseTDs;
-    Sequence< OUString >                  _aOptionalBaseTypes;
-    Sequence< com::sun::star::uno::Reference< XTypeDescription > >
-    _xOptionalBaseTDs;
-
-    sal_Int32                             _nBaseOffset;
-    Sequence<
-        com::sun::star::uno::Reference< XInterfaceMemberTypeDescription > >
-    _members;
-    bool _membersInit;
-
-    bool _published;
-
-    void checkInterfaceType(
-        com::sun::star::uno::Reference< XTypeDescription > const & type);
-
-public:
-    InterfaceTypeDescriptionImpl(
-        const com::sun::star::uno::Reference< XHierarchicalNameAccess > &
-        xTDMgr,
-        const OUString & rName, const Sequence< OUString > & rBaseTypes,
-        const Sequence< OUString > & rOptionalBaseTypes,
-        const Sequence< sal_Int8 > & rBytes, bool published );
-    virtual ~InterfaceTypeDescriptionImpl();
-
-    // XTypeDescription
-    virtual TypeClass SAL_CALL getTypeClass() throw(::com::sun::star::uno::RuntimeException);
-    virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
-
-    // XInterfaceTypeDescription2
-    virtual Uik SAL_CALL getUik() throw(::com::sun::star::uno::RuntimeException);
-    virtual com::sun::star::uno::Reference< XTypeDescription > SAL_CALL
-    getBaseType() throw(::com::sun::star::uno::RuntimeException);
-    virtual
-    Sequence<
-        com::sun::star::uno::Reference< XInterfaceMemberTypeDescription > >
-    SAL_CALL getMembers() throw(::com::sun::star::uno::RuntimeException);
-
-    virtual Sequence< com::sun::star::uno::Reference< XTypeDescription > >
-    SAL_CALL getBaseTypes() throw (RuntimeException);
-
-    virtual Sequence< com::sun::star::uno::Reference< XTypeDescription > >
-    SAL_CALL getOptionalBaseTypes() throw (RuntimeException);
-
-    virtual sal_Bool SAL_CALL isPublished()
-        throw (::com::sun::star::uno::RuntimeException)
-    { return _published; }
-};
-
-//==================================================================================================
-class CompoundTypeDescriptionImpl:
-    public WeakImplHelper2< XCompoundTypeDescription, XPublished >
-{
-    com::sun::star::uno::Reference< XHierarchicalNameAccess >  _xTDMgr;
-    TypeClass                             _eTypeClass;
-    Sequence< sal_Int8 >                  _aBytes;
-    OUString                              _aName;
-
-    OUString                              _aBaseType;
-    com::sun::star::uno::Reference< XTypeDescription >        _xBaseTD;
-
-    Sequence< com::sun::star::uno::Reference< XTypeDescription > > * _pMembers;
-    Sequence< OUString > *                _pMemberNames;
-
-    bool _published;
-
-public:
-    CompoundTypeDescriptionImpl(
-        const com::sun::star::uno::Reference< XHierarchicalNameAccess > &
-        xTDMgr,
-        TypeClass eTypeClass,
-        const OUString & rName, const OUString & rBaseName,
-        const Sequence< sal_Int8 > & rBytes,
-        bool published )
-        : _xTDMgr( xTDMgr )
-        , _eTypeClass( eTypeClass )
-        , _aBytes( rBytes )
-        , _aName( rName )
-        , _aBaseType( rBaseName )
-        , _pMembers( 0 )
-        , _pMemberNames( 0 )
-        , _published( published )
-        {}
-    virtual ~CompoundTypeDescriptionImpl();
-
-    // XTypeDescription
-    virtual TypeClass SAL_CALL getTypeClass() throw(::com::sun::star::uno::RuntimeException);
-    virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
-
-    // XCompoundTypeDescription
-    virtual com::sun::star::uno::Reference< XTypeDescription > SAL_CALL
-    getBaseType() throw(::com::sun::star::uno::RuntimeException);
-    virtual Sequence< com::sun::star::uno::Reference< XTypeDescription > >
-    SAL_CALL getMemberTypes() throw(::com::sun::star::uno::RuntimeException);
-    virtual Sequence< OUString > SAL_CALL getMemberNames() throw(::com::sun::star::uno::RuntimeException);
-
-    virtual sal_Bool SAL_CALL isPublished()
-        throw (::com::sun::star::uno::RuntimeException)
-    { return _published; }
-};
-
-//==================================================================================================
-class EnumTypeDescriptionImpl:
-    public WeakImplHelper2< XEnumTypeDescription, XPublished >
-{
-    com::sun::star::uno::Reference< XHierarchicalNameAccess >  _xTDMgr;
-    Sequence< sal_Int8 >                  _aBytes;
-
-    OUString                              _aName;
-    sal_Int32                             _nDefaultValue;
-
-    Sequence< OUString > *                _pEnumNames;
-    Sequence< sal_Int32 > *               _pEnumValues;
-
-    bool _published;
-
-public:
-    EnumTypeDescriptionImpl(
-        const com::sun::star::uno::Reference< XHierarchicalNameAccess > &
-        xTDMgr,
-        const OUString & rName, sal_Int32 nDefaultValue,
-        const Sequence< sal_Int8 > & rBytes, bool published )
-        : _xTDMgr( xTDMgr )
-        , _aBytes( rBytes )
-        , _aName( rName )
-        , _nDefaultValue( nDefaultValue )
-        , _pEnumNames( 0 )
-        , _pEnumValues( 0 )
-        , _published( published )
-        {}
-    virtual ~EnumTypeDescriptionImpl();
-
-    // XTypeDescription
-    virtual TypeClass SAL_CALL getTypeClass() throw(::com::sun::star::uno::RuntimeException);
-    virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
-
-    // XEnumTypeDescription
-    virtual sal_Int32 SAL_CALL getDefaultEnumValue() throw(::com::sun::star::uno::RuntimeException);
-    virtual Sequence< OUString > SAL_CALL getEnumNames() throw(::com::sun::star::uno::RuntimeException);
-    virtual Sequence< sal_Int32 > SAL_CALL getEnumValues() throw(::com::sun::star::uno::RuntimeException);
-
-    virtual sal_Bool SAL_CALL isPublished()
-        throw (::com::sun::star::uno::RuntimeException)
-    { return _published; }
-};
-
-//==================================================================================================
-class TypedefTypeDescriptionImpl:
-    public WeakImplHelper2< XIndirectTypeDescription, XPublished >
-{
-    com::sun::star::uno::Reference< XHierarchicalNameAccess > _xTDMgr;
-    OUString                              _aName;
-
-    OUString                              _aRefName;
-    com::sun::star::uno::Reference< XTypeDescription > _xRefTD;
-
-    bool _published;
-
-public:
-    TypedefTypeDescriptionImpl(
-        const com::sun::star::uno::Reference< XHierarchicalNameAccess > &
-        xTDMgr,
-        const OUString & rName, const OUString & rRefName, bool published )
-        : _xTDMgr( xTDMgr )
-        , _aName( rName )
-        , _aRefName( rRefName )
-        , _published( published )
-        {}
-    virtual ~TypedefTypeDescriptionImpl();
-
-    // XTypeDescription
-    virtual TypeClass SAL_CALL getTypeClass() throw(::com::sun::star::uno::RuntimeException);
-    virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
-
-    // XIndirectTypeDescription
-    virtual com::sun::star::uno::Reference< XTypeDescription > SAL_CALL
-    getReferencedType() throw(::com::sun::star::uno::RuntimeException);
-
-    virtual sal_Bool SAL_CALL isPublished()
-        throw (::com::sun::star::uno::RuntimeException)
-    { return _published; }
-};
-
-//==================================================================================================
-class ServiceTypeDescriptionImpl:
-    public WeakImplHelper2< XServiceTypeDescription2, XPublished >
-{
-    OUString                              _aName;
-    Sequence< sal_Int8 >                  _aBytes;
-    com::sun::star::uno::Reference< XHierarchicalNameAccess > _xTDMgr;
-    bool _bInitReferences;
-
-    com::sun::star::uno::Reference< XTypeDescription > _xInterfaceTD;
-    std::auto_ptr<
-        Sequence<
-            com::sun::star::uno::Reference< XServiceConstructorDescription > > >
-    _pCtors;
-    Sequence< com::sun::star::uno::Reference< XServiceTypeDescription > >
-    _aMandatoryServices;
-    Sequence< com::sun::star::uno::Reference< XServiceTypeDescription > >
-    _aOptionalServices;
-    Sequence< com::sun::star::uno::Reference< XInterfaceTypeDescription > >
-    _aMandatoryInterfaces;
-    Sequence< com::sun::star::uno::Reference< XInterfaceTypeDescription > >
-    _aOptionalInterfaces;
-    std::auto_ptr<
-        Sequence< com::sun::star::uno::Reference< XPropertyTypeDescription > > >
-    _pProps;
-
-    bool _published;
-
-public:
-    ServiceTypeDescriptionImpl(
-        const com::sun::star::uno::Reference< XHierarchicalNameAccess > &
-        xTDMgr,
-        const OUString & rName, const Sequence< sal_Int8 > & rBytes,
-        bool published)
-    : _aName( rName ), _aBytes( rBytes ), _xTDMgr( xTDMgr ),
-      _bInitReferences( false ), _published( published )
-    {}
-    virtual ~ServiceTypeDescriptionImpl();
-
-    // XTypeDescription
-    virtual TypeClass SAL_CALL
-    getTypeClass()
-        throw(::com::sun::star::uno::RuntimeException);
-    virtual OUString SAL_CALL
-    getName()
-        throw(::com::sun::star::uno::RuntimeException);
-
-    // XServiceTypeDescription
-    virtual ::com::sun::star::uno::Sequence<
-        ::com::sun::star::uno::Reference<
-            ::com::sun::star::reflection::XServiceTypeDescription > > SAL_CALL
-    getMandatoryServices()
-        throw (::com::sun::star::uno::RuntimeException);
-    virtual ::com::sun::star::uno::Sequence<
-        ::com::sun::star::uno::Reference<
-            ::com::sun::star::reflection::XServiceTypeDescription > > SAL_CALL
-    getOptionalServices()
-        throw (::com::sun::star::uno::RuntimeException);
-    virtual ::com::sun::star::uno::Sequence<
-        ::com::sun::star::uno::Reference<
-            ::com::sun::star::reflection::XInterfaceTypeDescription > > SAL_CALL
-    getMandatoryInterfaces()
-        throw (::com::sun::star::uno::RuntimeException);
-    virtual ::com::sun::star::uno::Sequence<
-        ::com::sun::star::uno::Reference<
-            ::com::sun::star::reflection::XInterfaceTypeDescription > > SAL_CALL
-    getOptionalInterfaces()
-        throw (::com::sun::star::uno::RuntimeException);
-    virtual ::com::sun::star::uno::Sequence<
-        ::com::sun::star::uno::Reference<
-            ::com::sun::star::reflection::XPropertyTypeDescription > > SAL_CALL
-    getProperties()
-        throw (::com::sun::star::uno::RuntimeException);
-
-    // XServiceTypeDescription2
-    virtual sal_Bool SAL_CALL isSingleInterfaceBased()
-        throw (::com::sun::star::uno::RuntimeException);
-    virtual ::com::sun::star::uno::Reference< XTypeDescription > SAL_CALL
-    getInterface() throw (::com::sun::star::uno::RuntimeException);
-    virtual ::com::sun::star::uno::Sequence<
-        ::com::sun::star::uno::Reference<
-            ::com::sun::star::reflection::XServiceConstructorDescription > >
-    SAL_CALL getConstructors()
-        throw (::com::sun::star::uno::RuntimeException);
-
-    virtual sal_Bool SAL_CALL isPublished()
-        throw (::com::sun::star::uno::RuntimeException)
-    { return _published; }
-
-private:
-    void getReferences()
-        throw (::com::sun::star::uno::RuntimeException);
-};
-
-//==================================================================================================
-class ModuleTypeDescriptionImpl : public WeakImplHelper1< XModuleTypeDescription >
-{
-    OUString                                        _aName;
-    com::sun::star::uno::Reference< XTypeDescriptionEnumerationAccess > _xTDMgr;
-
-    Sequence< com::sun::star::uno::Reference< XTypeDescription > > * _pMembers;
-
-public:
-    ModuleTypeDescriptionImpl(
-        const com::sun::star::uno::Reference<
-        XTypeDescriptionEnumerationAccess > & xTDMgr,
-        const OUString & rName )
-    : _aName( rName ), _xTDMgr( xTDMgr ), _pMembers( 0 )
-    {}
-    virtual ~ModuleTypeDescriptionImpl();
-
-    // XTypeDescription
-    virtual TypeClass SAL_CALL
-    getTypeClass()
-        throw( ::com::sun::star::uno::RuntimeException );
-    virtual OUString SAL_CALL
-    getName()
-        throw( ::com::sun::star::uno::RuntimeException );
-
-    // XModuleTypeDescription
-    virtual ::com::sun::star::uno::Sequence<
-        ::com::sun::star::uno::Reference<
-            ::com::sun::star::reflection::XTypeDescription > > SAL_CALL
-    getMembers()
-        throw ( ::com::sun::star::uno::RuntimeException );
-};
-
-//==================================================================================================
-class ConstantTypeDescriptionImpl : public WeakImplHelper1< XConstantTypeDescription >
-{
-    OUString _aName;
-    Any      _aValue;
-
-public:
-    ConstantTypeDescriptionImpl( const OUString & rName,
-                                 const Any & rValue )
-    : _aName( rName ), _aValue( rValue )
-    {}
-    virtual ~ConstantTypeDescriptionImpl();
-
-    // XTypeDescription
-    virtual TypeClass SAL_CALL
-    getTypeClass()
-        throw( ::com::sun::star::uno::RuntimeException );
-    virtual OUString SAL_CALL
-    getName()
-        throw( ::com::sun::star::uno::RuntimeException );
-
-    // XConstantTypeDescription
-    virtual ::com::sun::star::uno::Any SAL_CALL
-    getConstantValue()
-        throw ( ::com::sun::star::uno::RuntimeException );
-};
-
-//==================================================================================================
-class ConstantsTypeDescriptionImpl:
-    public WeakImplHelper2< XConstantsTypeDescription, XPublished >
-{
-    OUString             _aName;
-    Sequence< sal_Int8 > _aBytes;
-    Sequence< com::sun::star::uno::Reference< XConstantTypeDescription > > *
-    _pMembers;
-
-    bool _published;
-
-public:
-    ConstantsTypeDescriptionImpl( const OUString & rName,
-                                  const Sequence< sal_Int8 > & rBytes,
-                                  bool published )
-    : _aName( rName ), _aBytes( rBytes), _pMembers( 0 ), _published( published )
-    {}
-    virtual ~ConstantsTypeDescriptionImpl();
-
-    // XTypeDescription
-    virtual TypeClass SAL_CALL
-    getTypeClass()
-        throw( ::com::sun::star::uno::RuntimeException );
-    virtual OUString SAL_CALL
-    getName()
-        throw( ::com::sun::star::uno::RuntimeException );
-
-    // XConstantsTypeDescription
-    virtual
-    Sequence< com::sun::star::uno::Reference< XConstantTypeDescription > >
-    SAL_CALL getConstants() throw ( RuntimeException );
-
-    virtual sal_Bool SAL_CALL isPublished()
-        throw (::com::sun::star::uno::RuntimeException)
-    { return _published; }
-};
-
-//==================================================================================================
-class SingletonTypeDescriptionImpl:
-    public WeakImplHelper2< XSingletonTypeDescription2, XPublished >
-{
-    OUString _aName;
-    OUString _aBaseName;
-    com::sun::star::uno::Reference< XHierarchicalNameAccess > _xTDMgr;
-    com::sun::star::uno::Reference< XTypeDescription > _xInterfaceTD;
-    com::sun::star::uno::Reference< XServiceTypeDescription > _xServiceTD;
-
-    bool _published;
-
-    void init();
-
-public:
-    SingletonTypeDescriptionImpl(
-        const com::sun::star::uno::Reference< XHierarchicalNameAccess > &
-        xTDMgr,
-        const OUString & rName, const OUString & rBaseName, bool published )
-    : _aName( rName ), _aBaseName( rBaseName), _xTDMgr( xTDMgr ),
-      _published( published )
-    {}
-    virtual ~SingletonTypeDescriptionImpl();
-
-    // XTypeDescription
-    virtual TypeClass SAL_CALL
-    getTypeClass()
-        throw( ::com::sun::star::uno::RuntimeException );
-    virtual OUString SAL_CALL
-    getName()
-        throw( ::com::sun::star::uno::RuntimeException );
-
-    // XSingletonTypeDescription
-    virtual com::sun::star::uno::Reference< XServiceTypeDescription > SAL_CALL
-    getService() throw ( ::com::sun::star::uno::RuntimeException );
-
-    // XSingletonTypeDescription2
-    virtual sal_Bool SAL_CALL isInterfaceBased()
-        throw (::com::sun::star::uno::RuntimeException);
-    virtual com::sun::star::uno::Reference< XTypeDescription > SAL_CALL
-    getInterface() throw (::com::sun::star::uno::RuntimeException);
-
-    virtual sal_Bool SAL_CALL isPublished()
-        throw (::com::sun::star::uno::RuntimeException)
-    { return _published; }
-};
-
-}
-
-#endif /* _STOC_RDBTDP_BASE_HXX */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/registry_tdprovider/functiondescription.cxx b/stoc/source/registry_tdprovider/functiondescription.cxx
deleted file mode 100644
index bbdb3aa..0000000
--- a/stoc/source/registry_tdprovider/functiondescription.cxx
+++ /dev/null
@@ -1,103 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-#include "functiondescription.hxx"
-
-#include "com/sun/star/container/NoSuchElementException.hpp"
-#include "com/sun/star/container/XHierarchicalNameAccess.hpp"
-#include "com/sun/star/reflection/XCompoundTypeDescription.hpp"
-#include "com/sun/star/uno/Any.hxx"
-#include "com/sun/star/uno/Reference.hxx"
-#include "com/sun/star/uno/RuntimeException.hpp"
-#include "com/sun/star/uno/Sequence.hxx"
-#include "com/sun/star/uno/TypeClass.hpp"
-#include "com/sun/star/uno/XInterface.hpp"
-#include "cppuhelper/implbase1.hxx"
-#include "osl/diagnose.h"
-#include "osl/mutex.hxx"
-#include "registry/reader.hxx"
-#include "registry/version.h"
-#include "rtl/ustring.h"
-#include "rtl/ustring.hxx"
-#include "sal/types.h"
-
-using stoc::registry_tdprovider::FunctionDescription;
-
-FunctionDescription::FunctionDescription(
-    css::uno::Reference< css::container::XHierarchicalNameAccess > const &
-        manager,
-    com::sun::star::uno::Sequence< sal_Int8 > const & bytes,
-    sal_uInt16 index):
-    m_manager(manager), m_bytes(bytes), m_index(index), m_exceptionsInit(false)
-{}
-
-FunctionDescription::~FunctionDescription() {}
-
-css::uno::Sequence<
-    css::uno::Reference< css::reflection::XCompoundTypeDescription > >
-FunctionDescription::getExceptions() const {
-    {
-        osl::MutexGuard guard(m_mutex);
-        if (m_exceptionsInit) {
-            return m_exceptions;
-        }
-    }
-    typereg::Reader reader(getReader());
-    sal_uInt16 n = reader.getMethodExceptionCount(m_index);
-    css::uno::Sequence<
-        css::uno::Reference< css::reflection::XCompoundTypeDescription > >
-            exceptions(n);
-    for (sal_uInt16 i = 0; i < n; ++i) {
-        OUString name(
-            reader.getMethodExceptionTypeName(m_index, i).replace('/', '.'));
-        css::uno::Any any;
-        try {
-            any = m_manager->getByHierarchicalName(name);
-        } catch (const css::container::NoSuchElementException & e) {
-            throw css::uno::RuntimeException(
-                (OUString(
-                        "com.sun.star.container.NoSuchElementException: ")
-                 + e.Message),
-                css::uno::Reference< css::uno::XInterface >()); //TODO
-        }
-        if (!(any >>= exceptions[i])
-            || exceptions[i]->getTypeClass() != css::uno::TypeClass_EXCEPTION)
-        {
-            throw css::uno::RuntimeException(
-                (OUString("not an exception type: ")
-                 + name),
-                css::uno::Reference< css::uno::XInterface >()); //TODO
-        }
-        OSL_ASSERT(exceptions[i].is());
-    }
-    osl::MutexGuard guard(m_mutex);
-    if (!m_exceptionsInit) {
-        m_exceptions = exceptions;
-        m_exceptionsInit = true;
-    }
-    return m_exceptions;
-}
-
-typereg::Reader FunctionDescription::getReader() const {
-    return typereg::Reader(
-        m_bytes.getConstArray(), m_bytes.getLength(), false, TYPEREG_VERSION_1);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/registry_tdprovider/functiondescription.hxx b/stoc/source/registry_tdprovider/functiondescription.hxx
deleted file mode 100644
index 3d59136..0000000
--- a/stoc/source/registry_tdprovider/functiondescription.hxx
+++ /dev/null
@@ -1,80 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_stoc_source_registry_tdprovider_functiondescription_hxx
-#define INCLUDED_stoc_source_registry_tdprovider_functiondescription_hxx
-
-#include "com/sun/star/uno/Reference.hxx"
-#include "com/sun/star/uno/Sequence.hxx"
-#include "osl/mutex.hxx"
-#include "sal/types.h"
-
-namespace com { namespace sun { namespace star {
-    namespace container {
-        class XHierarchicalNameAccess;
-    }
-    namespace reflection {
-        class XCompoundTypeDescription;
-    }
-} } }
-namespace typereg { class Reader; }
-
-namespace stoc { namespace registry_tdprovider {
-
-class FunctionDescription {
-public:
-    FunctionDescription(
-        com::sun::star::uno::Reference<
-            com::sun::star::container::XHierarchicalNameAccess > const &
-            manager,
-        com::sun::star::uno::Sequence< sal_Int8 > const & bytes,
-        sal_uInt16 index);
-
-    ~FunctionDescription();
-
-    com::sun::star::uno::Sequence<
-        com::sun::star::uno::Reference<
-            com::sun::star::reflection::XCompoundTypeDescription > >
-    getExceptions() const;
-
-protected:
-    typereg::Reader getReader() const;
-
-    com::sun::star::uno::Reference<
-        com::sun::star::container::XHierarchicalNameAccess > m_manager;
-    com::sun::star::uno::Sequence< sal_Int8 > m_bytes;
-    sal_uInt16 m_index;
-
-    mutable osl::Mutex m_mutex;
-    mutable com::sun::star::uno::Sequence<
-        com::sun::star::uno::Reference<
-            com::sun::star::reflection::XCompoundTypeDescription > >
-                m_exceptions;
-    mutable bool m_exceptionsInit;
-
-private:
-    FunctionDescription(FunctionDescription &); // not implemented
-    void operator =(FunctionDescription); // not implemented
-};
-
-} }
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/registry_tdprovider/methoddescription.cxx b/stoc/source/registry_tdprovider/methoddescription.cxx
deleted file mode 100644
index 80e0cc5..0000000
--- a/stoc/source/registry_tdprovider/methoddescription.cxx
+++ /dev/null
@@ -1,133 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-#include "methoddescription.hxx"
-
-#include "com/sun/star/container/NoSuchElementException.hpp"
-#include "com/sun/star/container/XHierarchicalNameAccess.hpp"
-#include "com/sun/star/reflection/XParameter.hpp"
-#include "com/sun/star/reflection/XTypeDescription.hpp"
-#include "com/sun/star/uno/Reference.hxx"
-#include "com/sun/star/uno/RuntimeException.hpp"
-#include "com/sun/star/uno/Sequence.hxx"
-#include "cppuhelper/implbase1.hxx"
-#include "cppuhelper/weak.hxx"
-#include "osl/mutex.hxx"
-#include "registry/reader.hxx"
-#include "registry/types.h"
-#include "rtl/ustring.hxx"
-#include "sal/types.h"
-
-using stoc::registry_tdprovider::MethodDescription;
-
-namespace {
-
-class Parameter: public cppu::WeakImplHelper1< css::reflection::XParameter > {
-public:
-    Parameter(
-        css::uno::Reference< css::container::XHierarchicalNameAccess > const &
-            manager,
-        OUString const & name, OUString const & typeName,
-        RTParamMode mode, sal_Int32 position):
-        m_manager(manager), m_name(name),
-        m_typeName(typeName.replace('/', '.')), m_mode(mode),
-        m_position(position) {}
-
-    virtual ~Parameter() {}
-
-    virtual OUString SAL_CALL getName() throw (css::uno::RuntimeException)
-    { return m_name; }
-
-    virtual css::uno::Reference< css::reflection::XTypeDescription > SAL_CALL
-    getType() throw (css::uno::RuntimeException);
-
-    virtual sal_Bool SAL_CALL isIn() throw (css::uno::RuntimeException)
-    { return (m_mode & RT_PARAM_IN) != 0; }
-
-    virtual sal_Bool SAL_CALL isOut() throw (css::uno::RuntimeException)
-    { return (m_mode & RT_PARAM_OUT) != 0; }
-
-    virtual sal_Int32 SAL_CALL getPosition() throw (css::uno::RuntimeException)
-    { return m_position; }
-
-    virtual sal_Bool SAL_CALL isRestParameter()
-        throw (css::uno::RuntimeException)
-    { return (m_mode & RT_PARAM_REST) != 0; }
-
-private:
-    Parameter(Parameter &); // not implemented
-    void operator =(Parameter); // not implemented
-
-    css::uno::Reference< css::container::XHierarchicalNameAccess > m_manager;
-    OUString m_name;
-    OUString m_typeName;
-    RTParamMode m_mode;
-    sal_Int32 m_position;
-};
-
-css::uno::Reference< css::reflection::XTypeDescription > Parameter::getType()
-    throw (css::uno::RuntimeException)
-{
-    try {
-        return css::uno::Reference< css::reflection::XTypeDescription >(
-            m_manager->getByHierarchicalName(m_typeName),
-            css::uno::UNO_QUERY_THROW);
-    } catch (const css::container::NoSuchElementException & e) {
-        throw css::uno::RuntimeException(
-            (OUString(
-                    "com.sun.star.container.NoSuchElementException: ")
-             + e.Message),
-            static_cast< cppu::OWeakObject * >(this));
-    }
-}
-
-}
-
-MethodDescription::MethodDescription(
-    css::uno::Reference< css::container::XHierarchicalNameAccess > const &
-        manager,
-    OUString const & name,
-    com::sun::star::uno::Sequence< sal_Int8 > const & bytes,
-    sal_uInt16 index):
-    FunctionDescription(manager, bytes, index), m_name(name),
-    m_parametersInit(false)
-{}
-
-MethodDescription::~MethodDescription() {}
-
-css::uno::Sequence< css::uno::Reference< css::reflection::XParameter > >
-MethodDescription::getParameters() const {
-    osl::MutexGuard guard(m_mutex);
-    if (!m_parametersInit) {
-        typereg::Reader reader(getReader());
-        sal_uInt16 n = reader.getMethodParameterCount(m_index);
-        m_parameters.realloc(n);
-        for (sal_uInt16 i = 0; i < n; ++i) {
-            m_parameters[i] = new Parameter(
-                m_manager, reader.getMethodParameterName(m_index, i),
-                reader.getMethodParameterTypeName(m_index, i),
-                reader.getMethodParameterFlags(m_index, i), i);
-        }
-        m_parametersInit = true;
-    }
-    return m_parameters;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/registry_tdprovider/methoddescription.hxx b/stoc/source/registry_tdprovider/methoddescription.hxx
deleted file mode 100644
index 12d2512..0000000
--- a/stoc/source/registry_tdprovider/methoddescription.hxx
+++ /dev/null
@@ -1,76 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_stoc_source_registry_tdprovider_methoddescription_hxx
-#define INCLUDED_stoc_source_registry_tdprovider_methoddescription_hxx
-
-#include "functiondescription.hxx"
-
-#include "com/sun/star/uno/Reference.hxx"
-#include "com/sun/star/uno/Sequence.hxx"
-#include "rtl/ustring.hxx"
-#include "sal/types.h"
-
-namespace com { namespace sun { namespace star {
-    namespace container {
-        class XHierarchicalNameAccess;
-    }
-    namespace reflection {
-        class XParameter;
-    }
-} } }
-namespace typereg { class Reader; }
-
-namespace stoc { namespace registry_tdprovider {
-
-class MethodDescription: public FunctionDescription {
-public:
-    MethodDescription(
-        com::sun::star::uno::Reference<
-            com::sun::star::container::XHierarchicalNameAccess > const &
-            manager,
-        OUString const & name,
-        com::sun::star::uno::Sequence< sal_Int8 > const & bytes,
-        sal_uInt16 index);
-
-    ~MethodDescription();
-
-    OUString getName() const { return m_name; }
-
-    com::sun::star::uno::Sequence<
-        com::sun::star::uno::Reference<
-            com::sun::star::reflection::XParameter > >
-    getParameters() const;
-
-private:
-    MethodDescription(MethodDescription &); // not implemented
-    void operator =(MethodDescription); // not implemented
-
-    OUString m_name;
-    mutable com::sun::star::uno::Sequence<
-        com::sun::star::uno::Reference<
-            com::sun::star::reflection::XParameter > > m_parameters;
-    mutable bool m_parametersInit;
-};
-
-} }
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx b/stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx
deleted file mode 100644
index 8b68aee..0000000
--- a/stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx
+++ /dev/null
@@ -1,615 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-//=========================================================================
-// Todo:
-//
-// - closeKey() calls (according to JSC not really needed because XRegistry
-//   implementation closes key in it's dtor.
-//
-//=========================================================================
-#include <osl/diagnose.h>
-#include <rtl/ustrbuf.hxx>
-#include "com/sun/star/reflection/XPublished.hpp"
-#include "cppuhelper/implbase1.hxx"
-#include "registry/reader.hxx"
-#include "registry/version.h"
-#include "base.hxx"
-#include "rdbtdp_tdenumeration.hxx"
-
-using namespace com::sun::star;
-
-namespace {
-
-class IndividualConstantTypeDescriptionImpl:
-    public cppu::ImplInheritanceHelper1<
-        stoc_rdbtdp::ConstantTypeDescriptionImpl,
-        com::sun::star::reflection::XPublished >
-{
-public:
-    IndividualConstantTypeDescriptionImpl(
-        OUString const & name, com::sun::star::uno::Any const & value,
-        bool published):
-        cppu::ImplInheritanceHelper1<
-            stoc_rdbtdp::ConstantTypeDescriptionImpl,
-            com::sun::star::reflection::XPublished >(name, value),
-        m_published(published) {}
-
-    virtual sal_Bool SAL_CALL isPublished()
-        throw (::com::sun::star::uno::RuntimeException)
-    { return m_published; }
-
-private:
-    bool m_published;
-};
-
-}
-
-namespace stoc_rdbtdp
-{
-
-//=========================================================================
-//=========================================================================
-//
-// TypeDescriptionEnumerationImpl Implementation.
-//
-//=========================================================================
-//=========================================================================
-
-// static
-rtl::Reference< TypeDescriptionEnumerationImpl >
-TypeDescriptionEnumerationImpl::createInstance(
-        const uno::Reference< container::XHierarchicalNameAccess > & xTDMgr,
-        const OUString & rModuleName,
-        const uno::Sequence< uno::TypeClass > & rTypes,
-        reflection::TypeDescriptionSearchDepth eDepth,
-        const RegistryKeyList & rBaseKeys )
-    throw ( reflection::NoSuchTypeNameException,
-            reflection::InvalidTypeNameException,
-            uno::RuntimeException )
-{
-    if ( rModuleName.isEmpty() )
-    {
-        // Enumeration for root requested.
-        return rtl::Reference< TypeDescriptionEnumerationImpl >(
-            new TypeDescriptionEnumerationImpl(
-                xTDMgr, rBaseKeys, rTypes, eDepth ) );
-    }
-
-    RegistryKeyList aModuleKeys;
-
-    OUString aKey( rModuleName.replace( '.', '/' ) );
-
-    bool bOpenKeySucceeded = false;
-
-    const RegistryKeyList::const_iterator end = rBaseKeys.end();
-    RegistryKeyList::const_iterator it = rBaseKeys.begin();
-
-    while ( it != end )
-    {
-        uno::Reference< registry::XRegistryKey > xKey;
-        try
-        {
-            xKey = (*it)->openKey( aKey );
-            if ( xKey.is() )
-            {
-                // closes key in it's dtor (which is
-                // called even in case of exceptions).
-                RegistryKeyCloser aCloser( xKey );
-
-                if ( xKey->isValid() )
-                {
-                    bOpenKeySucceeded = true;
-
-                    if ( xKey->getValueType()
-                         == registry::RegistryValueType_BINARY )
-                    {
-                        uno::Sequence< sal_Int8 > aBytes(
-                            xKey->getBinaryValue() );
-
-                        typereg::Reader aReader(
-                            aBytes.getConstArray(), aBytes.getLength(), false,
-                            TYPEREG_VERSION_1);
-
-                        if ( aReader.getTypeClass() == RT_TYPE_MODULE )
-                        {
-                            // Do not close xKey!
-                            aCloser.reset();
-
-                            aModuleKeys.push_back( xKey );
-                        }
-                    }
-                }
-                else
-                {
-                    OSL_FAIL(
-                        "TypeDescriptionEnumerationImpl::createInstance "
-                        "- Invalid registry key!" );
-                }
-            }
-        }
-        catch ( registry::InvalidRegistryException const & )
-        {
-            // openKey, getValueType, getBinaryValue
-
-            OSL_FAIL( "TypeDescriptionEnumerationImpl::createInstance "
-                        "- Caught InvalidRegistryException!" );
-        }
-
-        ++it;
-    }
-
-    if ( !bOpenKeySucceeded )
-        throw reflection::NoSuchTypeNameException();
-
-    if ( aModuleKeys.empty() )
-        throw reflection::InvalidTypeNameException();
-
-    return rtl::Reference< TypeDescriptionEnumerationImpl >(
-        new TypeDescriptionEnumerationImpl(
-                xTDMgr, aModuleKeys, rTypes, eDepth ) );
-}
-
-//=========================================================================
-TypeDescriptionEnumerationImpl::TypeDescriptionEnumerationImpl(
-    const uno::Reference< container::XHierarchicalNameAccess > & xTDMgr,
-    const RegistryKeyList & rModuleKeys,
-    const uno::Sequence< uno::TypeClass > & rTypes,
-    reflection::TypeDescriptionSearchDepth eDepth )
-: m_aModuleKeys( rModuleKeys ),
-  m_aTypes( rTypes ),
-  m_eDepth( eDepth ),
-  m_xTDMgr( xTDMgr )
-{}
-
-//=========================================================================
-// virtual
-TypeDescriptionEnumerationImpl::~TypeDescriptionEnumerationImpl()
-{
-    RegistryKeyList::const_iterator it = m_aModuleKeys.begin();
-    RegistryKeyList::const_iterator end = m_aModuleKeys.end();
-/*
-   @@@ in case we enumerate root and queryMore was never called, then
-       m_aModuleKeys contains open root keys which where passed from
-       tdprov and must not be closed by us.
-
-    while ( it != end )
-    {
-        try
-        {
-            if ( (*it)->isValid() )
-                (*it)->closeKey();
-        }
-        catch (...)
-        {
-            // No exceptions from dtors, please!
-            OSL_FAIL( "TypeDescriptionEnumerationImpl::~TypeDescriptionEnumerationImpl "
-            "- Caught exception!" );
-        }
-
-        it++;
-    }
-*/
-    it = m_aCurrentModuleSubKeys.begin();
-    end = m_aCurrentModuleSubKeys.end();
-    while ( it != end )
-    {
-        try
-        {
-            if ( (*it)->isValid() )
-                (*it)->closeKey();
-        }
-        catch (Exception &)
-        {
-            // No exceptions from dtors, please!
-            OSL_FAIL( "TypeDescriptionEnumerationImpl::~TypeDescriptionEnumerationImpl "
-            "- Caught exception!" );
-        }
-
-        ++it;
-    }
-}
-
-//=========================================================================
-//
-// XEnumeration (base of XTypeDescriptionEnumeration) methods
-//
-//=========================================================================
-
-// virtual
-sal_Bool SAL_CALL TypeDescriptionEnumerationImpl::hasMoreElements()
-    throw ( uno::RuntimeException )
-{
-    return queryMore();
-}
-
-//=========================================================================
-// virtual
-uno::Any SAL_CALL TypeDescriptionEnumerationImpl::nextElement()
-    throw ( container::NoSuchElementException,
-            lang::WrappedTargetException,
-            uno::RuntimeException )
-{
-    return uno::Any( uno::makeAny( nextTypeDescription() ) );
-}
-
-//=========================================================================
-//
-// XTypeDescriptionEnumeration methods
-//
-//=========================================================================
-
-// virtual
-uno::Reference< reflection::XTypeDescription > SAL_CALL
-TypeDescriptionEnumerationImpl::nextTypeDescription()
-    throw ( container::NoSuchElementException,
-            uno::RuntimeException )
-{
-    uno::Reference< reflection::XTypeDescription > xTD( queryNext() );
-
-    if ( xTD.is() )
-        return xTD;
-
-    throw container::NoSuchElementException(
-        OUString("No further elements in enumeration!"),
-        static_cast< cppu::OWeakObject * >( this  ) );
-}
-
-//=========================================================================
-bool TypeDescriptionEnumerationImpl::match(
-    RTTypeClass eType1, uno::TypeClass eType2 )
-{
-    switch ( eType1 )
-    {
-    case RT_TYPE_INTERFACE:
-        return eType2 == uno::TypeClass_INTERFACE;
-
-    case RT_TYPE_MODULE:
-        return eType2 == uno::TypeClass_MODULE;
-
-    case RT_TYPE_STRUCT:
-        return eType2 == uno::TypeClass_STRUCT;
-
-    case RT_TYPE_ENUM:
-        return eType2 == uno::TypeClass_ENUM;
-
-    case RT_TYPE_EXCEPTION:
-        return eType2 == uno::TypeClass_EXCEPTION;
-
-    case RT_TYPE_TYPEDEF:
-        return eType2 == uno::TypeClass_TYPEDEF;
-
-    case RT_TYPE_SERVICE:
-        return eType2 == uno::TypeClass_SERVICE;
-
-    case RT_TYPE_SINGLETON:
-        return eType2 == uno::TypeClass_SINGLETON;
-
-    case RT_TYPE_CONSTANTS:
-        return eType2 == uno::TypeClass_CONSTANTS;
-
-    case RT_TYPE_UNION:
-        return eType2 == uno::TypeClass_UNION;
-
-    default:
-        return false;
-    }
-}
-
-//=========================================================================
-bool TypeDescriptionEnumerationImpl::queryMore()
-{
-    osl::MutexGuard aGuard( m_aMutex );
-
-    for (;;)
-    {
-        if ( !m_aCurrentModuleSubKeys.empty() || !m_aTypeDescs.empty() )
-        {
-            // Okay, there is at least one more element.
-            return true;
-        }
-
-        if ( m_aModuleKeys.empty() )
-        {
-            // No module keys (therefore no elements) left.
-            return false;
-        }
-
-        // Note: m_aCurrentModuleSubKeys is always empty AND m_aModuleKeys is
-        //       never empty when ariving here.
-        //       ==> select new module key, fill m_aCurrentModuleSubKeys
-
-        uno::Sequence< uno::Reference< registry::XRegistryKey > > aKeys;
-        try
-        {
-            aKeys = m_aModuleKeys.front()->openKeys();
-            for ( sal_Int32 n = 0; n < aKeys.getLength(); ++n )
-            {
-                uno::Reference< registry::XRegistryKey > xKey = aKeys[ n ];
-
-                // closes key in it's dtor (which is
-                // called even in case of exceptions).
-                RegistryKeyCloser aCloser( xKey );
-
-                try
-                {
-                    if ( xKey->isValid() )
-                    {
-                        if ( xKey->getValueType()
-                                == registry::RegistryValueType_BINARY )
-                        {
-                            bool bIncludeIt = (m_aTypes.getLength() == 0);
-                            bool bNeedTypeClass =
-                                ((m_aTypes.getLength() > 0) ||
-                                 (m_eDepth
-                                    == reflection::TypeDescriptionSearchDepth_INFINITE));
-                            if ( bNeedTypeClass )
-                            {
-                                uno::Sequence< sal_Int8 > aBytes(
-                                    xKey->getBinaryValue() );
-
-                                typereg::Reader aReader(
-                                    aBytes.getConstArray(), aBytes.getLength(),
-                                    false, TYPEREG_VERSION_1);
-
-                                RTTypeClass eTypeClass = aReader.getTypeClass();
-
-                                // Does key match requested types? Empty
-                                // sequence means include all.
-                                if ( m_aTypes.getLength() > 0 )
-                                {
-                                    for ( sal_Int32 m = 0;
-                                          m < m_aTypes.getLength();
-                                          ++m )
-                                    {
-                                        if ( match(eTypeClass, m_aTypes[ m ]) )
-                                        {
-                                            bIncludeIt = true;
-                                            break;
-                                        }
-                                    }
-                                }
-
-                                if ( m_eDepth ==
-                                        reflection::TypeDescriptionSearchDepth_INFINITE )
-                                {
-                                    if ( eTypeClass == RT_TYPE_MODULE )
-                                    {
-                                        // Do not close xKey!
-                                        aCloser.reset();
-
-                                        // Remember new module key.
-                                        m_aModuleKeys.push_back( xKey );
-                                    }
-                                }
-                            }
-
-                            if ( bIncludeIt )
-                            {
-                                // Do not close xKey!
-                                aCloser.reset();
-
-                                m_aCurrentModuleSubKeys.push_back( xKey );
-                            }
-                        }
-                    }
-                    else
-                    {
-                        OSL_FAIL( "TypeDescriptionEnumerationImpl::queryMore "
-                            "- Invalid registry key!" );
-                    }
-
-                }
-                catch ( registry::InvalidRegistryException const & )
-                {
-                    // getValueType, getBinaryValue
-
-                    OSL_FAIL( "TypeDescriptionEnumerationImpl::queryMore "
-                                "- Caught InvalidRegistryException!" );
-
-                    // Don't stop iterating!
-                }
-            }
-        }
-        catch ( registry::InvalidRegistryException const & )
-        {
-            // openKeys
-
-            for ( sal_Int32 n = 0; n < aKeys.getLength(); ++n )
-            {
-                try
-                {
-                    aKeys[ n ]->closeKey();
-                }
-                catch ( registry::InvalidRegistryException const & )
-                {
-                    OSL_FAIL( "TypeDescriptionEnumerationImpl::queryMore "
-                                "- Caught InvalidRegistryException!" );
-                }
-            }
-        }
-
-        /////////////////////////////////////////////////////////////////////
-        // Special handling for constants contained directly in module.
-        /////////////////////////////////////////////////////////////////////
-
-        // Constants requested?
-        bool bIncludeConstants = ( m_aTypes.getLength() == 0 );
-        if ( !bIncludeConstants )
-        {
-            for ( sal_Int32 m = 0; m < m_aTypes.getLength(); ++m )
-            {
-                if ( m_aTypes[ m ] == uno::TypeClass_CONSTANT )
-                {
-                    bIncludeConstants = true;
-                    break;
-                }
-            }
-
-        }
-
-        if ( bIncludeConstants )
-        {
-            if ( m_aModuleKeys.front()->getValueType()
-                    == registry::RegistryValueType_BINARY )
-            {
-                try
-                {
-                    uno::Sequence< sal_Int8 > aBytes(
-                        m_aModuleKeys.front()->getBinaryValue() );
-
-                    typereg::Reader aReader(
-                        aBytes.getConstArray(), aBytes.getLength(), false,
-                        TYPEREG_VERSION_1);
-
-                    if ( aReader.getTypeClass() == RT_TYPE_MODULE )
-                    {
-                        sal_uInt16 nFields = aReader.getFieldCount();
-                        while ( nFields-- )
-                        {
-                            OUStringBuffer aName(
-                                aReader.getTypeName().replace( '/', '.' ) );
-                            aName.appendAscii( "." );
-                            aName.append( aReader.getFieldName( nFields ) );
-
-                            uno::Any aValue(
-                                getRTValue(
-                                    aReader.getFieldValue( nFields ) ) );
-
-                            m_aTypeDescs.push_back(
-                                new IndividualConstantTypeDescriptionImpl(
-                                    aName.makeStringAndClear(), aValue,
-                                    ( ( aReader.getFieldFlags( nFields )
-                                        & RT_ACCESS_PUBLISHED )
-                                      != 0 ) ) );
-                        }
-                    }
-                }
-                catch ( registry::InvalidRegistryException const & )
-                {
-                    // getBinaryValue
-
-                    OSL_FAIL( "TypeDescriptionEnumerationImpl::queryMore "
-                                "- Caught InvalidRegistryException!" );
-                }
-            }
-        }
-
-        /////////////////////////////////////////////////////////////////////
-
-/*
-   @@@ m_aModuleKeys.front() may have open sub keys (may be contained in
-       both m_aModuleKeys and m_aCurrentModuleSubKeys)!
-
-        try
-        {
-           m_aModuleKeys.front()->closeKey();
-        }
-        catch ( registry::InvalidRegistryException const & )
-        {
-            OSL_FAIL( "TypeDescriptionEnumerationImpl::queryMore "
-                        "- Caught InvalidRegistryException!" );
-        }
-*/
-        // We're done with this module key, even if there were errors.
-        m_aModuleKeys.pop_front();
-    }
-
-    // unreachable
-}
-
-//=========================================================================
-uno::Reference< reflection::XTypeDescription >
-TypeDescriptionEnumerationImpl::queryNext()
-{
-    osl::MutexGuard aGuard( m_aMutex );
-
-    for (;;)
-    {
-        if ( !queryMore() )
-            return uno::Reference< reflection::XTypeDescription >();
-
-        uno::Reference< reflection::XTypeDescription > xTD;
-
-        if ( !m_aTypeDescs.empty() )
-        {
-            xTD = m_aTypeDescs.front();
-            m_aTypeDescs.pop_front();
-            return xTD;
-        }
-
-        // Note: xKey is already opened.
-        uno::Reference< registry::XRegistryKey >
-            xKey( m_aCurrentModuleSubKeys.front() );
-/*
-   @@@ xKey may still be contained in m_aModuleKeys, too
-
-        // closes key in it's dtor (which is
-        // called even in case of exceptions).
-        RegistryKeyCloser aCloser( xKey );
-*/
-        try
-        {
-            {
-                if ( xKey->isValid() )
-                {
-                    if ( xKey->getValueType()
-                            == registry::RegistryValueType_BINARY )
-                    {
-                        uno::Sequence< sal_Int8 > aBytes(
-                            xKey->getBinaryValue() );
-
-                        xTD = createTypeDescription( aBytes,
-                                                     m_xTDMgr,
-                                                     false );
-                        OSL_ENSURE( xTD.is(),
-                            "TypeDescriptionEnumerationImpl::queryNext "
-                            "- No XTypeDescription created!" );
-                    }
-                }
-                else
-                {
-                    OSL_FAIL( "TypeDescriptionEnumerationImpl::queryNext "
-                        "- Invalid registry key!" );
-                }
-            }
-        }
-        catch ( registry::InvalidRegistryException const & )
-        {
-            // getValueType, getBinaryValue
-
-            OSL_FAIL( "TypeDescriptionEnumerationImpl::queryNext "
-                        "- Caught InvalidRegistryException!" );
-        }
-
-        // We're done with this key, even if there were errors.
-        m_aCurrentModuleSubKeys.pop_front();
-
-        if ( xTD.is() )
-            return xTD;
-
-        // next try...
-
-    } // for (;;)
-}
-
-} // namespace stoc_rdbtdp
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/registry_tdprovider/rdbtdp_tdenumeration.hxx b/stoc/source/registry_tdprovider/rdbtdp_tdenumeration.hxx
deleted file mode 100644
index 863d314..0000000
--- a/stoc/source/registry_tdprovider/rdbtdp_tdenumeration.hxx
+++ /dev/null
@@ -1,109 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _STOC_RDBTDP_TDENUMERATION_HXX
-#define _STOC_RDBTDP_TDENUMERATION_HXX
-
-#include <list>
-#include <osl/mutex.hxx>
-#include <rtl/ref.hxx>
-#include <registry/refltype.hxx>
-#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
-#include <com/sun/star/reflection/InvalidTypeNameException.hpp>
-#include <com/sun/star/reflection/NoSuchTypeNameException.hpp>
-#include <com/sun/star/reflection/TypeDescriptionSearchDepth.hpp>
-#include <com/sun/star/reflection/XTypeDescriptionEnumeration.hpp>
-#include <com/sun/star/uno/Sequence.hxx>
-#include <com/sun/star/uno/TypeClass.hpp>
-#include <cppuhelper/implbase1.hxx>
-#include "base.hxx"
-
-namespace stoc_rdbtdp
-{
-
-typedef ::std::list< ::com::sun::star::uno::Reference<
-    ::com::sun::star::reflection::XTypeDescription > > TypeDescriptionList;
-
-class TypeDescriptionEnumerationImpl
-    : public cppu::WeakImplHelper1<
-                com::sun::star::reflection::XTypeDescriptionEnumeration >
-{
-public:
-    static rtl::Reference< TypeDescriptionEnumerationImpl > createInstance(
-        const ::com::sun::star::uno::Reference<
-            ::com::sun::star::container::XHierarchicalNameAccess > & xTDMgr,
-        const OUString & rModuleName,
-        const ::com::sun::star::uno::Sequence<
-            ::com::sun::star::uno::TypeClass > & rTypes,
-        ::com::sun::star::reflection::TypeDescriptionSearchDepth eDepth,
-        const RegistryKeyList & rBaseKeys )
-            throw ( ::com::sun::star::reflection::NoSuchTypeNameException,
-                    ::com::sun::star::reflection::InvalidTypeNameException,
-                    ::com::sun::star::uno::RuntimeException );
-
-    virtual ~TypeDescriptionEnumerationImpl();
-
-    // XEnumeration (base of XTypeDescriptionEnumeration)
-    virtual sal_Bool SAL_CALL hasMoreElements()
-        throw ( ::com::sun::star::uno::RuntimeException );
-    virtual ::com::sun::star::uno::Any SAL_CALL nextElement()
-        throw ( ::com::sun::star::container::NoSuchElementException,
-                ::com::sun::star::lang::WrappedTargetException,
-                ::com::sun::star::uno::RuntimeException );
-
-    // XTypeDescriptionEnumeration
-    virtual ::com::sun::star::uno::Reference<
-        ::com::sun::star::reflection::XTypeDescription > SAL_CALL
-    nextTypeDescription()
-        throw ( ::com::sun::star::container::NoSuchElementException,
-                ::com::sun::star::uno::RuntimeException );
-
-private:
-    // Note: keys must be open (XRegistryKey->openKey(...)).
-    TypeDescriptionEnumerationImpl(
-        const ::com::sun::star::uno::Reference<
-            ::com::sun::star::container::XHierarchicalNameAccess > & xTDMgr,
-        const RegistryKeyList & rModuleKeys,
-        const ::com::sun::star::uno::Sequence<
-            ::com::sun::star::uno::TypeClass > & rTypes,
-        ::com::sun::star::reflection::TypeDescriptionSearchDepth eDepth );
-
-    static bool match( ::RTTypeClass eType1,
-                       ::com::sun::star::uno::TypeClass eType2 );
-    bool queryMore();
-    ::com::sun::star::uno::Reference<
-        ::com::sun::star::reflection::XTypeDescription > queryNext();
-
-    // members
-    osl::Mutex m_aMutex;
-    RegistryKeyList     m_aModuleKeys;
-    RegistryKeyList     m_aCurrentModuleSubKeys;
-    TypeDescriptionList m_aTypeDescs;
-    ::com::sun::star::uno::Sequence<
-        ::com::sun::star::uno::TypeClass > m_aTypes;
-    ::com::sun::star::reflection::TypeDescriptionSearchDepth m_eDepth;
-    ::com::sun::star::uno::Reference<
-        ::com::sun::star::container::XHierarchicalNameAccess > m_xTDMgr;
-};
-
-} // namespace stoc_rdbtdp
-
-#endif /* _STOC_RDBTDP_TDENUMERATION_HXX */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/registry_tdprovider/structtypedescription.cxx b/stoc/source/registry_tdprovider/structtypedescription.cxx
deleted file mode 100644
index b85b5f4..0000000
--- a/stoc/source/registry_tdprovider/structtypedescription.cxx
+++ /dev/null
@@ -1,129 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-#include "structtypedescription.hxx"
-
-#include "base.hxx"
-
-#include "com/sun/star/reflection/XTypeDescription.hpp"
-#include "com/sun/star/uno/Reference.hxx"
-#include "com/sun/star/uno/RuntimeException.hpp"
-#include "com/sun/star/uno/Sequence.hxx"
-#include "com/sun/star/uno/TypeClass.hpp"
-#include "cppuhelper/weak.hxx"
-#include "osl/diagnose.h"
-#include "registry/reader.hxx"
-#include "registry/types.h"
-#include "registry/version.h"
-#include "rtl/ustring.h"
-#include "rtl/ustring.hxx"
-
-#include <new>
-
-using stoc::registry_tdprovider::StructTypeDescription;
-
-StructTypeDescription::StructTypeDescription(
-    css::uno::Reference< css::container::XHierarchicalNameAccess > const &
-        manager,
-    OUString const & name, OUString const & baseTypeName,
-    css::uno::Sequence< sal_Int8 > const & data, bool published):
-    m_data(data),
-    m_base(
-        new stoc_rdbtdp::CompoundTypeDescriptionImpl(
-            manager, css::uno::TypeClass_STRUCT, name, baseTypeName, data,
-            published))
-{}
-
-StructTypeDescription::~StructTypeDescription()
-{}
-
-css::uno::TypeClass StructTypeDescription::getTypeClass()
-    throw (css::uno::RuntimeException)
-{
-    return m_base->getTypeClass();
-}
-
-OUString StructTypeDescription::getName()
-    throw (css::uno::RuntimeException)
-{
-    return m_base->getName();
-}
-
-css::uno::Reference< css::reflection::XTypeDescription >
-StructTypeDescription::getBaseType() throw (css::uno::RuntimeException)
-{
-    return m_base->getBaseType();
-}
-
-css::uno::Sequence< css::uno::Reference< css::reflection::XTypeDescription > >
-StructTypeDescription::getMemberTypes() throw (css::uno::RuntimeException)
-{
-    return m_base->getMemberTypes();
-}
-
-css::uno::Sequence< OUString > StructTypeDescription::getMemberNames()
-    throw (css::uno::RuntimeException)
-{
-    return m_base->getMemberNames();
-}
-
-css::uno::Sequence< OUString > StructTypeDescription::getTypeParameters()
-    throw (css::uno::RuntimeException)
-{
-    try {
-        typereg::Reader reader(
-            m_data.getConstArray(), m_data.getLength(), false,
-            TYPEREG_VERSION_1);
-        OSL_ASSERT(reader.isValid());
-        sal_uInt16 n = reader.getReferenceCount();
-        css::uno::Sequence< OUString > parameters(n);
-        for (sal_uInt16 i = 0; i < n; ++i) {
-            if (reader.getReferenceFlags(i) != RT_ACCESS_INVALID
-                || reader.getReferenceSort(i) != RT_REF_TYPE_PARAMETER)
-            {
-                throw css::uno::RuntimeException(
-                    OUString(
-                            "type parameter of polymorphic struct type template"
-                            " not RT_ACCESS_INVALID/RT_REF_TYPE_PARAMETER"),
-                    static_cast< cppu::OWeakObject * >(this));
-            }
-            parameters[i] = reader.getReferenceTypeName(i);
-        }
-        return parameters;
-    } catch (std::bad_alloc &) {
-        throw css::uno::RuntimeException(
-            OUString("std::bad_alloc"),
-            static_cast< cppu::OWeakObject * >(this));
-    }
-}
-
-css::uno::Sequence< css::uno::Reference< css::reflection::XTypeDescription > >
-StructTypeDescription::getTypeArguments() throw (css::uno::RuntimeException)
-{
-    return css::uno::Sequence<
-        css::uno::Reference< css::reflection::XTypeDescription > >();
-}
-
-sal_Bool StructTypeDescription::isPublished() throw (css::uno::RuntimeException)
-{
-    return m_base->isPublished();
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/registry_tdprovider/structtypedescription.hxx b/stoc/source/registry_tdprovider/structtypedescription.hxx
deleted file mode 100644
index ae8ecba..0000000
--- a/stoc/source/registry_tdprovider/structtypedescription.hxx
+++ /dev/null
@@ -1,98 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_stoc_source_registry_tdprovider_structtypedescription_hxx
-#define INCLUDED_stoc_source_registry_tdprovider_structtypedescription_hxx
-
-#include "com/sun/star/reflection/XPublished.hpp"
-#include "com/sun/star/reflection/XStructTypeDescription.hpp"
-#include "com/sun/star/uno/Reference.hxx"
-#include "com/sun/star/uno/Sequence.hxx"
-#include "cppuhelper/implbase2.hxx"
-#include "rtl/ref.hxx"
-#include "sal/types.h"
-
-namespace com { namespace sun { namespace star {
-    namespace container { class XHierarchicalNameAccess; }
-    namespace reflection { class XCompoundTypeDescription; }
-} } }
-namespace stoc_rdbtdp { class CompoundTypeDescriptionImpl; }
-
-namespace stoc { namespace registry_tdprovider {
-
-class StructTypeDescription:
-    public cppu::WeakImplHelper2<
-        com::sun::star::reflection::XStructTypeDescription,
-        com::sun::star::reflection::XPublished >
-{
-public:
-    StructTypeDescription(
-        com::sun::star::uno::Reference<
-            com::sun::star::container::XHierarchicalNameAccess > const &
-            manager,
-        OUString const & name, OUString const & baseTypeName,
-        com::sun::star::uno::Sequence< sal_Int8 > const & data, bool published);
-
-    virtual ~StructTypeDescription();
-
-    virtual com::sun::star::uno::TypeClass SAL_CALL getTypeClass()
-        throw (com::sun::star::uno::RuntimeException);
-
-    virtual OUString SAL_CALL getName()
-        throw (com::sun::star::uno::RuntimeException);
-
-    virtual
-    com::sun::star::uno::Reference<
-        com::sun::star::reflection::XTypeDescription >
-    SAL_CALL getBaseType() throw (com::sun::star::uno::RuntimeException);
-
-    virtual
-    com::sun::star::uno::Sequence<
-        com::sun::star::uno::Reference<
-            com::sun::star::reflection::XTypeDescription > >
-    SAL_CALL getMemberTypes() throw (com::sun::star::uno::RuntimeException);
-
-    virtual com::sun::star::uno::Sequence< OUString > SAL_CALL
-    getMemberNames() throw (com::sun::star::uno::RuntimeException);
-
-    virtual com::sun::star::uno::Sequence< OUString > SAL_CALL
-    getTypeParameters() throw (com::sun::star::uno::RuntimeException);
-
-    virtual
-    com::sun::star::uno::Sequence<
-        com::sun::star::uno::Reference<
-            com::sun::star::reflection::XTypeDescription > >
-    SAL_CALL getTypeArguments() throw (com::sun::star::uno::RuntimeException);
-
-    virtual sal_Bool SAL_CALL isPublished()
-        throw (com::sun::star::uno::RuntimeException);
-
-private:
-    StructTypeDescription(StructTypeDescription &); // not implemented
-    void operator =(StructTypeDescription); // not implemented
-
-    com::sun::star::uno::Sequence< sal_Int8 > m_data;
-    rtl::Reference< stoc_rdbtdp::CompoundTypeDescriptionImpl > m_base;
-};
-
-} }
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/registry_tdprovider/td.cxx b/stoc/source/registry_tdprovider/td.cxx
deleted file mode 100644
index 6ae85de..0000000
--- a/stoc/source/registry_tdprovider/td.cxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-#include "osl/doublecheckedlocking.h"
-#include "base.hxx"
-
-namespace stoc_rdbtdp
-{
-
-//------------------------------------------------------------------------------
-::osl::Mutex & getMutex()
-{
-    static ::osl::Mutex * s_pmutex = 0;
-    if (s_pmutex == 0)
-    {
-        ::osl::MutexGuard guard( ::osl::Mutex::getGlobalMutex() );
-        if (s_pmutex == 0)
-        {
-            static ::osl::Mutex s_mutex;
-            OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
-            s_pmutex = &s_mutex;
-        }
-    }
-    else
-    {
-        OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
-    }
-    return *s_pmutex;
-}
-
-TypeDescriptionImpl::~TypeDescriptionImpl() {}
-
-// XTypeDescription
-//__________________________________________________________________________________________________
-TypeClass TypeDescriptionImpl::getTypeClass()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    return _eTypeClass;
-}
-//__________________________________________________________________________________________________
-OUString TypeDescriptionImpl::getName()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    return _aName;
-}
-
-}
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/registry_tdprovider/tdcomp.cxx b/stoc/source/registry_tdprovider/tdcomp.cxx
deleted file mode 100644
index cb1284b..0000000
--- a/stoc/source/registry_tdprovider/tdcomp.cxx
+++ /dev/null
@@ -1,177 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "base.hxx"
-
-#include "registry/reader.hxx"
-#include "registry/version.h"
-
-namespace stoc_rdbtdp
-{
-
-//__________________________________________________________________________________________________
-CompoundTypeDescriptionImpl::~CompoundTypeDescriptionImpl()
-{
-    delete _pMembers;
-    delete _pMemberNames;
-}
-
-// XTypeDescription
-//__________________________________________________________________________________________________
-TypeClass CompoundTypeDescriptionImpl::getTypeClass()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    return _eTypeClass;
-}
-//__________________________________________________________________________________________________
-OUString CompoundTypeDescriptionImpl::getName()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    return _aName;
-}
-
-// XCompoundTypeDescription
-//__________________________________________________________________________________________________
-Reference< XTypeDescription > CompoundTypeDescriptionImpl::getBaseType()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    if (!_xBaseTD.is() && !_aBaseType.isEmpty())
-    {
-        try
-        {
-            Reference< XTypeDescription > xBaseTD;
-            if (_xTDMgr->getByHierarchicalName( _aBaseType ) >>= xBaseTD)
-            {
-                MutexGuard aGuard( getMutex() );
-                if (! _xBaseTD.is())
-                    _xBaseTD = xBaseTD;
-                return _xBaseTD;
-            }
-        }
-        catch (NoSuchElementException &)
-        {
-        }
-        // never try again, if no base td was found
-        _aBaseType = OUString();
-    }
-    return _xBaseTD;
-}
-//__________________________________________________________________________________________________
-
-namespace {
-
-class TypeParameter: public WeakImplHelper1< XTypeDescription > {
-public:
-    explicit TypeParameter(OUString const & name): m_name(name) {}
-
-    virtual TypeClass SAL_CALL getTypeClass() throw (RuntimeException)
-    { return TypeClass_UNKNOWN; }
-
-    virtual OUString SAL_CALL getName() throw (RuntimeException)
-    { return m_name; }
-
-private:
-    OUString m_name;
-};
-
-}
-
-Sequence< Reference< XTypeDescription > > CompoundTypeDescriptionImpl::getMemberTypes()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    if (! _pMembers)
-    {
-        typereg::Reader aReader(
-            _aBytes.getConstArray(), _aBytes.getLength(), false,
-            TYPEREG_VERSION_1);
-
-        sal_uInt16 nFields = aReader.getFieldCount();
-        Sequence< Reference< XTypeDescription > > * pTempMembers =
-            new Sequence< Reference< XTypeDescription > >( nFields );
-        Reference< XTypeDescription > * pMembers = pTempMembers->getArray();
-
-        while (nFields--)
-        {
-            if ((aReader.getFieldFlags(nFields) & RT_ACCESS_PARAMETERIZED_TYPE)
-                != 0)
-            {
-                pMembers[nFields] = new TypeParameter(
-                    aReader.getFieldTypeName(nFields));
-            } else {
-                try {
-                    _xTDMgr->getByHierarchicalName(
-                        aReader.getFieldTypeName(nFields).replace('/', '.'))
-                            >>= pMembers[nFields];
-                } catch (NoSuchElementException &) {}
-                OSL_ENSURE(
-                    pMembers[nFields].is(), "### compound member unknown!");
-            }
-        }
-
-        ClearableMutexGuard aGuard( getMutex() );
-        if (_pMembers)
-        {
-            aGuard.clear();
-            delete pTempMembers;
-        }
-        else
-        {
-            _pMembers = pTempMembers;
-        }
-    }
-
-    return *_pMembers;
-}
-//__________________________________________________________________________________________________
-Sequence< OUString > CompoundTypeDescriptionImpl::getMemberNames()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    if (! _pMemberNames)
-    {
-        typereg::Reader aReader(
-            _aBytes.getConstArray(), _aBytes.getLength(), false,
-            TYPEREG_VERSION_1);
-
-        sal_uInt16 nFields = aReader.getFieldCount();
-        Sequence< OUString > * pTempMemberNames = new Sequence< OUString >( nFields );
-        OUString * pMemberNames = pTempMemberNames->getArray();
-
-        while (nFields--)
-        {
-            pMemberNames[nFields] = aReader.getFieldName( nFields );
-        }
-
-        ClearableMutexGuard aGuard( getMutex() );
-        if (_pMemberNames)
-        {
-            aGuard.clear();
-            delete pTempMemberNames;
-        }
-        else
-        {
-            _pMemberNames = pTempMemberNames;
-        }
-    }
-    return *_pMemberNames;
-}
-
-}
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/registry_tdprovider/tdconsts.cxx b/stoc/source/registry_tdprovider/tdconsts.cxx
deleted file mode 100644
index 7b6e0cb..0000000
--- a/stoc/source/registry_tdprovider/tdconsts.cxx
+++ /dev/null
@@ -1,100 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <osl/diagnose.h>
-#include <rtl/ustrbuf.hxx>
-#include "registry/reader.hxx"
-#include "registry/version.h"
-#include "base.hxx"
-
-namespace stoc_rdbtdp
-{
-
-//__________________________________________________________________________________________________
-// virtual
-ConstantsTypeDescriptionImpl::~ConstantsTypeDescriptionImpl()
-{
-    delete _pMembers;
-}
-
-// XTypeDescription
-//__________________________________________________________________________________________________
-// virtual
-TypeClass ConstantsTypeDescriptionImpl::getTypeClass()
-    throw( RuntimeException )
-{
-    return TypeClass_CONSTANTS;
-}
-//__________________________________________________________________________________________________
-// virtual
-OUString ConstantsTypeDescriptionImpl::getName()
-    throw( RuntimeException )
-{
-    return _aName;
-}
-
-// XConstantsTypeDescription
-//__________________________________________________________________________________________________
-// virtual
-Sequence< Reference< XConstantTypeDescription > > SAL_CALL
-ConstantsTypeDescriptionImpl::getConstants()
-    throw ( RuntimeException )
-{
-    if ( !_pMembers )
-    {
-        typereg::Reader aReader(
-            _aBytes.getConstArray(), _aBytes.getLength(), false,
-            TYPEREG_VERSION_1);
-
-        sal_uInt16 nFields = aReader.getFieldCount();
-        Sequence< Reference< XConstantTypeDescription > > * pTempConsts
-            = new Sequence< Reference< XConstantTypeDescription > >( nFields );
-        Reference< XConstantTypeDescription > * pConsts
-            = pTempConsts->getArray();
-
-        while ( nFields-- )
-        {
-            OUStringBuffer aName( _aName );
-            aName.appendAscii( "." );
-            aName.append( aReader.getFieldName( nFields ) );
-
-            Any aValue( getRTValue( aReader.getFieldValue( nFields ) ) );
-
-            pConsts[ nFields ]
-                = new ConstantTypeDescriptionImpl( aName.makeStringAndClear(),
-                                                   aValue );
-        }
-
-        ClearableMutexGuard aGuard( getMutex() );
-        if ( _pMembers )
-        {
-            aGuard.clear();
-            delete pTempConsts;
-        }
-        else
-        {
-            _pMembers = pTempConsts;
-        }
-    }
-    return *_pMembers;
-}
-
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/registry_tdprovider/tdef.cxx b/stoc/source/registry_tdprovider/tdef.cxx
deleted file mode 100644
index 34ac118..0000000
--- a/stoc/source/registry_tdprovider/tdef.cxx
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "base.hxx"
-
-namespace stoc_rdbtdp
-{
-TypedefTypeDescriptionImpl::~TypedefTypeDescriptionImpl() {}
-
-// XTypeDescription
-//__________________________________________________________________________________________________
-TypeClass TypedefTypeDescriptionImpl::getTypeClass()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    return TypeClass_TYPEDEF;
-}
-//__________________________________________________________________________________________________
-OUString TypedefTypeDescriptionImpl::getName()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    return _aName;
-}
-
-// XIndirectTypeDescription
-//__________________________________________________________________________________________________
-Reference< XTypeDescription > TypedefTypeDescriptionImpl::getReferencedType()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    if (!_xRefTD.is() && !_aRefName.isEmpty())
-    {
-        try
-        {
-            Reference< XTypeDescription > xRefTD;
-            if (_xTDMgr->getByHierarchicalName( _aRefName ) >>= xRefTD)
-            {
-                MutexGuard aGuard( getMutex() );
-                if (! _xRefTD.is())
-                    _xRefTD = xRefTD;
-                return _xRefTD;
-            }
-        }
-        catch (NoSuchElementException &)
-        {
-        }
-        // never try again, if no base td was found
-        _aRefName = OUString();
-    }
-    return _xRefTD;
-}
-
-}
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/registry_tdprovider/tdenum.cxx b/stoc/source/registry_tdprovider/tdenum.cxx
deleted file mode 100644
index 65c1ece..0000000
--- a/stoc/source/registry_tdprovider/tdenum.cxx
+++ /dev/null
@@ -1,125 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "base.hxx"
-
-#include "registry/reader.hxx"
-#include "registry/version.h"
-
-namespace stoc_rdbtdp
-{
-
-//__________________________________________________________________________________________________
-EnumTypeDescriptionImpl::~EnumTypeDescriptionImpl()
-{
-    delete _pEnumNames;
-    delete _pEnumValues;
-}
-
-// XTypeDescription
-//__________________________________________________________________________________________________
-TypeClass EnumTypeDescriptionImpl::getTypeClass()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    return TypeClass_ENUM;
-}
-//__________________________________________________________________________________________________
-OUString EnumTypeDescriptionImpl::getName()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    return _aName;
-}
-
-// XEnumTypeDescription
-//__________________________________________________________________________________________________
-sal_Int32 EnumTypeDescriptionImpl::getDefaultEnumValue()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    return _nDefaultValue;
-}
-//__________________________________________________________________________________________________
-Sequence< OUString > EnumTypeDescriptionImpl::getEnumNames()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    if (! _pEnumNames)
-    {
-        typereg::Reader aReader(
-            _aBytes.getConstArray(), _aBytes.getLength(), false,
-            TYPEREG_VERSION_1);
-
-        sal_uInt16 nFields = aReader.getFieldCount();
-        Sequence< OUString > * pTempEnumNames = new Sequence< OUString >( nFields );
-        OUString * pEnumNames = pTempEnumNames->getArray();
-
-        while (nFields--)
-        {
-            pEnumNames[nFields] = aReader.getFieldName( nFields );
-        }
-
-        ClearableMutexGuard aGuard( getMutex() );
-        if (_pEnumNames)
-        {
-            aGuard.clear();
-            delete pTempEnumNames;
-        }
-        else
-        {
-            _pEnumNames = pTempEnumNames;
-        }
-    }
-    return *_pEnumNames;
-}
-//__________________________________________________________________________________________________
-Sequence< sal_Int32 > EnumTypeDescriptionImpl::getEnumValues()
-    throw(::com::sun::star::uno::RuntimeException)
-{
-    if (! _pEnumValues)
-    {
-        typereg::Reader aReader(
-            _aBytes.getConstArray(), _aBytes.getLength(), false,
-            TYPEREG_VERSION_1);
-
-        sal_uInt16 nFields = aReader.getFieldCount();
-        Sequence< sal_Int32 > * pTempEnumValues = new Sequence< sal_Int32 >( nFields );
-        sal_Int32 * pEnumValues = pTempEnumValues->getArray();
-
-        while (nFields--)
-        {
-            pEnumValues[nFields] = getRTValueAsInt32(
-                aReader.getFieldValue( nFields ) );
-        }
-
-        ClearableMutexGuard aGuard( getMutex() );
-        if (_pEnumValues)
-        {
-            aGuard.clear();
-            delete pTempEnumValues;
-        }
-        else
-        {
-            _pEnumValues = pTempEnumValues;
-        }
-    }
-    return *_pEnumValues;
-}
-
-}
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/stoc/source/registry_tdprovider/tdiface.cxx b/stoc/source/registry_tdprovider/tdiface.cxx
deleted file mode 100644
index d9a46c4..0000000
--- a/stoc/source/registry_tdprovider/tdiface.cxx
+++ /dev/null
@@ -1,565 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <osl/diagnose.h>
-#include <rtl/ustrbuf.hxx>
-#include "registry/reader.hxx"
-#include "registry/version.h"
-
-#include <com/sun/star/reflection/XInterfaceMemberTypeDescription.hpp>
-#include <com/sun/star/reflection/XInterfaceAttributeTypeDescription2.hpp>
-#include <com/sun/star/reflection/XInterfaceMethodTypeDescription.hpp>
-#include <com/sun/star/reflection/XMethodParameter.hpp>
-#include <com/sun/star/reflection/XParameter.hpp>
-#include "com/sun/star/uno/RuntimeException.hpp"
-#include "base.hxx"
-#include "functiondescription.hxx"
-#include "methoddescription.hxx"
-
-#include <memory>
-#include <set>
-
-namespace stoc_rdbtdp
-{
-
-//==================================================================================================
-class InterfaceMethodImpl : public WeakImplHelper1< XInterfaceMethodTypeDescription >
-{
-    stoc::registry_tdprovider::MethodDescription _desc;
-
-    Reference< XHierarchicalNameAccess >  _xTDMgr;
-
-    OUString                              _aTypeName;
-
-    OUString                              _aReturnType;
-    Reference< XTypeDescription >         _xReturnTD;
-
-    sal_Bool                              _bIsOneWay;
-    sal_Int32                             _nPosition;
-
-public:
-    InterfaceMethodImpl( const Reference< XHierarchicalNameAccess > & xTDMgr,
-                         const OUString & rTypeName,
-                         const OUString & rMemberName,
-                         const OUString & rReturnType,
-                         const Sequence< sal_Int8 > & rBytes,
-                         sal_uInt16 nMethodIndex,
-                         sal_Bool bIsOneWay,
-                         sal_Int32 nPosition )
-        : _desc(xTDMgr, rMemberName, rBytes, nMethodIndex)
-        , _xTDMgr( xTDMgr )
-        , _aTypeName( rTypeName )
-        , _aReturnType( rReturnType )
-        , _bIsOneWay( bIsOneWay )
-        , _nPosition( nPosition )
-        {}
-    virtual ~InterfaceMethodImpl();
-
-    // XTypeDescription
-    virtual TypeClass SAL_CALL getTypeClass() throw(::com::sun::star::uno::RuntimeException);
-    virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
-
-    // XInterfaceMemberTypeDescription

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list