From 63dcca42cebd3cb6f020ec75c0d225e1d7232e1c Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 20 Mar 2013 09:07:52 +0200 Subject: Re-work the vcl aspects of the iOS port Don't try to use similar code as for OS X to manage windows, events etc. I.e. don't use UIKit in vcl to do that. Instead, just do as in the Android port, use the "headless" vcl backend. Do keep using CoreText, though, not FreeType & fontconfig. Start changing the iOS "Viewer" app to correspond to the Android "desktop" app (so it should be renamed). Work in progress since a long time, several crucial details still missing, but committing for now. Change-Id: Iac5fbf8def415e4d0d21e5200450a373420ad7ee --- toolkit/source/awt/vclxsystemdependentwindow.cxx | 15 --------------- toolkit/source/awt/vclxtoolkit.cxx | 10 ---------- toolkit/source/awt/vclxtopwindow.cxx | 11 ----------- toolkit/source/awt/vclxwindow1.cxx | 6 ------ 4 files changed, 42 deletions(-) (limited to 'toolkit') diff --git a/toolkit/source/awt/vclxsystemdependentwindow.cxx b/toolkit/source/awt/vclxsystemdependentwindow.cxx index d05eacfe0954..e156879bae0a 100644 --- a/toolkit/source/awt/vclxsystemdependentwindow.cxx +++ b/toolkit/source/awt/vclxsystemdependentwindow.cxx @@ -33,12 +33,6 @@ #include "postmac.h" #endif -#ifdef IOS -#include "premac.h" -#include -#include "postmac.h" -#endif - #include #include #include @@ -90,11 +84,6 @@ IMPL_XTYPEPROVIDER_END { aRet <<= (sal_IntPtr)pSysData->pView; } -#elif (defined IOS) - if( SystemType == ::com::sun::star::lang::SystemDependent::SYSTEM_IOS ) - { - aRet <<= (sal_IntPtr)pSysData->pView; - } #elif (defined UNX) if( SystemType == ::com::sun::star::lang::SystemDependent::SYSTEM_XWINDOW ) { @@ -109,8 +98,4 @@ IMPL_XTYPEPROVIDER_END return aRet; } - - - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index e0e62b0f8ae9..31fdb3a87743 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -59,12 +59,6 @@ using org::libreoffice::touch::ByteBufferWrapper; #endif -#ifdef IOS -#include "premac.h" -#include -#include "postmac.h" -#endif - #include #include @@ -942,8 +936,6 @@ Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp, aParentData.nSize = sizeof( aParentData ); #if defined MACOSX aParentData.pView = reinterpret_cast(nWindowHandle); - #elif defined IOS - aParentData.pView = reinterpret_cast(nWindowHandle); #elif defined UNX aParentData.aWindow = nWindowHandle; aParentData.bXEmbedSupport = bXEmbed; @@ -1189,8 +1181,6 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow( aParentData.nSize = sizeof( aParentData ); #if defined MACOSX aParentData.pView = reinterpret_cast(nWindowHandle); - #elif defined IOS - aParentData.pView = reinterpret_cast(nWindowHandle); #elif defined UNX aParentData.aWindow = nWindowHandle; aParentData.bXEmbedSupport = bXEmbed; diff --git a/toolkit/source/awt/vclxtopwindow.cxx b/toolkit/source/awt/vclxtopwindow.cxx index dc80565b1eaa..a4758ac69844 100644 --- a/toolkit/source/awt/vclxtopwindow.cxx +++ b/toolkit/source/awt/vclxtopwindow.cxx @@ -26,12 +26,6 @@ #include "postmac.h" #endif -#if defined ( IOS ) -#include "premac.h" -#include -#include "postmac.h" -#endif - #include #include #include @@ -102,11 +96,6 @@ Sequence< Type > VCLXTopWindow_Base::getTypes() throw(RuntimeException) { aRet <<= (sal_IntPtr)pSysData->pView; } -#elif (defined IOS) - if( SystemType == ::com::sun::star::lang::SystemDependent::SYSTEM_IOS ) - { - aRet <<= (sal_IntPtr)pSysData->pView; - } #elif (defined UNX) if( SystemType == ::com::sun::star::lang::SystemDependent::SYSTEM_XWINDOW ) { diff --git a/toolkit/source/awt/vclxwindow1.cxx b/toolkit/source/awt/vclxwindow1.cxx index ffea1f6b0347..029c3bccf25c 100644 --- a/toolkit/source/awt/vclxwindow1.cxx +++ b/toolkit/source/awt/vclxwindow1.cxx @@ -32,10 +32,6 @@ #include "premac.h" #include #include "postmac.h" -#elif defined ( IOS ) -#include "premac.h" -#include -#include "postmac.h" #endif #include @@ -89,8 +85,6 @@ void VCLXWindow::SetSystemParent_Impl( const com::sun::star::uno::Any& rHandle ) aSysParentData.hWnd = (HWND) nHandle; #elif defined( MACOSX ) aSysParentData.pView = reinterpret_cast(nHandle); -#elif defined( IOS ) - aSysParentData.pView = reinterpret_cast(nHandle); #elif defined( UNX ) aSysParentData.aWindow = (long)nHandle; aSysParentData.bXEmbedSupport = bXEmbed; -- cgit