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

Side by Side Diff: xfa/fxfa/app/xfa_ffwidgetacc.h

Issue 1846993002: Remove IXFA_* interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/app/xfa_ffwidget.cpp ('k') | xfa/fxfa/app/xfa_ffwidgetacc.cpp » ('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_APP_XFA_FFWIDGETACC_H_ 7 #ifndef XFA_FXFA_APP_XFA_FFWIDGETACC_H_
8 #define XFA_FXFA_APP_XFA_FFWIDGETACC_H_ 8 #define XFA_FXFA_APP_XFA_FFWIDGETACC_H_
9 9
10 #include "xfa/fxfa/app/xfa_textlayout.h" 10 #include "xfa/fxfa/app/xfa_textlayout.h"
11 11
12 enum XFA_TEXTPROVIDERTYPE { 12 enum XFA_TEXTPROVIDERTYPE {
13 XFA_TEXTPROVIDERTYPE_Text, 13 XFA_TEXTPROVIDERTYPE_Text,
14 XFA_TEXTPROVIDERTYPE_Datasets, 14 XFA_TEXTPROVIDERTYPE_Datasets,
15 XFA_TEXTPROVIDERTYPE_Caption, 15 XFA_TEXTPROVIDERTYPE_Caption,
16 XFA_TEXTPROVIDERTYPE_Rollover, 16 XFA_TEXTPROVIDERTYPE_Rollover,
17 XFA_TEXTPROVIDERTYPE_Down, 17 XFA_TEXTPROVIDERTYPE_Down,
18 }; 18 };
19 class CXFA_TextProvider : public IXFA_TextProvider { 19 class CXFA_TextProvider {
20 public: 20 public:
21 CXFA_TextProvider(CXFA_WidgetAcc* pWidgetAcc, 21 CXFA_TextProvider(CXFA_WidgetAcc* pWidgetAcc,
22 XFA_TEXTPROVIDERTYPE eType, 22 XFA_TEXTPROVIDERTYPE eType,
23 CXFA_Node* pTextNode = NULL) 23 CXFA_Node* pTextNode = NULL)
24 : m_pWidgetAcc(pWidgetAcc), m_eType(eType), m_pTextNode(pTextNode) { 24 : m_pWidgetAcc(pWidgetAcc), m_eType(eType), m_pTextNode(pTextNode) {
25 FXSYS_assert(m_pWidgetAcc); 25 FXSYS_assert(m_pWidgetAcc);
26 } 26 }
27 virtual ~CXFA_TextProvider() {} 27 ~CXFA_TextProvider() {}
28 virtual CXFA_Node* GetTextNode(FX_BOOL& bRichText); 28
29 virtual CXFA_Para GetParaNode(); 29 CXFA_Node* GetTextNode(FX_BOOL& bRichText);
30 virtual CXFA_Font GetFontNode(); 30 CXFA_Para GetParaNode();
31 virtual FX_BOOL IsCheckButtonAndAutoWidth(); 31 CXFA_Font GetFontNode();
32 virtual CXFA_FFDoc* GetDocNode() { return m_pWidgetAcc->GetDoc(); } 32 FX_BOOL IsCheckButtonAndAutoWidth();
33 virtual FX_BOOL GetEmbbedObj(FX_BOOL bURI, 33 CXFA_FFDoc* GetDocNode() { return m_pWidgetAcc->GetDoc(); }
34 FX_BOOL bRaw, 34 FX_BOOL GetEmbbedObj(FX_BOOL bURI,
35 const CFX_WideString& wsAttr, 35 FX_BOOL bRaw,
36 CFX_WideString& wsValue); 36 const CFX_WideString& wsAttr,
37 CFX_WideString& wsValue);
37 38
38 protected: 39 protected:
39 CXFA_WidgetAcc* m_pWidgetAcc; 40 CXFA_WidgetAcc* m_pWidgetAcc;
40 XFA_TEXTPROVIDERTYPE m_eType; 41 XFA_TEXTPROVIDERTYPE m_eType;
41 CXFA_Node* m_pTextNode; 42 CXFA_Node* m_pTextNode;
42 }; 43 };
43 44
44 #endif // XFA_FXFA_APP_XFA_FFWIDGETACC_H_ 45 #endif // XFA_FXFA_APP_XFA_FFWIDGETACC_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffwidget.cpp ('k') | xfa/fxfa/app/xfa_ffwidgetacc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698