blob: 05f8462e7bd0c3204d0b8f95d1dbb9269fef7048 [file] [log] [blame] [edit]
// Copyright 2016 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef XFA_FWL_CFWL_THEMETEXT_H_
#define XFA_FWL_CFWL_THEMETEXT_H_
#include "core/fxcrt/fx_memory.h"
#include "core/fxcrt/unowned_ptr.h"
#include "core/fxcrt/widestring.h"
#include "xfa/fde/cfde_data.h"
#include "xfa/fwl/cfwl_themepart.h"
class CFGAS_GEGraphics;
namespace pdfium {
class CFWL_ThemeText final : public CFWL_ThemePart {
public:
FX_STACK_ALLOCATED();
CFWL_ThemeText(Part iPart, CFWL_Widget* pWidget, CFGAS_GEGraphics* pGraphics);
~CFWL_ThemeText();
CFGAS_GEGraphics* GetGraphics() const { return graphics_; }
FDE_TextAlignment tto_align_ = FDE_TextAlignment::kTopLeft;
FDE_TextStyle tto_styles_;
WideString text_;
private:
UnownedPtr<CFGAS_GEGraphics> const graphics_;
};
} // namespace pdfium
// TODO(crbug.com/42271761): Remove.
using pdfium::CFWL_ThemeText;
#endif // XFA_FWL_CFWL_THEMETEXT_H_