Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fgas / include / fx_lbk.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _FX_LINEBREAK\r
8 #define _FX_LINEBREAK\r
9 enum FX_LINEBREAKTYPE {\r
10     FX_LBT_UNKNOWN                              = 0x00,\r
11     FX_LBT_DIRECT_BRK                   = 0x1A,\r
12     FX_LBT_INDIRECT_BRK                 = 0x2B,\r
13     FX_LBT_COM_INDIRECT_BRK             = 0x3C,\r
14     FX_LBT_COM_PROHIBITED_BRK   = 0x4D,\r
15     FX_LBT_PROHIBITED_BRK               = 0x5E,\r
16     FX_LBT_HANGUL_SPACE_BRK             = 0x6F,\r
17 };\r
18 #define FX_LBUN FX_LBT_UNKNOWN\r
19 #define FX_LBDB FX_LBT_DIRECT_BRK\r
20 #define FX_LBIB FX_LBT_INDIRECT_BRK\r
21 #define FX_LBCB FX_LBT_COM_INDIRECT_BRK\r
22 #define FX_LBCP FX_LBT_COM_PROHIBITED_BRK\r
23 #define FX_LBPB FX_LBT_PROHIBITED_BRK\r
24 #define FX_LBHS FX_LBT_HANGUL_SPACE_BRK\r
25 void    FX_GetLineBreakPositions(FX_LPCWSTR pwsText, FX_LINEBREAKTYPE *pBrkType, FX_INT32 iLength);\r
26 void    FX_GetLineBreakPositions(FX_LPCWSTR pwsText, FX_INT32 iLength, CFX_Int32MassArray &bp);\r
27 #endif\r