Kaydet (Commit) 2b520e7d authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Bypass X11-specific fields for Android

Change-Id: Ic8bfd4467b2fbcdcfa2caeb04d4ebe95f13863a2
üst 839a61c4
...@@ -84,6 +84,9 @@ IMPL_XTYPEPROVIDER_END ...@@ -84,6 +84,9 @@ IMPL_XTYPEPROVIDER_END
{ {
aRet <<= (sal_IntPtr)pSysData->pView; aRet <<= (sal_IntPtr)pSysData->pView;
} }
#elif (defined ANDROID)
// Nothing
(void) SystemType;
#elif (defined IOS) #elif (defined IOS)
// Nothing // Nothing
(void) SystemType; (void) SystemType;
......
...@@ -936,6 +936,8 @@ Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp, ...@@ -936,6 +936,8 @@ Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
aParentData.nSize = sizeof( aParentData ); aParentData.nSize = sizeof( aParentData );
#if defined MACOSX #if defined MACOSX
aParentData.pView = reinterpret_cast<NSView*>(nWindowHandle); aParentData.pView = reinterpret_cast<NSView*>(nWindowHandle);
#elif defined ANDROID
// Nothing
#elif defined IOS #elif defined IOS
// Nothing // Nothing
#elif defined UNX #elif defined UNX
...@@ -1183,6 +1185,8 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow( ...@@ -1183,6 +1185,8 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow(
aParentData.nSize = sizeof( aParentData ); aParentData.nSize = sizeof( aParentData );
#if defined MACOSX #if defined MACOSX
aParentData.pView = reinterpret_cast<NSView*>(nWindowHandle); aParentData.pView = reinterpret_cast<NSView*>(nWindowHandle);
#elif defined ANDROID
// Nothing
#elif defined IOS #elif defined IOS
// Nothing // Nothing
#elif defined UNX #elif defined UNX
......
...@@ -96,6 +96,9 @@ Sequence< Type > VCLXTopWindow_Base::getTypes() throw(RuntimeException) ...@@ -96,6 +96,9 @@ Sequence< Type > VCLXTopWindow_Base::getTypes() throw(RuntimeException)
{ {
aRet <<= (sal_IntPtr)pSysData->pView; aRet <<= (sal_IntPtr)pSysData->pView;
} }
#elif (defined ANDROID)
// Nothing
(void) SystemType;
#elif (defined IOS) #elif (defined IOS)
// Nothing // Nothing
(void) SystemType; (void) SystemType;
......
...@@ -85,6 +85,8 @@ void VCLXWindow::SetSystemParent_Impl( const com::sun::star::uno::Any& rHandle ) ...@@ -85,6 +85,8 @@ void VCLXWindow::SetSystemParent_Impl( const com::sun::star::uno::Any& rHandle )
aSysParentData.hWnd = (HWND) nHandle; aSysParentData.hWnd = (HWND) nHandle;
#elif defined( MACOSX ) #elif defined( MACOSX )
aSysParentData.pView = reinterpret_cast<NSView*>(nHandle); aSysParentData.pView = reinterpret_cast<NSView*>(nHandle);
#elif defined( ANDROID )
// Nothing
#elif defined( IOS ) #elif defined( IOS )
// Nothing // Nothing
#elif defined( UNX ) #elif defined( UNX )
......
...@@ -84,14 +84,11 @@ SvpSalFrame::SvpSalFrame( SvpSalInstance* pInstance, ...@@ -84,14 +84,11 @@ SvpSalFrame::SvpSalFrame( SvpSalInstance* pInstance,
m_aSystemChildData.nSize = sizeof( SystemChildData ); m_aSystemChildData.nSize = sizeof( SystemChildData );
#ifdef IOS #ifdef IOS
// Nothing // Nothing
#elif defined ANDROID
// Nothing
#else #else
m_aSystemChildData.pSalFrame = this; m_aSystemChildData.pSalFrame = this;
#ifdef ANDROID
// We want 32-bit RGBA bitmaps
m_aSystemChildData.nDepth = 32;
#else
m_aSystemChildData.nDepth = 24; m_aSystemChildData.nDepth = 24;
#endif
#endif #endif
if( m_pParent ) if( m_pParent )
......
...@@ -64,6 +64,8 @@ struct SystemEnvData ...@@ -64,6 +64,8 @@ struct SystemEnvData
HWND hWnd; // the window hwnd HWND hWnd; // the window hwnd
#elif defined( MACOSX ) #elif defined( MACOSX )
NSView* pView; // the cocoa (NSView *) implementing this object NSView* pView; // the cocoa (NSView *) implementing this object
#elif defined( ANDROID )
// Nothing
#elif defined( IOS ) #elif defined( IOS )
// Nothing // Nothing
#elif defined( UNX ) #elif defined( UNX )
...@@ -94,6 +96,8 @@ struct SystemParentData ...@@ -94,6 +96,8 @@ struct SystemParentData
HWND hWnd; // the window hwnd HWND hWnd; // the window hwnd
#elif defined( MACOSX ) #elif defined( MACOSX )
NSView* pView; // the cocoa (NSView *) implementing this object NSView* pView; // the cocoa (NSView *) implementing this object
#elif defined( ANDROID )
// Nothing
#elif defined( IOS ) #elif defined( IOS )
// Nothing // Nothing
#elif defined( UNX ) #elif defined( UNX )
...@@ -114,6 +118,8 @@ struct SystemMenuData ...@@ -114,6 +118,8 @@ struct SystemMenuData
HMENU hMenu; // the menu handle of the menu bar HMENU hMenu; // the menu handle of the menu bar
#elif defined( MACOSX ) #elif defined( MACOSX )
// Nothing // Nothing
#elif defined( ANDROID )
// Nothing
#elif defined( IOS ) #elif defined( IOS )
// Nothing // Nothing
#elif defined( UNX ) #elif defined( UNX )
...@@ -132,6 +138,8 @@ struct SystemGraphicsData ...@@ -132,6 +138,8 @@ struct SystemGraphicsData
HDC hDC; // handle to a device context HDC hDC; // handle to a device context
#elif defined( MACOSX ) #elif defined( MACOSX )
CGContextRef rCGContext; // CoreGraphics graphic context CGContextRef rCGContext; // CoreGraphics graphic context
#elif defined( ANDROID )
// Nothing
#elif defined( IOS ) #elif defined( IOS )
// Nothing // Nothing
#elif defined( UNX ) #elif defined( UNX )
...@@ -149,6 +157,8 @@ struct SystemGraphicsData ...@@ -149,6 +157,8 @@ struct SystemGraphicsData
, hDC( 0 ) , hDC( 0 )
#elif defined( MACOSX ) #elif defined( MACOSX )
// Nothing // Nothing
#elif defined( ANDROID )
// Nothing
#elif defined( IOS ) #elif defined( IOS )
// Nothing // Nothing
#elif defined( UNX ) #elif defined( UNX )
...@@ -174,7 +184,9 @@ struct SystemWindowData ...@@ -174,7 +184,9 @@ struct SystemWindowData
#if defined( WNT ) // meaningless on Windows #if defined( WNT ) // meaningless on Windows
#elif defined( MACOSX ) // meaningless on Mac OS X #elif defined( MACOSX ) // meaningless on Mac OS X
// Nothing // Nothing
#elif defined( IOS ) // and maybe on iOS, too, then #elif defined( ANDROID )
// Nothing
#elif defined( IOS )
// Nothing // Nothing
#elif defined( UNX ) #elif defined( UNX )
void* pVisual; // the visual to be used void* pVisual; // the visual to be used
......
...@@ -224,6 +224,8 @@ sal_IntPtr SystemChildWindow::GetParentWindowHandle( sal_Bool bUseJava ) ...@@ -224,6 +224,8 @@ sal_IntPtr SystemChildWindow::GetParentWindowHandle( sal_Bool bUseJava )
#elif defined MACOSX #elif defined MACOSX
// FIXME: this is wrong // FIXME: this is wrong
nRet = reinterpret_cast< sal_IntPtr >( GetSystemData()->pView ); nRet = reinterpret_cast< sal_IntPtr >( GetSystemData()->pView );
#elif defined ANDROID
// Nothing
#elif defined IOS #elif defined IOS
// Nothing // Nothing
#elif defined UNX #elif defined UNX
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment