| 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_H_ | 7 #ifndef FXFA_H_ |
| 8 #define FXFA_H_ | 8 #define FXFA_H_ |
| 9 | 9 |
| 10 class IFDE_XMLElement; | 10 class IFDE_XMLElement; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class IXFA_ChecksumContext; | 28 class IXFA_ChecksumContext; |
| 29 class IXFA_WidgetAccIterator; | 29 class IXFA_WidgetAccIterator; |
| 30 | 30 |
| 31 class IXFA_Doc { | 31 class IXFA_Doc { |
| 32 public: | 32 public: |
| 33 virtual ~IXFA_Doc() { } | 33 virtual ~IXFA_Doc() { } |
| 34 protected: | 34 protected: |
| 35 IXFA_Doc() { } | 35 IXFA_Doc() { } |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 typedef struct _XFA_HWIDGET { | 38 |
| 39 FX_LPVOID pData; | 39 class IXFA_Widget { |
| 40 }* XFA_HWIDGET; | 40 public: |
| 41 virtual ~IXFA_Widget() { } |
| 42 protected: |
| 43 IXFA_Widget() { } |
| 44 }; |
| 45 |
| 46 |
| 41 #include "fxfa_basic.h" | 47 #include "fxfa_basic.h" |
| 42 #include "fxfa_widget.h" | 48 #include "fxfa_widget.h" |
| 43 #define XFA_MBICON_Error 0 | 49 #define XFA_MBICON_Error 0 |
| 44 #define XFA_MBICON_Warning 1 | 50 #define XFA_MBICON_Warning 1 |
| 45 #define XFA_MBICON_Question 2 | 51 #define XFA_MBICON_Question 2 |
| 46 #define XFA_MBICON_Status 3 | 52 #define XFA_MBICON_Status 3 |
| 47 #define XFA_MB_OK 0 | 53 #define XFA_MB_OK 0 |
| 48 #define XFA_MB_OKCancel 1 | 54 #define XFA_MB_OKCancel 1 |
| 49 #define XFA_MB_YesNo 2 | 55 #define XFA_MB_YesNo 2 |
| 50 #define XFA_MB_YesNoCancel 3 | 56 #define XFA_MB_YesNoCancel 3 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 virtual IXFA_Doc* CreateDoc(IXFA_DocProvider* pProvider, C
PDF_Document* pPDFDoc) = 0; | 283 virtual IXFA_Doc* CreateDoc(IXFA_DocProvider* pProvider, C
PDF_Document* pPDFDoc) = 0; |
| 278 virtual IXFA_AppProvider* GetAppProvider() = 0; | 284 virtual IXFA_AppProvider* GetAppProvider() = 0; |
| 279 virtual void SetDefaultFontMgr(IXFA_FontMgr*
pFontMgr) = 0; | 285 virtual void SetDefaultFontMgr(IXFA_FontMgr*
pFontMgr) = 0; |
| 280 virtual IXFA_MenuHandler* GetMenuHandler() = 0; | 286 virtual IXFA_MenuHandler* GetMenuHandler() = 0; |
| 281 }; | 287 }; |
| 282 class IXFA_MenuHandler | 288 class IXFA_MenuHandler |
| 283 { | 289 { |
| 284 public: | 290 public: |
| 285 virtual ~IXFA_MenuHandler() { } | 291 virtual ~IXFA_MenuHandler() { } |
| 286 | 292 |
| 287 virtual FX_BOOL» » CanCopy(XFA_HWIDGET hWidget) = 0; | 293 virtual FX_BOOL» » CanCopy(IXFA_Widget* hWidget) = 0; |
| 288 virtual FX_BOOL» » CanCut(XFA_HWIDGET hWidget) = 0; | 294 virtual FX_BOOL» » CanCut(IXFA_Widget* hWidget) = 0; |
| 289 virtual FX_BOOL» » CanPaste(XFA_HWIDGET hWidget) = 0; | 295 virtual FX_BOOL» » CanPaste(IXFA_Widget* hWidget) = 0; |
| 290 virtual FX_BOOL» » CanSelectAll(XFA_HWIDGET hWidget) = 0; | 296 virtual FX_BOOL» » CanSelectAll(IXFA_Widget* hWidget) = 0; |
| 291 virtual FX_BOOL» » CanDelete(XFA_HWIDGET hWidget) = 0; | 297 virtual FX_BOOL» » CanDelete(IXFA_Widget* hWidget) = 0; |
| 292 virtual FX_BOOL» » CanDeSelect(XFA_HWIDGET hWidget) = 0; | 298 virtual FX_BOOL» » CanDeSelect(IXFA_Widget* hWidget) = 0; |
| 293 virtual FX_BOOL» » Copy(XFA_HWIDGET hWidget, CFX_WideString &wsText
) = 0; | 299 virtual FX_BOOL» » Copy(IXFA_Widget* hWidget, CFX_WideString &wsTex
t) = 0; |
| 294 virtual FX_BOOL» » Cut(XFA_HWIDGET hWidget, CFX_WideString &wsText)
= 0; | 300 virtual FX_BOOL» » Cut(IXFA_Widget* hWidget, CFX_WideString &wsText
) = 0; |
| 295 virtual FX_BOOL» » Paste(XFA_HWIDGET hWidget, const CFX_WideString
&wsText) = 0; | 301 virtual FX_BOOL» » Paste(IXFA_Widget* hWidget, const CFX_WideString
&wsText) = 0; |
| 296 virtual FX_BOOL» » SelectAll(XFA_HWIDGET hWidget) = 0; | 302 virtual FX_BOOL» » SelectAll(IXFA_Widget* hWidget) = 0; |
| 297 virtual FX_BOOL» » Delete(XFA_HWIDGET hWidget) = 0; | 303 virtual FX_BOOL» » Delete(IXFA_Widget* hWidget) = 0; |
| 298 virtual FX_BOOL» » DeSelect(XFA_HWIDGET hWidget) = 0; | 304 virtual FX_BOOL» » DeSelect(IXFA_Widget* hWidget) = 0; |
| 299 virtual FX_BOOL» » CanUndo(XFA_HWIDGET hWidget) = 0; | 305 virtual FX_BOOL» » CanUndo(IXFA_Widget* hWidget) = 0; |
| 300 virtual FX_BOOL» » CanRedo(XFA_HWIDGET hWidget) = 0; | 306 virtual FX_BOOL» » CanRedo(IXFA_Widget* hWidget) = 0; |
| 301 virtual FX_BOOL» » Undo(XFA_HWIDGET hWidget) = 0; | 307 virtual FX_BOOL» » Undo(IXFA_Widget* hWidget) = 0; |
| 302 virtual FX_BOOL» » Redo(XFA_HWIDGET hWidget) = 0; | 308 virtual FX_BOOL» » Redo(IXFA_Widget* hWidget) = 0; |
| 303 virtual FX_BOOL» » GetSuggestWords(XFA_HWIDGET hWidget, CFX_PointF
pointf, CFX_ByteStringArray &sSuggest) = 0; | 309 virtual FX_BOOL» » GetSuggestWords(IXFA_Widget* hWidget, CFX_PointF
pointf, CFX_ByteStringArray &sSuggest) = 0; |
| 304 virtual FX_BOOL» » ReplaceSpellCheckWord(XFA_HWIDGET hWidget, CFX_P
ointF pointf, FX_BSTR bsReplace) = 0; | 310 virtual FX_BOOL» » ReplaceSpellCheckWord(IXFA_Widget* hWidget, CFX_
PointF pointf, FX_BSTR bsReplace) = 0; |
| 305 }; | 311 }; |
| 306 #define XFA_INVALIDATE_AllPages 0x00000000 | 312 #define XFA_INVALIDATE_AllPages 0x00000000 |
| 307 #define XFA_INVALIDATE_CurrentPage 0x00000001 | 313 #define XFA_INVALIDATE_CurrentPage 0x00000001 |
| 308 #define XFA_PRINTOPT_ShowDialog 0x00000001 | 314 #define XFA_PRINTOPT_ShowDialog 0x00000001 |
| 309 #define XFA_PRINTOPT_CanCancel 0x00000002 | 315 #define XFA_PRINTOPT_CanCancel 0x00000002 |
| 310 #define XFA_PRINTOPT_ShrinkPage 0x00000004 | 316 #define XFA_PRINTOPT_ShrinkPage 0x00000004 |
| 311 #define XFA_PRINTOPT_AsImage 0x00000008 | 317 #define XFA_PRINTOPT_AsImage 0x00000008 |
| 312 #define XFA_PRINTOPT_ReverseOrder 0x00000010 | 318 #define XFA_PRINTOPT_ReverseOrder 0x00000010 |
| 313 #define XFA_PRINTOPT_PrintAnnot 0x00000020 | 319 #define XFA_PRINTOPT_PrintAnnot 0x00000020 |
| 314 #define XFA_PAGEVIEWEVENT_PostAdded 1 | 320 #define XFA_PAGEVIEWEVENT_PostAdded 1 |
| 315 #define XFA_PAGEVIEWEVENT_PostRemoved 3 | 321 #define XFA_PAGEVIEWEVENT_PostRemoved 3 |
| 316 #define XFA_WIDGETEVENT_PostAdded 2 | 322 #define XFA_WIDGETEVENT_PostAdded 2 |
| 317 #define XFA_WIDGETEVENT_PreRemoved 3 | 323 #define XFA_WIDGETEVENT_PreRemoved 3 |
| 318 #define XFA_WIDGETEVENT_PostContentChanged 6 | 324 #define XFA_WIDGETEVENT_PostContentChanged 6 |
| 319 #define XFA_WIDGETEVENT_ListItemRemoved 7 | 325 #define XFA_WIDGETEVENT_ListItemRemoved 7 |
| 320 #define XFA_WIDGETEVENT_ListItemAdded 8 | 326 #define XFA_WIDGETEVENT_ListItemAdded 8 |
| 321 #define XFA_WIDGETEVENT_AccessChanged 9 | 327 #define XFA_WIDGETEVENT_AccessChanged 9 |
| 322 class IXFA_DocProvider | 328 class IXFA_DocProvider |
| 323 { | 329 { |
| 324 public: | 330 public: |
| 325 virtual ~IXFA_DocProvider() { } | 331 virtual ~IXFA_DocProvider() { } |
| 326 | 332 |
| 327 virtual void SetChangeMark(IXFA_Doc* hDoc) = 0; | 333 virtual void SetChangeMark(IXFA_Doc* hDoc) = 0; |
| 328 virtual void InvalidateRect(IXFA_PageView* pPageView, const C
FX_RectF& rt, FX_DWORD dwFlags = 0) = 0; | 334 virtual void InvalidateRect(IXFA_PageView* pPageView, const C
FX_RectF& rt, FX_DWORD dwFlags = 0) = 0; |
| 329 virtual void» » DisplayCaret(XFA_HWIDGET hWidget, FX_BOOL bVisib
le, const CFX_RectF* pRtAnchor) = 0; | 335 virtual void» » DisplayCaret(IXFA_Widget* hWidget, FX_BOOL bVisi
ble, const CFX_RectF* pRtAnchor) = 0; |
| 330 virtual FX_BOOL» » GetPopupPos(XFA_HWIDGET hWidget, FX_FLOAT fMinPo
pup, FX_FLOAT fMaxPopup, | 336 virtual FX_BOOL» » GetPopupPos(IXFA_Widget* hWidget, FX_FLOAT fMinP
opup, FX_FLOAT fMaxPopup, |
| 331 const CFX_RectF &rtAnchor, CFX_RectF &rtPopu
p) = 0; | 337 const CFX_RectF &rtAnchor, CFX_RectF &rtPopu
p) = 0; |
| 332 virtual FX_BOOL» » PopupMenu(XFA_HWIDGET hWidget, CFX_PointF ptPopu
p, const CFX_RectF* pRectExclude = NULL) = 0; | 338 virtual FX_BOOL» » PopupMenu(IXFA_Widget* hWidget, CFX_PointF ptPop
up, const CFX_RectF* pRectExclude = NULL) = 0; |
| 333 virtual void PageViewEvent(IXFA_PageView* pPageView, FX_DWORD
dwFlags) = 0; | 339 virtual void PageViewEvent(IXFA_PageView* pPageView, FX_DWORD
dwFlags) = 0; |
| 334 virtual void» » WidgetEvent(XFA_HWIDGET hWidget, CXFA_WidgetAcc*
pWidgetData, FX_DWORD dwEvent, FX_LPVOID pParam = NULL, FX_LPVOID pAdditional =
NULL) = 0; | 340 virtual void» » WidgetEvent(IXFA_Widget* hWidget, CXFA_WidgetAcc
* pWidgetData, FX_DWORD dwEvent, FX_LPVOID pParam = NULL, FX_LPVOID pAdditional
= NULL) = 0; |
| 335 virtual FX_BOOL» » RenderCustomWidget(XFA_HWIDGET hWidget, CFX_Grap
hics* pGS, CFX_Matrix* pMatrix, const CFX_RectF& rtUI) | 341 virtual FX_BOOL» » RenderCustomWidget(IXFA_Widget* hWidget, CFX_Gra
phics* pGS, CFX_Matrix* pMatrix, const CFX_RectF& rtUI) |
| 336 { | 342 { |
| 337 return FALSE; | 343 return FALSE; |
| 338 } | 344 } |
| 339 virtual FX_INT32 CountPages(IXFA_Doc* hDoc) = 0; | 345 virtual FX_INT32 CountPages(IXFA_Doc* hDoc) = 0; |
| 340 virtual FX_INT32 GetCurrentPage(IXFA_Doc* hDoc) = 0; | 346 virtual FX_INT32 GetCurrentPage(IXFA_Doc* hDoc) = 0; |
| 341 virtual void SetCurrentPage(IXFA_Doc* hDoc, FX_INT32 iCurPage
) = 0; | 347 virtual void SetCurrentPage(IXFA_Doc* hDoc, FX_INT32 iCurPage
) = 0; |
| 342 virtual FX_BOOL IsCalculationsEnabled(IXFA_Doc* hDoc) = 0; | 348 virtual FX_BOOL IsCalculationsEnabled(IXFA_Doc* hDoc) = 0; |
| 343 virtual void SetCalculationsEnabled(IXFA_Doc* hDoc, FX_BOOL b
Enabled) = 0; | 349 virtual void SetCalculationsEnabled(IXFA_Doc* hDoc, FX_BOOL b
Enabled) = 0; |
| 344 virtual void GetTitle(IXFA_Doc* hDoc, CFX_WideString &wsTitle
) = 0; | 350 virtual void GetTitle(IXFA_Doc* hDoc, CFX_WideString &wsTitle
) = 0; |
| 345 virtual void SetTitle(IXFA_Doc* hDoc, FX_WSTR wsTitle) = 0; | 351 virtual void SetTitle(IXFA_Doc* hDoc, FX_WSTR wsTitle) = 0; |
| 346 virtual void ExportData(IXFA_Doc* hDoc, FX_WSTR wsFilePath, F
X_BOOL bXDP = TRUE) = 0; | 352 virtual void ExportData(IXFA_Doc* hDoc, FX_WSTR wsFilePath, F
X_BOOL bXDP = TRUE) = 0; |
| 347 virtual void ImportData(IXFA_Doc* hDoc, FX_WSTR wsFilePath) =
0; | 353 virtual void ImportData(IXFA_Doc* hDoc, FX_WSTR wsFilePath) =
0; |
| 348 virtual void GotoURL(IXFA_Doc* hDoc, FX_WSTR bsURL, FX_BOOL b
Append = TRUE) = 0; | 354 virtual void GotoURL(IXFA_Doc* hDoc, FX_WSTR bsURL, FX_BOOL b
Append = TRUE) = 0; |
| 349 virtual FX_BOOL IsValidationsEnabled(IXFA_Doc* hDoc) = 0; | 355 virtual FX_BOOL IsValidationsEnabled(IXFA_Doc* hDoc) = 0; |
| 350 virtual void SetValidationsEnabled(IXFA_Doc* hDoc, FX_BOOL bE
nabled) = 0; | 356 virtual void SetValidationsEnabled(IXFA_Doc* hDoc, FX_BOOL bE
nabled) = 0; |
| 351 virtual void» » SetFocusWidget(IXFA_Doc* hDoc, XFA_HWIDGET hWidg
et) = 0; | 357 virtual void» » SetFocusWidget(IXFA_Doc* hDoc, IXFA_Widget* hWid
get) = 0; |
| 352 virtual void Print(IXFA_Doc* hDoc, FX_INT32 nStartPage, FX_IN
T32 nEndPage, FX_DWORD dwOptions) = 0; | 358 virtual void Print(IXFA_Doc* hDoc, FX_INT32 nStartPage, FX_IN
T32 nEndPage, FX_DWORD dwOptions) = 0; |
| 353 virtual FX_INT32 AbsPageCountInBatch(IXFA_Doc* hDoc) = 0; | 359 virtual FX_INT32 AbsPageCountInBatch(IXFA_Doc* hDoc) = 0; |
| 354 virtual FX_INT32» » » AbsPageInBatch(IXFA_Doc* hDoc, XFA_HWIDG
ET hWidget) = 0; | 360 virtual FX_INT32» » » AbsPageInBatch(IXFA_Doc* hDoc, IXFA_Widg
et* hWidget) = 0; |
| 355 virtual FX_INT32 SheetCountInBatch(IXFA_Doc* hDoc) = 0; | 361 virtual FX_INT32 SheetCountInBatch(IXFA_Doc* hDoc) = 0; |
| 356 virtual FX_INT32» » » SheetInBatch(IXFA_Doc* hDoc, XFA_HWIDGET
hWidget) = 0; | 362 virtual FX_INT32» » » SheetInBatch(IXFA_Doc* hDoc, IXFA_Widget
* hWidget) = 0; |
| 357 virtual FX_INT32 Verify(IXFA_Doc* hDoc, CXFA_Node* pSigNo
de, FX_BOOL bUsed = TRUE) | 363 virtual FX_INT32 Verify(IXFA_Doc* hDoc, CXFA_Node* pSigNo
de, FX_BOOL bUsed = TRUE) |
| 358 { | 364 { |
| 359 return 0; | 365 return 0; |
| 360 } | 366 } |
| 361 virtual FX_BOOL Sign(IXFA_Doc* hDoc, CXFA_NodeLi
st* pNodeList, FX_WSTR wsExpression, FX_WSTR wsXMLIdent, FX_WSTR wsValue = FX_WS
TRC(L"open"), FX_BOOL bUsed = TRUE) | 367 virtual FX_BOOL Sign(IXFA_Doc* hDoc, CXFA_NodeLi
st* pNodeList, FX_WSTR wsExpression, FX_WSTR wsXMLIdent, FX_WSTR wsValue = FX_WS
TRC(L"open"), FX_BOOL bUsed = TRUE) |
| 362 { | 368 { |
| 363 return 0; | 369 return 0; |
| 364 } | 370 } |
| 365 virtual CXFA_NodeList* Enumerate(IXFA_Doc* hDoc) | 371 virtual CXFA_NodeList* Enumerate(IXFA_Doc* hDoc) |
| 366 { | 372 { |
| 367 return 0; | 373 return 0; |
| 368 } | 374 } |
| 369 virtual FX_BOOL Clear(IXFA_Doc* hDoc, CXFA_Node*
pSigNode, FX_BOOL bCleared = TRUE) | 375 virtual FX_BOOL Clear(IXFA_Doc* hDoc, CXFA_Node*
pSigNode, FX_BOOL bCleared = TRUE) |
| 370 { | 376 { |
| 371 return 0; | 377 return 0; |
| 372 } | 378 } |
| 373 virtual void GetURL(IXFA_Doc* hDoc, CFX_WideString &wsDocURL)
= 0; | 379 virtual void GetURL(IXFA_Doc* hDoc, CFX_WideString &wsDocURL)
= 0; |
| 374 virtual FX_ARGB GetHighlightColor(IXFA_Doc* hDoc) = 0; | 380 virtual FX_ARGB GetHighlightColor(IXFA_Doc* hDoc) = 0; |
| 375 virtual void» » AddDoRecord(XFA_HWIDGET hWidget) = 0; | 381 virtual void» » AddDoRecord(IXFA_Widget* hWidget) = 0; |
| 376 | 382 |
| 377 virtual FX_BOOL SubmitData(IXFA_Doc* hDoc, CXFA_Submit submit) =
0; | 383 virtual FX_BOOL SubmitData(IXFA_Doc* hDoc, CXFA_Submit submit) =
0; |
| 378 virtual FX_BOOL CheckWord(IXFA_Doc* hDoc, FX_BSTR sWord) = 0; | 384 virtual FX_BOOL CheckWord(IXFA_Doc* hDoc, FX_BSTR sWord) = 0; |
| 379 virtual FX_BOOL GetSuggestWords(IXFA_Doc* hDoc, FX_BSTR sWord, C
FX_ByteStringArray& sSuggest) = 0; | 385 virtual FX_BOOL GetSuggestWords(IXFA_Doc* hDoc, FX_BSTR sWord, C
FX_ByteStringArray& sSuggest) = 0; |
| 380 virtual FX_BOOL GetPDFScriptObject(IXFA_Doc* hDoc, FX_BSTR utf8N
ame, FXJSE_HVALUE hValue) = 0; | 386 virtual FX_BOOL GetPDFScriptObject(IXFA_Doc* hDoc, FX_BSTR utf8N
ame, FXJSE_HVALUE hValue) = 0; |
| 381 virtual FX_BOOL GetGlobalProperty(IXFA_Doc* hDoc, FX_BSTR szProp
Name, FXJSE_HVALUE hValue) = 0; | 387 virtual FX_BOOL GetGlobalProperty(IXFA_Doc* hDoc, FX_BSTR szProp
Name, FXJSE_HVALUE hValue) = 0; |
| 382 virtual FX_BOOL SetGlobalProperty(IXFA_Doc* hDoc, FX_BSTR szProp
Name, FXJSE_HVALUE hValue) = 0; | 388 virtual FX_BOOL SetGlobalProperty(IXFA_Doc* hDoc, FX_BSTR szProp
Name, FXJSE_HVALUE hValue) = 0; |
| 383 virtual CPDF_Document* OpenPDF(IXFA_Doc* hDoc, IFX_FileRead* pFile, FX_BOOL
bTakeOverFile) = 0; | 389 virtual CPDF_Document* OpenPDF(IXFA_Doc* hDoc, IFX_FileRead* pFile, FX_BOOL
bTakeOverFile) = 0; |
| 384 virtual IFX_FileRead* OpenLinkedFile(IXFA_Doc* hDoc, const CFX_WideStr
ing& wsLink) = 0; | 390 virtual IFX_FileRead* OpenLinkedFile(IXFA_Doc* hDoc, const CFX_WideStr
ing& wsLink) = 0; |
| 385 }; | 391 }; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 530 |
| 525 virtual IXFA_Doc* GetDoc() = 0; | 531 virtual IXFA_Doc* GetDoc() = 0; |
| 526 virtual FX_INT32 StartLayout(FX_INT32 iStartPage
= 0) = 0; | 532 virtual FX_INT32 StartLayout(FX_INT32 iStartPage
= 0) = 0; |
| 527 virtual FX_INT32 DoLayout(IFX_Pause *pPause = NULL) = 0; | 533 virtual FX_INT32 DoLayout(IFX_Pause *pPause = NULL) = 0; |
| 528 virtual void StopLayout() = 0; | 534 virtual void StopLayout() = 0; |
| 529 | 535 |
| 530 virtual FX_INT32 GetLayoutStatus() = 0; | 536 virtual FX_INT32 GetLayoutStatus() = 0; |
| 531 virtual void UpdateDocView() = 0; | 537 virtual void UpdateDocView() = 0; |
| 532 virtual FX_INT32 CountPageViews() = 0; | 538 virtual FX_INT32 CountPageViews() = 0; |
| 533 virtual IXFA_PageView* GetPageView(FX_INT32 nIndex) = 0; | 539 virtual IXFA_PageView* GetPageView(FX_INT32 nIndex) = 0; |
| 534 virtual XFA_HWIDGET»» » GetWidgetByName(FX_WSTR wsName) = 0; | 540 virtual IXFA_Widget*» » » GetWidgetByName(FX_WSTR wsName)
= 0; |
| 535 virtual CXFA_WidgetAcc* GetWidgetAccByName(FX_WSTR wsName) = 0; | 541 virtual CXFA_WidgetAcc* GetWidgetAccByName(FX_WSTR wsName) = 0; |
| 536 virtual void ResetWidgetData(CXFA_WidgetAcc*
pWidgetAcc = NULL) = 0; | 542 virtual void ResetWidgetData(CXFA_WidgetAcc*
pWidgetAcc = NULL) = 0; |
| 537 virtual FX_INT32 ProcessWidgetEvent(CXFA_EventParam* pPar
am, CXFA_WidgetAcc* pWidgetAcc = NULL) = 0; | 543 virtual FX_INT32 ProcessWidgetEvent(CXFA_EventParam* pPar
am, CXFA_WidgetAcc* pWidgetAcc = NULL) = 0; |
| 538 virtual IXFA_WidgetHandler* GetWidgetHandler() = 0; | 544 virtual IXFA_WidgetHandler* GetWidgetHandler() = 0; |
| 539 virtual IXFA_WidgetIterator* CreateWidgetIterator() = 0; | 545 virtual IXFA_WidgetIterator* CreateWidgetIterator() = 0; |
| 540 virtual IXFA_WidgetAccIterator* CreateWidgetAccIterator(XFA_WIDGETORDER eOrd
er = XFA_WIDGETORDER_PreOrder) = 0; | 546 virtual IXFA_WidgetAccIterator* CreateWidgetAccIterator(XFA_WIDGETORDER eOrd
er = XFA_WIDGETORDER_PreOrder) = 0; |
| 541 virtual XFA_HWIDGET»» » GetFocusWidget() = 0; | 547 virtual IXFA_Widget*» » » GetFocusWidget() = 0; |
| 542 virtual void KillFocus() = 0; | 548 virtual void KillFocus() = 0; |
| 543 virtual FX_BOOL» » » » SetFocus(XFA_HWIDGET hWidget) =
0; | 549 virtual FX_BOOL» » » » SetFocus(IXFA_Widget* hWidget) =
0; |
| 544 }; | 550 }; |
| 545 #define XFA_TRAVERSEWAY_Tranvalse 0x0001 | 551 #define XFA_TRAVERSEWAY_Tranvalse 0x0001 |
| 546 #define XFA_TRAVERSEWAY_Form 0x0002 | 552 #define XFA_TRAVERSEWAY_Form 0x0002 |
| 547 #define XFA_WIDGETFILTER_Visible 0x0001 | 553 #define XFA_WIDGETFILTER_Visible 0x0001 |
| 548 #define XFA_WIDGETFILTER_Viewable 0x0010 | 554 #define XFA_WIDGETFILTER_Viewable 0x0010 |
| 549 #define XFA_WIDGETFILTER_Printable 0x0020 | 555 #define XFA_WIDGETFILTER_Printable 0x0020 |
| 550 #define XFA_WIDGETFILTER_Field 0x0100 | 556 #define XFA_WIDGETFILTER_Field 0x0100 |
| 551 #define XFA_WIDGETFILTER_AllType 0x0F00 | 557 #define XFA_WIDGETFILTER_AllType 0x0F00 |
| 552 class IXFA_PageView | 558 class IXFA_PageView |
| 553 { | 559 { |
| 554 public: | 560 public: |
| 555 virtual ~IXFA_PageView() { } | 561 virtual ~IXFA_PageView() { } |
| 556 | 562 |
| 557 virtual IXFA_DocView* GetDocView() = 0; | 563 virtual IXFA_DocView* GetDocView() = 0; |
| 558 virtual FX_INT32 GetPageViewIndex() = 0; | 564 virtual FX_INT32 GetPageViewIndex() = 0; |
| 559 virtual void GetPageViewRect(CFX_RectF &rtPage) = 0; | 565 virtual void GetPageViewRect(CFX_RectF &rtPage) = 0; |
| 560 | 566 |
| 561 virtual void GetDisplayMatrix(CFX_Matrix &mt, const C
FX_Rect &rtDisp, FX_INT32 iRotate) = 0; | 567 virtual void GetDisplayMatrix(CFX_Matrix &mt, const C
FX_Rect &rtDisp, FX_INT32 iRotate) = 0; |
| 562 | 568 |
| 563 virtual FX_INT32 LoadPageView(IFX_Pause *pPause = NULL) = 0; | 569 virtual FX_INT32 LoadPageView(IFX_Pause *pPause = NULL) = 0; |
| 564 virtual void UnloadPageView() = 0; | 570 virtual void UnloadPageView() = 0; |
| 565 virtual XFA_HWIDGET»» GetWidgetByPos(FX_FLOAT fx, FX_FLOAT fy) = 0; | 571 virtual IXFA_Widget*» » GetWidgetByPos(FX_FLOAT fx, FX_FLOAT fy)
= 0; |
| 566 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; | 572 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; |
| 567 }; | 573 }; |
| 568 class CXFA_RenderOptions | 574 class CXFA_RenderOptions |
| 569 { | 575 { |
| 570 public: | 576 public: |
| 571 CXFA_RenderOptions() | 577 CXFA_RenderOptions() |
| 572 : m_bPrint(FALSE) | 578 : m_bPrint(FALSE) |
| 573 , m_bHighlight(TRUE) | 579 , m_bHighlight(TRUE) |
| 574 { | 580 { |
| 575 } | 581 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 #define XFA_WIDGETSTATUS_Invisible 0x00000002 | 624 #define XFA_WIDGETSTATUS_Invisible 0x00000002 |
| 619 #define XFA_WIDGETSTATUS_Hidden 0x00000004 | 625 #define XFA_WIDGETSTATUS_Hidden 0x00000004 |
| 620 #define XFA_WIDGETSTATUS_Viewable 0x00000010 | 626 #define XFA_WIDGETSTATUS_Viewable 0x00000010 |
| 621 #define XFA_WIDGETSTATUS_Printable 0x00000020 | 627 #define XFA_WIDGETSTATUS_Printable 0x00000020 |
| 622 #define XFA_WIDGETSTATUS_Focused 0x00000100 | 628 #define XFA_WIDGETSTATUS_Focused 0x00000100 |
| 623 class IXFA_WidgetHandler | 629 class IXFA_WidgetHandler |
| 624 { | 630 { |
| 625 public: | 631 public: |
| 626 virtual ~IXFA_WidgetHandler() { } | 632 virtual ~IXFA_WidgetHandler() { } |
| 627 | 633 |
| 628 virtual XFA_HWIDGET»» CreateWidget(XFA_HWIDGET hParent, XFA_WIDGETTYPE
eType, XFA_HWIDGET hBefore = NULL) = 0; | 634 virtual IXFA_Widget*» » CreateWidget(IXFA_Widget* hParent, XFA_W
IDGETTYPE eType, IXFA_Widget* hBefore = NULL) = 0; |
| 629 virtual IXFA_PageView*» GetPageView(XFA_HWIDGET hWidget) = 0; | 635 virtual IXFA_PageView*» GetPageView(IXFA_Widget* hWidget) = 0; |
| 630 virtual void» » » GetRect(XFA_HWIDGET hWidget, CFX_RectF &
rt) = 0; | 636 virtual void» » » GetRect(IXFA_Widget* hWidget, CFX_RectF
&rt) = 0; |
| 631 virtual FX_DWORD» » GetStatus(XFA_HWIDGET hWidget) = 0; | 637 virtual FX_DWORD» » GetStatus(IXFA_Widget* hWidget) = 0; |
| 632 virtual FX_BOOL» » » GetBBox(XFA_HWIDGET hWidget, CFX_RectF &
rtBox, FX_DWORD dwStatus, FX_BOOL bDrawFocus = FALSE) = 0; | 638 virtual FX_BOOL» » » GetBBox(IXFA_Widget* hWidget, CFX_RectF
&rtBox, FX_DWORD dwStatus, FX_BOOL bDrawFocus = FALSE) = 0; |
| 633 virtual CXFA_WidgetAcc*» GetDataAcc(XFA_HWIDGET hWidget) = 0; | 639 virtual CXFA_WidgetAcc*» GetDataAcc(IXFA_Widget* hWidget) = 0; |
| 634 | 640 |
| 635 virtual void» » » GetName(XFA_HWIDGET hWidget, CFX_WideStr
ing &wsName, FX_INT32 iNameType = 0) = 0; | 641 virtual void» » » GetName(IXFA_Widget* hWidget, CFX_WideSt
ring &wsName, FX_INT32 iNameType = 0) = 0; |
| 636 virtual» FX_BOOL»» » GetToolTip(XFA_HWIDGET hWidget, CFX_Wide
String &wsToolTip) = 0; | 642 virtual» FX_BOOL»» » GetToolTip(IXFA_Widget* hWidget, CFX_Wid
eString &wsToolTip) = 0; |
| 637 virtual» void» » » SetPrivateData(XFA_HWIDGET hWidget, FX_L
PVOID module_id, FX_LPVOID pData, PD_CALLBACK_FREEDATA callback) = 0; | 643 virtual» void» » » SetPrivateData(IXFA_Widget* hWidget, FX_
LPVOID module_id, FX_LPVOID pData, PD_CALLBACK_FREEDATA callback) = 0; |
| 638 virtual» FX_LPVOID» » GetPrivateData(XFA_HWIDGET hWidget, FX_L
PVOID module_id) = 0; | 644 virtual» FX_LPVOID» » GetPrivateData(IXFA_Widget* hWidget, FX_
LPVOID module_id) = 0; |
| 639 virtual FX_BOOL» » » OnMouseEnter(XFA_HWIDGET hWidget) = 0; | 645 virtual FX_BOOL» » » OnMouseEnter(IXFA_Widget* hWidget) = 0; |
| 640 virtual FX_BOOL» » » OnMouseExit(XFA_HWIDGET hWidget) = 0; | 646 virtual FX_BOOL» » » OnMouseExit(IXFA_Widget* hWidget) = 0; |
| 641 virtual FX_BOOL» » » OnLButtonDown(XFA_HWIDGET hWidget, FX_DW
ORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; | 647 virtual FX_BOOL» » » OnLButtonDown(IXFA_Widget* hWidget, FX_D
WORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; |
| 642 virtual FX_BOOL» » » OnLButtonUp(XFA_HWIDGET hWidget, FX_DWOR
D dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; | 648 virtual FX_BOOL» » » OnLButtonUp(IXFA_Widget* hWidget, FX_DWO
RD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; |
| 643 virtual FX_BOOL» » » OnLButtonDblClk(XFA_HWIDGET hWidget, FX_
DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; | 649 virtual FX_BOOL» » » OnLButtonDblClk(IXFA_Widget* hWidget, FX
_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; |
| 644 virtual FX_BOOL» » » OnMouseMove(XFA_HWIDGET hWidget, FX_DWOR
D dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; | 650 virtual FX_BOOL» » » OnMouseMove(IXFA_Widget* hWidget, FX_DWO
RD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; |
| 645 virtual FX_BOOL» » » OnMouseWheel(XFA_HWIDGET hWidget, FX_DWO
RD dwFlags, FX_SHORT zDelta, FX_FLOAT fx, FX_FLOAT fy) = 0; | 651 virtual FX_BOOL» » » OnMouseWheel(IXFA_Widget* hWidget, FX_DW
ORD dwFlags, FX_SHORT zDelta, FX_FLOAT fx, FX_FLOAT fy) = 0; |
| 646 virtual FX_BOOL» » » OnRButtonDown(XFA_HWIDGET hWidget, FX_DW
ORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; | 652 virtual FX_BOOL» » » OnRButtonDown(IXFA_Widget* hWidget, FX_D
WORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; |
| 647 virtual FX_BOOL» » » OnRButtonUp(XFA_HWIDGET hWidget, FX_DWOR
D dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; | 653 virtual FX_BOOL» » » OnRButtonUp(IXFA_Widget* hWidget, FX_DWO
RD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; |
| 648 virtual FX_BOOL» » » OnRButtonDblClk(XFA_HWIDGET hWidget, FX_
DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; | 654 virtual FX_BOOL» » » OnRButtonDblClk(IXFA_Widget* hWidget, FX
_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) = 0; |
| 649 | 655 |
| 650 virtual FX_BOOL» » » OnKeyDown(XFA_HWIDGET hWidget, FX_DWORD
dwKeyCode, FX_DWORD dwFlags) = 0; | 656 virtual FX_BOOL» » » OnKeyDown(IXFA_Widget* hWidget, FX_DWORD
dwKeyCode, FX_DWORD dwFlags) = 0; |
| 651 virtual FX_BOOL» » » OnKeyUp(XFA_HWIDGET hWidget, FX_DWORD dw
KeyCode, FX_DWORD dwFlags) = 0; | 657 virtual FX_BOOL» » » OnKeyUp(IXFA_Widget* hWidget, FX_DWORD d
wKeyCode, FX_DWORD dwFlags) = 0; |
| 652 virtual FX_BOOL» » » OnChar(XFA_HWIDGET hWidget, FX_DWORD dwC
har, FX_DWORD dwFlags) = 0; | 658 virtual FX_BOOL» » » OnChar(IXFA_Widget* hWidget, FX_DWORD dw
Char, FX_DWORD dwFlags) = 0; |
| 653 virtual» FX_DWORD» » OnHitTest(XFA_HWIDGET hWidget, FX_FLOAT
fx, FX_FLOAT fy) = 0; | 659 virtual» FX_DWORD» » OnHitTest(IXFA_Widget* hWidget, FX_FLOAT
fx, FX_FLOAT fy) = 0; |
| 654 virtual FX_BOOL» » » OnSetCursor(XFA_HWIDGET hWidget, FX_FLOA
T fx, FX_FLOAT fy) = 0; | 660 virtual FX_BOOL» » » OnSetCursor(IXFA_Widget* hWidget, FX_FLO
AT fx, FX_FLOAT fy) = 0; |
| 655 | 661 |
| 656 virtual void» » » RenderWidget(XFA_HWIDGET hWidget, CFX_Gr
aphics* pGS, CFX_Matrix* pMatrix = NULL, FX_BOOL bHighlight = FALSE) = 0; | 662 virtual void» » » RenderWidget(IXFA_Widget* hWidget, CFX_G
raphics* pGS, CFX_Matrix* pMatrix = NULL, FX_BOOL bHighlight = FALSE) = 0; |
| 657 virtual FX_BOOL HasEvent(CXFA_WidgetAcc* pWidgetAcc, XFA
_EVENTTYPE eEventType) = 0; | 663 virtual FX_BOOL HasEvent(CXFA_WidgetAcc* pWidgetAcc, XFA
_EVENTTYPE eEventType) = 0; |
| 658 virtual FX_INT32 ProcessEvent(CXFA_WidgetAcc* pWidgetAcc, CXFA_Ev
entParam* pParam) = 0; | 664 virtual FX_INT32 ProcessEvent(CXFA_WidgetAcc* pWidgetAcc, CXFA_Ev
entParam* pParam) = 0; |
| 659 }; | 665 }; |
| 660 class IXFA_WidgetIterator | 666 class IXFA_WidgetIterator |
| 661 { | 667 { |
| 662 public: | 668 public: |
| 663 virtual void Release() = 0; | 669 virtual void Release() = 0; |
| 664 virtual void Reset() = 0; | 670 virtual void Reset() = 0; |
| 665 virtual XFA_HWIDGET»» » MoveToFirst() = 0; | 671 virtual IXFA_Widget*» » » MoveToFirst() = 0; |
| 666 virtual XFA_HWIDGET»» » MoveToLast() = 0; | 672 virtual IXFA_Widget*» » » MoveToLast() = 0; |
| 667 virtual» XFA_HWIDGET» » » MoveToNext() = 0; | 673 virtual» IXFA_Widget*» » » MoveToNext() = 0; |
| 668 virtual XFA_HWIDGET»» » MoveToPrevious() = 0; | 674 virtual IXFA_Widget*» » » MoveToPrevious() = 0; |
| 669 virtual» XFA_HWIDGET» » » GetCurrentWidget() = 0; | 675 virtual» IXFA_Widget*» » » GetCurrentWidget() = 0; |
| 670 virtual» FX_BOOL»» » » SetCurrentWidget(XFA_HWIDGET hWi
dget) = 0; | 676 virtual» FX_BOOL»» » » SetCurrentWidget(IXFA_Widget* hW
idget) = 0; |
| 671 protected: | 677 protected: |
| 672 ~IXFA_WidgetIterator() { } | 678 ~IXFA_WidgetIterator() { } |
| 673 }; | 679 }; |
| 674 class IXFA_WidgetAccIterator | 680 class IXFA_WidgetAccIterator |
| 675 { | 681 { |
| 676 public: | 682 public: |
| 677 virtual void Release() = 0; | 683 virtual void Release() = 0; |
| 678 virtual void Reset() = 0; | 684 virtual void Reset() = 0; |
| 679 virtual CXFA_WidgetAcc* MoveToFirst() = 0; | 685 virtual CXFA_WidgetAcc* MoveToFirst() = 0; |
| 680 virtual CXFA_WidgetAcc* MoveToLast() = 0; | 686 virtual CXFA_WidgetAcc* MoveToLast() = 0; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 695 virtual FX_BOOL StartChecksum() = 0; | 701 virtual FX_BOOL StartChecksum() = 0; |
| 696 virtual FX_BOOL UpdateChecksum(IFX_FileRead* pSr
cFile, FX_FILESIZE offset = 0, size_t size = 0) = 0; | 702 virtual FX_BOOL UpdateChecksum(IFX_FileRead* pSr
cFile, FX_FILESIZE offset = 0, size_t size = 0) = 0; |
| 697 virtual void FinishChecksum() = 0; | 703 virtual void FinishChecksum() = 0; |
| 698 virtual void GetChecksum(CFX_ByteString &bsCh
ecksum) = 0; | 704 virtual void GetChecksum(CFX_ByteString &bsCh
ecksum) = 0; |
| 699 protected: | 705 protected: |
| 700 ~IXFA_ChecksumContext() { } | 706 ~IXFA_ChecksumContext() { } |
| 701 }; | 707 }; |
| 702 IXFA_ChecksumContext* XFA_Checksum_Create(); | 708 IXFA_ChecksumContext* XFA_Checksum_Create(); |
| 703 | 709 |
| 704 #endif // FXFA_H_ | 710 #endif // FXFA_H_ |
| OLD | NEW |