Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

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

Issue 2037563002: Replace IFGAS_Font with underlying concrete type (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/include/fxfa.h ('k') | xfa/fxfa/include/xfa_fontmgr.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_FXFA_WIDGET_H_ 7 #ifndef XFA_FXFA_INCLUDE_FXFA_WIDGET_H_
8 #define XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ 8 #define XFA_FXFA_INCLUDE_FXFA_WIDGET_H_
9 9
10 #include "core/fxcrt/include/fx_coordinates.h" 10 #include "core/fxcrt/include/fx_coordinates.h"
11 #include "core/fxge/include/fx_dib.h" 11 #include "core/fxge/include/fx_dib.h"
12 #include "xfa/fxfa/parser/cxfa_box.h" 12 #include "xfa/fxfa/parser/cxfa_box.h"
13 #include "xfa/fxfa/parser/cxfa_event.h" 13 #include "xfa/fxfa/parser/cxfa_event.h"
14 #include "xfa/fxfa/parser/cxfa_image.h" 14 #include "xfa/fxfa/parser/cxfa_image.h"
15 #include "xfa/fxfa/parser/cxfa_margin.h" 15 #include "xfa/fxfa/parser/cxfa_margin.h"
16 #include "xfa/fxfa/parser/cxfa_script.h" 16 #include "xfa/fxfa/parser/cxfa_script.h"
17 #include "xfa/fxfa/parser/cxfa_value.h" 17 #include "xfa/fxfa/parser/cxfa_value.h"
18 #include "xfa/fxfa/parser/cxfa_widgetdata.h" 18 #include "xfa/fxfa/parser/cxfa_widgetdata.h"
19 19
20 class CFGAS_GEFont;
21 class CXFA_EventParam;
22 class CXFA_FFApp;
23 class CXFA_FFDoc;
24 class CXFA_FFDocView;
25 class CXFA_FFWidget;
20 class CXFA_Node; 26 class CXFA_Node;
21 class CXFA_FFDocView;
22 class CXFA_FFDoc;
23 class CXFA_FFApp;
24 class CXFA_EventParam;
25 class CXFA_FFWidget;
26 class CXFA_TextLayout; 27 class CXFA_TextLayout;
27 class CXFA_WidgetLayoutData; 28 class CXFA_WidgetLayoutData;
28 class IFGAS_Font;
29 class IXFA_AppProvider; 29 class IXFA_AppProvider;
30 30
31 class CXFA_WidgetAcc : public CXFA_WidgetData { 31 class CXFA_WidgetAcc : public CXFA_WidgetData {
32 public: 32 public:
33 CXFA_WidgetAcc(CXFA_FFDocView* pDocView, CXFA_Node* pNode); 33 CXFA_WidgetAcc(CXFA_FFDocView* pDocView, CXFA_Node* pNode);
34 ~CXFA_WidgetAcc(); 34 ~CXFA_WidgetAcc();
35 35
36 FX_BOOL GetName(CFX_WideString& wsName, int32_t iNameType = 0); 36 FX_BOOL GetName(CFX_WideString& wsName, int32_t iNameType = 0);
37 FX_BOOL ProcessValueChanged(); 37 FX_BOOL ProcessValueChanged();
38 void ResetData(); 38 void ResetData();
(...skipping 27 matching lines...) Expand all
66 void GetImageEditDpi(int32_t& iImageXDpi, int32_t& iImageYDpi); 66 void GetImageEditDpi(int32_t& iImageXDpi, int32_t& iImageYDpi);
67 CXFA_TextLayout* GetCaptionTextLayout(); 67 CXFA_TextLayout* GetCaptionTextLayout();
68 CXFA_TextLayout* GetTextLayout(); 68 CXFA_TextLayout* GetTextLayout();
69 CFX_DIBitmap* GetImageImage(); 69 CFX_DIBitmap* GetImageImage();
70 CFX_DIBitmap* GetImageEditImage(); 70 CFX_DIBitmap* GetImageEditImage();
71 void SetImageImage(CFX_DIBitmap* newImage); 71 void SetImageImage(CFX_DIBitmap* newImage);
72 void SetImageEditImage(CFX_DIBitmap* newImage); 72 void SetImageEditImage(CFX_DIBitmap* newImage);
73 void UpdateUIDisplay(CXFA_FFWidget* pExcept = NULL); 73 void UpdateUIDisplay(CXFA_FFWidget* pExcept = NULL);
74 74
75 CXFA_Node* GetDatasets(); 75 CXFA_Node* GetDatasets();
76 IFGAS_Font* GetFDEFont(); 76 CFGAS_GEFont* GetFDEFont();
77 FX_FLOAT GetFontSize(); 77 FX_FLOAT GetFontSize();
78 FX_ARGB GetTextColor(); 78 FX_ARGB GetTextColor();
79 FX_FLOAT GetLineHeight(); 79 FX_FLOAT GetLineHeight();
80 CXFA_WidgetLayoutData* GetWidgetLayoutData(); 80 CXFA_WidgetLayoutData* GetWidgetLayoutData();
81 81
82 protected: 82 protected:
83 void ProcessScriptTestValidate(CXFA_Validate validate, 83 void ProcessScriptTestValidate(CXFA_Validate validate,
84 int32_t iRet, 84 int32_t iRet,
85 CFXJSE_Value* pRetValue, 85 CFXJSE_Value* pRetValue,
86 FX_BOOL bVersionFlag); 86 FX_BOOL bVersionFlag);
(...skipping 27 matching lines...) Expand all
114 FX_FLOAT& fCalcHeight); 114 FX_FLOAT& fCalcHeight);
115 void InitLayoutData(); 115 void InitLayoutData();
116 void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight); 116 void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight);
117 117
118 CXFA_FFDocView* m_pDocView; 118 CXFA_FFDocView* m_pDocView;
119 std::unique_ptr<CXFA_WidgetLayoutData> m_pLayoutData; 119 std::unique_ptr<CXFA_WidgetLayoutData> m_pLayoutData;
120 uint32_t m_nRecursionDepth; 120 uint32_t m_nRecursionDepth;
121 }; 121 };
122 122
123 #endif // XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ 123 #endif // XFA_FXFA_INCLUDE_FXFA_WIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/include/fxfa.h ('k') | xfa/fxfa/include/xfa_fontmgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698