mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Not part of build Continuing OS/2 wizard work It's pretty much working now
This commit is contained in:
parent
af5db680da
commit
1fdbd44767
@ -32,6 +32,7 @@
|
||||
#define INCL_DEV
|
||||
#include <os2.h>
|
||||
#include "prlog.h"
|
||||
#include "nsHashtable.h"
|
||||
|
||||
#include <uconv.h> // XXX hack XXX
|
||||
|
||||
@ -72,17 +73,7 @@ void PMERROR(const char *str);
|
||||
class nsString;
|
||||
class nsIDeviceContext;
|
||||
|
||||
struct nsUconvInfo
|
||||
{
|
||||
PRUint16 mCodePage;
|
||||
UconvObject mConverter;
|
||||
nsUconvInfo* pNext;
|
||||
};
|
||||
|
||||
static nsUconvInfo* gUconvInfoList = NULL;
|
||||
|
||||
int WideCharToMultiByte( int CodePage, const PRUnichar *pText, ULONG ulLength, char* szBuffer, ULONG ulSize );
|
||||
int MultiByteToWideChar( int CodePage, const char*pText, ULONG ulLength, PRUnichar *szBuffer, ULONG ulSize );
|
||||
BOOL GetTextExtentPoint32(HPS aPS, const char* aString, int aLength, PSIZEL aSizeL);
|
||||
BOOL ExtTextOut(HPS aPS, int X, int Y, UINT fuOptions, const RECTL* lprc,
|
||||
const char* aString, unsigned int aLength, const int* pDx);
|
||||
@ -99,4 +90,15 @@ BOOL IsDBCS();
|
||||
extern PRLogModuleInfo *gGFXOS2LogModule;
|
||||
#endif
|
||||
|
||||
class OS2Uni {
|
||||
public:
|
||||
static UconvObject GetUconvObject(int CodePage);
|
||||
static FreeUconvObjects();
|
||||
private:
|
||||
static nsHashtable gUconvObjects;
|
||||
};
|
||||
|
||||
int WideCharToMultiByte( int CodePage, const PRUnichar *pText, ULONG ulLength, char* szBuffer, ULONG ulSize );
|
||||
int MultiByteToWideChar( int CodePage, const char*pText, ULONG ulLength, PRUnichar *szBuffer, ULONG ulSize );
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user