summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-05 14:51:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-06 16:04:51 +0200
commitb2cdf8a1eac730f74160d7c7a1ab9ec907dddd23 (patch)
tree06b95749fbec3aa0afdcd95137fc611b8333555d
parentde5135060d01b650b7258c02e847e916ae9541fd (diff)
the "CreateWindow" function in svtools is newly removed
Change-Id: I6fb569cf293a896c92bec4c6aae647a0bd02d012 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137871 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rwxr-xr-xbin/find-can-be-private-symbols.py1
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx63
2 files changed, 1 insertions, 63 deletions
diff --git a/bin/find-can-be-private-symbols.py b/bin/find-can-be-private-symbols.py
index 7203f8ed8c06..2ac7619d9026 100755
--- a/bin/find-can-be-private-symbols.py
+++ b/bin/find-can-be-private-symbols.py
@@ -182,7 +182,6 @@ with open("bin/find-can-be-private-symbols.functions.results", "wt") as f:
elif sym.endswith("component_getFactory"): continue
elif sym == "CreateDialogFactory": continue
elif sym == "CreateUnoWrapper": continue
- elif sym == "CreateWindow": continue
elif sym == "ExportDOC": continue
elif sym == "ExportPPT": continue
elif sym == "ExportRTF": continue
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index da81df17b2dd..18daef169414 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -403,12 +403,6 @@ Size MessBox::GetOptimalSize() const
namespace {
-extern "C" typedef vcl::Window* (*FN_SvtCreateWindow)(
- rtl::Reference<VCLXWindow>* ppNewComp,
- const css::awt::WindowDescriptor* pDescriptor,
- vcl::Window* pParent,
- WinBits nWinBits );
-
class Pause : public Idle
{
public:
@@ -440,9 +434,6 @@ class VCLXToolkit : public cppu::BaseMutex,
css::uno::Reference< css::datatransfer::clipboard::XClipboard > mxClipboard;
css::uno::Reference< css::datatransfer::clipboard::XClipboard > mxSelection;
- oslModule hSvToolsLib;
- FN_SvtCreateWindow fnSvtCreateWindow;
-
::comphelper::OInterfaceContainerHelper3<css::awt::XTopWindowListener> m_aTopWindowListeners;
::comphelper::OInterfaceContainerHelper3<css::awt::XKeyHandler> m_aKeyHandlers;
::comphelper::OInterfaceContainerHelper3<css::awt::XFocusListener> m_aFocusListeners;
@@ -941,9 +932,6 @@ VCLXToolkit::VCLXToolkit():
m_bEventListener(false),
m_bKeyListener(false)
{
- hSvToolsLib = nullptr;
- fnSvtCreateWindow = nullptr;
-
#ifndef IOS
osl::Guard< osl::Mutex > aGuard( getInitMutex() );
nVCLToolkitInstanceCount++;
@@ -958,15 +946,6 @@ VCLXToolkit::VCLXToolkit():
void SAL_CALL VCLXToolkit::disposing()
{
-#ifndef DISABLE_DYNLOADING
- if ( hSvToolsLib )
- {
- osl_unloadModule( hSvToolsLib );
- hSvToolsLib = nullptr;
- fnSvtCreateWindow = nullptr;
- }
-#endif
-
#ifndef IOS
{
osl::Guard< osl::Mutex > aGuard( getInitMutex() );
@@ -1855,16 +1834,6 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( rtl::Reference<VCLXWindow>* ppNewCom
return pNewWindow;
}
-#ifndef DISABLE_DYNLOADING
-
-extern "C" { static void thisModule() {} }
-
-#else
-
-extern "C" vcl::Window* SAL_CALL CreateWindow( rtl::Reference<VCLXWindow>* ppNewComp, const css::awt::WindowDescriptor* pDescriptor, vcl::Window* pParent, WinBits nWinBits );
-
-#endif
-
css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow(
const css::awt::WindowDescriptor& rDescriptor,
MessBoxStyle nForceMessBoxStyle )
@@ -1893,37 +1862,7 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow(
rtl::Reference<VCLXWindow> pNewComp;
- vcl::Window* pNewWindow = nullptr;
- // Try to create the window with SvTools
- // (do this _before_ creating it on our own: The old mechanism (extended toolkit in SvTools) did it this way,
- // and we need to stay compatible)
- // try to load the lib
- if ( !fnSvtCreateWindow
-#ifndef DISABLE_DYNLOADING
- && !hSvToolsLib
-#endif
- )
- {
-#ifndef DISABLE_DYNLOADING
- OUString aLibName(SVT_DLL_NAME);
- hSvToolsLib = osl_loadModuleRelative(
- &thisModule, aLibName.pData, SAL_LOADMODULE_DEFAULT );
- if ( hSvToolsLib )
- {
- OUString aFunctionName( "CreateWindow" );
- fnSvtCreateWindow = reinterpret_cast<FN_SvtCreateWindow>(osl_getFunctionSymbol( hSvToolsLib, aFunctionName.pData ));
- }
-#else
- fnSvtCreateWindow = nullptr;
-#endif
- }
- // ask the SvTool creation function
- if ( fnSvtCreateWindow )
- pNewWindow = fnSvtCreateWindow( &pNewComp, &rDescriptor, pParent, nWinBits );
-
- // if SvTools could not provide a window, create it ourself
- if ( !pNewWindow )
- pNewWindow = ImplCreateWindow( &pNewComp, rDescriptor, pParent, nWinBits, aPair.second );
+ vcl::Window* pNewWindow = ImplCreateWindow( &pNewComp, rDescriptor, pParent, nWinBits, aPair.second );
DBG_ASSERT( pNewWindow, "createWindow: Unknown Component!" );
SAL_INFO_IF( !pNewComp, "toolkit", "createWindow: No special Interface!" );