diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-07-15 01:40:22 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-07-21 14:09:32 +0300 |
commit | 7b2d0c9ad2d2d28b898136c3f6bd00cea4da283a (patch) | |
tree | 99d8659c4b1c644eaedabc2126793367678b1260 /toolkit/source/awt/vclxtoolkit.cxx | |
parent | cba97d1d22d8cd24ab7fd762832ca42d17b330a7 (diff) |
Make this compile for iOS
I said compile, not work.
Diffstat (limited to 'toolkit/source/awt/vclxtoolkit.cxx')
-rw-r--r-- | toolkit/source/awt/vclxtoolkit.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index b6655ab56d98..19a76c9052c8 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -64,6 +64,13 @@ #include <Cocoa/Cocoa.h> #include "postmac.h" #endif + +#ifdef IOS +#include "premac.h" +#include <UIKit/UIKit.h> +#include "postmac.h" +#endif + #include <vcl/sysdata.hxx> #include <toolkit/awt/vclxwindows.hxx> @@ -982,6 +989,8 @@ Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp, aParentData.nSize = sizeof( aParentData ); #if defined QUARTZ aParentData.pView = reinterpret_cast<NSView*>(nWindowHandle); + #elif defined IOS + aParentData.pView = reinterpret_cast<UIView*>(nWindowHandle); #elif defined UNX aParentData.aWindow = nWindowHandle; aParentData.bXEmbedSupport = bXEmbed; @@ -1206,6 +1215,8 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow( aParentData.nSize = sizeof( aParentData ); #if defined QUARTZ aParentData.pView = reinterpret_cast<NSView*>(nWindowHandle); + #elif defined IOS + aParentData.pView = reinterpret_cast<UIView*>(nWindowHandle); #elif defined UNX aParentData.aWindow = nWindowHandle; aParentData.bXEmbedSupport = bXEmbed; |