Chromium Code Reviews

Side by Side Diff: xfa/fxfa/include/xfa_ffwidget.h

Issue 2031873003: Get rid of NULLs in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_fpdfsdk
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « xfa/fxfa/include/xfa_ffpageview.h ('k') | xfa/fxfa/include/xfa_ffwidgethandler.h » ('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 XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_ 7 #ifndef XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_
8 #define XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_ 8 #define XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 38 matching lines...)
49 void GetWidgetRect(CFX_RectF& rtWidget); 49 void GetWidgetRect(CFX_RectF& rtWidget);
50 CFX_RectF ReCacheWidgetRect(); 50 CFX_RectF ReCacheWidgetRect();
51 uint32_t GetStatus(); 51 uint32_t GetStatus();
52 void ModifyStatus(uint32_t dwAdded, uint32_t dwRemoved); 52 void ModifyStatus(uint32_t dwAdded, uint32_t dwRemoved);
53 virtual FX_BOOL GetBBox(CFX_RectF& rtBox, 53 virtual FX_BOOL GetBBox(CFX_RectF& rtBox,
54 uint32_t dwStatus, 54 uint32_t dwStatus,
55 FX_BOOL bDrawFocus = FALSE); 55 FX_BOOL bDrawFocus = FALSE);
56 CXFA_WidgetAcc* GetDataAcc(); 56 CXFA_WidgetAcc* GetDataAcc();
57 FX_BOOL GetToolTip(CFX_WideString& wsToolTip); 57 FX_BOOL GetToolTip(CFX_WideString& wsToolTip);
58 virtual void RenderWidget(CFX_Graphics* pGS, 58 virtual void RenderWidget(CFX_Graphics* pGS,
59 CFX_Matrix* pMatrix = NULL, 59 CFX_Matrix* pMatrix = nullptr,
60 uint32_t dwStatus = 0, 60 uint32_t dwStatus = 0,
61 int32_t iRotate = 0); 61 int32_t iRotate = 0);
62 62
63 virtual FX_BOOL IsLoaded(); 63 virtual FX_BOOL IsLoaded();
64 virtual FX_BOOL LoadWidget(); 64 virtual FX_BOOL LoadWidget();
65 virtual void UnloadWidget(); 65 virtual void UnloadWidget();
66 virtual FX_BOOL PerformLayout(); 66 virtual FX_BOOL PerformLayout();
67 virtual FX_BOOL UpdateFWLData(); 67 virtual FX_BOOL UpdateFWLData();
68 virtual void UpdateWidgetProperty(); 68 virtual void UpdateWidgetProperty();
69 virtual FX_BOOL OnMouseEnter(); 69 virtual FX_BOOL OnMouseEnter();
(...skipping 39 matching lines...)
109 } 109 }
110 virtual FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, 110 virtual FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf,
111 const CFX_ByteStringC& bsReplace) { 111 const CFX_ByteStringC& bsReplace) {
112 return FALSE; 112 return FALSE;
113 } 113 }
114 CXFA_FFDocView* GetDocView(); 114 CXFA_FFDocView* GetDocView();
115 void SetDocView(CXFA_FFDocView* pDocView) { m_pDocView = pDocView; } 115 void SetDocView(CXFA_FFDocView* pDocView) { m_pDocView = pDocView; }
116 CXFA_FFDoc* GetDoc(); 116 CXFA_FFDoc* GetDoc();
117 CXFA_FFApp* GetApp(); 117 CXFA_FFApp* GetApp();
118 IXFA_AppProvider* GetAppProvider(); 118 IXFA_AppProvider* GetAppProvider();
119 void InvalidateWidget(const CFX_RectF* pRect = NULL); 119 void InvalidateWidget(const CFX_RectF* pRect = nullptr);
120 void AddInvalidateRect(const CFX_RectF* pRect = NULL); 120 void AddInvalidateRect(const CFX_RectF* pRect = nullptr);
121 FX_BOOL GetCaptionText(CFX_WideString& wsCap); 121 FX_BOOL GetCaptionText(CFX_WideString& wsCap);
122 bool IsFocused(); 122 bool IsFocused();
123 void Rotate2Normal(FX_FLOAT& fx, FX_FLOAT& fy); 123 void Rotate2Normal(FX_FLOAT& fx, FX_FLOAT& fy);
124 void GetRotateMatrix(CFX_Matrix& mt); 124 void GetRotateMatrix(CFX_Matrix& mt);
125 FX_BOOL IsLayoutRectEmpty(); 125 FX_BOOL IsLayoutRectEmpty();
126 CXFA_FFWidget* GetParent(); 126 CXFA_FFWidget* GetParent();
127 FX_BOOL IsAncestorOf(CXFA_FFWidget* pWidget); 127 FX_BOOL IsAncestorOf(CXFA_FFWidget* pWidget);
128 128
129 protected: 129 protected:
130 virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy); 130 virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy);
(...skipping 46 matching lines...)
177 FX_BOOL XFA_IsCreateWidget(XFA_ELEMENT iType); 177 FX_BOOL XFA_IsCreateWidget(XFA_ELEMENT iType);
178 #define XFA_DRAWBOX_ForceRound 1 178 #define XFA_DRAWBOX_ForceRound 1
179 #define XFA_DRAWBOX_Lowered3D 2 179 #define XFA_DRAWBOX_Lowered3D 2
180 void XFA_DrawBox(CXFA_Box box, 180 void XFA_DrawBox(CXFA_Box box,
181 CFX_Graphics* pGS, 181 CFX_Graphics* pGS,
182 const CFX_RectF& rtWidget, 182 const CFX_RectF& rtWidget,
183 CFX_Matrix* pMatrix, 183 CFX_Matrix* pMatrix,
184 uint32_t dwFlags = 0); 184 uint32_t dwFlags = 0);
185 185
186 #endif // XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_ 186 #endif // XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/include/xfa_ffpageview.h ('k') | xfa/fxfa/include/xfa_ffwidgethandler.h » ('j') | no next file with comments »

Powered by Google App Engine