• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef XFA_FXFA_APP_CXFA_TEXTUSERDATA_H_
8 #define XFA_FXFA_APP_CXFA_TEXTUSERDATA_H_
9 
10 #include "core/fxcrt/cfx_retain_ptr.h"
11 #include "core/fxcrt/fx_basic.h"
12 
13 class CFDE_CSSComputedStyle;
14 class CXFA_LinkUserData;
15 
16 class CXFA_TextUserData : public CFX_Retainable {
17  public:
18   template <typename T, typename... Args>
19   friend CFX_RetainPtr<T> pdfium::MakeRetain(Args&&... args);
20 
21   CFX_RetainPtr<CFDE_CSSComputedStyle> m_pStyle;
22   CFX_RetainPtr<CXFA_LinkUserData> m_pLinkData;
23 
24  protected:
25   explicit CXFA_TextUserData(
26       const CFX_RetainPtr<CFDE_CSSComputedStyle>& pStyle);
27   CXFA_TextUserData(const CFX_RetainPtr<CFDE_CSSComputedStyle>& pStyle,
28                     const CFX_RetainPtr<CXFA_LinkUserData>& pLinkData);
29   ~CXFA_TextUserData() override;
30 };
31 
32 #endif  // XFA_FXFA_APP_CXFA_TEXTUSERDATA_H_
33