From 0ff9244d8aa8ba46025d8ae9d2e0f83385793165 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 16 Sep 2013 17:36:42 +0200 Subject: Clean up the unoidl Providers (no need to have them exported) Change-Id: I96b99e96b44f12b7ad7f376e4b3a68d7e9531643 --- include/unoidl/legacyprovider.hxx | 48 ------------------------------- include/unoidl/sourceprovider.hxx | 48 ------------------------------- include/unoidl/unoidlprovider.hxx | 60 --------------------------------------- 3 files changed, 156 deletions(-) delete mode 100644 include/unoidl/legacyprovider.hxx delete mode 100644 include/unoidl/sourceprovider.hxx delete mode 100644 include/unoidl/unoidlprovider.hxx (limited to 'include/unoidl') diff --git a/include/unoidl/legacyprovider.hxx b/include/unoidl/legacyprovider.hxx deleted file mode 100644 index cebdc1f764ea..000000000000 --- a/include/unoidl/legacyprovider.hxx +++ /dev/null @@ -1,48 +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/. - */ - -#ifndef INCLUDED_UNOIDL_LEGACYPROVIDER_HXX -#define INCLUDED_UNOIDL_LEGACYPROVIDER_HXX - -#include "sal/config.h" - -#include "registry/registry.hxx" -#include "rtl/ref.hxx" -#include "sal/types.h" -#include "unoidl/detail/dllapi.hxx" -#include "unoidl/unoidl.hxx" - - -namespace unoidl { - -class LO_DLLPUBLIC_UNOIDL LegacyProvider: public Provider { -public: - // throws FileFormatException, NoSuchFileException: - LegacyProvider( - rtl::Reference< Manager > const & manager, OUString const & uri); - - // throws FileFormatException: - virtual rtl::Reference< MapCursor > createRootCursor() const; - - // throws FileFormatException: - virtual rtl::Reference< Entity > findEntity(OUString const & name) - const; - -private: - virtual SAL_DLLPRIVATE ~LegacyProvider() throw (); - - rtl::Reference< Manager > manager_; - mutable RegistryKey ucr_; -}; - -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/unoidl/sourceprovider.hxx b/include/unoidl/sourceprovider.hxx deleted file mode 100644 index e5967116fcfc..000000000000 --- a/include/unoidl/sourceprovider.hxx +++ /dev/null @@ -1,48 +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/. - */ - -#ifndef INCLUDED_UNOIDL_SOURCEPROVIDER_HXX -#define INCLUDED_UNOIDL_SOURCEPROVIDER_HXX - -#include "sal/config.h" - -#include - -#include "rtl/ref.hxx" -#include "sal/types.h" -#include "unoidl/detail/dllapi.hxx" -#include "unoidl/unoidl.hxx" - -namespace unoidl { - -class LO_DLLPUBLIC_UNOIDL SourceProvider: public Provider { -public: - // throws FileFormatException, NoSuchFileException: - SourceProvider( - rtl::Reference const & manager, OUString const & uri); - - // throws FileFormatException: - virtual rtl::Reference createRootCursor() const; - - // throws FileFormatException: - virtual rtl::Reference findEntity(OUString const & name) const; - -private: - virtual SAL_DLLPRIVATE ~SourceProvider() throw (); - - rtl::Reference manager_; - OUString uri_; - mutable std::map< OUString, rtl::Reference > cache_; //TODO: at manager -}; - -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/unoidl/unoidlprovider.hxx b/include/unoidl/unoidlprovider.hxx deleted file mode 100644 index d7d4fbb97f8c..000000000000 --- a/include/unoidl/unoidlprovider.hxx +++ /dev/null @@ -1,60 +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/. - */ - -#ifndef INCLUDED_UNOIDL_UNOIDLPROVIDER_HXX -#define INCLUDED_UNOIDL_UNOIDLPROVIDER_HXX - -#include "sal/config.h" - -#include "rtl/ref.hxx" -#include "sal/types.h" -#include "unoidl/detail/dllapi.hxx" -#include "unoidl/unoidl.hxx" - -namespace unoidl { namespace detail { - class MappedFile; - struct MapEntry; -} } - -namespace unoidl { - -class LO_DLLPUBLIC_UNOIDL UnoidlProvider: public Provider { -public: - // throws FileFormatException, NoSuchFileException: - explicit UnoidlProvider(OUString const & uri); - - // throws FileFormatException: - virtual rtl::Reference< MapCursor > createRootCursor() const; - - // throws FileFormatException: - virtual rtl::Reference< Entity > findEntity(OUString const & name) - const; - - // throws FileFormatException: - sal_uInt32 find(OUString const & name, bool * constant = 0) const; - - // throws FileFormatException: - rtl::Reference< Entity > getEntity(sal_uInt32 offset) const; - - // throws FileFormatException: - ConstantValue getConstant(sal_uInt32 offset) const; - -private: - virtual SAL_DLLPRIVATE ~UnoidlProvider() throw (); - - rtl::Reference< detail::MappedFile > file_; - detail::MapEntry const * mapBegin_; - sal_uInt32 mapSize_; -}; - -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit