summaryrefslogtreecommitdiff
path: root/core/src/fxcrt/fx_arabic.h
diff options
context:
space:
mode:
authorJohn Abd-El-Malek <jabdelmalek@google.com>2014-05-17 22:33:34 -0700
committerJohn Abd-El-Malek <jabdelmalek@google.com>2014-05-17 22:33:34 -0700
commit5110c4743751145c4ae1934cd1d83bc6c55bb43f (patch)
treeb141608096b73163182764c25b895d3df4b2c182 /core/src/fxcrt/fx_arabic.h
parent76b563d2feed92ed328afb1f15e3466a9536b11b (diff)
downloadpdfium-5110c4743751145c4ae1934cd1d83bc6c55bb43f.tar.xz
Initial commit.
Diffstat (limited to 'core/src/fxcrt/fx_arabic.h')
-rw-r--r--core/src/fxcrt/fx_arabic.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/core/src/fxcrt/fx_arabic.h b/core/src/fxcrt/fx_arabic.h
new file mode 100644
index 0000000000..503ec01696
--- /dev/null
+++ b/core/src/fxcrt/fx_arabic.h
@@ -0,0 +1,34 @@
+// Copyright 2014 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef _FX_ARABIC_IMP
+#define _FX_ARABIC_IMP
+class CFX_BidiChar : public IFX_BidiChar, public CFX_Object
+{
+public:
+ CFX_BidiChar();
+ virtual void Release()
+ {
+ delete this;
+ }
+ virtual void SetPolicy(FX_BOOL bSeparateNeutral = TRUE)
+ {
+ m_bSeparateNeutral = bSeparateNeutral;
+ }
+ virtual FX_BOOL AppendChar(FX_WCHAR wch);
+ virtual FX_BOOL EndChar();
+ virtual FX_INT32 GetBidiInfo(FX_INT32 &iStart, FX_INT32 &iCount);
+ virtual void Reset();
+protected:
+ FX_BOOL m_bSeparateNeutral;
+ FX_INT32 m_iCurStart;
+ FX_INT32 m_iCurCount;
+ FX_INT32 m_iCurBidi;
+ FX_INT32 m_iLastBidi;
+ FX_INT32 m_iLastStart;
+ FX_INT32 m_iLastCount;
+};
+#endif