xref: /aosp_15_r20/external/pdfium/xfa/fgas/layout/cfgas_textuserdata.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2017 The PDFium Authors
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_FGAS_LAYOUT_CFGAS_TEXTUSERDATA_H_
8 #define XFA_FGAS_LAYOUT_CFGAS_TEXTUSERDATA_H_
9 
10 #include "core/fxcrt/retain_ptr.h"
11 
12 class CFGAS_LinkUserData;
13 class CFX_CSSComputedStyle;
14 
15 class CFGAS_TextUserData final : public Retainable {
16  public:
17   CONSTRUCT_VIA_MAKE_RETAIN;
18 
19   RetainPtr<CFX_CSSComputedStyle> m_pStyle;
20   RetainPtr<CFGAS_LinkUserData> m_pLinkData;
21 
22  private:
23   explicit CFGAS_TextUserData(const RetainPtr<CFX_CSSComputedStyle>& pStyle);
24   CFGAS_TextUserData(const RetainPtr<CFX_CSSComputedStyle>& pStyle,
25                      const RetainPtr<CFGAS_LinkUserData>& pLinkData);
26   ~CFGAS_TextUserData() override;
27 };
28 
29 #endif  // XFA_FGAS_LAYOUT_CFGAS_TEXTUSERDATA_H_
30