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 XFA_FXFA_INCLUDE_FXFA_H_ | 7 #ifndef XFA_FXFA_INCLUDE_FXFA_H_ |
8 #define XFA_FXFA_INCLUDE_FXFA_H_ | 8 #define XFA_FXFA_INCLUDE_FXFA_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 #define XFA_PRINTOPT_CanCancel 0x00000002 | 272 #define XFA_PRINTOPT_CanCancel 0x00000002 |
273 #define XFA_PRINTOPT_ShrinkPage 0x00000004 | 273 #define XFA_PRINTOPT_ShrinkPage 0x00000004 |
274 #define XFA_PRINTOPT_AsImage 0x00000008 | 274 #define XFA_PRINTOPT_AsImage 0x00000008 |
275 #define XFA_PRINTOPT_ReverseOrder 0x00000010 | 275 #define XFA_PRINTOPT_ReverseOrder 0x00000010 |
276 #define XFA_PRINTOPT_PrintAnnot 0x00000020 | 276 #define XFA_PRINTOPT_PrintAnnot 0x00000020 |
277 #define XFA_PAGEVIEWEVENT_PostAdded 1 | 277 #define XFA_PAGEVIEWEVENT_PostAdded 1 |
278 #define XFA_PAGEVIEWEVENT_PostRemoved 3 | 278 #define XFA_PAGEVIEWEVENT_PostRemoved 3 |
279 #define XFA_PAGEVIEWEVENT_StopLayout 4 | 279 #define XFA_PAGEVIEWEVENT_StopLayout 4 |
280 #define XFA_WIDGETEVENT_PostAdded 2 | 280 #define XFA_WIDGETEVENT_PostAdded 2 |
281 #define XFA_WIDGETEVENT_PreRemoved 3 | 281 #define XFA_WIDGETEVENT_PreRemoved 3 |
282 #define XFA_WIDGETEVENT_PostContentChanged 6 | |
283 #define XFA_WIDGETEVENT_ListItemRemoved 7 | 282 #define XFA_WIDGETEVENT_ListItemRemoved 7 |
284 #define XFA_WIDGETEVENT_ListItemAdded 8 | 283 #define XFA_WIDGETEVENT_ListItemAdded 8 |
285 #define XFA_WIDGETEVENT_AccessChanged 9 | 284 |
286 class IXFA_DocProvider { | 285 class IXFA_DocProvider { |
287 public: | 286 public: |
288 virtual ~IXFA_DocProvider() {} | 287 virtual ~IXFA_DocProvider() {} |
289 | 288 |
290 virtual void SetChangeMark(CXFA_FFDoc* hDoc) = 0; | 289 virtual void SetChangeMark(CXFA_FFDoc* hDoc) = 0; |
291 virtual void InvalidateRect(CXFA_FFPageView* pPageView, | 290 virtual void InvalidateRect(CXFA_FFPageView* pPageView, |
292 const CFX_RectF& rt, | 291 const CFX_RectF& rt, |
293 uint32_t dwFlags = 0) = 0; | 292 uint32_t dwFlags = 0) = 0; |
294 virtual void DisplayCaret(CXFA_FFWidget* hWidget, | 293 virtual void DisplayCaret(CXFA_FFWidget* hWidget, |
295 FX_BOOL bVisible, | 294 FX_BOOL bVisible, |
296 const CFX_RectF* pRtAnchor) = 0; | 295 const CFX_RectF* pRtAnchor) = 0; |
297 virtual FX_BOOL GetPopupPos(CXFA_FFWidget* hWidget, | 296 virtual FX_BOOL GetPopupPos(CXFA_FFWidget* hWidget, |
298 FX_FLOAT fMinPopup, | 297 FX_FLOAT fMinPopup, |
299 FX_FLOAT fMaxPopup, | 298 FX_FLOAT fMaxPopup, |
300 const CFX_RectF& rtAnchor, | 299 const CFX_RectF& rtAnchor, |
301 CFX_RectF& rtPopup) = 0; | 300 CFX_RectF& rtPopup) = 0; |
302 virtual FX_BOOL PopupMenu(CXFA_FFWidget* hWidget, | 301 virtual FX_BOOL PopupMenu(CXFA_FFWidget* hWidget, |
303 CFX_PointF ptPopup, | 302 CFX_PointF ptPopup, |
304 const CFX_RectF* pRectExclude = NULL) = 0; | 303 const CFX_RectF* pRectExclude = NULL) = 0; |
305 virtual void PageViewEvent(CXFA_FFPageView* pPageView, uint32_t dwFlags) = 0; | 304 virtual void PageViewEvent(CXFA_FFPageView* pPageView, uint32_t dwFlags) = 0; |
306 virtual void WidgetEvent(CXFA_FFWidget* hWidget, | 305 virtual void WidgetEvent(CXFA_FFWidget* hWidget, |
307 CXFA_WidgetAcc* pWidgetData, | 306 CXFA_WidgetAcc* pWidgetData, |
308 uint32_t dwEvent, | 307 uint32_t dwEvent); |
309 void* pParam = NULL, | |
310 void* pAdditional = NULL) = 0; | |
311 virtual FX_BOOL RenderCustomWidget(CXFA_FFWidget* hWidget, | 308 virtual FX_BOOL RenderCustomWidget(CXFA_FFWidget* hWidget, |
312 CFX_Graphics* pGS, | 309 CFX_Graphics* pGS, |
313 CFX_Matrix* pMatrix, | 310 CFX_Matrix* pMatrix, |
314 const CFX_RectF& rtUI) { | 311 const CFX_RectF& rtUI) { |
315 return FALSE; | 312 return FALSE; |
316 } | 313 } |
317 virtual int32_t CountPages(CXFA_FFDoc* hDoc) = 0; | 314 virtual int32_t CountPages(CXFA_FFDoc* hDoc) = 0; |
318 virtual int32_t GetCurrentPage(CXFA_FFDoc* hDoc) = 0; | 315 virtual int32_t GetCurrentPage(CXFA_FFDoc* hDoc) = 0; |
319 virtual void SetCurrentPage(CXFA_FFDoc* hDoc, int32_t iCurPage) = 0; | 316 virtual void SetCurrentPage(CXFA_FFDoc* hDoc, int32_t iCurPage) = 0; |
320 virtual FX_BOOL IsCalculationsEnabled(CXFA_FFDoc* hDoc) = 0; | 317 virtual FX_BOOL IsCalculationsEnabled(CXFA_FFDoc* hDoc) = 0; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 virtual CXFA_FFWidget* MoveToNext() = 0; | 543 virtual CXFA_FFWidget* MoveToNext() = 0; |
547 virtual CXFA_FFWidget* MoveToPrevious() = 0; | 544 virtual CXFA_FFWidget* MoveToPrevious() = 0; |
548 virtual CXFA_FFWidget* GetCurrentWidget() = 0; | 545 virtual CXFA_FFWidget* GetCurrentWidget() = 0; |
549 virtual FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) = 0; | 546 virtual FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) = 0; |
550 | 547 |
551 protected: | 548 protected: |
552 ~IXFA_WidgetIterator() {} | 549 ~IXFA_WidgetIterator() {} |
553 }; | 550 }; |
554 | 551 |
555 #endif // XFA_FXFA_INCLUDE_FXFA_H_ | 552 #endif // XFA_FXFA_INCLUDE_FXFA_H_ |
OLD | NEW |