#include "xfa/fxfa/cxfa_fwltheme.h"
#include "core/fxcrt/fx_codepage.h"
#include "xfa/fde/cfde_textout.h"
#include "xfa/fgas/font/cfgas_fontmgr.h"
#include "xfa/fgas/font/cfgas_gefont.h"
#include "xfa/fgas/font/cfgas_gemodule.h"
#include "xfa/fgas/graphics/cfgas_gecolor.h"
#include "xfa/fwl/cfwl_barcode.h"
#include "xfa/fwl/cfwl_caret.h"
#include "xfa/fwl/cfwl_checkbox.h"
#include "xfa/fwl/cfwl_combobox.h"
#include "xfa/fwl/cfwl_datetimepicker.h"
#include "xfa/fwl/cfwl_edit.h"
#include "xfa/fwl/cfwl_listbox.h"
#include "xfa/fwl/cfwl_monthcalendar.h"
#include "xfa/fwl/cfwl_picturebox.h"
#include "xfa/fwl/cfwl_pushbutton.h"
#include "xfa/fwl/cfwl_scrollbar.h"
#include "xfa/fwl/cfwl_themebackground.h"
#include "xfa/fwl/cfwl_themetext.h"
#include "xfa/fwl/theme/cfwl_widgettp.h"
#include "xfa/fxfa/cxfa_ffapp.h"
#include "xfa/fxfa/cxfa_ffwidget.h"
#include "xfa/fxfa/cxfa_fontmgr.h"
#include "xfa/fxfa/parser/cxfa_para.h"
namespace pdfium {
namespace {
constexpr const wchar_t* kFWLThemeCalFonts[] = …;
const float kLineHeight = …;
CXFA_FFWidget* GetOutmostFFWidget(CFWL_Widget* pWidget) { … }
}
CXFA_FWLTheme::CXFA_FWLTheme(cppgc::Heap* pHeap, CXFA_FFApp* pApp)
: … { … }
CXFA_FWLTheme::~CXFA_FWLTheme() = default;
void CXFA_FWLTheme::PreFinalize() { … }
void CXFA_FWLTheme::Trace(cppgc::Visitor* visitor) const { … }
bool CXFA_FWLTheme::LoadCalendarFont(CXFA_FFDoc* doc) { … }
void CXFA_FWLTheme::DrawBackground(const CFWL_ThemeBackground& pParams) { … }
void CXFA_FWLTheme::DrawText(const CFWL_ThemeText& pParams) { … }
CFX_RectF CXFA_FWLTheme::GetUIMargin(const CFWL_ThemePart& pThemePart) const { … }
float CXFA_FWLTheme::GetCXBorderSize() const { … }
float CXFA_FWLTheme::GetCYBorderSize() const { … }
float CXFA_FWLTheme::GetFontSize(const CFWL_ThemePart& pThemePart) const { … }
RetainPtr<CFGAS_GEFont> CXFA_FWLTheme::GetFont(
const CFWL_ThemePart& pThemePart) { … }
RetainPtr<CFGAS_GEFont> CXFA_FWLTheme::GetFWLFont() { … }
float CXFA_FWLTheme::GetLineHeight(const CFWL_ThemePart& pThemePart) const { … }
float CXFA_FWLTheme::GetScrollBarWidth() const { … }
FX_COLORREF CXFA_FWLTheme::GetTextColor(
const CFWL_ThemePart& pThemePart) const { … }
CFX_SizeF CXFA_FWLTheme::GetSpaceAboveBelow(
const CFWL_ThemePart& pThemePart) const { … }
void CXFA_FWLTheme::CalcTextRect(const CFWL_ThemeText& pParams,
CFX_RectF* pRect) { … }
}