Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: fpdfsdk/src/formfiller/FFL_FormFiller.cpp

Issue 1280883003: Merge to XFA: Cleanup: Remove dead formfiller code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@xfa
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_ComboBox.cpp ('k') | fpdfsdk/src/formfiller/FFL_IFormFiller.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_FormFiller.h" 7 #include "../../include/formfiller/FFL_FormFiller.h"
8 #include "../../include/formfiller/FFL_Notify.h" 8 #include "../../include/formfiller/FFL_Notify.h"
9 #include "../../include/formfiller/FFL_CBA_Fontmap.h" 9 #include "../../include/formfiller/FFL_CBA_Fontmap.h"
10 10
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 FX_UINT nFlags, 205 FX_UINT nFlags,
206 const CPDF_Point& point) { 206 const CPDF_Point& point) {
207 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, FALSE)) { 207 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, FALSE)) {
208 pWnd->OnRButtonUp(WndtoPWL(pPageView, point), nFlags); 208 pWnd->OnRButtonUp(WndtoPWL(pPageView, point), nFlags);
209 return TRUE; 209 return TRUE;
210 } 210 }
211 211
212 return FALSE; 212 return FALSE;
213 } 213 }
214 214
215 FX_BOOL CFFL_FormFiller::OnRButtonDblClk(CPDFSDK_PageView* pPageView,
216 CPDFSDK_Annot* pAnnot,
217 FX_UINT nFlags,
218 const CPDF_Point& point) {
219 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, FALSE)) {
220 pWnd->OnRButtonDblClk(WndtoPWL(pPageView, point), nFlags);
221 return TRUE;
222 }
223
224 return FALSE;
225 }
226
227 FX_BOOL CFFL_FormFiller::OnKeyDown(CPDFSDK_Annot* pAnnot, 215 FX_BOOL CFFL_FormFiller::OnKeyDown(CPDFSDK_Annot* pAnnot,
228 FX_UINT nKeyCode, 216 FX_UINT nKeyCode,
229 FX_UINT nFlags) { 217 FX_UINT nFlags) {
230 if (IsValid()) { 218 if (IsValid()) {
231 CPDFSDK_PageView* pPageView = GetCurPageView(); 219 CPDFSDK_PageView* pPageView = GetCurPageView();
232 ASSERT(pPageView != NULL); 220 ASSERT(pPageView != NULL);
233 221
234 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, FALSE)) { 222 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, FALSE)) {
235 return pWnd->OnKeyDown(nKeyCode, nFlags); 223 return pWnd->OnKeyDown(nKeyCode, nFlags);
236 } 224 }
(...skipping 10 matching lines...) Expand all
247 ASSERT(pPageView != NULL); 235 ASSERT(pPageView != NULL);
248 236
249 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, FALSE)) { 237 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, FALSE)) {
250 return pWnd->OnChar(nChar, nFlags); 238 return pWnd->OnChar(nChar, nFlags);
251 } 239 }
252 } 240 }
253 241
254 return FALSE; 242 return FALSE;
255 } 243 }
256 244
257 void CFFL_FormFiller::OnDeSelected(CPDFSDK_Annot* pAnnot) {
258 ASSERT(FALSE);
259 }
260
261 void CFFL_FormFiller::OnSelected(CPDFSDK_Annot* pAnnot) {
262 ASSERT(FALSE);
263 }
264
265 FX_BOOL CFFL_FormFiller::OnSetFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag) { 245 FX_BOOL CFFL_FormFiller::OnSetFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag) {
266 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; 246 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
267 CPDFXFA_Page* pPage = pWidget->GetPDFXFAPage(); 247 CPDFXFA_Page* pPage = pWidget->GetPDFXFAPage();
268 CPDFSDK_Document* pDoc = m_pApp->GetSDKDocument(); 248 CPDFSDK_Document* pDoc = m_pApp->GetSDKDocument();
269 CPDFSDK_PageView* pPageView = pDoc->GetPageView(pPage); 249 CPDFSDK_PageView* pPageView = pDoc->GetPageView(pPage);
270 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, TRUE)) 250 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, TRUE))
271 pWnd->SetFocus(); 251 pWnd->SetFocus();
272 252
273 m_bValid = TRUE; 253 m_bValid = TRUE;
274 FX_RECT rcRect = GetViewBBox(pPageView, pAnnot); 254 FX_RECT rcRect = GetViewBBox(pPageView, pAnnot);
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); 737 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL);
758 } 738 }
759 739
760 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, 740 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView,
761 CPDFSDK_Annot* pAnnot, 741 CPDFSDK_Annot* pAnnot,
762 CFX_RenderDevice* pDevice, 742 CFX_RenderDevice* pDevice,
763 CPDF_Matrix* pUser2Device, 743 CPDF_Matrix* pUser2Device,
764 FX_DWORD dwFlags) { 744 FX_DWORD dwFlags) {
765 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); 745 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags);
766 } 746 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_ComboBox.cpp ('k') | fpdfsdk/src/formfiller/FFL_IFormFiller.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698