| 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_XFA_FFDOCVIEW_H_ | 7 #ifndef XFA_FXFA_INCLUDE_XFA_FFDOCVIEW_H_ |
| 8 #define XFA_FXFA_INCLUDE_XFA_FFDOCVIEW_H_ | 8 #define XFA_FXFA_INCLUDE_XFA_FFDOCVIEW_H_ |
| 9 | 9 |
| 10 #include "xfa/fxfa/include/xfa_ffdoc.h" | 10 #include "xfa/fxfa/include/xfa_ffdoc.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 XFA_DOCVIEW_LAYOUTSTATUS_DocReady, | 31 XFA_DOCVIEW_LAYOUTSTATUS_DocReady, |
| 32 XFA_DOCVIEW_LAYOUTSTATUS_End | 32 XFA_DOCVIEW_LAYOUTSTATUS_End |
| 33 }; | 33 }; |
| 34 class CXFA_FFDocView { | 34 class CXFA_FFDocView { |
| 35 public: | 35 public: |
| 36 CXFA_FFDocView(CXFA_FFDoc* pDoc); | 36 CXFA_FFDocView(CXFA_FFDoc* pDoc); |
| 37 ~CXFA_FFDocView(); | 37 ~CXFA_FFDocView(); |
| 38 | 38 |
| 39 CXFA_FFDoc* GetDoc() { return m_pDoc; } | 39 CXFA_FFDoc* GetDoc() { return m_pDoc; } |
| 40 int32_t StartLayout(int32_t iStartPage = 0); | 40 int32_t StartLayout(int32_t iStartPage = 0); |
| 41 int32_t DoLayout(IFX_Pause* pPause = NULL); | 41 int32_t DoLayout(IFX_Pause* pPause = nullptr); |
| 42 void StopLayout(); | 42 void StopLayout(); |
| 43 int32_t GetLayoutStatus(); | 43 int32_t GetLayoutStatus(); |
| 44 void UpdateDocView(); | 44 void UpdateDocView(); |
| 45 int32_t CountPageViews(); | 45 int32_t CountPageViews(); |
| 46 CXFA_FFPageView* GetPageView(int32_t nIndex); | 46 CXFA_FFPageView* GetPageView(int32_t nIndex); |
| 47 | 47 |
| 48 void ResetWidgetData(CXFA_WidgetAcc* pWidgetAcc = NULL); | 48 void ResetWidgetData(CXFA_WidgetAcc* pWidgetAcc = nullptr); |
| 49 int32_t ProcessWidgetEvent(CXFA_EventParam* pParam, | 49 int32_t ProcessWidgetEvent(CXFA_EventParam* pParam, |
| 50 CXFA_WidgetAcc* pWidgetAcc = NULL); | 50 CXFA_WidgetAcc* pWidgetAcc = nullptr); |
| 51 CXFA_FFWidgetHandler* GetWidgetHandler(); | 51 CXFA_FFWidgetHandler* GetWidgetHandler(); |
| 52 IXFA_WidgetIterator* CreateWidgetIterator(); | 52 IXFA_WidgetIterator* CreateWidgetIterator(); |
| 53 CXFA_WidgetAccIterator* CreateWidgetAccIterator( | 53 CXFA_WidgetAccIterator* CreateWidgetAccIterator( |
| 54 XFA_WIDGETORDER eOrder = XFA_WIDGETORDER_PreOrder); | 54 XFA_WIDGETORDER eOrder = XFA_WIDGETORDER_PreOrder); |
| 55 CXFA_FFWidget* GetFocusWidget(); | 55 CXFA_FFWidget* GetFocusWidget(); |
| 56 void KillFocus(); | 56 void KillFocus(); |
| 57 FX_BOOL SetFocus(CXFA_FFWidget* hWidget); | 57 FX_BOOL SetFocus(CXFA_FFWidget* hWidget); |
| 58 CXFA_FFWidget* GetWidgetByName(const CFX_WideStringC& wsName, | 58 CXFA_FFWidget* GetWidgetByName(const CFX_WideString& wsName, |
| 59 CXFA_FFWidget* pRefWidget = NULL); | 59 CXFA_FFWidget* pRefWidget = nullptr); |
| 60 CXFA_WidgetAcc* GetWidgetAccByName(const CFX_WideStringC& wsName, | 60 CXFA_WidgetAcc* GetWidgetAccByName(const CFX_WideString& wsName, |
| 61 CXFA_WidgetAcc* pRefWidgetAcc = NULL); | 61 CXFA_WidgetAcc* pRefWidgetAcc = nullptr); |
| 62 CXFA_LayoutProcessor* GetXFALayout() const; | 62 CXFA_LayoutProcessor* GetXFALayout() const; |
| 63 void OnPageEvent(CXFA_ContainerLayoutItem* pSender, | 63 void OnPageEvent(CXFA_ContainerLayoutItem* pSender, |
| 64 XFA_PAGEEVENT eEvent, | 64 XFA_PAGEEVENT eEvent, |
| 65 int32_t iPageIndex); | 65 int32_t iPageIndex); |
| 66 void LockUpdate(); | 66 void LockUpdate(); |
| 67 void UnlockUpdate(); | 67 void UnlockUpdate(); |
| 68 FX_BOOL IsUpdateLocked(); | 68 FX_BOOL IsUpdateLocked(); |
| 69 void ClearInvalidateList(); | 69 void ClearInvalidateList(); |
| 70 void AddInvalidateRect(CXFA_FFWidget* pWidget, const CFX_RectF& rtInvalidate); | 70 void AddInvalidateRect(CXFA_FFWidget* pWidget, const CFX_RectF& rtInvalidate); |
| 71 void AddInvalidateRect(CXFA_FFPageView* pPageView, | 71 void AddInvalidateRect(CXFA_FFPageView* pPageView, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 88 void RunSubformIndexChange(); | 88 void RunSubformIndexChange(); |
| 89 void AddNewFormNode(CXFA_Node* pNode); | 89 void AddNewFormNode(CXFA_Node* pNode); |
| 90 void AddIndexChangedSubform(CXFA_Node* pNode); | 90 void AddIndexChangedSubform(CXFA_Node* pNode); |
| 91 CXFA_WidgetAcc* GetFocusWidgetAcc(); | 91 CXFA_WidgetAcc* GetFocusWidgetAcc(); |
| 92 void SetFocusWidgetAcc(CXFA_WidgetAcc* pWidgetAcc); | 92 void SetFocusWidgetAcc(CXFA_WidgetAcc* pWidgetAcc); |
| 93 void DeleteLayoutItem(CXFA_FFWidget* pWidget); | 93 void DeleteLayoutItem(CXFA_FFWidget* pWidget); |
| 94 int32_t ExecEventActivityByDeepFirst(CXFA_Node* pFormNode, | 94 int32_t ExecEventActivityByDeepFirst(CXFA_Node* pFormNode, |
| 95 XFA_EVENTTYPE eEventType, | 95 XFA_EVENTTYPE eEventType, |
| 96 FX_BOOL bIsFormReady = FALSE, | 96 FX_BOOL bIsFormReady = FALSE, |
| 97 FX_BOOL bRecursive = TRUE, | 97 FX_BOOL bRecursive = TRUE, |
| 98 CXFA_Node* pExclude = NULL); | 98 CXFA_Node* pExclude = nullptr); |
| 99 FX_BOOL m_bLayoutEvent; | 99 FX_BOOL m_bLayoutEvent; |
| 100 CFX_WideStringArray m_arrNullTestMsg; | 100 CFX_WideStringArray m_arrNullTestMsg; |
| 101 CXFA_FFWidget* m_pListFocusWidget; | 101 CXFA_FFWidget* m_pListFocusWidget; |
| 102 FX_BOOL m_bInLayoutStatus; | 102 FX_BOOL m_bInLayoutStatus; |
| 103 | 103 |
| 104 protected: | 104 protected: |
| 105 FX_BOOL RunEventLayoutReady(); | 105 FX_BOOL RunEventLayoutReady(); |
| 106 void RunBindItems(); | 106 void RunBindItems(); |
| 107 FX_BOOL InitCalculate(CXFA_Node* pNode); | 107 FX_BOOL InitCalculate(CXFA_Node* pNode); |
| 108 void InitLayout(CXFA_Node* pNode); | 108 void InitLayout(CXFA_Node* pNode); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 FX_BOOL SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget); | 163 FX_BOOL SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget); |
| 164 void SkipTree(); | 164 void SkipTree(); |
| 165 | 165 |
| 166 protected: | 166 protected: |
| 167 CXFA_ContainerIterator m_ContentIterator; | 167 CXFA_ContainerIterator m_ContentIterator; |
| 168 CXFA_FFDocView* m_pDocView; | 168 CXFA_FFDocView* m_pDocView; |
| 169 CXFA_WidgetAcc* m_pCurWidgetAcc; | 169 CXFA_WidgetAcc* m_pCurWidgetAcc; |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 #endif // XFA_FXFA_INCLUDE_XFA_FFDOCVIEW_H_ | 172 #endif // XFA_FXFA_INCLUDE_XFA_FFDOCVIEW_H_ |
| OLD | NEW |