diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-08-21 14:50:57 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-21 19:14:22 +0000 |
commit | 1eb6cb7b078dc773b4663575432f144d15d0c2e5 (patch) | |
tree | 7eeac3578ef0ab32d46afbd11ca070a358743e0e /xfa/fde/cfde_txtedtengine.h | |
parent | a798e2f487e388aafc0beeda46aca3fb0358c189 (diff) | |
download | pdfium-1eb6cb7b078dc773b4663575432f144d15d0c2e5.tar.xz |
Convert FDE_TXTEDIT_LINEEND to a private enum class
This CL converts the enum to an enum class and updates the usage as
needed.
Change-Id: I7ba883e7d1debee00d3d9baafe941620109df8b8
Reviewed-on: https://pdfium-review.googlesource.com/11511
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtengine.h')
-rw-r--r-- | xfa/fde/cfde_txtedtengine.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/xfa/fde/cfde_txtedtengine.h b/xfa/fde/cfde_txtedtengine.h index 40251159c0..3edd4dc872 100644 --- a/xfa/fde/cfde_txtedtengine.h +++ b/xfa/fde/cfde_txtedtengine.h @@ -144,6 +144,13 @@ class CFDE_TxtEdtEngine { int32_t nCharIndex; }; + enum class LineEnding { + kAuto, + kCRLF, + kCR, + kLF, + }; + int32_t CountPages() const { return m_nLineCount == 0 ? 0 : ((m_nLineCount - 1) / m_nPageLineCount) + 1; } @@ -205,7 +212,7 @@ class CFDE_TxtEdtEngine { CFX_RectF m_rtCaret; int32_t m_nLimit; wchar_t m_wcAliasChar; - int32_t m_nFirstLineEnd; + LineEnding m_FirstLineEnding; bool m_bBefore; bool m_bLock; bool m_bAutoLineEnd; |