| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "xfa/fwl/basewidget/fwl_editimp.h" | 7 #include "xfa/fwl/basewidget/fwl_editimp.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "xfa/fwl/basewidget/fwl_scrollbarimp.h" | 21 #include "xfa/fwl/basewidget/fwl_scrollbarimp.h" |
| 22 #include "xfa/fwl/basewidget/ifwl_caret.h" | 22 #include "xfa/fwl/basewidget/ifwl_caret.h" |
| 23 #include "xfa/fwl/core/cfwl_message.h" | 23 #include "xfa/fwl/core/cfwl_message.h" |
| 24 #include "xfa/fwl/core/cfwl_themebackground.h" | 24 #include "xfa/fwl/core/cfwl_themebackground.h" |
| 25 #include "xfa/fwl/core/cfwl_themepart.h" | 25 #include "xfa/fwl/core/cfwl_themepart.h" |
| 26 #include "xfa/fwl/core/cfwl_widgetmgr.h" | 26 #include "xfa/fwl/core/cfwl_widgetmgr.h" |
| 27 #include "xfa/fwl/core/fwl_appimp.h" | 27 #include "xfa/fwl/core/fwl_appimp.h" |
| 28 #include "xfa/fwl/core/fwl_noteimp.h" | 28 #include "xfa/fwl/core/fwl_noteimp.h" |
| 29 #include "xfa/fwl/core/fwl_widgetimp.h" | 29 #include "xfa/fwl/core/fwl_widgetimp.h" |
| 30 #include "xfa/fwl/core/ifwl_themeprovider.h" | 30 #include "xfa/fwl/core/ifwl_themeprovider.h" |
| 31 #include "xfa/fxfa/include/xfa_ffdoc.h" | 31 #include "xfa/fxfa/xfa_ffdoc.h" |
| 32 #include "xfa/fxfa/include/xfa_ffwidget.h" | 32 #include "xfa/fxfa/xfa_ffwidget.h" |
| 33 #include "xfa/fxgraphics/cfx_path.h" | 33 #include "xfa/fxgraphics/cfx_path.h" |
| 34 | 34 |
| 35 namespace { | 35 namespace { |
| 36 | 36 |
| 37 const int kEditMargin = 3; | 37 const int kEditMargin = 3; |
| 38 | 38 |
| 39 bool FX_EDIT_ISLATINWORD(FX_WCHAR c) { | 39 bool FX_EDIT_ISLATINWORD(FX_WCHAR c) { |
| 40 return c == 0x2D || (c <= 0x005A && c >= 0x0041) || | 40 return c == 0x2D || (c <= 0x005A && c >= 0x0041) || |
| 41 (c <= 0x007A && c >= 0x0061) || (c <= 0x02AF && c >= 0x00C0) || | 41 (c <= 0x007A && c >= 0x0061) || (c <= 0x02AF && c >= 0x00C0) || |
| 42 c == 0x0027; | 42 c == 0x0027; |
| (...skipping 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2186 } | 2186 } |
| 2187 CFX_RectF rect; | 2187 CFX_RectF rect; |
| 2188 m_pOwner->GetWidgetRect(rect); | 2188 m_pOwner->GetWidgetRect(rect); |
| 2189 CFX_RectF rtInvalidate; | 2189 CFX_RectF rtInvalidate; |
| 2190 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2); | 2190 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2); |
| 2191 m_pOwner->Repaint(&rtInvalidate); | 2191 m_pOwner->Repaint(&rtInvalidate); |
| 2192 } | 2192 } |
| 2193 return TRUE; | 2193 return TRUE; |
| 2194 } | 2194 } |
| 2195 void CFWL_EditImpDelegate::DoCursor(CFWL_MsgMouse* pMsg) {} | 2195 void CFWL_EditImpDelegate::DoCursor(CFWL_MsgMouse* pMsg) {} |
| OLD | NEW |