Fix bit-rot in the iOS "code"
This commit is contained in:
@@ -74,12 +74,17 @@ $(eval $(call gb_Library_add_linked_libs,vcl,\
|
|||||||
i18nisolang1 \
|
i18nisolang1 \
|
||||||
i18npaper \
|
i18npaper \
|
||||||
i18nutil \
|
i18nutil \
|
||||||
jvmaccess \
|
|
||||||
cppu \
|
cppu \
|
||||||
sal \
|
sal \
|
||||||
$(gb_STDLIBS) \
|
$(gb_STDLIBS) \
|
||||||
))
|
))
|
||||||
|
|
||||||
|
ifneq ($(OS),IOS)
|
||||||
|
$(eval $(call gb_Library_add_linked_libs,vcl,\
|
||||||
|
jvmaccess \
|
||||||
|
))
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(call gb_Library_use_externals,vcl,\
|
$(eval $(call gb_Library_use_externals,vcl,\
|
||||||
icule \
|
icule \
|
||||||
icuuc \
|
icuuc \
|
||||||
|
@@ -112,7 +112,7 @@ public:
|
|||||||
virtual SalGraphics* GetGraphics();
|
virtual SalGraphics* GetGraphics();
|
||||||
virtual void ReleaseGraphics( SalGraphics* pGraphics );
|
virtual void ReleaseGraphics( SalGraphics* pGraphics );
|
||||||
virtual sal_Bool PostEvent( void* pData );
|
virtual sal_Bool PostEvent( void* pData );
|
||||||
virtual void SetTitle( const XubString& rTitle );
|
virtual void SetTitle( const rtl::OUString& rTitle );
|
||||||
virtual void SetIcon( sal_uInt16 nIcon );
|
virtual void SetIcon( sal_uInt16 nIcon );
|
||||||
virtual void SetRepresentedURL( const rtl::OUString& );
|
virtual void SetRepresentedURL( const rtl::OUString& );
|
||||||
virtual void SetMenu( SalMenu* pSalMenu );
|
virtual void SetMenu( SalMenu* pSalMenu );
|
||||||
@@ -139,8 +139,8 @@ public:
|
|||||||
virtual void Sync();
|
virtual void Sync();
|
||||||
virtual void SetInputContext( SalInputContext* pContext );
|
virtual void SetInputContext( SalInputContext* pContext );
|
||||||
virtual void EndExtTextInput( sal_uInt16 nFlags );
|
virtual void EndExtTextInput( sal_uInt16 nFlags );
|
||||||
virtual String GetKeyName( sal_uInt16 nKeyCode );
|
virtual rtl::OUString GetKeyName( sal_uInt16 nKeyCode );
|
||||||
virtual String GetSymbolKeyName( const XubString& rFontName, sal_uInt16 nKeyCode );
|
virtual rtl::OUString GetSymbolKeyName( const rtl::OUString& rFontName, sal_uInt16 nKeyCode );
|
||||||
virtual sal_Bool MapUnicodeToKeyCode( sal_Unicode aUnicode, LanguageType aLangType, KeyCode& rKeyCode );
|
virtual sal_Bool MapUnicodeToKeyCode( sal_Unicode aUnicode, LanguageType aLangType, KeyCode& rKeyCode );
|
||||||
virtual LanguageType GetInputLanguage();
|
virtual LanguageType GetInputLanguage();
|
||||||
virtual SalBitmap* SnapShot();
|
virtual SalBitmap* SnapShot();
|
||||||
|
@@ -284,7 +284,7 @@ public:
|
|||||||
// graphics should call ImplAddDevFontSubstitute on supplied
|
// graphics should call ImplAddDevFontSubstitute on supplied
|
||||||
// OutputDevice for all its device specific preferred font substitutions
|
// OutputDevice for all its device specific preferred font substitutions
|
||||||
virtual void GetDevFontSubstList( OutputDevice* );
|
virtual void GetDevFontSubstList( OutputDevice* );
|
||||||
virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
|
virtual bool AddTempDevFont( ImplDevFontList*, const rtl::OUString& rFileURL, const rtl::OUString& rFontName );
|
||||||
// CreateFontSubset: a method to get a subset of glyhps of a font
|
// CreateFontSubset: a method to get a subset of glyhps of a font
|
||||||
// inside a new valid font file
|
// inside a new valid font file
|
||||||
// returns TRUE if creation of subset was successfull
|
// returns TRUE if creation of subset was successfull
|
||||||
|
@@ -128,7 +128,7 @@ public:
|
|||||||
virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList );
|
virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList );
|
||||||
virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
|
virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
|
||||||
virtual void DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
|
virtual void DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
|
||||||
virtual String GetDefaultPrinter();
|
virtual rtl::OUString GetDefaultPrinter();
|
||||||
virtual SalTimer* CreateSalTimer();
|
virtual SalTimer* CreateSalTimer();
|
||||||
virtual SalI18NImeStatus* CreateI18NImeStatus();
|
virtual SalI18NImeStatus* CreateI18NImeStatus();
|
||||||
virtual SalSystem* CreateSalSystem();
|
virtual SalSystem* CreateSalSystem();
|
||||||
|
@@ -90,7 +90,7 @@ class IosSalInfoPrinter : public SalInfoPrinter
|
|||||||
long& o_rPageWidth, long& o_rPageHeight );
|
long& o_rPageWidth, long& o_rPageHeight );
|
||||||
virtual sal_uLong GetCapabilities( const ImplJobSetup* i_pSetupData, sal_uInt16 i_nType );
|
virtual sal_uLong GetCapabilities( const ImplJobSetup* i_pSetupData, sal_uInt16 i_nType );
|
||||||
virtual sal_uLong GetPaperBinCount( const ImplJobSetup* i_pSetupData );
|
virtual sal_uLong GetPaperBinCount( const ImplJobSetup* i_pSetupData );
|
||||||
virtual String GetPaperBinName( const ImplJobSetup* i_pSetupData, sal_uLong i_nPaperBin );
|
virtual rtl::OUString GetPaperBinName( const ImplJobSetup* i_pSetupData, sal_uLong i_nPaperBin );
|
||||||
virtual void InitPaperFormats( const ImplJobSetup* i_pSetupData );
|
virtual void InitPaperFormats( const ImplJobSetup* i_pSetupData );
|
||||||
virtual int GetLandscapeAngle( const ImplJobSetup* i_pSetupData );
|
virtual int GetLandscapeAngle( const ImplJobSetup* i_pSetupData );
|
||||||
|
|
||||||
|
@@ -43,8 +43,8 @@ public:
|
|||||||
virtual Rectangle GetDisplayScreenWorkAreaPosSizePixel( unsigned int nScreen );
|
virtual Rectangle GetDisplayScreenWorkAreaPosSizePixel( unsigned int nScreen );
|
||||||
|
|
||||||
virtual rtl::OUString GetDisplayScreenName( unsigned int nScreen );
|
virtual rtl::OUString GetDisplayScreenName( unsigned int nScreen );
|
||||||
virtual int ShowNativeMessageBox( const String& rTitle,
|
virtual int ShowNativeMessageBox( const rtl::OUString& rTitle,
|
||||||
const String& rMessage,
|
const rtl::OUString& rMessage,
|
||||||
int nButtonCombination,
|
int nButtonCombination,
|
||||||
int nDefaultButton);
|
int nDefaultButton);
|
||||||
};
|
};
|
||||||
|
@@ -140,13 +140,13 @@ sal_Bool ImplSVMainHook( int * pnInit )
|
|||||||
|
|
||||||
// =======================================================================
|
// =======================================================================
|
||||||
|
|
||||||
void SalAbort( const XubString& rErrorText, bool bDumpCore )
|
void SalAbort( const rtl::OUString& rErrorText, bool bDumpCore )
|
||||||
{
|
{
|
||||||
if( !rErrorText.Len() )
|
if( rErrorText.isEmpty() )
|
||||||
fprintf( stderr, "Application Error " );
|
fprintf( stderr, "Application Error " );
|
||||||
else
|
else
|
||||||
fprintf( stderr, "%s ",
|
fprintf( stderr, "%s ",
|
||||||
ByteString( rErrorText, osl_getThreadTextEncoding() ).GetBuffer() );
|
rtl::OUStringToOString( rErrorText, osl_getThreadTextEncoding() ).getStr() );
|
||||||
if( bDumpCore )
|
if( bDumpCore )
|
||||||
abort();
|
abort();
|
||||||
else
|
else
|
||||||
@@ -197,7 +197,7 @@ void InitSalMain()
|
|||||||
if ( aCmdPath.Len() ) {
|
if ( aCmdPath.Len() ) {
|
||||||
DirEntry aCmdDirEntry( aCmdPath );
|
DirEntry aCmdDirEntry( aCmdPath );
|
||||||
aCmdDirEntry.ToAbs();
|
aCmdDirEntry.ToAbs();
|
||||||
aCmdPath = ByteString( aCmdDirEntry.GetPath().GetFull(), RTL_TEXTENCODING_ASCII_US );
|
aCmdPath = rtl::OUStringToOString( aCmdDirEntry.GetPath().GetFull(), RTL_TEXTENCODING_ASCII_US );
|
||||||
}
|
}
|
||||||
// Assign to PATH environment variable
|
// Assign to PATH environment variable
|
||||||
if ( aCmdPath.Len() )
|
if ( aCmdPath.Len() )
|
||||||
@@ -205,7 +205,7 @@ void InitSalMain()
|
|||||||
aTmpPath = ByteString( "PATH=" );
|
aTmpPath = ByteString( "PATH=" );
|
||||||
aTmpPath += aCmdPath;
|
aTmpPath += aCmdPath;
|
||||||
if ( aPath.Len() )
|
if ( aPath.Len() )
|
||||||
aTmpPath += ByteString( DirEntry::GetSearchDelimiter(), RTL_TEXTENCODING_ASCII_US );
|
aTmpPath += rtl::OUStringToOString( DirEntry::GetSearchDelimiter(), RTL_TEXTENCODING_ASCII_US );
|
||||||
aTmpPath += aPath;
|
aTmpPath += aPath;
|
||||||
putenv( (char*)aTmpPath.GetBuffer() );
|
putenv( (char*)aTmpPath.GetBuffer() );
|
||||||
}
|
}
|
||||||
@@ -215,7 +215,7 @@ void InitSalMain()
|
|||||||
aTmpPath = ByteString( "STAR_RESOURCEPATH=" );
|
aTmpPath = ByteString( "STAR_RESOURCEPATH=" );
|
||||||
aTmpPath += aCmdPath;
|
aTmpPath += aCmdPath;
|
||||||
if ( aResPath.Len() )
|
if ( aResPath.Len() )
|
||||||
aTmpPath += ByteString( DirEntry::GetSearchDelimiter(), RTL_TEXTENCODING_ASCII_US );
|
aTmpPath += rtl::OUStringToOString( DirEntry::GetSearchDelimiter(), RTL_TEXTENCODING_ASCII_US );
|
||||||
aTmpPath += aResPath;
|
aTmpPath += aResPath;
|
||||||
putenv( (char*)aTmpPath.GetBuffer() );
|
putenv( (char*)aTmpPath.GetBuffer() );
|
||||||
}
|
}
|
||||||
@@ -624,7 +624,7 @@ void IosSalInstance::DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo )
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
XubString IosSalInstance::GetDefaultPrinter()
|
rtl::OUString IosSalInstance::GetDefaultPrinter()
|
||||||
{
|
{
|
||||||
// #i113170# may not be the main thread if called from UNO API
|
// #i113170# may not be the main thread if called from UNO API
|
||||||
SalData::ensureThreadAutoreleasePool();
|
SalData::ensureThreadAutoreleasePool();
|
||||||
|
@@ -147,8 +147,8 @@ static NSString* getStandardString( int nButtonId )
|
|||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
int IosSalSystem::ShowNativeMessageBox( const String& rTitle,
|
int IosSalSystem::ShowNativeMessageBox( const rtl::OUString& rTitle,
|
||||||
const String& rMessage,
|
const rtl::OUString& rMessage,
|
||||||
int nButtonCombination,
|
int nButtonCombination,
|
||||||
int nDefaultButton)
|
int nDefaultButton)
|
||||||
{
|
{
|
||||||
|
@@ -1511,7 +1511,7 @@ void IosSalGraphics::GetDevFontList( ImplDevFontList* pFontList )
|
|||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
bool IosSalGraphics::AddTempDevFont( ImplDevFontList*,
|
bool IosSalGraphics::AddTempDevFont( ImplDevFontList*,
|
||||||
const String& rFontFileURL, const String& /*rFontName*/ )
|
const rtl::OUString& rFontFileURL, const rtl::OUString& /*rFontName*/ )
|
||||||
{
|
{
|
||||||
::rtl::OUString aUSytemPath;
|
::rtl::OUString aUSytemPath;
|
||||||
OSL_VERIFY( !osl::FileBase::getSystemPathFromFileURL( rFontFileURL, aUSytemPath ) );
|
OSL_VERIFY( !osl::FileBase::getSystemPathFromFileURL( rFontFileURL, aUSytemPath ) );
|
||||||
|
@@ -240,7 +240,7 @@ sal_Bool IosSalFrame::PostEvent( void *pData )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
void IosSalFrame::SetTitle(const XubString& /* rTitle */)
|
void IosSalFrame::SetTitle(const rtl::OUString& /* rTitle */)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -617,7 +617,7 @@ void IosSalFrame::EndExtTextInput( sal_uInt16 )
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
XubString IosSalFrame::GetKeyName( sal_uInt16 nKeyCode )
|
rtl::OUString IosSalFrame::GetKeyName( sal_uInt16 nKeyCode )
|
||||||
{
|
{
|
||||||
static std::map< sal_uInt16, rtl::OUString > aKeyMap;
|
static std::map< sal_uInt16, rtl::OUString > aKeyMap;
|
||||||
if( aKeyMap.empty() )
|
if( aKeyMap.empty() )
|
||||||
@@ -704,7 +704,7 @@ XubString IosSalFrame::GetKeyName( sal_uInt16 nKeyCode )
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
XubString IosSalFrame::GetSymbolKeyName( const XubString&, sal_uInt16 nKeyCode )
|
rtl::OUString IosSalFrame::GetSymbolKeyName( const rtl::OUString&, sal_uInt16 nKeyCode )
|
||||||
{
|
{
|
||||||
return GetKeyName( nKeyCode );
|
return GetKeyName( nKeyCode );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user