Page Breaks: IsLeaveWindow() is unreliable, we do not need it here.
[LibreOffice.git] / sal / textenc / converter.h
blobc7465270478145b22c67c7ac2e43bc4c7669dc95
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef INCLUDED_RTL_TEXTENC_CONVERTER_H
30 #define INCLUDED_RTL_TEXTENC_CONVERTER_H
32 #include "sal/types.h"
34 #if defined __cplusplus
35 extern "C" {
36 #endif /* __cpluscplus */
38 typedef enum
40 IMPL_BAD_INPUT_STOP,
41 IMPL_BAD_INPUT_CONTINUE,
42 IMPL_BAD_INPUT_NO_OUTPUT
43 } ImplBadInputConversionAction;
45 ImplBadInputConversionAction
46 ImplHandleBadInputTextToUnicodeConversion(
47 sal_Bool bUndefined, sal_Bool bMultiByte, sal_Char cByte, sal_uInt32 nFlags,
48 sal_Unicode ** pDestBufPtr, sal_Unicode * pDestBufEnd, sal_uInt32 * pInfo)
49 SAL_THROW_EXTERN_C();
51 ImplBadInputConversionAction
52 ImplHandleBadInputUnicodeToTextConversion(sal_Bool bUndefined,
53 sal_uInt32 nUtf32,
54 sal_uInt32 nFlags,
55 sal_Char ** pDestBufPtr,
56 sal_Char * pDestBufEnd,
57 sal_uInt32 * pInfo,
58 sal_Char const * pPrefix,
59 sal_Size nPrefixLen,
60 sal_Bool * pPrefixWritten)
61 SAL_THROW_EXTERN_C();
63 #if defined __cplusplus
65 #endif /* __cpluscplus */
67 #endif /* INCLUDED_RTL_TEXTENC_CONVERTER_H */
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */