зеркало из https://github.com/mozilla/gecko-dev.git
r=mkaply, sr=mkaply (OS/2 only) Patch from Andy Willis - add _declspec(dllexport/dllimport) for OS/2
This commit is contained in:
Родитель
9c5dfe3118
Коммит
6df4894b7c
|
@ -137,7 +137,7 @@ void OS2Uni::FreeUconvObjects()
|
|||
/**********************************************************
|
||||
WideCharToMultiByte
|
||||
**********************************************************/
|
||||
nsresult
|
||||
NS_GFX_(nsresult)
|
||||
WideCharToMultiByte(int aCodePage, const PRUnichar* aSrc,
|
||||
PRInt32 aSrcLength, nsAutoCharBuffer& aResult,
|
||||
PRInt32& aResultLength)
|
||||
|
@ -161,7 +161,7 @@ WideCharToMultiByte(int aCodePage, const PRUnichar* aSrc,
|
|||
/**********************************************************
|
||||
MultiByteToWideChar
|
||||
**********************************************************/
|
||||
nsresult
|
||||
NS_GFX_(nsresult)
|
||||
MultiByteToWideChar(int aCodePage, const char* aSrc,
|
||||
PRInt32 aSrcLength, nsAutoChar16Buffer& aResult,
|
||||
PRInt32& aResultLength)
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include <uconv.h>
|
||||
#include "nsAutoBuffer.h"
|
||||
#include "nsICharsetConverterManager.h"
|
||||
#include "gfxCore.h"
|
||||
|
||||
|
||||
enum ConverterRequest {
|
||||
|
@ -49,7 +50,7 @@ enum ConverterRequest {
|
|||
eConv_Decoder
|
||||
};
|
||||
|
||||
class OS2Uni {
|
||||
class NS_GFX OS2Uni {
|
||||
public:
|
||||
static nsISupports* GetUconvObject(int CodePage, ConverterRequest aReq);
|
||||
static void FreeUconvObjects();
|
||||
|
@ -62,11 +63,11 @@ private:
|
|||
typedef nsAutoBuffer<char, CHAR_BUFFER_SIZE> nsAutoCharBuffer;
|
||||
typedef nsAutoBuffer<PRUnichar, CHAR_BUFFER_SIZE> nsAutoChar16Buffer;
|
||||
|
||||
nsresult WideCharToMultiByte(int aCodePage, const PRUnichar* aSrc,
|
||||
PRInt32 aSrcLength, nsAutoCharBuffer& aResult,
|
||||
PRInt32& aResultLength);
|
||||
nsresult MultiByteToWideChar(int aCodePage, const char* aSrc,
|
||||
PRInt32 aSrcLength, nsAutoChar16Buffer& aResult,
|
||||
PRInt32& aResultLength);
|
||||
|
||||
NS_GFX_(nsresult) WideCharToMultiByte(int aCodePage, const PRUnichar* aSrc,
|
||||
PRInt32 aSrcLength, nsAutoCharBuffer& aResult,
|
||||
PRInt32& aResultLength);
|
||||
NS_GFX_(nsresult) MultiByteToWideChar(int aCodePage, const char* aSrc,
|
||||
PRInt32 aSrcLength, nsAutoChar16Buffer& aResult,
|
||||
PRInt32& aResultLength);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -40,8 +40,9 @@
|
|||
#define INCL_WIN
|
||||
#define INCL_GPI
|
||||
#include <os2.h>
|
||||
#include "gfxCore.h"
|
||||
|
||||
class nsPaletteOS2 {
|
||||
class NS_GFX nsPaletteOS2 {
|
||||
public:
|
||||
static void FreeGlobalPalette();
|
||||
static void InitializeGlobalPalette();
|
||||
|
|
|
@ -50,7 +50,7 @@ static HMODULE hmodRes;
|
|||
#define SHIFT_PTR(ptr,offset) ( *((LONG*)&ptr) += offset )
|
||||
|
||||
|
||||
class PRTQUEUE
|
||||
class NS_GFX PRTQUEUE
|
||||
{
|
||||
public:
|
||||
PRTQUEUE (const PRQINFO3* pPQI3) { InitWithPQI3 (pPQI3); }
|
||||
|
@ -354,7 +354,7 @@ BOOL PRINTDLG::ShowProperties(ULONG printerNdx)
|
|||
/* Job management */
|
||||
/****************************************************************************/
|
||||
|
||||
HDC PrnOpenDC( PRTQUEUE *pInfo, PSZ pszApplicationName, int copies, int destination, char *file )
|
||||
NS_GFX_(HDC) PrnOpenDC( PRTQUEUE *pInfo, PSZ pszApplicationName, int copies, int destination, char *file )
|
||||
{
|
||||
HDC hdc = 0;
|
||||
PSZ pszLogAddress;
|
||||
|
@ -405,7 +405,7 @@ HDC PrnOpenDC( PRTQUEUE *pInfo, PSZ pszApplicationName, int copies, int destinat
|
|||
}
|
||||
|
||||
/* find the selected form */
|
||||
BOOL PrnQueryHardcopyCaps( HDC hdc, PHCINFO pHCInfo)
|
||||
NS_GFX_(BOOL) PrnQueryHardcopyCaps( HDC hdc, PHCINFO pHCInfo)
|
||||
{
|
||||
BOOL rc = FALSE;
|
||||
|
||||
|
@ -440,19 +440,19 @@ BOOL PrnQueryHardcopyCaps( HDC hdc, PHCINFO pHCInfo)
|
|||
/* Library-level data and functions -Printing */
|
||||
/****************************************************************************/
|
||||
|
||||
BOOL PrnInitialize( HMODULE hmodResources)
|
||||
NS_GFX_(BOOL) PrnInitialize( HMODULE hmodResources)
|
||||
{
|
||||
hmodRes = hmodResources;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL PrnTerminate()
|
||||
NS_GFX_(BOOL) PrnTerminate()
|
||||
{
|
||||
/* nop for now, may do something eventually */
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL PrnClosePrinter( PRTQUEUE *pPrintQueue)
|
||||
NS_GFX_(BOOL) PrnClosePrinter( PRTQUEUE *pPrintQueue)
|
||||
{
|
||||
BOOL rc = FALSE;
|
||||
|
||||
|
|
|
@ -48,20 +48,21 @@
|
|||
#define INCL_GRE_DEVICE
|
||||
#include <os2.h>
|
||||
#include <pmddim.h>
|
||||
#include "gfxCore.h"
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// OS/2 Printing - was in libprint
|
||||
//---------------------------------------------------------------------------
|
||||
// Library init and term; job properties per queue are cached during run.
|
||||
BOOL PrnInitialize(HMODULE hmodResources);
|
||||
BOOL PrnTerminate(void);
|
||||
NS_GFX_(BOOL) PrnInitialize(HMODULE hmodResources);
|
||||
NS_GFX_(BOOL) PrnTerminate(void);
|
||||
|
||||
// opaque type to describe a print queue (printer)
|
||||
class PRTQUEUE;
|
||||
class NS_GFX PRTQUEUE;
|
||||
|
||||
#define MAX_PRINT_QUEUES (128)
|
||||
|
||||
class PRINTDLG
|
||||
class NS_GFX PRINTDLG
|
||||
{
|
||||
public:
|
||||
PRINTDLG();
|
||||
|
@ -83,16 +84,16 @@ private:
|
|||
|
||||
|
||||
// Release app. resources associated with a printer
|
||||
BOOL PrnClosePrinter( PRTQUEUE *pPrintQueue);
|
||||
NS_GFX_(BOOL) PrnClosePrinter( PRTQUEUE *pPrintQueue);
|
||||
|
||||
// Get a DC for the selected printer. Must supply the application name.
|
||||
HDC PrnOpenDC( PRTQUEUE *pPrintQueue, PSZ pszApplicationName, int copies, int destination, char *file);
|
||||
NS_GFX_(HDC) PrnOpenDC( PRTQUEUE *pPrintQueue, PSZ pszApplicationName, int copies, int destination, char *file);
|
||||
|
||||
// Get the hardcopy caps for the selected form
|
||||
BOOL PrnQueryHardcopyCaps( HDC hdc, PHCINFO pHCInfo);
|
||||
NS_GFX_(BOOL) PrnQueryHardcopyCaps( HDC hdc, PHCINFO pHCInfo);
|
||||
|
||||
// Abort the current job started with PrnStartJob().
|
||||
BOOL PrnAbortJob( HDC hdc);
|
||||
NS_GFX_(BOOL) PrnAbortJob( HDC hdc);
|
||||
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче