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

Side by Side Diff: fpdfsdk/include/fsdk_mgr.h

Issue 370853002: pdfium: Fix all -Wdelete-non-virtual-dtor violations on Mac. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 6 years, 5 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/include/fsdk_define.h ('k') | fpdfsdk/src/fpdf_sysfontinfo.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 #ifndef _FPDFSDK_MGR_H 7 #ifndef _FPDFSDK_MGR_H
8 #define _FPDFSDK_MGR_H 8 #define _FPDFSDK_MGR_H
9 9
10 #include "fsdk_common.h" 10 #include "fsdk_common.h"
(...skipping 13 matching lines...) Expand all
24 class CPDFSDK_PageView; 24 class CPDFSDK_PageView;
25 class CPDFSDK_Annot; 25 class CPDFSDK_Annot;
26 class CFFL_IFormFiller; 26 class CFFL_IFormFiller;
27 class CPDFSDK_Widget; 27 class CPDFSDK_Widget;
28 class IFX_SystemHandler; 28 class IFX_SystemHandler;
29 class CPDFSDK_ActionHandler; 29 class CPDFSDK_ActionHandler;
30 class CJS_RuntimeFactory; 30 class CJS_RuntimeFactory;
31 31
32 #include "javascript/IJavaScript.h" 32 #include "javascript/IJavaScript.h"
33 33
34 class CPDFDoc_Environment 34 class CPDFDoc_Environment FX_FINAL
35 { 35 {
36 public: 36 public:
37 CPDFDoc_Environment(CPDF_Document * pDoc); 37 CPDFDoc_Environment(CPDF_Document * pDoc);
38 ~CPDFDoc_Environment(); 38 ~CPDFDoc_Environment();
39 39
40 int RegAppHandle(FPDF_FORMFILLINFO* pFFinfo);//{ m_pInfo = pFFinfo; ret urn TRUE;} 40 int RegAppHandle(FPDF_FORMFILLINFO* pFFinfo);//{ m_pInfo = pFFinfo; ret urn TRUE;}
41 41
42 » virtual void» » Release() 42 » void FFI_Invalidate(FPDF_PAGE page, double left, double top, double righ t, double bottom)
43 » {
44 » » if (m_pInfo && m_pInfo->Release)
45 » » » m_pInfo->Release(m_pInfo);
46 » » delete this;
47 » }
48
49 » virtual void FFI_Invalidate(FPDF_PAGE page, double left, double top, dou ble right, double bottom)
50 { 43 {
51 if (m_pInfo && m_pInfo->FFI_Invalidate) 44 if (m_pInfo && m_pInfo->FFI_Invalidate)
52 { 45 {
53 m_pInfo->FFI_Invalidate(m_pInfo, page, left, top, right, bottom); 46 m_pInfo->FFI_Invalidate(m_pInfo, page, left, top, right, bottom);
54 } 47 }
55 } 48 }
56 » virtual void FFI_OutputSelectedRect(FPDF_PAGE page, double left, double top, double right, double bottom) 49 » void FFI_OutputSelectedRect(FPDF_PAGE page, double left, double top, dou ble right, double bottom)
57 { 50 {
58 if (m_pInfo && m_pInfo->FFI_OutputSelectedRect) 51 if (m_pInfo && m_pInfo->FFI_OutputSelectedRect)
59 { 52 {
60 m_pInfo->FFI_OutputSelectedRect(m_pInfo, page, left, top , right, bottom); 53 m_pInfo->FFI_OutputSelectedRect(m_pInfo, page, left, top , right, bottom);
61 } 54 }
62 } 55 }
63 56
64 » virtual void FFI_SetCursor(int nCursorType) 57 » void FFI_SetCursor(int nCursorType)
65 { 58 {
66 if (m_pInfo && m_pInfo->FFI_SetCursor) 59 if (m_pInfo && m_pInfo->FFI_SetCursor)
67 { 60 {
68 m_pInfo->FFI_SetCursor(m_pInfo, nCursorType); 61 m_pInfo->FFI_SetCursor(m_pInfo, nCursorType);
69 } 62 }
70 } 63 }
71 64
72 » virtual»int FFI_SetTimer(int uElapse, TimerCallback lpTimerFunc) 65 » int FFI_SetTimer(int uElapse, TimerCallback lpTimerFunc)
73 { 66 {
74 if (m_pInfo && m_pInfo->FFI_SetTimer) 67 if (m_pInfo && m_pInfo->FFI_SetTimer)
75 { 68 {
76 return m_pInfo->FFI_SetTimer(m_pInfo, uElapse, lpTimerFu nc); 69 return m_pInfo->FFI_SetTimer(m_pInfo, uElapse, lpTimerFu nc);
77 } 70 }
78 return -1; 71 return -1;
79 } 72 }
80 73
81 » virtual void FFI_KillTimer(int nTimerID) 74 » void FFI_KillTimer(int nTimerID)
82 { 75 {
83 if (m_pInfo && m_pInfo->FFI_KillTimer) 76 if (m_pInfo && m_pInfo->FFI_KillTimer)
84 { 77 {
85 m_pInfo->FFI_KillTimer(m_pInfo, nTimerID); 78 m_pInfo->FFI_KillTimer(m_pInfo, nTimerID);
86 } 79 }
87 } 80 }
88 FX_SYSTEMTIME FFI_GetLocalTime() 81 FX_SYSTEMTIME FFI_GetLocalTime()
89 { 82 {
90 FX_SYSTEMTIME fxtime; 83 FX_SYSTEMTIME fxtime;
91 if(m_pInfo && m_pInfo->FFI_GetLocalTime) 84 if(m_pInfo && m_pInfo->FFI_GetLocalTime)
92 { 85 {
93 FPDF_SYSTEMTIME systime = m_pInfo->FFI_GetLocalTime(m_pI nfo); 86 FPDF_SYSTEMTIME systime = m_pInfo->FFI_GetLocalTime(m_pI nfo);
94 fxtime.wDay = systime.wDay; 87 fxtime.wDay = systime.wDay;
95 fxtime.wDayOfWeek = systime.wDayOfWeek; 88 fxtime.wDayOfWeek = systime.wDayOfWeek;
96 fxtime.wHour = systime.wHour; 89 fxtime.wHour = systime.wHour;
97 fxtime.wMilliseconds = systime.wMilliseconds; 90 fxtime.wMilliseconds = systime.wMilliseconds;
98 fxtime.wMinute = systime.wMinute; 91 fxtime.wMinute = systime.wMinute;
99 fxtime.wMonth = systime.wMonth; 92 fxtime.wMonth = systime.wMonth;
100 fxtime.wSecond = systime.wSecond; 93 fxtime.wSecond = systime.wSecond;
101 fxtime.wYear = systime.wYear; 94 fxtime.wYear = systime.wYear;
102 } 95 }
103 return fxtime; 96 return fxtime;
104 } 97 }
105 98
106 » virtual void FFI_OnChange() 99 » void FFI_OnChange()
107 { 100 {
108 if(m_pInfo && m_pInfo->FFI_OnChange) 101 if(m_pInfo && m_pInfo->FFI_OnChange)
109 { 102 {
110 m_pInfo->FFI_OnChange(m_pInfo); 103 m_pInfo->FFI_OnChange(m_pInfo);
111 } 104 }
112 } 105 }
113 106
114 » virtual»FX_BOOL»FFI_IsSHIFTKeyDown(FX_DWORD nFlag) 107 » FX_BOOL»FFI_IsSHIFTKeyDown(FX_DWORD nFlag)
115 { 108 {
116 109
117 return (nFlag & FWL_EVENTFLAG_ShiftKey) != 0; 110 return (nFlag & FWL_EVENTFLAG_ShiftKey) != 0;
118 } 111 }
119 » virtual»FX_BOOL»FFI_IsCTRLKeyDown(FX_DWORD nFlag) 112 » FX_BOOL»FFI_IsCTRLKeyDown(FX_DWORD nFlag)
120 { 113 {
121 114
122 return (nFlag & FWL_EVENTFLAG_ControlKey) != 0; 115 return (nFlag & FWL_EVENTFLAG_ControlKey) != 0;
123 } 116 }
124 » virtual»FX_BOOL»FFI_IsALTKeyDown(FX_DWORD nFlag) 117 » FX_BOOL»FFI_IsALTKeyDown(FX_DWORD nFlag)
125 { 118 {
126 119
127 return (nFlag & FWL_EVENTFLAG_AltKey) != 0; 120 return (nFlag & FWL_EVENTFLAG_AltKey) != 0;
128 } 121 }
129 » virtual»FX_BOOL»FFI_IsINSERTKeyDown(FX_DWORD nFlag) 122 » FX_BOOL»FFI_IsINSERTKeyDown(FX_DWORD nFlag)
130 { 123 {
131 return FALSE; 124 return FALSE;
132 } 125 }
133 126
134 » virtual int JS_appAlert(FX_LPCWSTR Msg, FX_LPCWSTR Title, FX_UINT Type, FX_UINT Icon) 127 » int JS_appAlert(FX_LPCWSTR Msg, FX_LPCWSTR Title, FX_UINT Type, FX_UINT Icon)
135 { 128 {
136 if(m_pInfo && m_pInfo->m_pJsPlatform && m_pInfo->m_pJsPlatform-> app_alert) 129 if(m_pInfo && m_pInfo->m_pJsPlatform && m_pInfo->m_pJsPlatform-> app_alert)
137 { 130 {
138 CFX_ByteString bsMsg = CFX_WideString(Msg).UTF16LE_Encod e(); 131 CFX_ByteString bsMsg = CFX_WideString(Msg).UTF16LE_Encod e();
139 CFX_ByteString bsTitle = CFX_WideString(Title).UTF16LE_E ncode(); 132 CFX_ByteString bsTitle = CFX_WideString(Title).UTF16LE_E ncode();
140 FPDF_WIDESTRING pMsg = (FPDF_WIDESTRING)bsMsg.GetBuffer( bsMsg.GetLength()); 133 FPDF_WIDESTRING pMsg = (FPDF_WIDESTRING)bsMsg.GetBuffer( bsMsg.GetLength());
141 FPDF_WIDESTRING pTitle = (FPDF_WIDESTRING)bsTitle.GetBuf fer(bsTitle.GetLength()); 134 FPDF_WIDESTRING pTitle = (FPDF_WIDESTRING)bsTitle.GetBuf fer(bsTitle.GetLength());
142 int ret = m_pInfo->m_pJsPlatform->app_alert(m_pInfo->m_p JsPlatform, pMsg, pTitle, Type, Icon); 135 int ret = m_pInfo->m_pJsPlatform->app_alert(m_pInfo->m_p JsPlatform, pMsg, pTitle, Type, Icon);
143 bsMsg.ReleaseBuffer(); 136 bsMsg.ReleaseBuffer();
144 bsTitle.ReleaseBuffer(); 137 bsTitle.ReleaseBuffer();
145 return ret; 138 return ret;
146 } 139 }
147 return -1; 140 return -1;
148 } 141 }
149 142
150 » virtual int JS_appResponse(FX_LPCWSTR Question, FX_LPCWSTR Title, FX_LPC WSTR Default, FX_LPCWSTR cLabel, FPDF_BOOL bPassword, void* response, int length ) 143 » int JS_appResponse(FX_LPCWSTR Question, FX_LPCWSTR Title, FX_LPCWSTR Def ault, FX_LPCWSTR cLabel, FPDF_BOOL bPassword, void* response, int length)
151 { 144 {
152 if (m_pInfo && m_pInfo->m_pJsPlatform && m_pInfo->m_pJsPlatform- >app_response) 145 if (m_pInfo && m_pInfo->m_pJsPlatform && m_pInfo->m_pJsPlatform- >app_response)
153 { 146 {
154 CFX_ByteString bsQuestion = CFX_WideString(Question).UTF 16LE_Encode(); 147 CFX_ByteString bsQuestion = CFX_WideString(Question).UTF 16LE_Encode();
155 CFX_ByteString bsTitle = CFX_WideString(Title).UTF16LE_E ncode(); 148 CFX_ByteString bsTitle = CFX_WideString(Title).UTF16LE_E ncode();
156 CFX_ByteString bsDefault = CFX_WideString(Default).UTF16 LE_Encode(); 149 CFX_ByteString bsDefault = CFX_WideString(Default).UTF16 LE_Encode();
157 CFX_ByteString bsLabel = CFX_WideString(cLabel).UTF16LE_ Encode(); 150 CFX_ByteString bsLabel = CFX_WideString(cLabel).UTF16LE_ Encode();
158 FPDF_WIDESTRING pQuestion = (FPDF_WIDESTRING)bsQuestion. GetBuffer(bsQuestion.GetLength()); 151 FPDF_WIDESTRING pQuestion = (FPDF_WIDESTRING)bsQuestion. GetBuffer(bsQuestion.GetLength());
159 FPDF_WIDESTRING pTitle = (FPDF_WIDESTRING)bsTitle.GetBuf fer(bsTitle.GetLength()); 152 FPDF_WIDESTRING pTitle = (FPDF_WIDESTRING)bsTitle.GetBuf fer(bsTitle.GetLength());
160 FPDF_WIDESTRING pDefault = (FPDF_WIDESTRING)bsDefault.Ge tBuffer(bsDefault.GetLength()); 153 FPDF_WIDESTRING pDefault = (FPDF_WIDESTRING)bsDefault.Ge tBuffer(bsDefault.GetLength());
161 FPDF_WIDESTRING pLabel = (FPDF_WIDESTRING)bsLabel.GetBuf fer(bsLabel.GetLength()); 154 FPDF_WIDESTRING pLabel = (FPDF_WIDESTRING)bsLabel.GetBuf fer(bsLabel.GetLength());
162 int ret = m_pInfo->m_pJsPlatform->app_response(m_pInfo-> m_pJsPlatform, pQuestion, pTitle, 155 int ret = m_pInfo->m_pJsPlatform->app_response(m_pInfo-> m_pJsPlatform, pQuestion, pTitle,
163 pDefault, pLabel, bPassword, response, length); 156 pDefault, pLabel, bPassword, response, length);
164 bsQuestion.ReleaseBuffer(); 157 bsQuestion.ReleaseBuffer();
165 bsTitle.ReleaseBuffer(); 158 bsTitle.ReleaseBuffer();
166 bsDefault.ReleaseBuffer(); 159 bsDefault.ReleaseBuffer();
167 bsLabel.ReleaseBuffer(); 160 bsLabel.ReleaseBuffer();
168 return ret; 161 return ret;
169 } 162 }
170 return -1; 163 return -1;
171 } 164 }
172 165
173 » virtual void JS_appBeep(int nType) 166 » void JS_appBeep(int nType)
174 { 167 {
175 if(m_pInfo && m_pInfo->m_pJsPlatform && m_pInfo->m_pJsPlatform-> app_beep) 168 if(m_pInfo && m_pInfo->m_pJsPlatform && m_pInfo->m_pJsPlatform-> app_beep)
176 { 169 {
177 m_pInfo->m_pJsPlatform->app_beep(m_pInfo->m_pJsPlatform, nType); 170 m_pInfo->m_pJsPlatform->app_beep(m_pInfo->m_pJsPlatform, nType);
178 } 171 }
179 } 172 }
180 173
181 » virtual CFX_WideString JS_fieldBrowse() 174 » CFX_WideString JS_fieldBrowse()
182 { 175 {
183 if(m_pInfo && m_pInfo->m_pJsPlatform && m_pInfo->m_pJsPlatform-> Field_browse) 176 if(m_pInfo && m_pInfo->m_pJsPlatform && m_pInfo->m_pJsPlatform-> Field_browse)
184 { 177 {
185 int nLen = m_pInfo->m_pJsPlatform->Field_browse(m_pInfo- >m_pJsPlatform, NULL, 0); 178 int nLen = m_pInfo->m_pJsPlatform->Field_browse(m_pInfo- >m_pJsPlatform, NULL, 0);
186 if(nLen <= 0) 179 if(nLen <= 0)
187 return L""; 180 return L"";
188 char* pbuff = new char[nLen]; 181 char* pbuff = new char[nLen];
189 if(pbuff) 182 if(pbuff)
190 memset(pbuff, 0, nLen); 183 memset(pbuff, 0, nLen);
191 else 184 else
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 } 269 }
277 } 270 }
278 void JS_docgotoPage(int nPageNum) 271 void JS_docgotoPage(int nPageNum)
279 { 272 {
280 if(m_pInfo && m_pInfo->m_pJsPlatform && m_pInfo->m_pJsPlatform-> Doc_gotoPage) 273 if(m_pInfo && m_pInfo->m_pJsPlatform && m_pInfo->m_pJsPlatform-> Doc_gotoPage)
281 { 274 {
282 m_pInfo->m_pJsPlatform->Doc_gotoPage(m_pInfo->m_pJsPlatf orm, nPageNum); 275 m_pInfo->m_pJsPlatform->Doc_gotoPage(m_pInfo->m_pJsPlatf orm, nPageNum);
283 } 276 }
284 } 277 }
285 278
286 » virtual FPDF_PAGE» FFI_GetPage(FPDF_DOCUMENT document,int nPageInde x) 279 » FPDF_PAGE» FFI_GetPage(FPDF_DOCUMENT document,int nPageIndex)
287 { 280 {
288 if(m_pInfo && m_pInfo->FFI_GetPage) 281 if(m_pInfo && m_pInfo->FFI_GetPage)
289 { 282 {
290 return m_pInfo->FFI_GetPage(m_pInfo, document, nPageInde x); 283 return m_pInfo->FFI_GetPage(m_pInfo, document, nPageInde x);
291 } 284 }
292 return NULL; 285 return NULL;
293 } 286 }
294 287
295 » virtual FPDF_PAGE FFI_GetCurrentPage(FPDF_DOCUMENT document) 288 » FPDF_PAGE FFI_GetCurrentPage(FPDF_DOCUMENT document)
296 { 289 {
297 if(m_pInfo && m_pInfo->FFI_GetCurrentPage) 290 if(m_pInfo && m_pInfo->FFI_GetCurrentPage)
298 { 291 {
299 return m_pInfo->FFI_GetCurrentPage(m_pInfo, document); 292 return m_pInfo->FFI_GetCurrentPage(m_pInfo, document);
300 } 293 }
301 return NULL; 294 return NULL;
302 } 295 }
303 296
304 int FFI_GetRotation(FPDF_PAGE page) 297 int FFI_GetRotation(FPDF_PAGE page)
305 { 298 {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 CFX_MapPtrTemplate<CPDF_Page*, CPDFSDK_PageView*> m_pageMap; 442 CFX_MapPtrTemplate<CPDF_Page*, CPDFSDK_PageView*> m_pageMap;
450 CPDF_Document* m_pDoc; 443 CPDF_Document* m_pDoc;
451 444
452 CPDFSDK_InterForm* m_pInterForm; 445 CPDFSDK_InterForm* m_pInterForm;
453 CPDFSDK_Annot* m_pFocusAnnot; 446 CPDFSDK_Annot* m_pFocusAnnot;
454 CPDFDoc_Environment * m_pEnv; 447 CPDFDoc_Environment * m_pEnv;
455 CPDF_OCContext * m_pOccontent; 448 CPDF_OCContext * m_pOccontent;
456 FX_BOOL m_bChangeMask; 449 FX_BOOL m_bChangeMask;
457 }; 450 };
458 451
459 class CPDFSDK_PageView 452 class CPDFSDK_PageView FX_FINAL
460 { 453 {
461 public: 454 public:
462 CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc,CPDF_Page* page); 455 CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc,CPDF_Page* page);
463 ~CPDFSDK_PageView(); 456 ~CPDFSDK_PageView();
464 public: 457 public:
465 » virtual»void PageView_OnDraw(CFX_RenderDevice* pDevice, CPDF_Matrix* pUs er2Device,CPDF_RenderOptions* pOptions) ; 458 » void PageView_OnDraw(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Devic e,CPDF_RenderOptions* pOptions) ;
466 public: 459 public:
467 CPDF_Annot* GetPDFAnnotAtPoi nt(FX_FLOAT pageX, FX_FLOAT pageY); 460 CPDF_Annot* GetPDFAnnotAtPoi nt(FX_FLOAT pageX, FX_FLOAT pageY);
468 CPDFSDK_Annot* GetFXAnnotAtPoint(FX_FLO AT pageX, FX_FLOAT pageY); 461 CPDFSDK_Annot* GetFXAnnotAtPoint(FX_FLO AT pageX, FX_FLOAT pageY);
469 CPDF_Annot* GetPDFWidgetAtPo int(FX_FLOAT pageX, FX_FLOAT pageY); 462 CPDF_Annot* GetPDFWidgetAtPo int(FX_FLOAT pageX, FX_FLOAT pageY);
470 CPDFSDK_Annot* GetFXWidgetAtPoint(FX_FL OAT pageX, FX_FLOAT pageY); 463 CPDFSDK_Annot* GetFXWidgetAtPoint(FX_FL OAT pageX, FX_FLOAT pageY);
471 CPDFSDK_Annot* GetFocusAnnot() ; 464 CPDFSDK_Annot* GetFocusAnnot() ;
472 void SetFocusAnnot(CP DFSDK_Annot* pSDKAnnot,FX_UINT nFlag = 0) {m_pSDKDoc->SetFocusAnnot(pSDKAnnot, n Flag);} 465 void SetFocusAnnot(CP DFSDK_Annot* pSDKAnnot,FX_UINT nFlag = 0) {m_pSDKDoc->SetFocusAnnot(pSDKAnnot, n Flag);}
473 FX_BOOL KillFocusAnnot(F X_UINT nFlag = 0) {return m_pSDKDoc->KillFocusAnnot(nFlag);} 466 FX_BOOL KillFocusAnnot(F X_UINT nFlag = 0) {return m_pSDKDoc->KillFocusAnnot(nFlag);}
474 FX_BOOL Annot_HasAppeara nce(CPDF_Annot* pAnnot); 467 FX_BOOL Annot_HasAppeara nce(CPDF_Annot* pAnnot);
475 468
476 CPDFSDK_Annot* AddAnnot(CPDF_Dictionary * pDict); 469 CPDFSDK_Annot* AddAnnot(CPDF_Dictionary * pDict);
477 CPDFSDK_Annot* AddAnnot(FX_LPCSTR lpSub Type,CPDF_Dictionary * pDict); 470 CPDFSDK_Annot* AddAnnot(FX_LPCSTR lpSub Type,CPDF_Dictionary * pDict);
478 CPDFSDK_Annot* AddAnnot(CPDF_Annot * pP DFAnnot); 471 CPDFSDK_Annot* AddAnnot(CPDF_Annot * pP DFAnnot);
479 FX_BOOL DeleteAnnot(CPDF SDK_Annot* pAnnot); 472 FX_BOOL DeleteAnnot(CPDF SDK_Annot* pAnnot);
480 473
481 int CountAnn ots(); 474 int CountAnn ots();
482 CPDFSDK_Annot* GetAnnot(int nIndex); 475 CPDFSDK_Annot* GetAnnot(int nIndex);
483 CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictiona ry * pDict); 476 CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictiona ry * pDict);
484 CPDF_Page* GetPDFPage(){ret urn m_page;} 477 CPDF_Page* GetPDFPage(){ret urn m_page;}
485 CPDF_Document* GetPDFDocument(); 478 CPDF_Document* GetPDFDocument();
486 CPDFSDK_Document* GetSDKDocument() {return m_pSDKDoc;} 479 CPDFSDK_Document* GetSDKDocument() {return m_pSDKDoc;}
487 public: 480 public:
488 » virtual FX_BOOL»» » » » OnLButtonDown(const CPDF _Point & point, FX_UINT nFlag); 481 » FX_BOOL»» » » » OnLButtonDown(const CPDF_Point & point, FX_UINT nFlag);
489 » virtual FX_BOOL»» » » » OnLButtonUp(const CPDF_P oint & point, FX_UINT nFlag); 482 » FX_BOOL»» » » » OnLButtonUp(const CPDF_Point & p oint, FX_UINT nFlag);
490 » virtual FX_BOOL»» » » » OnChar(int nChar, FX_UIN T nFlag); 483 » FX_BOOL»» » » » OnChar(int nChar, FX_UINT nFlag) ;
491 » virtual FX_BOOL»» » » » OnKeyDown(int nKeyCode, int nFlag); 484 » FX_BOOL»» » » » OnKeyDown(int nKeyCode, int nFla g);
492 » virtual FX_BOOL»» » » » OnKeyUp(int nKeyCode, in t nFlag); 485 » FX_BOOL»» » » » OnKeyUp(int nKeyCode, int nFlag) ;
493 486
494 » virtual FX_BOOL»» » » » OnMouseMove(const CPDF_P oint & point, int nFlag); 487 » FX_BOOL»» » » » OnMouseMove(const CPDF_Point & p oint, int nFlag);
495 » virtual FX_BOOL»» » » » OnMouseWheel(double delt aX, double deltaY,const CPDF_Point& point, int nFlag); 488 » FX_BOOL»» » » » OnMouseWheel(double deltaX, doub le deltaY,const CPDF_Point& point, int nFlag);
496 » virtual FX_BOOL»» » » » IsValidAnnot(FX_LPVOID p ); 489 » FX_BOOL»» » » » IsValidAnnot(FX_LPVOID p);
497 public: 490 public:
498 » virtual void» » » » » GetCurrentMatrix(CPDF_Ma trix& matrix) {matrix = m_curMatrix;} 491 » void» » » » » GetCurrentMatrix(CPDF_Matrix& ma trix) {matrix = m_curMatrix;}
499 » virtual void» » » » » UpdateRects(CFX_RectArra y& rects); 492 » void» » » » » UpdateRects(CFX_RectArray& rects );
500 void UpdateView(CPDFS DK_Annot* pAnnot); 493 void UpdateView(CPDFS DK_Annot* pAnnot);
501 CFX_PtrArray* GetAnnotList(){ return & m_fxAnnotArray; } 494 CFX_PtrArray* GetAnnotList(){ return & m_fxAnnotArray; }
502 495
503 public: 496 public:
504 » virtual int» » » » » » GetPageIndex(); 497 » int» » » » » » GetPageIndex();
505 void LoadFXAnnots(); 498 void LoadFXAnnots();
506 private: 499 private:
507 CPDF_Matrix m_curMatrix; 500 CPDF_Matrix m_curMatrix;
508 501
509 private: 502 private:
510 void PageView_OnHighlightFormFields(CFX_RenderDevice* pDevice, CPDFSDK_W idget* pWidget); 503 void PageView_OnHighlightFormFields(CFX_RenderDevice* pDevice, CPDFSDK_W idget* pWidget);
511 504
512 private: 505 private:
513 CPDF_Page* m_page; 506 CPDF_Page* m_page;
514 CPDF_AnnotList* m_pAnnotList; 507 CPDF_AnnotList* m_pAnnotList;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 } 599 }
607 600
608 if (nStartPos < m) QuickSort(nStartPos, m, bAscend, pCompare); 601 if (nStartPos < m) QuickSort(nStartPos, m, bAscend, pCompare);
609 if (nStopPos > m) QuickSort(m, nStopPos, bAscend, pCompare); 602 if (nStopPos > m) QuickSort(m, nStopPos, bAscend, pCompare);
610 } 603 }
611 }; 604 };
612 605
613 606
614 #endif //_FPDFSDK_MGR_H 607 #endif //_FPDFSDK_MGR_H
615 608
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_define.h ('k') | fpdfsdk/src/fpdf_sysfontinfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698