summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-04-20 07:23:12 +0200
committerDavid Tardon <dtardon@redhat.com>2013-04-24 05:17:49 +0000
commit25ea7f0b5e81b0242ec6e6a761f874db16383d22 (patch)
tree96128c7185500cbe2a8d6a93f5ac576435ffc47e /sal
parent9ccd994d445c797a48cb89ce2b7449adc68b1007 (diff)
move sal_inc headers to include/
Change-Id: I840c681b7c500640d3983e05e9895f3fa8bb1313 Reviewed-on: https://gerrit.libreoffice.org/3501 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/Module_sal.mk1
-rw-r--r--sal/Package_inc.mk40
-rw-r--r--sal/inc/cppunittester/protectorfactory.hxx40
-rw-r--r--sal/inc/osl/detail/android-bootstrap.h53
-rw-r--r--sal/inc/osl/detail/component-mapping.h42
-rw-r--r--sal/inc/osl/detail/file.h57
-rw-r--r--sal/inc/osl/detail/ios-bootstrap.h62
-rw-r--r--sal/inc/systools/win32/comptr.hxx229
-rw-r--r--sal/inc/systools/win32/comtools.hxx187
-rw-r--r--sal/inc/systools/win32/qswin32.h43
-rw-r--r--sal/inc/systools/win32/uwinapi.h58
11 files changed, 0 insertions, 812 deletions
diff --git a/sal/Module_sal.mk b/sal/Module_sal.mk
index f5ecbc480b2d..cb2e908571b5 100644
--- a/sal/Module_sal.mk
+++ b/sal/Module_sal.mk
@@ -19,7 +19,6 @@ $(eval $(call gb_Module_add_targets,sal,\
Library_sal_textenc) \
$(if $(filter $(OS),WNT), \
Library_uwinapi) \
- Package_inc \
StaticLibrary_salcpprt \
))
diff --git a/sal/Package_inc.mk b/sal/Package_inc.mk
deleted file mode 100644
index 98281d1e0c3a..000000000000
--- a/sal/Package_inc.mk
+++ /dev/null
@@ -1,40 +0,0 @@
-# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
-#
-# Version: MPL 1.1 / GPLv3+ / LGPLv3+
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License or as specified alternatively below. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# Major Contributor(s):
-# Copyright (C) 2011 Matúš Kukan <matus.kukan@gmail.com> (initial developer)
-#
-# All Rights Reserved.
-#
-# For minor contributions see the git repository.
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
-# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
-# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
-# instead of those above.
-
-$(eval $(call gb_Package_Package,sal_inc,$(SRCDIR)/sal/inc))
-
-$(eval $(call gb_Package_add_file,sal_inc,inc/protectorfactory.hxx,cppunittester/protectorfactory.hxx))
-$(eval $(call gb_Package_add_file,sal_inc,inc/osl/detail/file.h,osl/detail/file.h))
-$(eval $(call gb_Package_add_file,sal_inc,inc/osl/detail/android-bootstrap.h,osl/detail/android-bootstrap.h))
-$(eval $(call gb_Package_add_file,sal_inc,inc/osl/detail/ios-bootstrap.h,osl/detail/ios-bootstrap.h))
-$(eval $(call gb_Package_add_file,sal_inc,inc/osl/detail/component-mapping.h,osl/detail/component-mapping.h))
-$(eval $(call gb_Package_add_file,sal_inc,inc/systools/win32/comptr.hxx,systools/win32/comptr.hxx))
-$(eval $(call gb_Package_add_file,sal_inc,inc/systools/win32/comtools.hxx,systools/win32/comtools.hxx))
-$(eval $(call gb_Package_add_file,sal_inc,inc/systools/win32/qswin32.h,systools/win32/qswin32.h))
-$(eval $(call gb_Package_add_file,sal_inc,inc/systools/win32/uwinapi.h,systools/win32/uwinapi.h))
-
-# vim: set noet sw=4 ts=4:
diff --git a/sal/inc/cppunittester/protectorfactory.hxx b/sal/inc/cppunittester/protectorfactory.hxx
deleted file mode 100644
index b0b21bd1b259..000000000000
--- a/sal/inc/cppunittester/protectorfactory.hxx
+++ /dev/null
@@ -1,40 +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_CPPUNITTESTER_PROTECTORFACTORY_HXX
-#define INCLUDED_CPPUNITTESTER_PROTECTORFACTORY_HXX
-
-#include <sal/types.h>
-#include <cppunit/Protector.h>
-
-namespace cppunittester
-{
- // The type of CppUnit::Protector factory functions that can be plugged into
- // cppunittester:
- extern "C" typedef CppUnit::Protector * SAL_CALL ProtectorFactory();
-}
-
-#ifdef DISABLE_DYNLOADING
-extern "C" CppUnit::Protector *unoexceptionprotector();
-extern "C" CppUnit::Protector *unobootstrapprotector();
-#endif
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/inc/osl/detail/android-bootstrap.h b/sal/inc/osl/detail/android-bootstrap.h
deleted file mode 100644
index 626447f36524..000000000000
--- a/sal/inc/osl/detail/android-bootstrap.h
+++ /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/.
- */
-
-#ifndef ANDROID_BOOSTRAP_H
-#define ANDROID_BOOSTRAP_H
-
-#if defined(ANDROID)
-
-#include <jni.h>
-#include <dirent.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <osl/detail/component-mapping.h>
-
-typedef struct lo_apk_dir lo_apk_dir;
-
-void *lo_apkentry(const char *filename,
- size_t *size);
-
-lo_apk_dir *lo_apk_opendir(const char *dirname);
-
-struct dirent *lo_apk_readdir(lo_apk_dir *dirp);
-
-int lo_apk_closedir(lo_apk_dir *dirp);
-
-int lo_apk_lstat(const char *path, struct stat *statp);
-
-int lo_dlcall_argc_argv(void *function,
- int argc,
- const char **argv);
-
-JavaVM *lo_get_javavm(void);
-
-const char *lo_get_app_data_dir(void);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // ANDROID
-
-#endif // ANDROID_BOOTSTRAP_H
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/inc/osl/detail/component-mapping.h b/sal/inc/osl/detail/component-mapping.h
deleted file mode 100644
index 4a0f4796a7b3..000000000000
--- a/sal/inc/osl/detail/component-mapping.h
+++ /dev/null
@@ -1,42 +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 COMPONENT_MAPPING_H
-#define COMPONENT_MAPPING_H
-
-#ifdef DISABLE_DYNLOADING
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* On iOS and perhaps Android static linking of the LO code into one
- * executable (on Android, into one shared library) is used. In order to get
- * the needed UNO coponent linked in, the "main" code for an app needs to
- * implement the lo_get_libmap() function to map UNO component library names
- * as produced in a build for iOS (like configmgr.uno.a or libsclo.a) to the
- * corresponding component_getFactory functions.
- */
-
-typedef struct {
- const char *lib;
- void * (*component_getFactory_function)(const char *, void *, void *);
-} lib_to_component_mapping;
-
-const lib_to_component_mapping *lo_get_libmap(void);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* DISABLE_DYNLOADING */
-
-#endif /* COMPONENT_MAPPING_H */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/inc/osl/detail/file.h b/sal/inc/osl/detail/file.h
deleted file mode 100644
index aebec89088d1..000000000000
--- a/sal/inc/osl/detail/file.h
+++ /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/.
- */
-
-#ifndef INCLUDED_OSL_DETAIL_FILE_H
-#define INCLUDED_OSL_DETAIL_FILE_H
-
-#include "sal/config.h"
-
-#include <sys/stat.h>
-
-#include "sal/saldllapi.h"
-#include "sal/types.h"
-
-/** @cond INTERNAL */
-
-/* Some additions to the osl file functions for LibreOffice internal
- use. Needed for details in the Android support.
- */
-
-#if defined __cplusplus
-extern "C" {
-#endif
-
-/* More flags needed for semantics that match the open() call that
- used to be in SvFileStream::Open().
-*/
-#define osl_File_OpenFlag_Trunc 0x00000010L
-#define osl_File_OpenFlag_NoExcl 0x00000020L
-
-SAL_DLLPUBLIC oslFileError SAL_CALL osl_openFilePath(
- const char *cpFilePath,
- oslFileHandle* pHandle,
- sal_uInt32 uFlags );
-
-/* Get the OS specific "handle" of an open file. */
-SAL_DLLPUBLIC oslFileError SAL_CALL osl_getFileOSHandle(
- oslFileHandle Handle,
- sal_IntPtr *piFileHandle );
-
-/* for unit testing. */
-SAL_DLLPUBLIC oslFileError SAL_CALL osl_openMemoryAsFile( void *address, size_t size, oslFileHandle *pHandle );
-
-#if defined __cplusplus
-}
-#endif
-
-/** @endcond */
-
-#endif /* INCLUDED_OSL_DETAIL_FILE_H */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/inc/osl/detail/ios-bootstrap.h b/sal/inc/osl/detail/ios-bootstrap.h
deleted file mode 100644
index fa3d0c85b460..000000000000
--- a/sal/inc/osl/detail/ios-bootstrap.h
+++ /dev/null
@@ -1,62 +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 IOS_BOOSTRAP_H
-#define IOS_BOOSTRAP_H
-
-#if defined(IOS)
-
-#include <premac.h>
-#include <CoreGraphics/CoreGraphics.h>
-#include <postmac.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <osl/detail/component-mapping.h>
-
-/* These functions are the interface between the upper GUI layers of a
- * LibreOffice-based iOS app and the lower "core" layers, used in cases
- * where the core parts need to call functions in the upper parts or
- * vice versa.
- *
- * Thus there are two classes of functions here:
- *
- * 1) Those to be implemented in the upper layer and called by the
- * lower layer
- *
- * 2) Those implmented in the lower layers to be called by the upper
- * layer, in cases where we don't want to include a bunch of the
- * "normal" LibreOffice C++ headers in an otherwise purely Objective-C
- * CocoaTouch-based source file. Of course it depends on the case
- * where that is wanted, and this all is work in progress.
- */
-
-/* 1) */
-
-void lo_damaged(CGRect rect);
-
-/* 2) */
-
-void lo_runMain();
-void lo_set_view_size(int width, int height);
-void lo_render_windows(CGContextRef context, CGRect rect);
-void lo_tap(int x, int y);
-void lo_pan(int x, int y);
-void lo_keyboard_input(int c);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // IOS
-#endif // IOS_BOOTSTRAP_H
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/inc/systools/win32/comptr.hxx b/sal/inc/systools/win32/comptr.hxx
deleted file mode 100644
index 7ef5123f3ac5..000000000000
--- a/sal/inc/systools/win32/comptr.hxx
+++ /dev/null
@@ -1,229 +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 COMPTR_HXX
-#define COMPTR_HXX
-
-#include <sal/types.h>
-#include <osl/diagnose.h>
-#include <shobjidl.h>
-
-template< class T_INTERFACE ,
- REFIID P_IID = IID_NULL ,
- REFCLSID P_CLSID = CLSID_NULL >
-class ComPtr
-{
- public:
-
- //---------------------------------------------------------------------
- /** initialize com ptr with null.
- */
- ComPtr()
- {
- m_pInterface = NULL;
- }
-
- //---------------------------------------------------------------------
- /** initialize com ptr with given interface.
- */
- ComPtr(T_INTERFACE* pInterface)
- {
- m_pInterface = pInterface;
- if (m_pInterface)
- m_pInterface->AddRef();
- }
-
- //---------------------------------------------------------------------
- /** copy ctor.
- */
- ComPtr(const ComPtr< T_INTERFACE, P_IID, P_CLSID >& aCopy)
- {
- m_pInterface = aCopy.m_pInterface;
- if (m_pInterface)
- m_pInterface->AddRef();
- }
-
- //---------------------------------------------------------------------
- /** initialize object by quering external object for the right interface.
- */
- ComPtr(IUnknown* pIUnknown)
- {
- if (pIUnknown)
- pIUnknown->QueryInterface(P_IID, (void**)&m_pInterface);
- }
-
- //---------------------------------------------------------------------
- /** deinitialize com object right.
- */
- ~ComPtr()
- {
- release();
- }
-
- public:
-
- //---------------------------------------------------------------------
- HRESULT create()
- {
- return CoCreateInstance(P_CLSID, NULL, CLSCTX_ALL, P_IID, (void**)&m_pInterface);
- }
-
- //---------------------------------------------------------------------
- operator T_INTERFACE*() const
- {
- return m_pInterface;
- }
-
- //---------------------------------------------------------------------
- T_INTERFACE& operator*() const
- {
- return *m_pInterface;
- }
-
- //---------------------------------------------------------------------
- T_INTERFACE** operator&()
- {
- return &m_pInterface;
- }
-
- //---------------------------------------------------------------------
- T_INTERFACE* operator->() const
- {
- return m_pInterface;
- }
-
- //---------------------------------------------------------------------
- T_INTERFACE* operator=(T_INTERFACE* pInterface)
- {
- if ( equals(pInterface) )
- return m_pInterface;
-
- m_pInterface->Release();
- m_pInterface = pInterface;
- if (m_pInterface)
- m_pInterface->AddRef();
-
- return m_pInterface;
- }
-
- //---------------------------------------------------------------------
- T_INTERFACE* operator=(IUnknown* pIUnknown)
- {
- if (pIUnknown)
- pIUnknown->QueryInterface(P_IID, (void**)&m_pInterface);
- return m_pInterface;
- }
-
- //---------------------------------------------------------------------
- T_INTERFACE* operator=(const ComPtr< T_INTERFACE, P_IID, P_CLSID >& aCopy)
- {
- m_pInterface = aCopy.m_pInterface;
- if (m_pInterface)
- m_pInterface->AddRef();
-
- return m_pInterface;
- }
-
- //---------------------------------------------------------------------
- T_INTERFACE* get() const
- {
- return m_pInterface;
- }
-
- //---------------------------------------------------------------------
- void attach(T_INTERFACE* pInterface)
- {
- if (pInterface)
- {
- m_pInterface->Release();
- m_pInterface = pInterface;
- }
- }
-
- //---------------------------------------------------------------------
- T_INTERFACE* detach()
- {
- T_INTERFACE* pInterface = m_pInterface;
- m_pInterface = NULL;
- return pInterface;
- }
-
- //---------------------------------------------------------------------
- void release()
- {
- if (m_pInterface)
- {
- m_pInterface->Release();
- m_pInterface = NULL;
- }
- }
-
-#ifndef __MINGW32__
- //---------------------------------------------------------------------
- template< class T_QUERYINTERFACE >
- HRESULT query(T_QUERYINTERFACE** pQuery)
- {
- return m_pInterface->QueryInterface(__uuidof(T_QUERYINTERFACE), (void**)pQuery);
- }
-#endif
-
- //---------------------------------------------------------------------
- HRESULT query(REFIID rIID ,
- void** pQuery)
- {
- return m_pInterface->QueryInterface(rIID, pQuery);
- }
-
- //---------------------------------------------------------------------
- HRESULT unknown(IUnknown** pQuery)
- {
- return m_pInterface->QueryInterface(IID_IUnknown, (void**)pQuery);
- }
-
- //---------------------------------------------------------------------
- ::sal_Bool equals(IUnknown* pCheck)
- {
- if (
- ( ! m_pInterface ) &&
- ( ! pCheck )
- )
- return sal_True;
-
- IUnknown* pCurrent = NULL;
- m_pInterface->QueryInterface(IID_IUnknown, (void**)&pCurrent);
-
- ::sal_Bool bEquals = (pCheck == pCurrent);
- pCurrent->Release();
-
- return bEquals;
- }
-
- //---------------------------------------------------------------------
- ::sal_Bool is()
- {
- return (m_pInterface != 0);
- }
-
- private:
- T_INTERFACE* m_pInterface;
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/inc/systools/win32/comtools.hxx b/sal/inc/systools/win32/comtools.hxx
deleted file mode 100644
index 1ef61ea3d967..000000000000
--- a/sal/inc/systools/win32/comtools.hxx
+++ /dev/null
@@ -1,187 +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 .
- */
-
-#pragma once
-
-#include <string>
-#include <stdexcept>
-#if defined _MSC_VER
-#pragma warning(push,1)
-#endif
-#include <objbase.h>
-#if defined _MSC_VER
-#pragma warning(pop)
-#endif
-
-namespace sal
-{
-namespace systools
-{
- typedef int HRESULT;
-
- /* Simple exception class for propagating COM errors */
- class ComError : public std::runtime_error
- {
- public:
- ComError(const std::string& message, HRESULT hr) :
- std::runtime_error(message),
- hr_(hr)
- {}
-
- HRESULT GetHresult() const
- {
- return hr_;
- }
-
- private:
- HRESULT hr_;
- };
-
- /* A simple COM smart pointer template */
- template <typename T>
- class COMReference
- {
- public:
- COMReference() :
- com_ptr_(NULL)
- {
- }
-
- explicit COMReference(T* comptr) :
- com_ptr_(comptr)
- {
- addRef();
- }
-
- /* Explicitly controllable whether AddRef will be called or not */
- COMReference(T* comptr, bool bAddRef) :
- com_ptr_(comptr)
- {
- if (bAddRef)
- addRef();
- }
-
- COMReference(const COMReference<T>& other) :
- com_ptr_(other.com_ptr_)
- {
- addRef();
- }
-
- COMReference<T>& operator=(const COMReference<T>& other)
- {
- if (other.com_ptr_)
- other.com_ptr_->AddRef();
- release();
- com_ptr_ = other.com_ptr_;
- return *this;
- }
-
- COMReference<T>& operator=(T* comptr)
- {
- release();
- com_ptr_ = comptr;
- addRef();
- return *this;
- }
-
- ~COMReference()
- {
- release();
- }
-
- template<typename InterfaceType>
- COMReference<InterfaceType> QueryInterface(REFIID iid)
- {
- COMReference<InterfaceType> ip;
- HRESULT hr = E_FAIL;
- if (com_ptr_)
- hr = com_ptr_->QueryInterface(iid, reinterpret_cast<LPVOID*>(&ip));
-
- if (FAILED(hr))
- throw ComError("QueryInterface failed: Interface not supported!", hr);
-
- return ip;
- }
-
- T* operator->() const
- {
- return com_ptr_;
- }
-
- T& operator*() const
- {
- return *com_ptr_;
- }
-
- /* Necessary for assigning com_ptr_ from functions like
- CoCreateInstance which require a 'void**' */
- T** operator&()
- {
- release();
- com_ptr_ = NULL;
- return &com_ptr_;
- }
-
- T* get() const
- {
- return com_ptr_;
- }
-
- COMReference<T>& clear()
- {
- release();
- com_ptr_ = NULL;
- return *this;
- }
-
- bool is() const
- {
- return (com_ptr_ != NULL);
- }
-
- private:
- ULONG addRef()
- {
- ULONG cnt = 0;
- if (com_ptr_)
- cnt = com_ptr_->AddRef();
- return cnt;
- }
-
- ULONG release()
- {
- ULONG cnt = 0;
- if (com_ptr_)
- cnt = com_ptr_->Release();
- return cnt;
- }
-
- private:
- T* com_ptr_;
- };
-
-} // systools
-} // sal
-
-/* Typedefs for some popular COM interfaces */
-typedef sal::systools::COMReference<IDataObject> IDataObjectPtr;
-typedef sal::systools::COMReference<IStream> IStreamPtr;
-typedef sal::systools::COMReference<IEnumFORMATETC> IEnumFORMATETCPtr;
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/inc/systools/win32/qswin32.h b/sal/inc/systools/win32/qswin32.h
deleted file mode 100644
index ed268d26affd..000000000000
--- a/sal/inc/systools/win32/qswin32.h
+++ /dev/null
@@ -1,43 +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 _QSWIN32_H
-#define _QSWIN32_H
-
-#define QUICKSTART_CLASSNAMEA "LO Listener Class"
-#define QUICKSTART_WINDOWNAMEA "LO Listener Window"
-#define SHUTDOWN_QUICKSTART_MESSAGEA "LO KillTray"
-
-#define QUICKSTART_CLASSNAMEW L##QUICKSTART_CLASSNAMEA
-#define QUICKSTART_WINDOWNAMEW L##QUICKSTART_WINDOWNAMEA
-#define SHUTDOWN_QUICKSTART_MESSAGEW L##SHUTDOWN_QUICKSTART_MESSAGEA
-
-#ifdef UNICODE
-# define QUICKSTART_CLASSNAME QUICKSTART_CLASSNAMEW
-# define QUICKSTART_WINDOWNAME QUICKSTART_WINDOWNAMEW
-# define SHUTDOWN_QUICKSTART_MESSAGE SHUTDOWN_QUICKSTART_MESSAGEW
-#else
-# define QUICKSTART_CLASSNAME QUICKSTART_CLASSNAMEA
-# define QUICKSTART_WINDOWNAME QUICKSTART_WINDOWNAMEA
-# define SHUTDOWN_QUICKSTART_MESSAGE SHUTDOWN_QUICKSTART_MESSAGEA
-#endif
-
-#endif /* _QSWIN32_H */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/inc/systools/win32/uwinapi.h b/sal/inc/systools/win32/uwinapi.h
deleted file mode 100644
index 5c4c88c415f1..000000000000
--- a/sal/inc/systools/win32/uwinapi.h
+++ /dev/null
@@ -1,58 +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 .
- */
-
-#pragma once
-#include <sal/macros.h>
-#ifdef _UWINAPI_
-# define _KERNEL32_
-# define _USER32_
-# define _SHELL32_
-#endif
-
-#ifndef _WINDOWS_
-#ifdef _MSC_VER
-# pragma warning(push,1) /* disable warnings within system headers */
-#endif
-# include <windows.h>
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-#endif
-
-#ifdef __MINGW32__
-#include <basetyps.h>
-#ifdef _UWINAPI_
-#define WINBASEAPI
-#endif
-#endif
-
-#ifdef __cplusplus
-
-inline bool IsValidHandle(HANDLE handle)
-{
- return handle != INVALID_HANDLE_VALUE && handle != NULL;
-}
-
-#else /* __cplusplus */
-
-#define IsValidHandle(Handle) ((DWORD)(Handle) + 1 > 1)
-
-#endif /* __cplusplus */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */