summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_bidi.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-31 14:26:25 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-31 18:46:24 +0000
commit235818f45eda6fd47114c076bfa818b2ef3ba894 (patch)
treed83d4160bc27048fd53778364a2917496855e948 /core/fxcrt/fx_bidi.h
parentf8763bb449273667ef5ff11a0fa491e3e8b46136 (diff)
downloadpdfium-235818f45eda6fd47114c076bfa818b2ef3ba894.tar.xz
Move bidi code to fx_bidi
This CL moves the BIDI code from fx_arabic to fx_bidi and conditionally compiles based on XFA. Change-Id: Iaba60486f03e48f0816d60e365a58a8622bc8254 Reviewed-on: https://pdfium-review.googlesource.com/12713 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_bidi.h')
-rw-r--r--core/fxcrt/fx_bidi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/fxcrt/fx_bidi.h b/core/fxcrt/fx_bidi.h
index d5e0bd3f62..0dc426b57a 100644
--- a/core/fxcrt/fx_bidi.h
+++ b/core/fxcrt/fx_bidi.h
@@ -13,6 +13,10 @@
#include "core/fxcrt/fx_string.h"
#include "core/fxcrt/fx_system.h"
+#ifdef PDF_ENABLE_XFA
+#include "core/fxcrt/cfx_char.h"
+#endif // PDF_ENABLE_XFA
+
// Processes characters and group them into segments based on text direction.
class CFX_BidiChar {
public:
@@ -72,4 +76,8 @@ class CFX_BidiString {
CFX_BidiChar::Direction m_eOverallDirection;
};
+#if PDF_ENABLE_XFA
+void FX_BidiLine(std::vector<CFX_Char>* chars, int32_t iCount);
+#endif // PDF_ENABLE_XFA
+
#endif // CORE_FXCRT_FX_BIDI_H_