summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedtengine.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fde/cfde_txtedtengine.h')
-rw-r--r--xfa/fde/cfde_txtedtengine.h9
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;