1 // Copyright 2016 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_FWL_CFWL_THEMETEXT_H_ 8 #define XFA_FWL_CFWL_THEMETEXT_H_ 9 10 #include "core/fxcrt/fx_memory.h" 11 #include "core/fxcrt/unowned_ptr.h" 12 #include "core/fxcrt/widestring.h" 13 #include "xfa/fde/cfde_data.h" 14 #include "xfa/fwl/cfwl_themepart.h" 15 16 class CFGAS_GEGraphics; 17 18 class CFWL_ThemeText final : public CFWL_ThemePart { 19 public: 20 FX_STACK_ALLOCATED(); 21 22 CFWL_ThemeText(Part iPart, CFWL_Widget* pWidget, CFGAS_GEGraphics* pGraphics); 23 ~CFWL_ThemeText(); 24 GetGraphics()25 CFGAS_GEGraphics* GetGraphics() const { return m_pGraphics; } 26 27 FDE_TextAlignment m_iTTOAlign = FDE_TextAlignment::kTopLeft; 28 FDE_TextStyle m_dwTTOStyles; 29 WideString m_wsText; 30 31 private: 32 UnownedPtr<CFGAS_GEGraphics> const m_pGraphics; 33 }; 34 35 #endif // XFA_FWL_CFWL_THEMETEXT_H_ 36