Repository.mk | 4 dtrans/Library_dnd.mk | 60 ------------ dtrans/Library_dtrans.mk | 37 ------- dtrans/Library_ftransl.mk | 52 ---------- dtrans/Library_sysdtrans.mk | 52 ---------- dtrans/Module_dtrans.mk | 10 -- dtrans/README | 4 dtrans/StaticLibrary_dtobj.mk | 44 -------- dtrans/source/win32/clipb/APNDataObject.hxx | 72 -------------- dtrans/util/dnd.component | 30 ------ dtrans/util/ftransl.component | 26 ----- dtrans/util/sysdtrans.component | 26 ----- postprocess/Rdb_services.mk | 5 - solenv/clang-format/blacklist | 140 +++++++++++++--------------- starmath/CppunitTest_starmath_qa_cppunit.mk | 8 - vcl/Library_vclplug_win.mk | 35 ++++++- vcl/vclplug_win.component | 22 +++- vcl/win/dtrans/APNDataObject.hxx | 5 + vcl/win/dtrans/DOTransferable.cxx | 4 vcl/win/dtrans/DTransHelper.hxx | 2 vcl/win/dtrans/DataFmtTransl.cxx | 4 vcl/win/dtrans/DtObjFactory.cxx | 3 vcl/win/dtrans/Fetc.cxx | 2 vcl/win/dtrans/FetcList.cxx | 4 vcl/win/dtrans/MtaOleClipb.cxx | 15 +-- vcl/win/dtrans/TxtCnvtHlp.cxx | 3 vcl/win/dtrans/WinClipbImpl.cxx | 8 - vcl/win/dtrans/XNotifyingDataObject.cxx | 4 vcl/win/dtrans/XTDataObject.cxx | 2 vcl/win/dtrans/ftransl.cxx | 2 vcl/win/dtrans/ftransl.hxx | 2 vcl/win/dtrans/source.cxx | 3 vcl/win/dtrans/target.cxx | 2 33 files changed, 163 insertions(+), 529 deletions(-)
New commits: commit 06d0b2b32ad2e5aff718a87c2acc59021139c9b5 Author: Jan-Marek Glogowski <glo...@fbihome.de> AuthorDate: Tue Sep 22 13:23:00 2020 +0200 Commit: Balazs Varga <balazs.varga.ext...@allotropia.de> CommitDate: Thu Nov 24 12:25:05 2022 +0100 WIN move dtrans code into vcl/win/dtrans There is nothing abstract about either the clipboard or data transfer code in that directory and it's just used on Windows. All other backends implement this code in VCL, so this moves almost all code, except for the common MimeContentTypeFactory, into the vcl Windows backend / vclplug_win. This also drops four DLLs: sysdtrans, dnd, dtrans and ftransl. Change-Id: I7018f50768bf221447b40487cc1f8a8586da33c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103209 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glo...@fbihome.de> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143174 Tested-by: Balazs Varga <balazs.varga.ext...@allotropia.de> Reviewed-by: Balazs Varga <balazs.varga.ext...@allotropia.de> diff --git a/Repository.mk b/Repository.mk index 6d468833eaf6..8175a7ceb8f5 100644 --- a/Repository.mk +++ b/Repository.mk @@ -619,7 +619,6 @@ $(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo, \ sdbc2 \ sofficeapp \ srtrs1 \ - $(if $(filter $(OS),WNT),sysdtrans) \ textconv_dict \ ucb1 \ ucbhelper \ @@ -638,10 +637,7 @@ $(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo, \ macabdrv1 \ ) \ $(if $(filter WNT,$(OS)), \ - dnd \ - dtrans \ fps \ - ftransl \ inprocserv \ UAccCOM \ winaccessibility \ diff --git a/dtrans/Library_dnd.mk b/dtrans/Library_dnd.mk deleted file mode 100644 index 930b552827e1..000000000000 --- a/dtrans/Library_dnd.mk +++ /dev/null @@ -1,60 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# 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 . -# - -$(eval $(call gb_Library_Library,dnd)) - -$(eval $(call gb_Library_set_componentfile,dnd,dtrans/util/dnd)) - -$(eval $(call gb_Library_use_externals,dnd, \ - boost_headers \ -)) - -$(eval $(call gb_Library_use_sdk_api,dnd)) - -$(eval $(call gb_Library_use_libraries,dnd,\ - comphelper \ - cppu \ - cppuhelper \ - sal \ -)) - -$(eval $(call gb_Library_use_system_win32_libs,dnd,\ - advapi32 \ - gdi32 \ - ole32 \ - oleaut32 \ - shell32 \ - uuid \ -)) - -$(eval $(call gb_Library_use_static_libraries,dnd,\ - dtobj \ -)) - -$(eval $(call gb_Library_add_exception_objects,dnd,\ - dtrans/source/win32/dnd/globals \ - dtrans/source/win32/dnd/idroptarget \ - dtrans/source/win32/dnd/sourcecontext \ - dtrans/source/win32/dnd/source \ - dtrans/source/win32/dnd/target \ - dtrans/source/win32/dnd/targetdragcontext \ - dtrans/source/win32/dnd/targetdropcontext \ -)) - -# vim: set noet sw=4 ts=4: diff --git a/dtrans/Library_dtrans.mk b/dtrans/Library_dtrans.mk deleted file mode 100644 index e70d7215436b..000000000000 --- a/dtrans/Library_dtrans.mk +++ /dev/null @@ -1,37 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# 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 . -# - -$(eval $(call gb_Library_Library,dtrans)) - -$(eval $(call gb_Library_set_componentfile,dtrans,dtrans/source/generic/dtrans)) - -$(eval $(call gb_Library_use_sdk_api,dtrans)) - -$(eval $(call gb_Library_use_libraries,dtrans,\ - cppu \ - cppuhelper \ - sal \ -)) - -$(eval $(call gb_Library_add_exception_objects,dtrans,\ - dtrans/source/generic/clipboardmanager \ - dtrans/source/generic/generic_clipboard \ -)) - -# vim: set noet sw=4 ts=4: diff --git a/dtrans/Library_ftransl.mk b/dtrans/Library_ftransl.mk deleted file mode 100644 index f418af318d3f..000000000000 --- a/dtrans/Library_ftransl.mk +++ /dev/null @@ -1,52 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# 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 . -# - -$(eval $(call gb_Library_Library,ftransl)) - -$(eval $(call gb_Library_set_componentfile,ftransl,dtrans/util/ftransl)) - -$(eval $(call gb_Library_use_sdk_api,ftransl)) - -$(eval $(call gb_Library_use_libraries,ftransl,\ - comphelper \ - cppu \ - cppuhelper \ - sal \ -)) - -$(eval $(call gb_Library_use_system_win32_libs,ftransl,\ - advapi32 \ - gdi32 \ - ole32 \ -)) - -$(eval $(call gb_Library_use_static_libraries,ftransl,\ - dtobj \ -)) - -$(eval $(call gb_Library_add_exception_objects,ftransl,\ - dtrans/source/win32/ftransl/ftransl \ -)) - -$(eval $(call gb_Library_set_include,ftransl,\ - -I$(SRCDIR)/dtrans/source/inc \ - $$(INCLUDE) \ -)) - -# vim: set noet sw=4 ts=4: diff --git a/dtrans/Library_sysdtrans.mk b/dtrans/Library_sysdtrans.mk deleted file mode 100644 index 8781e7f2d9bb..000000000000 --- a/dtrans/Library_sysdtrans.mk +++ /dev/null @@ -1,52 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# 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 . -# - -$(eval $(call gb_Library_Library,sysdtrans)) - -$(eval $(call gb_Library_set_componentfile,sysdtrans,dtrans/util/sysdtrans)) - -$(eval $(call gb_Library_use_sdk_api,sysdtrans)) - -$(eval $(call gb_Library_use_libraries,sysdtrans,\ - comphelper \ - cppu \ - cppuhelper \ - sal \ -)) - -$(eval $(call gb_Library_use_system_win32_libs,sysdtrans,\ - advapi32 \ - gdi32 \ - ole32 \ - oleaut32 \ - shell32 \ - uuid \ -)) - -$(eval $(call gb_Library_use_static_libraries,sysdtrans,\ - dtobj \ -)) - -$(eval $(call gb_Library_add_exception_objects,sysdtrans,\ - dtrans/source/win32/clipb/WinClipbImpl \ - dtrans/source/win32/clipb/WinClipboard \ - dtrans/source/win32/clipb/MtaOleClipb \ -)) - -# vim: set noet sw=4 ts=4: diff --git a/dtrans/Module_dtrans.mk b/dtrans/Module_dtrans.mk index 2ddc6f48a925..f583c41e88bb 100644 --- a/dtrans/Module_dtrans.mk +++ b/dtrans/Module_dtrans.mk @@ -23,14 +23,4 @@ $(eval $(call gb_Module_add_targets,dtrans,\ Library_mcnttype \ )) -ifeq ($(OS),WNT) -$(eval $(call gb_Module_add_targets,dtrans,\ - Library_dnd \ - Library_dtrans \ - Library_ftransl \ - Library_sysdtrans \ - StaticLibrary_dtobj \ -)) -endif - # vim: set noet sw=4 ts=4: diff --git a/dtrans/README b/dtrans/README index 23555bce65aa..73aca8b6e496 100644 --- a/dtrans/README +++ b/dtrans/README @@ -1 +1,3 @@ -Clipboard abstraction - data transfer. +Used to be a module for data transfer, but just contained Windows code. +Now it just contains the MimeContentTypeFactory, which probably should move to +vcl too, since it's just used there. diff --git a/dtrans/StaticLibrary_dtobj.mk b/dtrans/StaticLibrary_dtobj.mk deleted file mode 100644 index 04ed1c53249f..000000000000 --- a/dtrans/StaticLibrary_dtobj.mk +++ /dev/null @@ -1,44 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# 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 . -# - -$(eval $(call gb_StaticLibrary_StaticLibrary,dtobj)) - -$(eval $(call gb_StaticLibrary_use_sdk_api,dtobj)) - -$(eval $(call gb_StaticLibrary_add_exception_objects,dtobj,\ - dtrans/source/win32/dtobj/APNDataObject \ - dtrans/source/win32/dtobj/DataFmtTransl \ - dtrans/source/win32/dtobj/DOTransferable \ - dtrans/source/win32/dtobj/DtObjFactory \ - dtrans/source/win32/dtobj/DTransHelper \ - dtrans/source/win32/dtobj/Fetc \ - dtrans/source/win32/dtobj/FetcList \ - dtrans/source/win32/dtobj/FmtFilter \ - dtrans/source/win32/dtobj/TxtCnvtHlp \ - dtrans/source/win32/dtobj/XNotifyingDataObject \ - dtrans/source/win32/dtobj/XTDataObject \ - dtrans/source/win32/misc/ImplHelper \ -)) - -$(eval $(call gb_StaticLibrary_set_include,dtobj,\ - -I$(SRCDIR)/dtrans/source/inc \ - $$(INCLUDE) \ -)) - -# vim: set noet sw=4 ts=4: diff --git a/dtrans/source/win32/clipb/APNDataObject.hxx b/dtrans/source/win32/clipb/APNDataObject.hxx deleted file mode 100644 index c48d14117ef7..000000000000 --- a/dtrans/source/win32/clipb/APNDataObject.hxx +++ /dev/null @@ -1,72 +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_DTRANS_SOURCE_WIN32_CLIPB_APNDATAOBJECT_HXX -#define INCLUDED_DTRANS_SOURCE_WIN32_CLIPB_APNDATAOBJECT_HXX - -/* - an APartment Neutral dataobject wrapper; this wrapper of an IDataObject - pointer can be used from any apartment without RPC_E_WRONG_THREAD - which normally occurs if an apartment tries to use an interface - pointer of another apartment; we use containment to hold the original - DataObject -*/ -class CAPNDataObject : public IDataObject -{ -public: - CAPNDataObject( IDataObjectPtr rIDataObject ); - ~CAPNDataObject( ); - - //IUnknown interface methods - - STDMETHODIMP QueryInterface(REFIID iid, LPVOID* ppvObject); - STDMETHODIMP_( ULONG ) AddRef( ); - STDMETHODIMP_( ULONG ) Release( ); - - // IDataObject interface methods - - STDMETHODIMP GetData( LPFORMATETC pFormatetc, LPSTGMEDIUM pmedium ); - STDMETHODIMP GetDataHere( LPFORMATETC pFormatetc, LPSTGMEDIUM pmedium ); - STDMETHODIMP QueryGetData( LPFORMATETC pFormatetc ); - STDMETHODIMP GetCanonicalFormatEtc( LPFORMATETC pFormatectIn, LPFORMATETC pFormatetcOut ); - STDMETHODIMP SetData( LPFORMATETC pFormatetc, LPSTGMEDIUM pmedium, BOOL fRelease ); - STDMETHODIMP EnumFormatEtc( DWORD dwDirection, IEnumFORMATETC** ppenumFormatetc ); - STDMETHODIMP DAdvise( LPFORMATETC pFormatetc, DWORD advf, LPADVISESINK pAdvSink, DWORD* pdwConnection ); - STDMETHODIMP DUnadvise( DWORD dwConnection ); - STDMETHODIMP EnumDAdvise( LPENUMSTATDATA* ppenumAdvise ); - - operator IDataObject*( ); - -private: - HRESULT MarshalIDataObjectIntoCurrentApartment( IDataObject** ppIDataObj ); - -private: - IDataObjectPtr m_rIDataObjectOrg; - HGLOBAL m_hGlobal; - LONG m_nRefCnt; - -// prevent copy and assignment -private: - CAPNDataObject( const CAPNDataObject& theOther ); - CAPNDataObject& operator=( const CAPNDataObject& theOther ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/dtrans/util/dnd.component b/dtrans/util/dnd.component deleted file mode 100644 index 8a3f5feebbb2..000000000000 --- a/dtrans/util/dnd.component +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * 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 . - --> - -<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@" - xmlns="http://openoffice.org/2010/uno-components"> - <implementation name="com.sun.star.comp.datatransfer.dnd.OleDragSource_V1" - constructor="dtrans_DragSource_get_implementation"> - <service name="com.sun.star.datatransfer.dnd.OleDragSource"/> - </implementation> - <implementation name="com.sun.star.comp.datatransfer.dnd.OleDropTarget_V1" - constructor="dtrans_DropTarget_get_implementation"> - <service name="com.sun.star.datatransfer.dnd.OleDropTarget"/> - </implementation> -</component> diff --git a/dtrans/util/ftransl.component b/dtrans/util/ftransl.component deleted file mode 100644 index e97a897f7437..000000000000 --- a/dtrans/util/ftransl.component +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * 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 . - --> - -<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@" - xmlns="http://openoffice.org/2010/uno-components"> - <implementation name="com.sun.star.datatransfer.DataFormatTranslator" - constructor="dtrans_CDataFormatTranslatorUNO_get_implementation"> - <service name="com.sun.star.datatransfer.DataFormatTranslator"/> - </implementation> -</component> diff --git a/dtrans/util/sysdtrans.component b/dtrans/util/sysdtrans.component deleted file mode 100644 index 263b1417258e..000000000000 --- a/dtrans/util/sysdtrans.component +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * 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 . - --> - -<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@" - xmlns="http://openoffice.org/2010/uno-components"> - <implementation name="com.sun.star.datatransfer.clipboard.ClipboardW32" - constructor="dtrans_CWinClipboard_get_implementation"> - <service name="com.sun.star.datatransfer.clipboard.SystemClipboard"/> - </implementation> -</component> diff --git a/postprocess/Rdb_services.mk b/postprocess/Rdb_services.mk index f8c5047de79f..9c0f8f553362 100644 --- a/postprocess/Rdb_services.mk +++ b/postprocess/Rdb_services.mk @@ -140,15 +140,12 @@ $(eval $(call gb_Rdb_add_components,services,\ ) \ $(if $(filter WNT,$(OS)), \ avmedia/source/win/avmediawin \ - dtrans/source/generic/dtrans \ - dtrans/util/dnd \ - dtrans/util/ftransl \ - dtrans/util/sysdtrans \ fpicker/source/win32/fps \ shell/source/backends/wininetbe/wininetbe1 \ shell/source/win32/simplemail/smplmail \ shell/source/win32/syssh \ vcl/vcl.windows \ + vcl/vclplug_win \ ) \ $(if $(DISABLE_GUI), \ vcl/vcl.headless \ diff --git a/solenv/clang-format/blacklist b/solenv/clang-format/blacklist index 089582dd6dae..57ff18204d53 100644 --- a/solenv/clang-format/blacklist +++ b/solenv/clang-format/blacklist @@ -3885,77 +3885,6 @@ dtrans/source/cnttype/mcnttype.cxx dtrans/source/cnttype/mcnttype.hxx dtrans/source/cnttype/mctfentry.cxx dtrans/source/cnttype/wbench/testcnttype.cxx -dtrans/source/generic/clipboardmanager.cxx -dtrans/source/generic/clipboardmanager.hxx -dtrans/source/generic/dtrans.cxx -dtrans/source/generic/generic_clipboard.cxx -dtrans/source/generic/generic_clipboard.hxx -dtrans/source/inc/DtObjFactory.hxx -dtrans/source/inc/WinClip.hxx -dtrans/source/test/test_dtrans.cxx -dtrans/source/win32/clipb/APNDataObject.hxx -dtrans/source/win32/clipb/MtaOleClipb.cxx -dtrans/source/win32/clipb/MtaOleClipb.hxx -dtrans/source/win32/clipb/WinClipbImpl.cxx -dtrans/source/win32/clipb/WinClipbImpl.hxx -dtrans/source/win32/clipb/WinClipboard.cxx -dtrans/source/win32/clipb/WinClipboard.hxx -dtrans/source/win32/clipb/wcbentry.cxx -dtrans/source/win32/dnd/dndentry.cxx -dtrans/source/win32/dnd/globals.cxx -dtrans/source/win32/dnd/globals.hxx -dtrans/source/win32/dnd/idroptarget.cxx -dtrans/source/win32/dnd/idroptarget.hxx -dtrans/source/win32/dnd/source.cxx -dtrans/source/win32/dnd/source.hxx -dtrans/source/win32/dnd/sourcecontext.cxx -dtrans/source/win32/dnd/sourcecontext.hxx -dtrans/source/win32/dnd/target.cxx -dtrans/source/win32/dnd/target.hxx -dtrans/source/win32/dnd/targetdragcontext.cxx -dtrans/source/win32/dnd/targetdragcontext.hxx -dtrans/source/win32/dnd/targetdropcontext.cxx -dtrans/source/win32/dnd/targetdropcontext.hxx -dtrans/source/win32/dtobj/APNDataObject.cxx -dtrans/source/win32/dtobj/APNDataObject.hxx -dtrans/source/win32/dtobj/DOTransferable.cxx -dtrans/source/win32/dtobj/DOTransferable.hxx -dtrans/source/win32/dtobj/DTransHelper.cxx -dtrans/source/win32/dtobj/DTransHelper.hxx -dtrans/source/win32/dtobj/DataFmtTransl.cxx -dtrans/source/win32/dtobj/DataFmtTransl.hxx -dtrans/source/win32/dtobj/DtObjFactory.cxx -dtrans/source/win32/dtobj/Fetc.cxx -dtrans/source/win32/dtobj/Fetc.hxx -dtrans/source/win32/dtobj/FetcList.cxx -dtrans/source/win32/dtobj/FetcList.hxx -dtrans/source/win32/dtobj/FmtFilter.cxx -dtrans/source/win32/dtobj/FmtFilter.hxx -dtrans/source/win32/dtobj/MimeAttrib.hxx -dtrans/source/win32/dtobj/TxtCnvtHlp.cxx -dtrans/source/win32/dtobj/TxtCnvtHlp.hxx -dtrans/source/win32/dtobj/XNotifyingDataObject.cxx -dtrans/source/win32/dtobj/XNotifyingDataObject.hxx -dtrans/source/win32/dtobj/XTDataObject.cxx -dtrans/source/win32/dtobj/XTDataObject.hxx -dtrans/source/win32/ftransl/ftransl.cxx -dtrans/source/win32/ftransl/ftransl.hxx -dtrans/source/win32/ftransl/ftranslentry.cxx -dtrans/source/win32/misc/ImplHelper.cxx -dtrans/source/win32/misc/ImplHelper.hxx -dtrans/source/win32/workbench/XTDo.cxx -dtrans/source/win32/workbench/XTDo.hxx -dtrans/source/win32/workbench/test_wincb.cxx -dtrans/source/win32/workbench/testmarshal.cxx -dtrans/test/win32/dnd/atlwindow.cxx -dtrans/test/win32/dnd/atlwindow.hxx -dtrans/test/win32/dnd/dndTest.cxx -dtrans/test/win32/dnd/sourcelistener.cxx -dtrans/test/win32/dnd/sourcelistener.hxx -dtrans/test/win32/dnd/targetlistener.cxx -dtrans/test/win32/dnd/targetlistener.hxx -dtrans/test/win32/dnd/transferable.cxx -dtrans/test/win32/dnd/transferable.hxx editeng/inc/editattr.hxx editeng/inc/editdoc.hxx editeng/inc/editeng.hxx @@ -18169,6 +18098,61 @@ vcl/win/app/salinfo.cxx vcl/win/app/salinst.cxx vcl/win/app/salshl.cxx vcl/win/app/saltimer.cxx +vcl/win/dtrans/APNDataObject.cxx +vcl/win/dtrans/APNDataObject.hxx +vcl/win/dtrans/clipboardmanager.cxx +vcl/win/dtrans/clipboardmanager.hxx +vcl/win/dtrans/DataFmtTransl.cxx +vcl/win/dtrans/DataFmtTransl.hxx +vcl/win/dtrans/dndentry.cxx +vcl/win/dtrans/DOTransferable.cxx +vcl/win/dtrans/DOTransferable.hxx +vcl/win/dtrans/DtObjFactory.cxx +vcl/win/dtrans/DtObjFactory.hxx +vcl/win/dtrans/dtrans.cxx +vcl/win/dtrans/DTransHelper.cxx +vcl/win/dtrans/DTransHelper.hxx +vcl/win/dtrans/Fetc.cxx +vcl/win/dtrans/Fetc.hxx +vcl/win/dtrans/FetcList.cxx +vcl/win/dtrans/FetcList.hxx +vcl/win/dtrans/FmtFilter.cxx +vcl/win/dtrans/FmtFilter.hxx +vcl/win/dtrans/ftransl.cxx +vcl/win/dtrans/ftranslentry.cxx +vcl/win/dtrans/ftransl.hxx +vcl/win/dtrans/generic_clipboard.cxx +vcl/win/dtrans/generic_clipboard.hxx +vcl/win/dtrans/globals.cxx +vcl/win/dtrans/globals.hxx +vcl/win/dtrans/idroptarget.cxx +vcl/win/dtrans/idroptarget.hxx +vcl/win/dtrans/ImplHelper.cxx +vcl/win/dtrans/ImplHelper.hxx +vcl/win/dtrans/MimeAttrib.hxx +vcl/win/dtrans/MtaOleClipb.cxx +vcl/win/dtrans/MtaOleClipb.hxx +vcl/win/dtrans/sourcecontext.cxx +vcl/win/dtrans/sourcecontext.hxx +vcl/win/dtrans/source.cxx +vcl/win/dtrans/source.hxx +vcl/win/dtrans/target.cxx +vcl/win/dtrans/targetdragcontext.cxx +vcl/win/dtrans/targetdragcontext.hxx +vcl/win/dtrans/targetdropcontext.cxx +vcl/win/dtrans/targetdropcontext.hxx +vcl/win/dtrans/target.hxx +vcl/win/dtrans/TxtCnvtHlp.cxx +vcl/win/dtrans/TxtCnvtHlp.hxx +vcl/win/dtrans/wcbentry.cxx +vcl/win/dtrans/WinClipbImpl.cxx +vcl/win/dtrans/WinClipbImpl.hxx +vcl/win/dtrans/WinClipboard.cxx +vcl/win/dtrans/WinClipboard.hxx +vcl/win/dtrans/XNotifyingDataObject.cxx +vcl/win/dtrans/XNotifyingDataObject.hxx +vcl/win/dtrans/XTDataObject.cxx +vcl/win/dtrans/XTDataObject.hxx vcl/win/gdi/DWriteTextRenderer.cxx vcl/win/gdi/gdiimpl.cxx vcl/win/gdi/gdiimpl.hxx @@ -18190,6 +18174,7 @@ vcl/workben/bmpfuzzer.cxx vcl/workben/cgmfuzzer.cxx vcl/workben/commonfuzzer.hxx vcl/workben/docxfuzzer.cxx +vcl/workben/dtrans/test_dtrans.cxx vcl/workben/dxffuzzer.cxx vcl/workben/epsfuzzer.cxx vcl/workben/fftester.cxx @@ -18243,6 +18228,19 @@ vcl/workben/svptest.cxx vcl/workben/tgafuzzer.cxx vcl/workben/tiffuzzer.cxx vcl/workben/vcldemo.cxx +vcl/workben/win/dnd/atlwindow.cxx +vcl/workben/win/dnd/atlwindow.hxx +vcl/workben/win/dnd/dndTest.cxx +vcl/workben/win/dnd/sourcelistener.cxx +vcl/workben/win/dnd/sourcelistener.hxx +vcl/workben/win/dnd/targetlistener.cxx +vcl/workben/win/dnd/targetlistener.hxx +vcl/workben/win/dnd/transferable.cxx +vcl/workben/win/dnd/transferable.hxx +vcl/workben/win/dtrans/testmarshal.cxx +vcl/workben/win/dtrans/test_wincb.cxx +vcl/workben/win/dtrans/XTDo.cxx +vcl/workben/win/dtrans/XTDo.hxx vcl/workben/wmffuzzer.cxx vcl/workben/ww2fuzzer.cxx vcl/workben/ww6fuzzer.cxx diff --git a/starmath/CppunitTest_starmath_qa_cppunit.mk b/starmath/CppunitTest_starmath_qa_cppunit.mk index ee436749f95a..41e65c499010 100644 --- a/starmath/CppunitTest_starmath_qa_cppunit.mk +++ b/starmath/CppunitTest_starmath_qa_cppunit.mk @@ -76,15 +76,9 @@ $(eval $(call gb_CppunitTest_use_components,starmath_qa_cppunit,\ ucb/source/core/ucb1 \ ucb/source/ucp/file/ucpfile1 \ unotools/util/utl \ + vcl/vcl.common \ )) -ifeq ($(strip $(OS)),WNT) -$(eval $(call gb_CppunitTest_use_components,starmath_qa_cppunit,\ - dtrans/util/ftransl \ - dtrans/util/sysdtrans \ -)) -endif - $(eval $(call gb_CppunitTest_use_configuration,starmath_qa_cppunit)) # vim: set noet sw=4 ts=4: diff --git a/vcl/Library_vclplug_win.mk b/vcl/Library_vclplug_win.mk index 2b05aae476b3..a80b5abf6b5a 100644 --- a/vcl/Library_vclplug_win.mk +++ b/vcl/Library_vclplug_win.mk @@ -19,6 +19,8 @@ $(eval $(call gb_Library_Library,vclplug_win)) +$(eval $(call gb_Library_set_componentfile,vclplug_win,vcl/vclplug_win)) + $(eval $(call gb_Library_set_include,vclplug_win,\ $$(INCLUDE) \ -I$(SRCDIR)/vcl/inc \ @@ -43,6 +45,7 @@ $(eval $(call gb_Library_use_libraries,vclplug_win,\ basegfx \ comphelper \ cppu \ + cppuhelper \ i18nlangtag \ i18nutil \ sal \ @@ -66,32 +69,60 @@ $(eval $(call gb_Library_add_exception_objects,vclplug_win,\ vcl/win/app/salinst \ vcl/win/app/salshl \ vcl/win/app/saltimer \ + vcl/win/dtrans/APNDataObject \ + vcl/win/dtrans/clipboardmanager \ + vcl/win/dtrans/DataFmtTransl \ + vcl/win/dtrans/DOTransferable \ + vcl/win/dtrans/DtObjFactory \ + vcl/win/dtrans/DTransHelper \ + vcl/win/dtrans/Fetc \ + vcl/win/dtrans/FetcList \ + vcl/win/dtrans/FmtFilter \ + vcl/win/dtrans/ftransl \ + vcl/win/dtrans/generic_clipboard \ + vcl/win/dtrans/globals \ + vcl/win/dtrans/idroptarget \ + vcl/win/dtrans/ImplHelper \ + vcl/win/dtrans/MtaOleClipb \ + vcl/win/dtrans/source \ + vcl/win/dtrans/sourcecontext \ + vcl/win/dtrans/target \ + vcl/win/dtrans/targetdragcontext \ + vcl/win/dtrans/targetdropcontext \ + vcl/win/dtrans/TxtCnvtHlp \ + vcl/win/dtrans/WinClipbImpl \ + vcl/win/dtrans/WinClipboard \ + vcl/win/dtrans/XNotifyingDataObject \ + vcl/win/dtrans/XTDataObject \ vcl/win/gdi/gdiimpl \ vcl/win/gdi/salbmp \ + vcl/win/gdi/salfont \ vcl/win/gdi/salgdi \ vcl/win/gdi/salgdi2 \ - vcl/win/gdi/salfont \ vcl/win/gdi/salgdi_gdiplus \ vcl/win/gdi/salnativewidgets-luna \ vcl/win/gdi/salprn \ vcl/win/gdi/salvd \ vcl/win/gdi/winlayout \ vcl/win/gdi/DWriteTextRenderer \ - vcl/win/window/salframe \ vcl/win/window/keynames \ + vcl/win/window/salframe \ vcl/win/window/salmenu \ vcl/win/window/salobj \ )) $(eval $(call gb_Library_use_system_win32_libs,vclplug_win,\ + advapi32 \ d2d1 \ dwrite \ gdi32 \ gdiplus \ imm32 \ ole32 \ + oleaut32 \ shell32 \ shlwapi \ + uuid \ version \ winspool \ )) diff --git a/dtrans/source/generic/dtrans.component b/vcl/vclplug_win.component similarity index 56% rename from dtrans/source/generic/dtrans.component rename to vcl/vclplug_win.component index 1bfb643be4d0..907694991895 100644 --- a/dtrans/source/generic/dtrans.component +++ b/vcl/vclplug_win.component @@ -15,16 +15,32 @@ * 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 . - --> +--> <component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@" xmlns="http://openoffice.org/2010/uno-components"> + <implementation name="com.sun.star.datatransfer.DataFormatTranslator" + constructor="dtrans_CDataFormatTranslatorUNO_get_implementation"> + <service name="com.sun.star.datatransfer.DataFormatTranslator"/> + </implementation> + <implementation name="com.sun.star.comp.datatransfer.dnd.OleDragSource_V1" + constructor="dtrans_DragSource_get_implementation"> + <service name="com.sun.star.datatransfer.dnd.OleDragSource"/> + </implementation> + <implementation name="com.sun.star.comp.datatransfer.dnd.OleDropTarget_V1" + constructor="dtrans_DropTarget_get_implementation"> + <service name="com.sun.star.datatransfer.dnd.OleDropTarget"/> + </implementation> <implementation name="com.sun.star.comp.datatransfer.ClipboardManager" - constructor="dtrans_ClipboardManager_get_implementation"> + constructor="dtrans_ClipboardManager_get_implementation"> <service name="com.sun.star.datatransfer.clipboard.ClipboardManager"/> </implementation> <implementation name="com.sun.star.comp.datatransfer.clipboard.GenericClipboard" - constructor="dtrans_GenericClipboard_get_implementation"> + constructor="dtrans_GenericClipboard_get_implementation"> <service name="com.sun.star.datatransfer.clipboard.GenericClipboard"/> </implementation> + <implementation name="com.sun.star.datatransfer.clipboard.ClipboardW32" + constructor="dtrans_CWinClipboard_get_implementation"> + <service name="com.sun.star.datatransfer.clipboard.SystemClipboard"/> + </implementation> </component> diff --git a/dtrans/source/win32/dtobj/APNDataObject.cxx b/vcl/win/dtrans/APNDataObject.cxx similarity index 100% rename from dtrans/source/win32/dtobj/APNDataObject.cxx rename to vcl/win/dtrans/APNDataObject.cxx diff --git a/dtrans/source/win32/dtobj/APNDataObject.hxx b/vcl/win/dtrans/APNDataObject.hxx similarity index 97% rename from dtrans/source/win32/dtobj/APNDataObject.hxx rename to vcl/win/dtrans/APNDataObject.hxx index 2c1d9718ec2f..df3ac559cae5 100644 --- a/dtrans/source/win32/dtobj/APNDataObject.hxx +++ b/vcl/win/dtrans/APNDataObject.hxx @@ -20,6 +20,11 @@ #ifndef INCLUDED_DTRANS_SOURCE_WIN32_DTOBJ_APNDATAOBJECT_HXX #define INCLUDED_DTRANS_SOURCE_WIN32_DTOBJ_APNDATAOBJECT_HXX +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif +#include <objidl.h> + #include <systools/win32/comtools.hxx> /* diff --git a/dtrans/source/win32/dtobj/DOTransferable.cxx b/vcl/win/dtrans/DOTransferable.cxx similarity index 99% rename from dtrans/source/win32/dtobj/DOTransferable.cxx rename to vcl/win/dtrans/DOTransferable.cxx index 230a7fbfed8e..24fc847cfa14 100644 --- a/dtrans/source/win32/dtobj/DOTransferable.cxx +++ b/vcl/win/dtrans/DOTransferable.cxx @@ -22,8 +22,8 @@ #include <osl/diagnose.h> #include "DOTransferable.hxx" -#include "../misc/ImplHelper.hxx" -#include <WinClip.hxx> +#include "ImplHelper.hxx" +#include "WinClip.hxx" #include "DTransHelper.hxx" #include "TxtCnvtHlp.hxx" #include "MimeAttrib.hxx" diff --git a/dtrans/source/win32/dtobj/DOTransferable.hxx b/vcl/win/dtrans/DOTransferable.hxx similarity index 100% rename from dtrans/source/win32/dtobj/DOTransferable.hxx rename to vcl/win/dtrans/DOTransferable.hxx diff --git a/dtrans/source/win32/dtobj/DTransHelper.cxx b/vcl/win/dtrans/DTransHelper.cxx similarity index 100% rename from dtrans/source/win32/dtobj/DTransHelper.cxx rename to vcl/win/dtrans/DTransHelper.cxx diff --git a/dtrans/source/win32/dtobj/DTransHelper.hxx b/vcl/win/dtrans/DTransHelper.hxx similarity index 99% rename from dtrans/source/win32/dtobj/DTransHelper.hxx rename to vcl/win/dtrans/DTransHelper.hxx index e003c2a70629..684becfafa9a 100644 --- a/dtrans/source/win32/dtobj/DTransHelper.hxx +++ b/vcl/win/dtrans/DTransHelper.hxx @@ -25,7 +25,7 @@ #endif #include <windows.h> #include <objidl.h> -#include <WinClip.hxx> +#include "WinClip.hxx" #define AUTO_INIT TRUE diff --git a/dtrans/source/win32/dtobj/DataFmtTransl.cxx b/vcl/win/dtrans/DataFmtTransl.cxx similarity index 99% rename from dtrans/source/win32/dtobj/DataFmtTransl.cxx rename to vcl/win/dtrans/DataFmtTransl.cxx index b8513c6e75d4..837acac6056f 100644 --- a/dtrans/source/win32/dtobj/DataFmtTransl.cxx +++ b/vcl/win/dtrans/DataFmtTransl.cxx @@ -21,8 +21,8 @@ #include <rtl/string.hxx> #include <osl/diagnose.h> #include <rtl/tencinfo.h> -#include "../misc/ImplHelper.hxx" -#include <WinClip.hxx> +#include "ImplHelper.hxx" +#include "WinClip.hxx" #include "MimeAttrib.hxx" #include "DTransHelper.hxx" #include <rtl/string.h> diff --git a/dtrans/source/win32/dtobj/DataFmtTransl.hxx b/vcl/win/dtrans/DataFmtTransl.hxx similarity index 100% rename from dtrans/source/win32/dtobj/DataFmtTransl.hxx rename to vcl/win/dtrans/DataFmtTransl.hxx diff --git a/dtrans/source/win32/dtobj/DtObjFactory.cxx b/vcl/win/dtrans/DtObjFactory.cxx similarity index 97% rename from dtrans/source/win32/dtobj/DtObjFactory.cxx rename to vcl/win/dtrans/DtObjFactory.cxx index 29f630bf406b..5a17d8b4c2e4 100644 --- a/dtrans/source/win32/dtobj/DtObjFactory.cxx +++ b/vcl/win/dtrans/DtObjFactory.cxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include "../../inc/DtObjFactory.hxx" - +#include "DtObjFactory.hxx" #include "XTDataObject.hxx" using namespace com::sun::star::uno; diff --git a/dtrans/source/inc/DtObjFactory.hxx b/vcl/win/dtrans/DtObjFactory.hxx similarity index 100% rename from dtrans/source/inc/DtObjFactory.hxx rename to vcl/win/dtrans/DtObjFactory.hxx diff --git a/dtrans/source/win32/dtobj/Fetc.cxx b/vcl/win/dtrans/Fetc.cxx similarity index 99% rename from dtrans/source/win32/dtobj/Fetc.cxx rename to vcl/win/dtrans/Fetc.cxx index 048b9228de5d..9bcb2f609ff6 100644 --- a/dtrans/source/win32/dtobj/Fetc.cxx +++ b/vcl/win/dtrans/Fetc.cxx @@ -19,7 +19,7 @@ #include <osl/diagnose.h> #include "Fetc.hxx" -#include "../misc/ImplHelper.hxx" +#include "ImplHelper.hxx" CFormatEtc::CFormatEtc( ) { diff --git a/dtrans/source/win32/dtobj/Fetc.hxx b/vcl/win/dtrans/Fetc.hxx similarity index 100% rename from dtrans/source/win32/dtobj/Fetc.hxx rename to vcl/win/dtrans/Fetc.hxx diff --git a/dtrans/source/win32/dtobj/FetcList.cxx b/vcl/win/dtrans/FetcList.cxx similarity index 99% rename from dtrans/source/win32/dtobj/FetcList.cxx rename to vcl/win/dtrans/FetcList.cxx index 0a262b0677fb..d8fc6a52548a 100644 --- a/dtrans/source/win32/dtobj/FetcList.cxx +++ b/vcl/win/dtrans/FetcList.cxx @@ -25,8 +25,8 @@ #include <com/sun/star/datatransfer/XMimeContentType.hpp> #include "DataFmtTransl.hxx" -#include "../misc/ImplHelper.hxx" -#include <WinClip.hxx> +#include "ImplHelper.hxx" +#include "WinClip.hxx" #include <algorithm> diff --git a/dtrans/source/win32/dtobj/FetcList.hxx b/vcl/win/dtrans/FetcList.hxx similarity index 100% rename from dtrans/source/win32/dtobj/FetcList.hxx rename to vcl/win/dtrans/FetcList.hxx diff --git a/dtrans/source/win32/dtobj/FmtFilter.cxx b/vcl/win/dtrans/FmtFilter.cxx similarity index 100% rename from dtrans/source/win32/dtobj/FmtFilter.cxx rename to vcl/win/dtrans/FmtFilter.cxx diff --git a/dtrans/source/win32/dtobj/FmtFilter.hxx b/vcl/win/dtrans/FmtFilter.hxx similarity index 100% rename from dtrans/source/win32/dtobj/FmtFilter.hxx rename to vcl/win/dtrans/FmtFilter.hxx diff --git a/dtrans/source/win32/misc/ImplHelper.cxx b/vcl/win/dtrans/ImplHelper.cxx similarity index 100% rename from dtrans/source/win32/misc/ImplHelper.cxx rename to vcl/win/dtrans/ImplHelper.cxx diff --git a/dtrans/source/win32/misc/ImplHelper.hxx b/vcl/win/dtrans/ImplHelper.hxx similarity index 100% rename from dtrans/source/win32/misc/ImplHelper.hxx rename to vcl/win/dtrans/ImplHelper.hxx diff --git a/dtrans/source/win32/dtobj/MimeAttrib.hxx b/vcl/win/dtrans/MimeAttrib.hxx similarity index 100% rename from dtrans/source/win32/dtobj/MimeAttrib.hxx rename to vcl/win/dtrans/MimeAttrib.hxx diff --git a/dtrans/source/win32/clipb/MtaOleClipb.cxx b/vcl/win/dtrans/MtaOleClipb.cxx similarity index 98% rename from dtrans/source/win32/clipb/MtaOleClipb.cxx rename to vcl/win/dtrans/MtaOleClipb.cxx index a3e28806deed..eef43afa735c 100644 --- a/dtrans/source/win32/clipb/MtaOleClipb.cxx +++ b/vcl/win/dtrans/MtaOleClipb.cxx @@ -34,6 +34,10 @@ #include <sal/log.hxx> #include "MtaOleClipb.hxx" + +#include <svsys.h> +#include <win/saldata.hxx> + #include <osl/thread.h> #include <wchar.h> @@ -48,8 +52,7 @@ using osl::ClearableMutexGuard; namespace /* private */ { - wchar_t CLIPSRV_DLL_NAME[] = L"sysdtrans.dll"; - wchar_t g_szWndClsName[] = L"MtaOleReqWnd###"; + const wchar_t g_szWndClsName[] = L"MtaOleReqWnd###"; // messages constants @@ -607,8 +610,8 @@ void CMtaOleClipboard::createMtaOleReqWnd( ) { WNDCLASSEXW wcex; - HINSTANCE hInst = GetModuleHandleW( CLIPSRV_DLL_NAME ); - OSL_ENSURE( nullptr != hInst, "The name of the clipboard service dll must have changed" ); + SalData* pSalData = GetSalData(); + OSL_ASSERT(nullptr != pSalData->mhInst); ZeroMemory( &wcex, sizeof(wcex) ); @@ -617,7 +620,7 @@ void CMtaOleClipboard::createMtaOleReqWnd( ) wcex.lpfnWndProc = CMtaOleClipboard::mtaOleReqWndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; - wcex.hInstance = hInst; + wcex.hInstance = pSalData->mhInst; wcex.hIcon = nullptr; wcex.hCursor = nullptr; wcex.hbrBackground = nullptr; @@ -629,7 +632,7 @@ void CMtaOleClipboard::createMtaOleReqWnd( ) if ( 0 != m_MtaOleReqWndClassAtom ) m_hwndMtaOleReqWnd = CreateWindowW( - g_szWndClsName, nullptr, 0, 0, 0, 0, 0, nullptr, nullptr, hInst, nullptr ); + g_szWndClsName, nullptr, 0, 0, 0, 0, 0, nullptr, nullptr, pSalData->mhInst, nullptr ); } unsigned int CMtaOleClipboard::run( ) diff --git a/dtrans/source/win32/clipb/MtaOleClipb.hxx b/vcl/win/dtrans/MtaOleClipb.hxx similarity index 100% rename from dtrans/source/win32/clipb/MtaOleClipb.hxx rename to vcl/win/dtrans/MtaOleClipb.hxx diff --git a/dtrans/source/win32/dtobj/TxtCnvtHlp.cxx b/vcl/win/dtrans/TxtCnvtHlp.cxx similarity index 99% rename from dtrans/source/win32/dtobj/TxtCnvtHlp.cxx rename to vcl/win/dtrans/TxtCnvtHlp.cxx index 1ea9f4c9f549..a0c09a1badf5 100644 --- a/dtrans/source/win32/dtobj/TxtCnvtHlp.cxx +++ b/vcl/win/dtrans/TxtCnvtHlp.cxx @@ -18,9 +18,10 @@ */ #include <osl/diagnose.h> + #include "TxtCnvtHlp.hxx" #include "DTransHelper.hxx" -#include "../misc/ImplHelper.hxx" +#include "ImplHelper.hxx" using namespace ::com::sun::star::datatransfer; using namespace ::com::sun::star::uno; diff --git a/dtrans/source/win32/dtobj/TxtCnvtHlp.hxx b/vcl/win/dtrans/TxtCnvtHlp.hxx similarity index 100% rename from dtrans/source/win32/dtobj/TxtCnvtHlp.hxx rename to vcl/win/dtrans/TxtCnvtHlp.hxx diff --git a/dtrans/source/inc/WinClip.hxx b/vcl/win/dtrans/WinClip.hxx similarity index 100% rename from dtrans/source/inc/WinClip.hxx rename to vcl/win/dtrans/WinClip.hxx diff --git a/dtrans/source/win32/clipb/WinClipbImpl.cxx b/vcl/win/dtrans/WinClipbImpl.cxx similarity index 97% rename from dtrans/source/win32/clipb/WinClipbImpl.cxx rename to vcl/win/dtrans/WinClipbImpl.cxx index 8d59be7ca430..0a3e5808e437 100644 --- a/dtrans/source/win32/clipb/WinClipbImpl.cxx +++ b/vcl/win/dtrans/WinClipbImpl.cxx @@ -21,12 +21,12 @@ #include "WinClipbImpl.hxx" #include <systools/win32/comtools.hxx> -#include "../../inc/DtObjFactory.hxx" -#include "../dtobj/APNDataObject.hxx" -#include "../dtobj/DOTransferable.hxx" +#include "DtObjFactory.hxx" +#include "APNDataObject.hxx" +#include "DOTransferable.hxx" #include "WinClipboard.hxx" #include <com/sun/star/datatransfer/clipboard/RenderingCapabilities.hpp> -#include "../dtobj/XNotifyingDataObject.hxx" +#include "XNotifyingDataObject.hxx" #if !defined WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN diff --git a/dtrans/source/win32/clipb/WinClipbImpl.hxx b/vcl/win/dtrans/WinClipbImpl.hxx similarity index 100% rename from dtrans/source/win32/clipb/WinClipbImpl.hxx rename to vcl/win/dtrans/WinClipbImpl.hxx diff --git a/dtrans/source/win32/clipb/WinClipboard.cxx b/vcl/win/dtrans/WinClipboard.cxx similarity index 100% rename from dtrans/source/win32/clipb/WinClipboard.cxx rename to vcl/win/dtrans/WinClipboard.cxx diff --git a/dtrans/source/win32/clipb/WinClipboard.hxx b/vcl/win/dtrans/WinClipboard.hxx similarity index 100% rename from dtrans/source/win32/clipb/WinClipboard.hxx rename to vcl/win/dtrans/WinClipboard.hxx diff --git a/dtrans/source/win32/dtobj/XNotifyingDataObject.cxx b/vcl/win/dtrans/XNotifyingDataObject.cxx similarity index 98% rename from dtrans/source/win32/dtobj/XNotifyingDataObject.cxx rename to vcl/win/dtrans/XNotifyingDataObject.cxx index 46f563f9497c..b12ea31271d2 100644 --- a/dtrans/source/win32/dtobj/XNotifyingDataObject.cxx +++ b/vcl/win/dtrans/XNotifyingDataObject.cxx @@ -19,8 +19,8 @@ #include <osl/diagnose.h> #include "XNotifyingDataObject.hxx" -#include "../clipb/WinClipbImpl.hxx" -#include "../clipb/WinClipboard.hxx" +#include "WinClipbImpl.hxx" +#include "WinClipboard.hxx" using namespace com::sun::star::datatransfer; using namespace com::sun::star::datatransfer::clipboard; diff --git a/dtrans/source/win32/dtobj/XNotifyingDataObject.hxx b/vcl/win/dtrans/XNotifyingDataObject.hxx similarity index 100% rename from dtrans/source/win32/dtobj/XNotifyingDataObject.hxx rename to vcl/win/dtrans/XNotifyingDataObject.hxx diff --git a/dtrans/source/win32/dtobj/XTDataObject.cxx b/vcl/win/dtrans/XTDataObject.cxx similarity index 99% rename from dtrans/source/win32/dtobj/XTDataObject.cxx rename to vcl/win/dtrans/XTDataObject.cxx index 6df5c9d384c1..80c19e5de93e 100644 --- a/dtrans/source/win32/dtobj/XTDataObject.cxx +++ b/vcl/win/dtrans/XTDataObject.cxx @@ -22,7 +22,7 @@ #include "XTDataObject.hxx" #include <com/sun/star/datatransfer/DataFlavor.hpp> -#include "../misc/ImplHelper.hxx" +#include "ImplHelper.hxx" #include "DTransHelper.hxx" #include "TxtCnvtHlp.hxx" #include <com/sun/star/datatransfer/UnsupportedFlavorException.hpp> diff --git a/dtrans/source/win32/dtobj/XTDataObject.hxx b/vcl/win/dtrans/XTDataObject.hxx similarity index 100% rename from dtrans/source/win32/dtobj/XTDataObject.hxx rename to vcl/win/dtrans/XTDataObject.hxx diff --git a/dtrans/source/generic/clipboardmanager.cxx b/vcl/win/dtrans/clipboardmanager.cxx similarity index 100% rename from dtrans/source/generic/clipboardmanager.cxx rename to vcl/win/dtrans/clipboardmanager.cxx diff --git a/dtrans/source/generic/clipboardmanager.hxx b/vcl/win/dtrans/clipboardmanager.hxx similarity index 100% rename from dtrans/source/generic/clipboardmanager.hxx rename to vcl/win/dtrans/clipboardmanager.hxx diff --git a/dtrans/source/win32/ftransl/ftransl.cxx b/vcl/win/dtrans/ftransl.cxx similarity index 99% rename from dtrans/source/win32/ftransl/ftransl.cxx rename to vcl/win/dtrans/ftransl.cxx index f2c5d6487e48..e2a6581abfec 100644 --- a/dtrans/source/win32/ftransl/ftransl.cxx +++ b/vcl/win/dtrans/ftransl.cxx @@ -27,7 +27,7 @@ #include <com/sun/star/uno/XComponentContext.hpp> #include <cppuhelper/supportsservice.hxx> #include <rtl/ref.hxx> -#include "../misc/ImplHelper.hxx" +#include "ImplHelper.hxx" #include <shlobj.h> diff --git a/dtrans/source/win32/ftransl/ftransl.hxx b/vcl/win/dtrans/ftransl.hxx similarity index 99% rename from dtrans/source/win32/ftransl/ftransl.hxx rename to vcl/win/dtrans/ftransl.hxx index 71d8038d2b23..c93cd8096d5d 100644 --- a/dtrans/source/win32/ftransl/ftransl.hxx +++ b/vcl/win/dtrans/ftransl.hxx @@ -27,7 +27,7 @@ #include <com/sun/star/datatransfer/XDataFormatTranslator.hpp> #include <com/sun/star/datatransfer/XMimeContentTypeFactory.hpp> #include <com/sun/star/uno/XComponentContext.hpp> -#include <WinClip.hxx> +#include "WinClip.hxx" #include <vector> diff --git a/dtrans/source/generic/generic_clipboard.cxx b/vcl/win/dtrans/generic_clipboard.cxx similarity index 100% rename from dtrans/source/generic/generic_clipboard.cxx rename to vcl/win/dtrans/generic_clipboard.cxx diff --git a/dtrans/source/generic/generic_clipboard.hxx b/vcl/win/dtrans/generic_clipboard.hxx similarity index 100% rename from dtrans/source/generic/generic_clipboard.hxx rename to vcl/win/dtrans/generic_clipboard.hxx diff --git a/dtrans/source/win32/dnd/globals.cxx b/vcl/win/dtrans/globals.cxx similarity index 100% rename from dtrans/source/win32/dnd/globals.cxx rename to vcl/win/dtrans/globals.cxx diff --git a/dtrans/source/win32/dnd/globals.hxx b/vcl/win/dtrans/globals.hxx similarity index 100% rename from dtrans/source/win32/dnd/globals.hxx rename to vcl/win/dtrans/globals.hxx diff --git a/dtrans/source/win32/dnd/idroptarget.cxx b/vcl/win/dtrans/idroptarget.cxx similarity index 100% rename from dtrans/source/win32/dnd/idroptarget.cxx rename to vcl/win/dtrans/idroptarget.cxx diff --git a/dtrans/source/win32/dnd/idroptarget.hxx b/vcl/win/dtrans/idroptarget.hxx similarity index 100% rename from dtrans/source/win32/dnd/idroptarget.hxx rename to vcl/win/dtrans/idroptarget.hxx diff --git a/dtrans/source/win32/dnd/source.cxx b/vcl/win/dtrans/source.cxx similarity index 99% rename from dtrans/source/win32/dnd/source.cxx rename to vcl/win/dtrans/source.cxx index 8df8325191f4..93d94e94e4c7 100644 --- a/dtrans/source/win32/dnd/source.cxx +++ b/vcl/win/dtrans/source.cxx @@ -30,7 +30,8 @@ #include "source.hxx" #include "globals.hxx" #include "sourcecontext.hxx" -#include "../../inc/DtObjFactory.hxx" +#include "DtObjFactory.hxx" + #include <rtl/ustring.h> #include <osl/thread.h> #include <winuser.h> diff --git a/dtrans/source/win32/dnd/source.hxx b/vcl/win/dtrans/source.hxx similarity index 100% rename from dtrans/source/win32/dnd/source.hxx rename to vcl/win/dtrans/source.hxx diff --git a/dtrans/source/win32/dnd/sourcecontext.cxx b/vcl/win/dtrans/sourcecontext.cxx similarity index 100% rename from dtrans/source/win32/dnd/sourcecontext.cxx rename to vcl/win/dtrans/sourcecontext.cxx diff --git a/dtrans/source/win32/dnd/sourcecontext.hxx b/vcl/win/dtrans/sourcecontext.hxx similarity index 100% rename from dtrans/source/win32/dnd/sourcecontext.hxx rename to vcl/win/dtrans/sourcecontext.hxx diff --git a/dtrans/source/win32/dnd/target.cxx b/vcl/win/dtrans/target.cxx similarity index 99% rename from dtrans/source/win32/dnd/target.cxx rename to vcl/win/dtrans/target.cxx index 2bbd34027ef6..0aa04ea1f7ab 100644 --- a/dtrans/source/win32/dnd/target.cxx +++ b/vcl/win/dtrans/target.cxx @@ -31,7 +31,7 @@ #include <rtl/ustring.h> #include <osl/thread.h> -#include "../dtobj/DOTransferable.hxx" +#include "DOTransferable.hxx" using namespace cppu; using namespace osl; diff --git a/dtrans/source/win32/dnd/target.hxx b/vcl/win/dtrans/target.hxx similarity index 100% rename from dtrans/source/win32/dnd/target.hxx rename to vcl/win/dtrans/target.hxx diff --git a/dtrans/source/win32/dnd/targetdragcontext.cxx b/vcl/win/dtrans/targetdragcontext.cxx similarity index 100% rename from dtrans/source/win32/dnd/targetdragcontext.cxx rename to vcl/win/dtrans/targetdragcontext.cxx diff --git a/dtrans/source/win32/dnd/targetdragcontext.hxx b/vcl/win/dtrans/targetdragcontext.hxx similarity index 100% rename from dtrans/source/win32/dnd/targetdragcontext.hxx rename to vcl/win/dtrans/targetdragcontext.hxx diff --git a/dtrans/source/win32/dnd/targetdropcontext.cxx b/vcl/win/dtrans/targetdropcontext.cxx similarity index 100% rename from dtrans/source/win32/dnd/targetdropcontext.cxx rename to vcl/win/dtrans/targetdropcontext.cxx diff --git a/dtrans/source/win32/dnd/targetdropcontext.hxx b/vcl/win/dtrans/targetdropcontext.hxx similarity index 100% rename from dtrans/source/win32/dnd/targetdropcontext.hxx rename to vcl/win/dtrans/targetdropcontext.hxx diff --git a/dtrans/source/test/makefile.mk b/vcl/workben/dtrans/makefile.mk similarity index 100% rename from dtrans/source/test/makefile.mk rename to vcl/workben/dtrans/makefile.mk diff --git a/dtrans/source/test/test_dtrans.cxx b/vcl/workben/dtrans/test_dtrans.cxx similarity index 100% rename from dtrans/source/test/test_dtrans.cxx rename to vcl/workben/dtrans/test_dtrans.cxx diff --git a/dtrans/test/win32/dnd/atlwindow.cxx b/vcl/workben/win/dnd/atlwindow.cxx similarity index 100% rename from dtrans/test/win32/dnd/atlwindow.cxx rename to vcl/workben/win/dnd/atlwindow.cxx diff --git a/dtrans/test/win32/dnd/atlwindow.hxx b/vcl/workben/win/dnd/atlwindow.hxx similarity index 100% rename from dtrans/test/win32/dnd/atlwindow.hxx rename to vcl/workben/win/dnd/atlwindow.hxx diff --git a/dtrans/test/win32/dnd/dndTest.cxx b/vcl/workben/win/dnd/dndTest.cxx similarity index 100% rename from dtrans/test/win32/dnd/dndTest.cxx rename to vcl/workben/win/dnd/dndTest.cxx diff --git a/dtrans/test/win32/dnd/makefile.mk b/vcl/workben/win/dnd/makefile.mk similarity index 100% rename from dtrans/test/win32/dnd/makefile.mk rename to vcl/workben/win/dnd/makefile.mk diff --git a/dtrans/test/win32/dnd/sourcelistener.cxx b/vcl/workben/win/dnd/sourcelistener.cxx similarity index 100% rename from dtrans/test/win32/dnd/sourcelistener.cxx rename to vcl/workben/win/dnd/sourcelistener.cxx diff --git a/dtrans/test/win32/dnd/sourcelistener.hxx b/vcl/workben/win/dnd/sourcelistener.hxx similarity index 100% rename from dtrans/test/win32/dnd/sourcelistener.hxx rename to vcl/workben/win/dnd/sourcelistener.hxx diff --git a/dtrans/test/win32/dnd/targetlistener.cxx b/vcl/workben/win/dnd/targetlistener.cxx similarity index 100% rename from dtrans/test/win32/dnd/targetlistener.cxx rename to vcl/workben/win/dnd/targetlistener.cxx diff --git a/dtrans/test/win32/dnd/targetlistener.hxx b/vcl/workben/win/dnd/targetlistener.hxx similarity index 100% rename from dtrans/test/win32/dnd/targetlistener.hxx rename to vcl/workben/win/dnd/targetlistener.hxx diff --git a/dtrans/test/win32/dnd/transferable.cxx b/vcl/workben/win/dnd/transferable.cxx similarity index 100% rename from dtrans/test/win32/dnd/transferable.cxx rename to vcl/workben/win/dnd/transferable.cxx diff --git a/dtrans/test/win32/dnd/transferable.hxx b/vcl/workben/win/dnd/transferable.hxx similarity index 100% rename from dtrans/test/win32/dnd/transferable.hxx rename to vcl/workben/win/dnd/transferable.hxx diff --git a/dtrans/source/win32/workbench/XTDo.cxx b/vcl/workben/win/dtrans/XTDo.cxx similarity index 100% rename from dtrans/source/win32/workbench/XTDo.cxx rename to vcl/workben/win/dtrans/XTDo.cxx diff --git a/dtrans/source/win32/workbench/XTDo.hxx b/vcl/workben/win/dtrans/XTDo.hxx similarity index 100% rename from dtrans/source/win32/workbench/XTDo.hxx rename to vcl/workben/win/dtrans/XTDo.hxx diff --git a/dtrans/source/win32/workbench/makefile.mk b/vcl/workben/win/dtrans/makefile.mk similarity index 100% rename from dtrans/source/win32/workbench/makefile.mk rename to vcl/workben/win/dtrans/makefile.mk diff --git a/dtrans/source/win32/workbench/test_wincb.cxx b/vcl/workben/win/dtrans/test_wincb.cxx similarity index 100% rename from dtrans/source/win32/workbench/test_wincb.cxx rename to vcl/workben/win/dtrans/test_wincb.cxx diff --git a/dtrans/source/win32/workbench/testmarshal.cxx b/vcl/workben/win/dtrans/testmarshal.cxx similarity index 100% rename from dtrans/source/win32/workbench/testmarshal.cxx rename to vcl/workben/win/dtrans/testmarshal.cxx