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 #ifndef _FXFA | 7 #ifndef _FXFA |
8 #define _FXFA | 8 #define _FXFA |
9 class IFDE_XMLElement; | 9 class IFDE_XMLElement; |
10 class CXFA_Node; | 10 class CXFA_Node; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 #define XFA_IDS_String_Today 93 | 141 #define XFA_IDS_String_Today 93 |
142 #define XFA_IDS_ValidateLimit 94 | 142 #define XFA_IDS_ValidateLimit 94 |
143 #define XFA_IDS_ValidateNullWarning 95 | 143 #define XFA_IDS_ValidateNullWarning 95 |
144 #define XFA_IDS_ValidateNullError 96 | 144 #define XFA_IDS_ValidateNullError 96 |
145 #define XFA_IDS_ValidateWarning 97 | 145 #define XFA_IDS_ValidateWarning 97 |
146 #define XFA_IDS_ValidateError 98 | 146 #define XFA_IDS_ValidateError 98 |
147 #define XFA_IDS_ValidateNumberError 99 | 147 #define XFA_IDS_ValidateNumberError 99 |
148 class IXFA_AppProvider | 148 class IXFA_AppProvider |
149 { | 149 { |
150 public: | 150 public: |
| 151 virtual ~IXFA_AppProvider() { } |
151 | 152 |
152 virtual void SetAppType(FX_WSTR wsAppType) = 0; | 153 virtual void SetAppType(FX_WSTR wsAppType) = 0; |
153 virtual void GetAppType(CFX_WideString &wsAppType) = 0; | 154 virtual void GetAppType(CFX_WideString &wsAppType) = 0; |
154 | 155 |
155 virtual void» » SetFoxitAppType(FX_WSTR wsFoxitAppType) | 156 virtual void» » SetFoxitAppType(FX_WSTR wsFoxitAppType) { } |
156 { | 157 virtual void» » GetFoxitAppType(CFX_WideString &wsFoxitAppType)
{ } |
157 return; | |
158 } | |
159 virtual void» » GetFoxitAppType(CFX_WideString &wsFoxitAppType) | |
160 { | |
161 return; | |
162 } | |
163 | 158 |
164 virtual void GetLanguage(CFX_WideString &wsLanguage) = 0; | 159 virtual void GetLanguage(CFX_WideString &wsLanguage) = 0; |
165 | |
166 virtual void GetPlatform(CFX_WideString &wsPlatform) = 0; | 160 virtual void GetPlatform(CFX_WideString &wsPlatform) = 0; |
167 | |
168 virtual void GetVariation(CFX_WideString &wsVariation) = 0; | 161 virtual void GetVariation(CFX_WideString &wsVariation) = 0; |
169 | 162 |
170 virtual void GetVersion(CFX_WideString &wsVersion) = 0; | 163 virtual void GetVersion(CFX_WideString &wsVersion) = 0; |
171 | 164 virtual void» » GetFoxitVersion(CFX_WideString &wsFoxitVersion)
{ } |
172 virtual void» » GetFoxitVersion(CFX_WideString &wsFoxitVersion) | |
173 { | |
174 return; | |
175 } | |
176 | 165 |
177 virtual void GetAppName(CFX_WideString& wsName) = 0; | 166 virtual void GetAppName(CFX_WideString& wsName) = 0; |
178 | 167 virtual void» » GetFoxitAppName(CFX_WideString& wsFoxitName) { } |
179 virtual void» » GetFoxitAppName(CFX_WideString& wsFoxitName) | |
180 { | |
181 return; | |
182 } | |
183 | 168 |
184 virtual void Beep(FX_DWORD dwType) = 0; | 169 virtual void Beep(FX_DWORD dwType) = 0; |
185 | 170 |
186 virtual FX_INT32 MsgBox(FX_WSTR wsMessage, FX_WSTR wsTitle = FX_WSTRC(L""
), FX_DWORD dwIconType = 0, FX_DWORD dwButtonType = 0) = 0; | 171 virtual FX_INT32 MsgBox(FX_WSTR wsMessage, FX_WSTR wsTitle = FX_WSTRC(L""
), FX_DWORD dwIconType = 0, FX_DWORD dwButtonType = 0) = 0; |
187 virtual void Response(CFX_WideString &wsAnswer, FX_WSTR wsQue
stion, FX_WSTR wsTitle = FX_WSTRC(L""), FX_WSTR wsDefaultAnswer = FX_WSTRC(L""),
FX_BOOL bMark = TRUE) = 0; | 172 virtual void Response(CFX_WideString &wsAnswer, FX_WSTR wsQue
stion, FX_WSTR wsTitle = FX_WSTRC(L""), FX_WSTR wsDefaultAnswer = FX_WSTRC(L""),
FX_BOOL bMark = TRUE) = 0; |
188 virtual FX_INT32 GetDocumentCountInBatch() = 0; | 173 virtual FX_INT32 GetDocumentCountInBatch() = 0; |
189 virtual FX_INT32 GetCurDocumentInBatch() = 0; | 174 virtual FX_INT32 GetCurDocumentInBatch() = 0; |
190 virtual IFX_FileRead* DownloadURL(FX_WSTR wsURL) = 0; | 175 virtual IFX_FileRead* DownloadURL(FX_WSTR wsURL) = 0; |
191 | 176 |
192 virtual FX_BOOL PostRequestURL(FX_WSTR wsURL, FX_WSTR wsData, FX
_WSTR wsContentType, | 177 virtual FX_BOOL PostRequestURL(FX_WSTR wsURL, FX_WSTR wsData, FX
_WSTR wsContentType, |
193 FX_WSTR wsEncode, FX_WSTR wsHeader, CFX_W
ideString &wsResponse) = 0; | 178 FX_WSTR wsEncode, FX_WSTR wsHeader, CFX_W
ideString &wsResponse) = 0; |
194 | 179 |
195 virtual FX_BOOL PutRequestURL(FX_WSTR wsURL, FX_WSTR wsData, FX_
WSTR wsEncode) = 0; | 180 virtual FX_BOOL PutRequestURL(FX_WSTR wsURL, FX_WSTR wsData, FX_
WSTR wsEncode) = 0; |
196 virtual void LoadString(FX_INT32 iStringID, CFX_WideString &w
sString) = 0; | 181 virtual void LoadString(FX_INT32 iStringID, CFX_WideString &w
sString) = 0; |
197 virtual FX_BOOL ShowFileDialog(FX_WSTR wsTitle, FX_WSTR wsFilter
, CFX_WideStringArray &wsPathArr, FX_BOOL bOpen = TRUE) = 0; | 182 virtual FX_BOOL ShowFileDialog(FX_WSTR wsTitle, FX_WSTR wsFilter
, CFX_WideStringArray &wsPathArr, FX_BOOL bOpen = TRUE) = 0; |
198 virtual IFWL_AdapterTimerMgr* GetTimerMgr() = 0;; | 183 virtual IFWL_AdapterTimerMgr* GetTimerMgr() = 0; |
199 }; | 184 }; |
200 class IXFA_FontMgr | 185 class IXFA_FontMgr |
201 { | 186 { |
202 public: | 187 public: |
203 virtual void Release() = 0; | 188 virtual void Release() = 0; |
204 virtual IFX_Font* GetFont(XFA_HDOC hDoc, FX_WSTR wsFontFamily, FX_DWORD dw
FontStyles, FX_WORD wCodePage = 0xFFFF) = 0; | 189 virtual IFX_Font* GetFont(XFA_HDOC hDoc, FX_WSTR wsFontFamily, FX_DWORD dw
FontStyles, FX_WORD wCodePage = 0xFFFF) = 0; |
205 virtual IFX_Font* GetDefaultFont(XFA_HDOC hDoc, FX_WSTR wsFontFamily, FX_D
WORD dwFontStyles, FX_WORD wCodePage = 0xFFFF) = 0; | 190 virtual IFX_Font* GetDefaultFont(XFA_HDOC hDoc, FX_WSTR wsFontFamily, FX_D
WORD dwFontStyles, FX_WORD wCodePage = 0xFFFF) = 0; |
| 191 protected: |
| 192 ~IXFA_FontMgr() { } |
206 }; | 193 }; |
207 IXFA_FontMgr* XFA_GetDefaultFontMgr(); | 194 IXFA_FontMgr* XFA_GetDefaultFontMgr(); |
208 class IXFA_App | 195 class IXFA_App |
209 { | 196 { |
210 public: | 197 public: |
211 static IXFA_App* Create(IXFA_AppProvider* pProvider); | 198 static IXFA_App* Create(IXFA_AppProvider* pProvider); |
212 virtual void Release() = 0; | 199 virtual void Release() = 0; |
213 virtual IXFA_DocHandler* GetDocHandler() = 0; | 200 virtual IXFA_DocHandler* GetDocHandler() = 0; |
214 virtual XFA_HDOC CreateDoc(IXFA_DocProvider* pProvider, I
FX_FileRead* pStream, FX_BOOL bTakeOverFile = TRUE) = 0; | 201 virtual XFA_HDOC CreateDoc(IXFA_DocProvider* pProvider, I
FX_FileRead* pStream, FX_BOOL bTakeOverFile = TRUE) = 0; |
215 virtual XFA_HDOC CreateDoc(IXFA_DocProvider* pProvider, C
PDF_Document* pPDFDoc) = 0; | 202 virtual XFA_HDOC CreateDoc(IXFA_DocProvider* pProvider, C
PDF_Document* pPDFDoc) = 0; |
216 virtual IXFA_AppProvider* GetAppProvider() = 0; | 203 virtual IXFA_AppProvider* GetAppProvider() = 0; |
217 virtual void SetDefaultFontMgr(IXFA_FontMgr*
pFontMgr) = 0; | 204 virtual void SetDefaultFontMgr(IXFA_FontMgr*
pFontMgr) = 0; |
218 virtual IXFA_MenuHandler* GetMenuHandler() = 0; | 205 virtual IXFA_MenuHandler* GetMenuHandler() = 0; |
| 206 protected: |
| 207 ~IXFA_App() { } |
219 }; | 208 }; |
220 class IXFA_MenuHandler | 209 class IXFA_MenuHandler |
221 { | 210 { |
222 public: | 211 public: |
| 212 virtual ~IXFA_MenuHandler() { } |
| 213 |
223 virtual FX_BOOL CanCopy(XFA_HWIDGET hWidget) = 0; | 214 virtual FX_BOOL CanCopy(XFA_HWIDGET hWidget) = 0; |
224 virtual FX_BOOL CanCut(XFA_HWIDGET hWidget) = 0; | 215 virtual FX_BOOL CanCut(XFA_HWIDGET hWidget) = 0; |
225 virtual FX_BOOL CanPaste(XFA_HWIDGET hWidget) = 0; | 216 virtual FX_BOOL CanPaste(XFA_HWIDGET hWidget) = 0; |
226 virtual FX_BOOL CanSelectAll(XFA_HWIDGET hWidget) = 0; | 217 virtual FX_BOOL CanSelectAll(XFA_HWIDGET hWidget) = 0; |
227 virtual FX_BOOL CanDelete(XFA_HWIDGET hWidget) = 0; | 218 virtual FX_BOOL CanDelete(XFA_HWIDGET hWidget) = 0; |
228 virtual FX_BOOL CanDeSelect(XFA_HWIDGET hWidget) = 0; | 219 virtual FX_BOOL CanDeSelect(XFA_HWIDGET hWidget) = 0; |
229 virtual FX_BOOL Copy(XFA_HWIDGET hWidget, CFX_WideString &wsText
) = 0; | 220 virtual FX_BOOL Copy(XFA_HWIDGET hWidget, CFX_WideString &wsText
) = 0; |
230 virtual FX_BOOL Cut(XFA_HWIDGET hWidget, CFX_WideString &wsText)
= 0; | 221 virtual FX_BOOL Cut(XFA_HWIDGET hWidget, CFX_WideString &wsText)
= 0; |
231 virtual FX_BOOL Paste(XFA_HWIDGET hWidget, const CFX_WideString
&wsText) = 0; | 222 virtual FX_BOOL Paste(XFA_HWIDGET hWidget, const CFX_WideString
&wsText) = 0; |
232 virtual FX_BOOL SelectAll(XFA_HWIDGET hWidget) = 0; | 223 virtual FX_BOOL SelectAll(XFA_HWIDGET hWidget) = 0; |
(...skipping 18 matching lines...) Expand all Loading... |
251 #define XFA_PAGEVIEWEVENT_PostRemoved 3 | 242 #define XFA_PAGEVIEWEVENT_PostRemoved 3 |
252 #define XFA_WIDGETEVENT_PostAdded 2 | 243 #define XFA_WIDGETEVENT_PostAdded 2 |
253 #define XFA_WIDGETEVENT_PreRemoved 3 | 244 #define XFA_WIDGETEVENT_PreRemoved 3 |
254 #define XFA_WIDGETEVENT_PostContentChanged 6 | 245 #define XFA_WIDGETEVENT_PostContentChanged 6 |
255 #define XFA_WIDGETEVENT_ListItemRemoved 7 | 246 #define XFA_WIDGETEVENT_ListItemRemoved 7 |
256 #define XFA_WIDGETEVENT_ListItemAdded 8 | 247 #define XFA_WIDGETEVENT_ListItemAdded 8 |
257 #define XFA_WIDGETEVENT_AccessChanged 9 | 248 #define XFA_WIDGETEVENT_AccessChanged 9 |
258 class IXFA_DocProvider | 249 class IXFA_DocProvider |
259 { | 250 { |
260 public: | 251 public: |
| 252 virtual ~IXFA_DocProvider() { } |
| 253 |
261 virtual void SetChangeMark(XFA_HDOC hDoc) = 0; | 254 virtual void SetChangeMark(XFA_HDOC hDoc) = 0; |
262 virtual void InvalidateRect(IXFA_PageView* pPageView, const C
FX_RectF& rt, FX_DWORD dwFlags = 0) = 0; | 255 virtual void InvalidateRect(IXFA_PageView* pPageView, const C
FX_RectF& rt, FX_DWORD dwFlags = 0) = 0; |
263 virtual void DisplayCaret(XFA_HWIDGET hWidget, FX_BOOL bVisib
le, const CFX_RectF* pRtAnchor) = 0; | 256 virtual void DisplayCaret(XFA_HWIDGET hWidget, FX_BOOL bVisib
le, const CFX_RectF* pRtAnchor) = 0; |
264 virtual FX_BOOL GetPopupPos(XFA_HWIDGET hWidget, FX_FLOAT fMinPo
pup, FX_FLOAT fMaxPopup, | 257 virtual FX_BOOL GetPopupPos(XFA_HWIDGET hWidget, FX_FLOAT fMinPo
pup, FX_FLOAT fMaxPopup, |
265 const CFX_RectF &rtAnchor, CFX_RectF &rtPopu
p) = 0; | 258 const CFX_RectF &rtAnchor, CFX_RectF &rtPopu
p) = 0; |
266 virtual FX_BOOL PopupMenu(XFA_HWIDGET hWidget, CFX_PointF ptPopu
p, const CFX_RectF* pRectExclude = NULL) = 0; | 259 virtual FX_BOOL PopupMenu(XFA_HWIDGET hWidget, CFX_PointF ptPopu
p, const CFX_RectF* pRectExclude = NULL) = 0; |
267 virtual void PageViewEvent(IXFA_PageView* pPageView, FX_DWORD
dwFlags) = 0; | 260 virtual void PageViewEvent(IXFA_PageView* pPageView, FX_DWORD
dwFlags) = 0; |
268 virtual void WidgetEvent(XFA_HWIDGET hWidget, CXFA_WidgetAcc*
pWidgetData, FX_DWORD dwEvent, FX_LPVOID pParam = NULL, FX_LPVOID pAdditional =
NULL) = 0; | 261 virtual void WidgetEvent(XFA_HWIDGET hWidget, CXFA_WidgetAcc*
pWidgetData, FX_DWORD dwEvent, FX_LPVOID pParam = NULL, FX_LPVOID pAdditional =
NULL) = 0; |
269 virtual FX_BOOL RenderCustomWidget(XFA_HWIDGET hWidget, CFX_Grap
hics* pGS, CFX_Matrix* pMatrix, const CFX_RectF& rtUI) | 262 virtual FX_BOOL RenderCustomWidget(XFA_HWIDGET hWidget, CFX_Grap
hics* pGS, CFX_Matrix* pMatrix, const CFX_RectF& rtUI) |
270 { | 263 { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 #define XFA_DOCTYPE_Static 1 | 317 #define XFA_DOCTYPE_Static 1 |
325 #define XFA_DOCTYPE_XDP 2 | 318 #define XFA_DOCTYPE_XDP 2 |
326 #define XFA_PARSESTATUS_StatusErr -3 | 319 #define XFA_PARSESTATUS_StatusErr -3 |
327 #define XFA_PARSESTATUS_StreamErr -2 | 320 #define XFA_PARSESTATUS_StreamErr -2 |
328 #define XFA_PARSESTATUS_SyntaxErr -1 | 321 #define XFA_PARSESTATUS_SyntaxErr -1 |
329 #define XFA_PARSESTATUS_Ready 0 | 322 #define XFA_PARSESTATUS_Ready 0 |
330 #define XFA_PARSESTATUS_Done 100 | 323 #define XFA_PARSESTATUS_Done 100 |
331 class IXFA_DocHandler | 324 class IXFA_DocHandler |
332 { | 325 { |
333 public: | 326 public: |
| 327 virtual ~IXFA_DocHandler() { } |
| 328 |
334 virtual void ReleaseDoc(XFA_HDOC hDoc) = 0; | 329 virtual void ReleaseDoc(XFA_HDOC hDoc) = 0; |
335 virtual IXFA_DocProvider* GetDocProvider(XFA_HDOC hDoc) = 0; | 330 virtual IXFA_DocProvider* GetDocProvider(XFA_HDOC hDoc) = 0; |
336 | 331 |
337 virtual FX_DWORD GetDocType(XFA_HDOC hDoc) = 0; | 332 virtual FX_DWORD GetDocType(XFA_HDOC hDoc) = 0; |
338 virtual FX_INT32 StartLoad(XFA_HDOC hDoc) = 0; | 333 virtual FX_INT32 StartLoad(XFA_HDOC hDoc) = 0; |
339 virtual FX_INT32 DoLoad(XFA_HDOC hDoc, IFX_Pause *pPause
= NULL) = 0; | 334 virtual FX_INT32 DoLoad(XFA_HDOC hDoc, IFX_Pause *pPause
= NULL) = 0; |
340 virtual void StopLoad(XFA_HDOC hDoc) = 0; | 335 virtual void StopLoad(XFA_HDOC hDoc) = 0; |
341 | 336 |
342 virtual IXFA_DocView* CreateDocView(XFA_HDOC hDoc, FX_DWORD dw
View = 0) = 0; | 337 virtual IXFA_DocView* CreateDocView(XFA_HDOC hDoc, FX_DWORD dw
View = 0) = 0; |
343 | 338 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 #define XFA_EVENTERROR_Sucess 1 | 440 #define XFA_EVENTERROR_Sucess 1 |
446 #define XFA_EVENTERROR_Error -1 | 441 #define XFA_EVENTERROR_Error -1 |
447 #define XFA_EVENTERROR_NotExist 0 | 442 #define XFA_EVENTERROR_NotExist 0 |
448 #define XFA_EVENTERROR_Disabled 2 | 443 #define XFA_EVENTERROR_Disabled 2 |
449 enum XFA_WIDGETORDER { | 444 enum XFA_WIDGETORDER { |
450 XFA_WIDGETORDER_PreOrder, | 445 XFA_WIDGETORDER_PreOrder, |
451 }; | 446 }; |
452 class IXFA_DocView | 447 class IXFA_DocView |
453 { | 448 { |
454 public: | 449 public: |
| 450 virtual ~IXFA_DocView() { } |
| 451 |
455 virtual XFA_HDOC GetDoc() = 0; | 452 virtual XFA_HDOC GetDoc() = 0; |
456 virtual FX_INT32 StartLayout(FX_INT32 iStartPage
= 0) = 0; | 453 virtual FX_INT32 StartLayout(FX_INT32 iStartPage
= 0) = 0; |
457 virtual FX_INT32 DoLayout(IFX_Pause *pPause = NULL) = 0; | 454 virtual FX_INT32 DoLayout(IFX_Pause *pPause = NULL) = 0; |
458 virtual void StopLayout() = 0; | 455 virtual void StopLayout() = 0; |
459 | 456 |
460 virtual FX_INT32 GetLayoutStatus() = 0; | 457 virtual FX_INT32 GetLayoutStatus() = 0; |
461 virtual void UpdateDocView() = 0; | 458 virtual void UpdateDocView() = 0; |
462 virtual FX_INT32 CountPageViews() = 0; | 459 virtual FX_INT32 CountPageViews() = 0; |
463 virtual IXFA_PageView* GetPageView(FX_INT32 nIndex) = 0; | 460 virtual IXFA_PageView* GetPageView(FX_INT32 nIndex) = 0; |
464 virtual XFA_HWIDGET GetWidgetByName(FX_WSTR wsName) = 0; | 461 virtual XFA_HWIDGET GetWidgetByName(FX_WSTR wsName) = 0; |
(...skipping 10 matching lines...) Expand all Loading... |
475 #define XFA_TRAVERSEWAY_Tranvalse 0x0001 | 472 #define XFA_TRAVERSEWAY_Tranvalse 0x0001 |
476 #define XFA_TRAVERSEWAY_Form 0x0002 | 473 #define XFA_TRAVERSEWAY_Form 0x0002 |
477 #define XFA_WIDGETFILTER_Visible 0x0001 | 474 #define XFA_WIDGETFILTER_Visible 0x0001 |
478 #define XFA_WIDGETFILTER_Viewable 0x0010 | 475 #define XFA_WIDGETFILTER_Viewable 0x0010 |
479 #define XFA_WIDGETFILTER_Printable 0x0020 | 476 #define XFA_WIDGETFILTER_Printable 0x0020 |
480 #define XFA_WIDGETFILTER_Field 0x0100 | 477 #define XFA_WIDGETFILTER_Field 0x0100 |
481 #define XFA_WIDGETFILTER_AllType 0x0F00 | 478 #define XFA_WIDGETFILTER_AllType 0x0F00 |
482 class IXFA_PageView | 479 class IXFA_PageView |
483 { | 480 { |
484 public: | 481 public: |
| 482 virtual ~IXFA_PageView() { } |
| 483 |
485 virtual IXFA_DocView* GetDocView() = 0; | 484 virtual IXFA_DocView* GetDocView() = 0; |
486 virtual FX_INT32 GetPageViewIndex() = 0; | 485 virtual FX_INT32 GetPageViewIndex() = 0; |
487 virtual void GetPageViewRect(CFX_RectF &rtPage) = 0; | 486 virtual void GetPageViewRect(CFX_RectF &rtPage) = 0; |
488 | 487 |
489 virtual void GetDisplayMatrix(CFX_Matrix &mt, const C
FX_Rect &rtDisp, FX_INT32 iRotate) = 0; | 488 virtual void GetDisplayMatrix(CFX_Matrix &mt, const C
FX_Rect &rtDisp, FX_INT32 iRotate) = 0; |
490 | 489 |
491 virtual FX_INT32 LoadPageView(IFX_Pause *pPause = NULL) = 0; | 490 virtual FX_INT32 LoadPageView(IFX_Pause *pPause = NULL) = 0; |
492 virtual void UnloadPageView() = 0; | 491 virtual void UnloadPageView() = 0; |
493 virtual XFA_HWIDGET GetWidgetByPos(FX_FLOAT fx, FX_FLOAT fy) = 0; | 492 virtual XFA_HWIDGET GetWidgetByPos(FX_FLOAT fx, FX_FLOAT fy) = 0; |
494 virtual IXFA_WidgetIterator* CreateWidgetIterator(FX_DWORD dwTraverseWay = X
FA_TRAVERSEWAY_Form, FX_DWORD dwWidgetFilter = XFA_WIDGETFILTER_Visible | XFA_WI
DGETFILTER_Viewable | XFA_WIDGETFILTER_AllType) = 0; | 493 virtual IXFA_WidgetIterator* CreateWidgetIterator(FX_DWORD dwTraverseWay = X
FA_TRAVERSEWAY_Form, FX_DWORD dwWidgetFilter = XFA_WIDGETFILTER_Visible | XFA_WI
DGETFILTER_Viewable | XFA_WIDGETFILTER_AllType) = 0; |
(...skipping 13 matching lines...) Expand all Loading... |
508 #define XFA_RENDERSTATUS_ToBeContinued 2 | 507 #define XFA_RENDERSTATUS_ToBeContinued 2 |
509 #define XFA_RENDERSTATUS_Done 3 | 508 #define XFA_RENDERSTATUS_Done 3 |
510 #define XFA_RENDERSTATUS_Failed -1 | 509 #define XFA_RENDERSTATUS_Failed -1 |
511 class IXFA_RenderContext | 510 class IXFA_RenderContext |
512 { | 511 { |
513 public: | 512 public: |
514 virtual void Release() = 0; | 513 virtual void Release() = 0; |
515 virtual FX_INT32 StartRender(IXFA_PageView* pPageView, CFX_Graphics* pGS,
const CFX_Matrix& pMatrix, const CXFA_RenderOptions& options) = 0; | 514 virtual FX_INT32 StartRender(IXFA_PageView* pPageView, CFX_Graphics* pGS,
const CFX_Matrix& pMatrix, const CXFA_RenderOptions& options) = 0; |
516 virtual FX_INT32 DoRender(IFX_Pause* pPause = NULL) = 0; | 515 virtual FX_INT32 DoRender(IFX_Pause* pPause = NULL) = 0; |
517 virtual void StopRender() = 0; | 516 virtual void StopRender() = 0; |
| 517 protected: |
| 518 ~IXFA_RenderContext() { } |
518 }; | 519 }; |
519 IXFA_RenderContext* XFA_RenderContext_Create(); | 520 IXFA_RenderContext* XFA_RenderContext_Create(); |
520 enum XFA_WIDGETTYPE { | 521 enum XFA_WIDGETTYPE { |
521 XFA_WIDGETTYPE_Barcode, | 522 XFA_WIDGETTYPE_Barcode, |
522 XFA_WIDGETTYPE_PushButton, | 523 XFA_WIDGETTYPE_PushButton, |
523 XFA_WIDGETTYPE_CheckButton, | 524 XFA_WIDGETTYPE_CheckButton, |
524 XFA_WIDGETTYPE_RadioButton, | 525 XFA_WIDGETTYPE_RadioButton, |
525 XFA_WIDGETTYPE_DatetimeEdit, | 526 XFA_WIDGETTYPE_DatetimeEdit, |
526 XFA_WIDGETTYPE_DecimalField, | 527 XFA_WIDGETTYPE_DecimalField, |
527 XFA_WIDGETTYPE_NumericField, | 528 XFA_WIDGETTYPE_NumericField, |
(...skipping 14 matching lines...) Expand all Loading... |
542 }; | 543 }; |
543 #define XFA_WIDGETSTATUS_Visible 0x00000001 | 544 #define XFA_WIDGETSTATUS_Visible 0x00000001 |
544 #define XFA_WIDGETSTATUS_Invisible 0x00000002 | 545 #define XFA_WIDGETSTATUS_Invisible 0x00000002 |
545 #define XFA_WIDGETSTATUS_Hidden 0x00000004 | 546 #define XFA_WIDGETSTATUS_Hidden 0x00000004 |
546 #define XFA_WIDGETSTATUS_Viewable 0x00000010 | 547 #define XFA_WIDGETSTATUS_Viewable 0x00000010 |
547 #define XFA_WIDGETSTATUS_Printable 0x00000020 | 548 #define XFA_WIDGETSTATUS_Printable 0x00000020 |
548 #define XFA_WIDGETSTATUS_Focused 0x00000100 | 549 #define XFA_WIDGETSTATUS_Focused 0x00000100 |
549 class IXFA_WidgetHandler | 550 class IXFA_WidgetHandler |
550 { | 551 { |
551 public: | 552 public: |
| 553 virtual ~IXFA_WidgetHandler() { } |
552 | 554 |
553 virtual XFA_HWIDGET CreateWidget(XFA_HWIDGET hParent, XFA_WIDGETTYPE
eType, XFA_HWIDGET hBefore = NULL) = 0; | 555 virtual XFA_HWIDGET CreateWidget(XFA_HWIDGET hParent, XFA_WIDGETTYPE
eType, XFA_HWIDGET hBefore = NULL) = 0; |
554 virtual IXFA_PageView* GetPageView(XFA_HWIDGET hWidget) = 0; | 556 virtual IXFA_PageView* GetPageView(XFA_HWIDGET hWidget) = 0; |
555 virtual void GetRect(XFA_HWIDGET hWidget, CFX_RectF &
rt) = 0; | 557 virtual void GetRect(XFA_HWIDGET hWidget, CFX_RectF &
rt) = 0; |
556 virtual FX_DWORD GetStatus(XFA_HWIDGET hWidget) = 0; | 558 virtual FX_DWORD GetStatus(XFA_HWIDGET hWidget) = 0; |
557 virtual FX_BOOL GetBBox(XFA_HWIDGET hWidget, CFX_RectF &
rtBox, FX_DWORD dwStatus, FX_BOOL bDrawFocus = FALSE) = 0; | 559 virtual FX_BOOL GetBBox(XFA_HWIDGET hWidget, CFX_RectF &
rtBox, FX_DWORD dwStatus, FX_BOOL bDrawFocus = FALSE) = 0; |
558 virtual CXFA_WidgetAcc* GetDataAcc(XFA_HWIDGET hWidget) = 0; | 560 virtual CXFA_WidgetAcc* GetDataAcc(XFA_HWIDGET hWidget) = 0; |
559 | 561 |
560 virtual void GetName(XFA_HWIDGET hWidget, CFX_WideStr
ing &wsName, FX_INT32 iNameType = 0) = 0; | 562 virtual void GetName(XFA_HWIDGET hWidget, CFX_WideStr
ing &wsName, FX_INT32 iNameType = 0) = 0; |
561 virtual FX_BOOL GetToolTip(XFA_HWIDGET hWidget, CFX_Wide
String &wsToolTip) = 0; | 563 virtual FX_BOOL GetToolTip(XFA_HWIDGET hWidget, CFX_Wide
String &wsToolTip) = 0; |
(...skipping 24 matching lines...) Expand all Loading... |
586 { | 588 { |
587 public: | 589 public: |
588 virtual void Release() = 0; | 590 virtual void Release() = 0; |
589 virtual void Reset() = 0; | 591 virtual void Reset() = 0; |
590 virtual XFA_HWIDGET MoveToFirst() = 0; | 592 virtual XFA_HWIDGET MoveToFirst() = 0; |
591 virtual XFA_HWIDGET MoveToLast() = 0; | 593 virtual XFA_HWIDGET MoveToLast() = 0; |
592 virtual XFA_HWIDGET MoveToNext() = 0; | 594 virtual XFA_HWIDGET MoveToNext() = 0; |
593 virtual XFA_HWIDGET MoveToPrevious() = 0; | 595 virtual XFA_HWIDGET MoveToPrevious() = 0; |
594 virtual XFA_HWIDGET GetCurrentWidget() = 0; | 596 virtual XFA_HWIDGET GetCurrentWidget() = 0; |
595 virtual FX_BOOL SetCurrentWidget(XFA_HWIDGET hWi
dget) = 0; | 597 virtual FX_BOOL SetCurrentWidget(XFA_HWIDGET hWi
dget) = 0; |
| 598 protected: |
| 599 ~IXFA_WidgetIterator() { } |
596 }; | 600 }; |
597 class IXFA_WidgetAccIterator | 601 class IXFA_WidgetAccIterator |
598 { | 602 { |
599 public: | 603 public: |
600 virtual void Release() = 0; | 604 virtual void Release() = 0; |
601 | |
602 virtual void Reset() = 0; | 605 virtual void Reset() = 0; |
603 virtual CXFA_WidgetAcc* MoveToFirst() = 0; | 606 virtual CXFA_WidgetAcc* MoveToFirst() = 0; |
604 virtual CXFA_WidgetAcc* MoveToLast() = 0; | 607 virtual CXFA_WidgetAcc* MoveToLast() = 0; |
605 virtual CXFA_WidgetAcc* MoveToNext() = 0; | 608 virtual CXFA_WidgetAcc* MoveToNext() = 0; |
606 virtual CXFA_WidgetAcc* MoveToPrevious() = 0; | 609 virtual CXFA_WidgetAcc* MoveToPrevious() = 0; |
607 virtual CXFA_WidgetAcc* GetCurrentWidgetAcc() = 0; | 610 virtual CXFA_WidgetAcc* GetCurrentWidgetAcc() = 0; |
608 virtual FX_BOOL SetCurrentWidgetAcc(CXFA_WidgetA
cc* hWidget) = 0; | 611 virtual FX_BOOL SetCurrentWidgetAcc(CXFA_WidgetA
cc* hWidget) = 0; |
609 virtual void SkipTree() = 0; | 612 virtual void SkipTree() = 0; |
| 613 protected: |
| 614 ~IXFA_WidgetAccIterator() { } |
610 }; | 615 }; |
611 IXFA_WidgetAccIterator* XFA_WidgetAccIterator_Create(CXFA_WidgetAcc* pTravelRoot
, XFA_WIDGETORDER eOrder = XFA_WIDGETORDER_PreOrder); | 616 IXFA_WidgetAccIterator* XFA_WidgetAccIterator_Create(CXFA_WidgetAcc* pTravelRoot
, XFA_WIDGETORDER eOrder = XFA_WIDGETORDER_PreOrder); |
612 class IXFA_ChecksumContext | 617 class IXFA_ChecksumContext |
613 { | 618 { |
614 public: | 619 public: |
615 virtual void Release() = 0; | 620 virtual void Release() = 0; |
616 | 621 |
617 virtual FX_BOOL StartChecksum() = 0; | 622 virtual FX_BOOL StartChecksum() = 0; |
618 virtual FX_BOOL UpdateChecksum(IFX_FileRead* pSr
cFile, FX_FILESIZE offset = 0, size_t size = 0) = 0; | 623 virtual FX_BOOL UpdateChecksum(IFX_FileRead* pSr
cFile, FX_FILESIZE offset = 0, size_t size = 0) = 0; |
619 virtual void FinishChecksum() = 0; | 624 virtual void FinishChecksum() = 0; |
620 virtual void GetChecksum(CFX_ByteString &bsCh
ecksum) = 0; | 625 virtual void GetChecksum(CFX_ByteString &bsCh
ecksum) = 0; |
| 626 protected: |
| 627 ~IXFA_ChecksumContext() { } |
621 }; | 628 }; |
622 IXFA_ChecksumContext* XFA_Checksum_Create(); | 629 IXFA_ChecksumContext* XFA_Checksum_Create(); |
623 #endif | 630 #endif |
OLD | NEW |