Kaydet (Commit) 99b935ff authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Make this compile for iOS again

Change-Id: Idd4a1e6d50652a879493d8411c59605ca1a53dfb
üst 3c9da1fb
...@@ -77,11 +77,11 @@ SvpSalFrame::SvpSalFrame( SvpSalInstance* pInstance, ...@@ -77,11 +77,11 @@ SvpSalFrame::SvpSalFrame( SvpSalInstance* pInstance,
m_pParent( static_cast<SvpSalFrame*>(pParent) ), m_pParent( static_cast<SvpSalFrame*>(pParent) ),
m_nStyle( nSalFrameStyle ), m_nStyle( nSalFrameStyle ),
m_bVisible( false ), m_bVisible( false ),
m_bTopDown( bTopDown ),
#ifndef IOS #ifndef IOS
m_bTopDown( bTopDown ),
m_bDamageTracking( false ), m_bDamageTracking( false ),
#endif
m_nScanlineFormat( nScanlineFormat ), m_nScanlineFormat( nScanlineFormat ),
#endif
m_nMinWidth( 0 ), m_nMinWidth( 0 ),
m_nMinHeight( 0 ), m_nMinHeight( 0 ),
m_nMaxWidth( 0 ), m_nMaxWidth( 0 ),
...@@ -92,7 +92,8 @@ SvpSalFrame::SvpSalFrame( SvpSalInstance* pInstance, ...@@ -92,7 +92,8 @@ SvpSalFrame::SvpSalFrame( SvpSalInstance* pInstance,
memset( static_cast<void *>(&m_aSystemChildData), 0, sizeof( SystemEnvData ) ); memset( static_cast<void *>(&m_aSystemChildData), 0, sizeof( SystemEnvData ) );
m_aSystemChildData.nSize = sizeof( SystemEnvData ); m_aSystemChildData.nSize = sizeof( SystemEnvData );
#ifdef IOS #ifdef IOS
// Nothing (void) bTopDown;
(void) nScanlineFormat;
#elif defined ANDROID #elif defined ANDROID
// Nothing // Nothing
#else #else
......
...@@ -43,12 +43,12 @@ class VCL_DLLPUBLIC SvpSalFrame : public SalFrame ...@@ -43,12 +43,12 @@ class VCL_DLLPUBLIC SvpSalFrame : public SalFrame
std::list< SvpSalFrame* > m_aChildren; // List of child frames std::list< SvpSalFrame* > m_aChildren; // List of child frames
SalFrameStyleFlags m_nStyle; SalFrameStyleFlags m_nStyle;
bool m_bVisible; bool m_bVisible;
bool m_bTopDown;
#ifndef IOS #ifndef IOS
bool m_bTopDown;
basebmp::BitmapDeviceSharedPtr m_aFrame; basebmp::BitmapDeviceSharedPtr m_aFrame;
bool m_bDamageTracking; bool m_bDamageTracking;
#endif
basebmp::Format m_nScanlineFormat; basebmp::Format m_nScanlineFormat;
#endif
long m_nMinWidth; long m_nMinWidth;
long m_nMinHeight; long m_nMinHeight;
long m_nMaxWidth; long m_nMaxWidth;
......
...@@ -42,8 +42,6 @@ public: ...@@ -42,8 +42,6 @@ public:
void GetWorkArea( Rectangle& rRect ); void GetWorkArea( Rectangle& rRect );
SalFrame* CreateFrame( SalFrame* pParent, SalFrameStyleFlags nStyle ) SAL_OVERRIDE; SalFrame* CreateFrame( SalFrame* pParent, SalFrameStyleFlags nStyle ) SAL_OVERRIDE;
SalFrame* CreateChildFrame( SystemParentData* pParent, SalFrameStyleFlags nStyle ) SAL_OVERRIDE; SalFrame* CreateChildFrame( SystemParentData* pParent, SalFrameStyleFlags nStyle ) SAL_OVERRIDE;
SalFrame *getFocusFrame() const;
}; };
#endif // INCLUDED_VCL_INC_IOS_IOSINST_HXX #endif // INCLUDED_VCL_INC_IOS_IOSINST_HXX
......
...@@ -474,7 +474,7 @@ namespace vcl ...@@ -474,7 +474,7 @@ namespace vcl
*/ */
int VCL_DLLPUBLIC MapString(TrueTypeFont *ttf, sal_uInt16 *str, int nchars, sal_uInt16 *glyphArray, bool bvertical); int VCL_DLLPUBLIC MapString(TrueTypeFont *ttf, sal_uInt16 *str, int nchars, sal_uInt16 *glyphArray, bool bvertical);
#if defined(WNT) || defined(MACOSX) #if defined(WNT) || defined(MACOSX) || defined(IOS)
/** /**
* Maps a Unicode (UCS-2) character to a glyph ID and returns it. Missing glyph has * Maps a Unicode (UCS-2) character to a glyph ID and returns it. Missing glyph has
* a glyphID of 0 so this function can be used to test if a character is encoded in the font. * a glyphID of 0 so this function can be used to test if a character is encoded in the font.
......
...@@ -47,28 +47,6 @@ void IosSalInstance::GetWorkArea( Rectangle& rRect ) ...@@ -47,28 +47,6 @@ void IosSalInstance::GetWorkArea( Rectangle& rRect )
Size( viewWidth, viewHeight ) ); Size( viewWidth, viewHeight ) );
} }
/*
* Try too hard to get a frame, in the absence of anything better to do
*/
SalFrame *IosSalInstance::getFocusFrame() const
{
SalFrame *pFocus = SvpSalFrame::GetFocusFrame();
if (!pFocus) {
const std::list< SalFrame* >& rFrames( getFrames() );
for( std::list< SalFrame* >::const_iterator it = rFrames.begin(); it != rFrames.end(); ++it )
{
SvpSalFrame *pFrame = const_cast<SvpSalFrame*>(static_cast<const SvpSalFrame*>(*it));
if( pFrame->IsVisible() )
{
pFrame->GetFocus();
pFocus = pFrame;
break;
}
}
}
return pFocus;
}
IosSalInstance *IosSalInstance::getInstance() IosSalInstance *IosSalInstance::getInstance()
{ {
if (!ImplGetSVData()) if (!ImplGetSVData())
...@@ -88,20 +66,6 @@ IosSalInstance::~IosSalInstance() ...@@ -88,20 +66,6 @@ IosSalInstance::~IosSalInstance()
{ {
} }
#if 0
bool IosSalInstance::AnyInput( VclInputFlags nType )
{
if( nType & VclInputFlags::TIMER )
return CheckTimeout( false );
// Unfortunately there is no way to check for a specific type of
// input being queued. That information is too hidden, sigh.
return SvpSalInstance::s_pDefaultInstance->PostedEventsInQueue();
}
#endif
class IosSalSystem : public SvpSalSystem { class IosSalSystem : public SvpSalSystem {
public: public:
IosSalSystem() : SvpSalSystem() {} IosSalSystem() : SvpSalSystem() {}
...@@ -122,7 +86,7 @@ class IosSalFrame : public SvpSalFrame ...@@ -122,7 +86,7 @@ class IosSalFrame : public SvpSalFrame
public: public:
IosSalFrame( IosSalInstance *pInstance, IosSalFrame( IosSalInstance *pInstance,
SalFrame *pParent, SalFrame *pParent,
sal_uLong nSalFrameStyle, SalFrameStyleFlags nSalFrameStyle,
SystemParentData *pSysParent ) SystemParentData *pSysParent )
: SvpSalFrame( pInstance, pParent, nSalFrameStyle, : SvpSalFrame( pInstance, pParent, nSalFrameStyle,
true, basebmp::Format::ThirtyTwoBitTcMaskRGBA, true, basebmp::Format::ThirtyTwoBitTcMaskRGBA,
......
...@@ -2413,7 +2413,7 @@ int MapString(TrueTypeFont *ttf, sal_uInt16 *str, int nchars, sal_uInt16 *glyphA ...@@ -2413,7 +2413,7 @@ int MapString(TrueTypeFont *ttf, sal_uInt16 *str, int nchars, sal_uInt16 *glyphA
return nchars; return nchars;
} }
#if defined(WNT) || defined(MACOSX) #if defined(WNT) || defined(MACOSX) || defined(IOS)
sal_uInt16 MapChar(TrueTypeFont *ttf, sal_uInt16 ch, bool bvertical) sal_uInt16 MapChar(TrueTypeFont *ttf, sal_uInt16 ch, bool bvertical)
{ {
switch (ttf->cmapType) { switch (ttf->cmapType) {
......
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