update dev300-m58
[ooovba.git] / sal / textenc / convertiso2022cn.h
blob218cf6a34a696042389e20777c85deab47bf4d38
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: convertiso2022cn.h,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef INCLUDED_RTL_TEXTENC_CONVERTISO2022CN_H
32 #define INCLUDED_RTL_TEXTENC_CONVERTISO2022CN_H
34 #include "tenchelp.h"
35 #include "sal/types.h"
37 #if defined __cplusplus
38 extern "C" {
39 #endif /* __cpluscplus */
41 typedef struct
43 ImplDBCSToUniLeadTab const * m_pGb2312ToUnicodeData;
44 sal_uInt16 const * m_pCns116431992ToUnicodeData;
45 sal_Int32 const * m_pCns116431992ToUnicodeRowOffsets;
46 sal_Int32 const * m_pCns116431992ToUnicodePlaneOffsets;
47 ImplUniToDBCSHighTab const * m_pUnicodeToGb2312Data;
48 sal_uInt8 const * m_pUnicodeToCns116431992Data;
49 sal_Int32 const * m_pUnicodeToCns116431992PageOffsets;
50 sal_Int32 const * m_pUnicodeToCns116431992PlaneOffsets;
51 } ImplIso2022CnConverterData;
53 void * ImplCreateIso2022CnToUnicodeContext(void) SAL_THROW_EXTERN_C();
55 void ImplResetIso2022CnToUnicodeContext(void * pContext) SAL_THROW_EXTERN_C();
57 sal_Size ImplConvertIso2022CnToUnicode(ImplTextConverterData const * pData,
58 void * pContext,
59 sal_Char const * pSrcBuf,
60 sal_Size nSrcBytes,
61 sal_Unicode * pDestBuf,
62 sal_Size nDestChars,
63 sal_uInt32 nFlags,
64 sal_uInt32 * pInfo,
65 sal_Size * pSrcCvtBytes)
66 SAL_THROW_EXTERN_C();
68 void * ImplCreateUnicodeToIso2022CnContext(void) SAL_THROW_EXTERN_C();
70 void ImplResetUnicodeToIso2022CnContext(void * pContext) SAL_THROW_EXTERN_C();
72 sal_Size ImplConvertUnicodeToIso2022Cn(ImplTextConverterData const * pData,
73 void * pContext,
74 sal_Unicode const * pSrcBuf,
75 sal_Size nSrcChars,
76 sal_Char * pDestBuf,
77 sal_Size nDestBytes,
78 sal_uInt32 nFlags,
79 sal_uInt32 * pInfo,
80 sal_Size * pSrcCvtChars)
81 SAL_THROW_EXTERN_C();
83 #if defined __cplusplus
85 #endif /* __cpluscplus */
87 #endif /* INCLUDED_RTL_TEXTENC_CONVERTISO2022CN_H */