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

Side by Side Diff: fpdfsdk/src/fsdk_mgr.cpp

Issue 1171733003: Remove typdefs for pointer types in fx_system.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual fixes. Created 5 years, 6 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/fsdk_baseform.cpp ('k') | fpdfsdk/src/fxedit/fxet_edit.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 "../../public/fpdf_ext.h" 7 #include "../../public/fpdf_ext.h"
8 #include "../include/fsdk_define.h" 8 #include "../include/fsdk_define.h"
9 #include "../include/fsdk_mgr.h" 9 #include "../include/fsdk_mgr.h"
10 #include "../include/formfiller/FFL_FormFiller.h" 10 #include "../include/formfiller/FFL_FormFiller.h"
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 610
611 611
612 CPDFSDK_PageView::CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc,CPDF_Page* page):m_ page(page),m_pSDKDoc(pSDKDoc) 612 CPDFSDK_PageView::CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc,CPDF_Page* page):m_ page(page),m_pSDKDoc(pSDKDoc)
613 { 613 {
614 CPDFSDK_InterForm* pInterForm = pSDKDoc->GetInterForm(); 614 CPDFSDK_InterForm* pInterForm = pSDKDoc->GetInterForm();
615 if(pInterForm) 615 if(pInterForm)
616 { 616 {
617 CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm(); 617 CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm();
618 pPDFInterForm->FixPageFields(page); 618 pPDFInterForm->FixPageFields(page);
619 } 619 }
620 m_page->SetPrivateData((FX_LPVOID)m_page, (FX_LPVOID)this, NULL); 620 m_page->SetPrivateData((void*)m_page, (void*)this, NULL);
621 m_fxAnnotArray.RemoveAll(); 621 m_fxAnnotArray.RemoveAll();
622 622
623 m_bEnterWidget = FALSE; 623 m_bEnterWidget = FALSE;
624 m_bExitWidget = FALSE; 624 m_bExitWidget = FALSE;
625 m_bOnWidget = FALSE; 625 m_bOnWidget = FALSE;
626 m_CaptureWidget = NULL; 626 m_CaptureWidget = NULL;
627 m_bValid = FALSE; 627 m_bValid = FALSE;
628 m_bLocked = FALSE; 628 m_bLocked = FALSE;
629 m_bTakeOverPage = FALSE; 629 m_bTakeOverPage = FALSE;
630 } 630 }
(...skipping 12 matching lines...) Expand all
643 CPDFSDK_AnnotHandlerMgr* pAnnotHandlerMgr = pEnv->GetAnnotHandle rMgr(); 643 CPDFSDK_AnnotHandlerMgr* pAnnotHandlerMgr = pEnv->GetAnnotHandle rMgr();
644 ASSERT(pAnnotHandlerMgr); 644 ASSERT(pAnnotHandlerMgr);
645 pAnnotHandlerMgr->ReleaseAnnot(pAnnot); 645 pAnnotHandlerMgr->ReleaseAnnot(pAnnot);
646 } 646 }
647 m_fxAnnotArray.RemoveAll(); 647 m_fxAnnotArray.RemoveAll();
648 if(m_pAnnotList) 648 if(m_pAnnotList)
649 { 649 {
650 delete m_pAnnotList; 650 delete m_pAnnotList;
651 m_pAnnotList = NULL; 651 m_pAnnotList = NULL;
652 } 652 }
653 m_page->RemovePrivateData((FX_LPVOID)m_page); 653 m_page->RemovePrivateData((void*)m_page);
654 if(m_bTakeOverPage) { 654 if(m_bTakeOverPage) {
655 delete m_page; 655 delete m_page;
656 } 656 }
657 } 657 }
658 658
659 void CPDFSDK_PageView::PageView_OnDraw(CFX_RenderDevice* pDevice, CPDF_Matrix* p User2Device,CPDF_RenderOptions* pOptions) 659 void CPDFSDK_PageView::PageView_OnDraw(CFX_RenderDevice* pDevice, CPDF_Matrix* p User2Device,CPDF_RenderOptions* pOptions)
660 { 660 {
661 m_curMatrix = *pUser2Device; 661 m_curMatrix = *pUser2Device;
662 662
663 // m_pAnnotList->DisplayAnnots(m_page, pDevice, pUser2Device, FALSE , pOptions); 663 // m_pAnnotList->DisplayAnnots(m_page, pDevice, pUser2Device, FALSE , pOptions);
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 return pSDKAnnot; 783 return pSDKAnnot;
784 } 784 }
785 785
786 CPDFSDK_Annot* CPDFSDK_PageView::AddAnnot(CPDF_Dictionary * pDict) 786 CPDFSDK_Annot* CPDFSDK_PageView::AddAnnot(CPDF_Dictionary * pDict)
787 { 787 {
788 if(pDict) 788 if(pDict)
789 return this->AddAnnot(pDict->GetString("Subtype"),pDict); 789 return this->AddAnnot(pDict->GetString("Subtype"),pDict);
790 return NULL; 790 return NULL;
791 } 791 }
792 792
793 CPDFSDK_Annot* CPDFSDK_PageView::AddAnnot(FX_LPCSTR lpSubType,CPDF_Dictionary * pDict) 793 CPDFSDK_Annot* CPDFSDK_PageView::AddAnnot(const FX_CHAR* lpSubType,CPDF_Dictiona ry * pDict)
794 { 794 {
795 return NULL; 795 return NULL;
796 } 796 }
797 797
798 FX_BOOL CPDFSDK_PageView::DeleteAnnot(CPDFSDK_Annot* pAnnot) 798 FX_BOOL CPDFSDK_PageView::DeleteAnnot(CPDFSDK_Annot* pAnnot)
799 { 799 {
800 return FALSE; 800 return FALSE;
801 } 801 }
802 802
803 CPDF_Document* CPDFSDK_PageView::GetPDFDocument() 803 CPDF_Document* CPDFSDK_PageView::GetPDFDocument()
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 CPDF_Dictionary* pDic = m_page->m_pFormDict; 1042 CPDF_Dictionary* pDic = m_page->m_pFormDict;
1043 CPDF_Document* pDoc = m_pSDKDoc->GetDocument(); 1043 CPDF_Document* pDoc = m_pSDKDoc->GetDocument();
1044 if(pDoc && pDic) 1044 if(pDoc && pDic)
1045 { 1045 {
1046 return pDoc->GetPageIndex(pDic->GetObjNum()); 1046 return pDoc->GetPageIndex(pDic->GetObjNum());
1047 } 1047 }
1048 } 1048 }
1049 return -1; 1049 return -1;
1050 } 1050 }
1051 1051
1052 FX_BOOL»CPDFSDK_PageView::IsValidAnnot(FX_LPVOID p) 1052 FX_BOOL»CPDFSDK_PageView::IsValidAnnot(void* p)
1053 { 1053 {
1054 if (p == NULL) return FALSE; 1054 if (p == NULL) return FALSE;
1055 int iCount = m_pAnnotList->Count(); 1055 int iCount = m_pAnnotList->Count();
1056 for (int i = 0; i < iCount; i++) 1056 for (int i = 0; i < iCount; i++)
1057 { 1057 {
1058 if (m_pAnnotList->GetAt(i) == p) 1058 if (m_pAnnotList->GetAt(i) == p)
1059 return TRUE; 1059 return TRUE;
1060 } 1060 }
1061 return FALSE; 1061 return FALSE;
1062 } 1062 }
1063 1063
1064 1064
1065 CPDFSDK_Annot* CPDFSDK_PageView::GetFocusAnnot() 1065 CPDFSDK_Annot* CPDFSDK_PageView::GetFocusAnnot()
1066 { 1066 {
1067 CPDFSDK_Annot* pFocusAnnot = m_pSDKDoc->GetFocusAnnot(); 1067 CPDFSDK_Annot* pFocusAnnot = m_pSDKDoc->GetFocusAnnot();
1068 if(!pFocusAnnot) 1068 if(!pFocusAnnot)
1069 return NULL; 1069 return NULL;
1070 1070
1071 for(int i=0; i<m_fxAnnotArray.GetSize(); i++) 1071 for(int i=0; i<m_fxAnnotArray.GetSize(); i++)
1072 { 1072 {
1073 CPDFSDK_Annot* pAnnot = (CPDFSDK_Annot*)m_fxAnnotArray.GetAt(i); 1073 CPDFSDK_Annot* pAnnot = (CPDFSDK_Annot*)m_fxAnnotArray.GetAt(i);
1074 if(pAnnot == pFocusAnnot) 1074 if(pAnnot == pFocusAnnot)
1075 return pAnnot; 1075 return pAnnot;
1076 } 1076 }
1077 return NULL; 1077 return NULL;
1078 } 1078 }
1079 1079
OLDNEW
« no previous file with comments | « fpdfsdk/src/fsdk_baseform.cpp ('k') | fpdfsdk/src/fxedit/fxet_edit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698