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_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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 void ModifyStatus(uint32_t dwAdded, uint32_t dwRemoved); | 107 void ModifyStatus(uint32_t dwAdded, uint32_t dwRemoved); |
108 | 108 |
109 CXFA_WidgetAcc* GetDataAcc(); | 109 CXFA_WidgetAcc* GetDataAcc(); |
110 FX_BOOL GetToolTip(CFX_WideString& wsToolTip); | 110 FX_BOOL GetToolTip(CFX_WideString& wsToolTip); |
111 | 111 |
112 CXFA_FFDocView* GetDocView(); | 112 CXFA_FFDocView* GetDocView(); |
113 void SetDocView(CXFA_FFDocView* pDocView); | 113 void SetDocView(CXFA_FFDocView* pDocView); |
114 CXFA_FFDoc* GetDoc(); | 114 CXFA_FFDoc* GetDoc(); |
115 CXFA_FFApp* GetApp(); | 115 CXFA_FFApp* GetApp(); |
116 IXFA_AppProvider* GetAppProvider(); | 116 IXFA_AppProvider* GetAppProvider(); |
117 void InvalidateWidget(const CFX_RectF* pRect = NULL); | 117 void InvalidateWidget(const CFX_RectF* pRect = nullptr); |
118 void AddInvalidateRect(const CFX_RectF* pRect = NULL); | 118 void AddInvalidateRect(const CFX_RectF* pRect = nullptr); |
119 FX_BOOL GetCaptionText(CFX_WideString& wsCap); | 119 FX_BOOL GetCaptionText(CFX_WideString& wsCap); |
120 bool IsFocused(); | 120 bool IsFocused(); |
121 void Rotate2Normal(FX_FLOAT& fx, FX_FLOAT& fy); | 121 void Rotate2Normal(FX_FLOAT& fx, FX_FLOAT& fy); |
122 void GetRotateMatrix(CFX_Matrix& mt); | 122 void GetRotateMatrix(CFX_Matrix& mt); |
123 FX_BOOL IsLayoutRectEmpty(); | 123 FX_BOOL IsLayoutRectEmpty(); |
124 CXFA_FFWidget* GetParent(); | 124 CXFA_FFWidget* GetParent(); |
125 FX_BOOL IsAncestorOf(CXFA_FFWidget* pWidget); | 125 FX_BOOL IsAncestorOf(CXFA_FFWidget* pWidget); |
126 | 126 |
127 protected: | 127 protected: |
128 virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy); | 128 virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |