1// Copyright 2014 PDFium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef _FX_ARABIC_IMP
8#define _FX_ARABIC_IMP
9class CFX_BidiChar : public IFX_BidiChar, public CFX_Object
10{
11public:
12    CFX_BidiChar();
13    virtual void		Release()
14    {
15        delete this;
16    }
17    virtual void		SetPolicy(FX_BOOL bSeparateNeutral = TRUE)
18    {
19        m_bSeparateNeutral = bSeparateNeutral;
20    }
21    virtual FX_BOOL		AppendChar(FX_WCHAR wch);
22    virtual FX_BOOL		EndChar();
23    virtual FX_INT32	GetBidiInfo(FX_INT32 &iStart, FX_INT32 &iCount);
24    virtual void		Reset();
25protected:
26    FX_BOOL		m_bSeparateNeutral;
27    FX_INT32	m_iCurStart;
28    FX_INT32	m_iCurCount;
29    FX_INT32	m_iCurBidi;
30    FX_INT32	m_iLastBidi;
31    FX_INT32	m_iLastStart;
32    FX_INT32	m_iLastCount;
33};
34#endif
35