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 "../../include/formfiller/FFL_TextField.h" | 7 #include "../../include/formfiller/FFL_TextField.h" |
8 #include "../../include/formfiller/FFL_CBA_Fontmap.h" | 8 #include "../../include/formfiller/FFL_CBA_Fontmap.h" |
9 | 9 |
10 /* ------------------------------- CFFL_TextField ------------------------------
- */ | 10 /* ------------------------------- CFFL_TextField ------------------------------
- */ |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, TRU
E)) | 147 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, TRU
E)) |
148 pWnd->SetFocus(); | 148 pWnd->SetFocus(); |
149 } | 149 } |
150 else | 150 else |
151 { | 151 { |
152 if (CommitData(pPageView, nFlags)) | 152 if (CommitData(pPageView, nFlags)) |
153 { | 153 { |
154 DestroyPDFWindow(pPageView); | 154 DestroyPDFWindow(pPageView); |
155 return TRUE; | 155 return TRUE; |
156 } | 156 } |
157 » » » » else | 157 return FALSE; |
158 » » » » { | |
159 » » » » » return FALSE; | |
160 » » » » } | |
161 } | 158 } |
162 } | 159 } |
163 break; | 160 break; |
164 case FWL_VKEY_Escape: | 161 case FWL_VKEY_Escape: |
165 { | 162 { |
166 CPDFSDK_PageView* pPageView = GetCurPageView(); | 163 CPDFSDK_PageView* pPageView = GetCurPageView(); |
167 ASSERT(pPageView != NULL); | 164 ASSERT(pPageView != NULL); |
168 EscapeFiller(pPageView,TRUE); | 165 EscapeFiller(pPageView,TRUE); |
169 return TRUE; | 166 return TRUE; |
170 } | 167 } |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 | 350 |
354 FX_BOOL CFFL_TextField::CanPaste(CPDFSDK_Document* pDocument) | 351 FX_BOOL CFFL_TextField::CanPaste(CPDFSDK_Document* pDocument) |
355 { | 352 { |
356 return FALSE; | 353 return FALSE; |
357 } | 354 } |
358 | 355 |
359 void CFFL_TextField::OnAddUndo(CPWL_Edit* pEdit) | 356 void CFFL_TextField::OnAddUndo(CPWL_Edit* pEdit) |
360 { | 357 { |
361 } | 358 } |
362 | 359 |
OLD | NEW |