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

Side by Side Diff: fpdfsdk/fsdk_baseform.cpp

Issue 2003853003: Remove dead code from CPDF_InterForm. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 7 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/fpdfformfill.cpp ('k') | fpdfsdk/include/fsdk_baseform.h » ('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 "fpdfsdk/include/fsdk_baseform.h" 7 #include "fpdfsdk/include/fsdk_baseform.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after
1960 CFX_FloatRect CPDFSDK_XFAWidget::GetRect() const { 1960 CFX_FloatRect CPDFSDK_XFAWidget::GetRect() const {
1961 CFX_RectF rcBBox; 1961 CFX_RectF rcBBox;
1962 GetXFAWidget()->GetRect(rcBBox); 1962 GetXFAWidget()->GetRect(rcBBox);
1963 return CFX_FloatRect(rcBBox.left, rcBBox.top, rcBBox.left + rcBBox.width, 1963 return CFX_FloatRect(rcBBox.left, rcBBox.top, rcBBox.left + rcBBox.width,
1964 rcBBox.top + rcBBox.height); 1964 rcBBox.top + rcBBox.height);
1965 } 1965 }
1966 #endif // PDF_ENABLE_XFA 1966 #endif // PDF_ENABLE_XFA
1967 1967
1968 CPDFSDK_InterForm::CPDFSDK_InterForm(CPDFSDK_Document* pDocument) 1968 CPDFSDK_InterForm::CPDFSDK_InterForm(CPDFSDK_Document* pDocument)
1969 : m_pDocument(pDocument), 1969 : m_pDocument(pDocument),
1970 m_pInterForm(NULL), 1970 m_pInterForm(new CPDF_InterForm(m_pDocument->GetPDFDocument())),
1971 #ifdef PDF_ENABLE_XFA 1971 #ifdef PDF_ENABLE_XFA
1972 m_bXfaCalculate(TRUE), 1972 m_bXfaCalculate(TRUE),
1973 m_bXfaValidationsEnabled(TRUE), 1973 m_bXfaValidationsEnabled(TRUE),
1974 #endif // PDF_ENABLE_XFA 1974 #endif // PDF_ENABLE_XFA
1975 m_bCalculate(TRUE), 1975 m_bCalculate(TRUE),
1976 m_bBusy(FALSE) { 1976 m_bBusy(FALSE) {
1977 m_pInterForm = new CPDF_InterForm(m_pDocument->GetPDFDocument(), FALSE);
1978 m_pInterForm->SetFormNotify(this); 1977 m_pInterForm->SetFormNotify(this);
1979
1980 for (int i = 0; i < kNumFieldTypes; ++i) 1978 for (int i = 0; i < kNumFieldTypes; ++i)
1981 m_bNeedHightlight[i] = FALSE; 1979 m_bNeedHightlight[i] = FALSE;
1982 m_iHighlightAlpha = 0; 1980 m_iHighlightAlpha = 0;
1983 } 1981 }
1984 1982
1985 CPDFSDK_InterForm::~CPDFSDK_InterForm() { 1983 CPDFSDK_InterForm::~CPDFSDK_InterForm() {
1986 delete m_pInterForm;
1987 m_pInterForm = nullptr;
1988 m_Map.clear(); 1984 m_Map.clear();
1989 #ifdef PDF_ENABLE_XFA 1985 #ifdef PDF_ENABLE_XFA
1990 m_XFAMap.clear(); 1986 m_XFAMap.clear();
1991 #endif // PDF_ENABLE_XFA 1987 #endif // PDF_ENABLE_XFA
1992 } 1988 }
1993 1989
1994 FX_BOOL CPDFSDK_InterForm::HighlightWidgets() { 1990 FX_BOOL CPDFSDK_InterForm::HighlightWidgets() {
1995 return FALSE; 1991 return FALSE;
1996 } 1992 }
1997 1993
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
2809 break; 2805 break;
2810 } 2806 }
2811 } 2807 }
2812 } 2808 }
2813 2809
2814 CFX_FloatRect CBA_AnnotIterator::GetAnnotRect(const CPDFSDK_Annot* pAnnot) { 2810 CFX_FloatRect CBA_AnnotIterator::GetAnnotRect(const CPDFSDK_Annot* pAnnot) {
2815 CFX_FloatRect rcAnnot; 2811 CFX_FloatRect rcAnnot;
2816 pAnnot->GetPDFAnnot()->GetRect(rcAnnot); 2812 pAnnot->GetPDFAnnot()->GetRect(rcAnnot);
2817 return rcAnnot; 2813 return rcAnnot;
2818 } 2814 }
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfformfill.cpp ('k') | fpdfsdk/include/fsdk_baseform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698