Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fwl / src / basewidget / include / fxmath_barcodeimp.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 _FXMATH_BARCODEIMP_H_\r
8 #define _FXMATH_BARCODEIMP_H_\r
9 class CFX_Barcode : public IFX_Barcode, public CFX_Object\r
10 {\r
11 public:\r
12     CFX_Barcode();\r
13     ~CFX_Barcode();\r
14     FX_BOOL                                     Crreate(BC_TYPE type);\r
15     virtual void                        Release();\r
16     virtual BC_TYPE                     GetType();\r
17     virtual FX_BOOL                     Encode(FX_WSTR contents, FX_BOOL isDevice, FX_INT32 &e);\r
18     virtual FX_BOOL                     RenderDevice(CFX_RenderDevice* device, const CFX_Matrix* matirx, FX_INT32 &e);\r
19     virtual FX_BOOL                     RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32 &e);\r
20     virtual CFX_WideString      Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 height, FX_INT32 &errorCode);\r
21     virtual CFX_WideString      Decode(CFX_DIBitmap *pBitmap, FX_INT32 &errorCode);\r
22     virtual FX_BOOL                     SetCharEncoding(BC_CHAR_ENCODING encoding);\r
23     virtual FX_BOOL                     SetModuleHeight(FX_INT32 moduleHeight);\r
24     virtual FX_BOOL                     SetModuleWidth(FX_INT32 moduleWidth);\r
25     virtual FX_BOOL                     SetHeight(FX_INT32 height);\r
26     virtual FX_BOOL                     SetWidth(FX_INT32 width);\r
27     virtual FX_BOOL                     CheckContentValidity(FX_WSTR contents);\r
28     virtual FX_BOOL                     SetPrintChecksum(FX_BOOL checksum);\r
29     virtual FX_BOOL                     SetDataLength(FX_INT32 length);\r
30     virtual FX_BOOL                     SetCalChecksum(FX_INT32 state);\r
31     virtual FX_BOOL                     SetFont(CFX_Font* pFont);\r
32     virtual FX_BOOL                     SetFontSize(FX_FLOAT size);\r
33     virtual FX_BOOL                     SetFontStyle(FX_INT32 style);\r
34     virtual FX_BOOL                     SetFontColor(FX_ARGB color);\r
35     virtual FX_BOOL                     SetTextLocation(BC_TEXT_LOC location);\r
36     virtual FX_BOOL                     SetWideNarrowRatio(FX_INT32 ratio);\r
37     virtual FX_BOOL                     SetStartChar(FX_CHAR start);\r
38     virtual FX_BOOL                     SetEndChar(FX_CHAR end);\r
39     virtual FX_BOOL                     SetVersion(FX_INT32 version);\r
40     virtual FX_BOOL                     SetErrorCorrectionLevel(FX_INT32 level);\r
41     virtual FX_BOOL                     SetTruncated(FX_BOOL truncated);\r
42 protected:\r
43     CBC_CodeBase*       m_pBCEngine;\r
44 };\r
45 #endif\r