From 3b7150c0ab5ca40f88ab8c3b914d601501cbf4e7 Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Mon, 4 Jan 2016 22:27:23 +0100 Subject: SotFactory is in fact not used: remove + cleanup Also SotData_Impl is used only in exchange.cxx now. Move there. Change-Id: I548095c2226d92aea4193bb1a3671e2381996435 --- sot/inc/factory.hxx | 57 ----------------------------------------------------- sot/inc/sotdata.hxx | 53 ------------------------------------------------- 2 files changed, 110 deletions(-) delete mode 100644 sot/inc/factory.hxx delete mode 100644 sot/inc/sotdata.hxx (limited to 'sot/inc') diff --git a/sot/inc/factory.hxx b/sot/inc/factory.hxx deleted file mode 100644 index ab22cc08cadb..000000000000 --- a/sot/inc/factory.hxx +++ /dev/null @@ -1,57 +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_SOT_FACTORY_HXX -#define INCLUDED_SOT_FACTORY_HXX - -#include - -#include - -class SotObject; - -class SotFactory : public SvGlobalName -{ - sal_uInt16 nSuperCount; // Anzahl der Superklassen - const SotFactory ** pSuperClasses; // Superklassen - -protected: - virtual ~SotFactory(); -public: - static void IncSvObjectCount( SotObject * = nullptr ); - static void DecSvObjectCount( SotObject * = nullptr ); - -#ifdef DBG_UTIL - static const SotFactory * Find( const SvGlobalName & ); -#endif - - SotFactory( const SvGlobalName & ); - - void PutSuperClass( const SotFactory * ); - - bool Is( const SotFactory * pSuperClass ) const; - -private: - SotFactory( const SotFactory & ) = delete; - SotFactory & operator = ( const SotFactory & ) = delete; -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sot/inc/sotdata.hxx b/sot/inc/sotdata.hxx deleted file mode 100644 index f2d3c260bf84..000000000000 --- a/sot/inc/sotdata.hxx +++ /dev/null @@ -1,53 +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_SOT_SOTDATA_HXX -#define INCLUDED_SOT_SOTDATA_HXX - -#include - -#include -#include -#include - - -class SotFactory; -class SotObject; - -typedef ::std::vector< SotFactory* > SotFactoryList; -typedef ::std::vector< css::datatransfer::DataFlavor* > tDataFlavorList; - -struct SotData_Impl -{ - sal_uInt32 nSvObjCount; - std::list aObjectList; - SotFactoryList * pFactoryList; - SotFactory * pSotObjectFactory; - SotFactory * pSotStorageStreamFactory; - SotFactory * pSotStorageFactory; - tDataFlavorList* pDataFlavorList; - SotData_Impl(); - ~SotData_Impl(); -}; - -SotData_Impl* SOTDATA(); - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit