Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
cxfa_fwltheme.h
Go to the documentation of this file.
1
// Copyright 2014 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_FXFA_CXFA_FWLTHEME_H_
8
#
define
XFA_FXFA_CXFA_FWLTHEME_H_
9
10
#
include
<
memory
>
11
12
#
include
"core/fxcrt/retain_ptr.h"
13
#
include
"core/fxcrt/widestring.h"
14
#
include
"fxjs/gc/heap.h"
15
#
include
"v8/include/cppgc/garbage-collected.h"
16
#
include
"v8/include/cppgc/member.h"
17
#
include
"v8/include/cppgc/prefinalizer.h"
18
#
include
"xfa/fwl/ifwl_themeprovider.h"
19
20
class
CXFA_FFApp;
21
class
CXFA_FFDoc
;
22
23
namespace
pdfium
{
24
25
class
CFDE_TextOut
;
26
27
class
CXFA_FWLTheme
final
:
public
cppgc::GarbageCollected<CXFA_FWLTheme>,
28
public
IFWL_ThemeProvider
{
29
CPPGC_USING_PRE_FINALIZER(CXFA_FWLTheme, PreFinalize);
30
31
public
:
32
CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
;
33
~
CXFA_FWLTheme
()
override
;
34
35
void
PreFinalize
();
36
37
// IFWL_ThemeProvider:
38
void
Trace
(cppgc::Visitor* visitor)
const
override
;
39
void
DrawBackground
(
const
CFWL_ThemeBackground& pParams)
override
;
40
void
DrawText
(
const
CFWL_ThemeText& pParams)
override
;
41
void
CalcTextRect
(
const
CFWL_ThemeText& pParams,
CFX_RectF
* pRect)
override
;
42
float
GetCXBorderSize
()
const
override
;
43
float
GetCYBorderSize
()
const
override
;
44
CFX_RectF
GetUIMargin
(
const
CFWL_ThemePart
& pThemePart)
const
override
;
45
float
GetFontSize
(
const
CFWL_ThemePart
& pThemePart)
const
override
;
46
RetainPtr
<CFGAS_GEFont>
GetFont
(
const
CFWL_ThemePart
& pThemePart)
override
;
47
RetainPtr
<CFGAS_GEFont>
GetFWLFont
()
override
;
48
float
GetLineHeight
(
const
CFWL_ThemePart
& pThemePart)
const
override
;
49
float
GetScrollBarWidth
()
const
override
;
50
FX_COLORREF
GetTextColor
(
const
CFWL_ThemePart
& pThemePart)
const
override
;
51
CFX_SizeF
GetSpaceAboveBelow
(
const
CFWL_ThemePart
& pThemePart)
const
override
;
52
53
bool
LoadCalendarFont
(
CXFA_FFDoc
* doc);
54
55
private
:
56
CXFA_FWLTheme(
cppgc
::Heap* pHeap, CXFA_FFApp* pApp);
57
58
std::unique_ptr<CFDE_TextOut> m_pTextOut;
59
RetainPtr
<CFGAS_GEFont> m_pFWLFont;
60
RetainPtr
<CFGAS_GEFont> m_pCalendarFont;
61
cppgc::Member<CXFA_FFApp>
const
m_pApp;
62
WideString
m_wsResource;
63
CFX_RectF
m_Rect;
64
};
65
66
}
// namespace pdfium
67
68
// TODO(crbug.com/42271761): Remove.
69
using
pdfium
::CXFA_FWLTheme;
70
71
#
endif
// XFA_FXFA_CXFA_FWLTHEME_H_
CFX_RectF
Definition
fx_coordinates.h:276
CFX_Timer::HandlerIface
Definition
cfx_timer.h:19
CFX_Timer
Definition
cfx_timer.h:15
CXFA_FFApp::CallbackIface
Definition
cxfa_ffapp.h:29
CXFA_FFApp::Trace
void Trace(cppgc::Visitor *visitor) const override
Definition
cxfa_ffapp.cpp:27
CXFA_FFApp::LoadFWLTheme
bool LoadFWLTheme(CXFA_FFDoc *doc)
Definition
cxfa_ffapp.cpp:34
CXFA_FFApp::GetTimerHandler
CFX_Timer::HandlerIface * GetTimerHandler() override
Definition
cxfa_ffapp.cpp:52
CXFA_FFApp::GetWidgetMgrAdapter
CFWL_WidgetMgr::AdapterIface * GetWidgetMgrAdapter() override
Definition
cxfa_ffapp.cpp:44
CXFA_FFApp::GetThemeProvider
pdfium::IFWL_ThemeProvider * GetThemeProvider() override
Definition
cxfa_ffapp.cpp:56
CXFA_FFApp::~CXFA_FFApp
~CXFA_FFApp() override
CXFA_FFApp::GetHeap
cppgc::Heap * GetHeap() override
Definition
cxfa_ffapp.cpp:60
CXFA_FFDoc
Definition
cxfa_ffdoc.h:55
CXFA_FWLAdapterWidgetMgr::~CXFA_FWLAdapterWidgetMgr
~CXFA_FWLAdapterWidgetMgr() override
CXFA_FWLAdapterWidgetMgr::Trace
void Trace(cppgc::Visitor *visitor) const override
Definition
cxfa_fwladapterwidgetmgr.cpp:17
CXFA_FWLAdapterWidgetMgr::RepaintWidget
void RepaintWidget(pdfium::CFWL_Widget *pWidget) override
Definition
cxfa_fwladapterwidgetmgr.cpp:19
CXFA_FWLAdapterWidgetMgr::GetPopupPos
bool GetPopupPos(pdfium::CFWL_Widget *pWidget, float fMinHeight, float fMaxHeight, const CFX_RectF &rtAnchor, CFX_RectF *pPopupRect) override
Definition
cxfa_fwladapterwidgetmgr.cpp:30
fxcrt::RetainPtr
Definition
retain_ptr.h:28
pdfium::CFDETextOutLargeBitmapTest
Definition
cfde_textout_unittest.cpp:117
pdfium::CFDE_TextOut
Definition
cfde_textout.h:29
pdfium::CFWL_ThemePart
Definition
cfwl_themepart.h:39
pdfium::CFWL_WidgetMgr::AdapterIface
Definition
cfwl_widgetmgr.h:29
pdfium::CFWL_Widget
Definition
cfwl_widget.h:70
pdfium::CXFA_FWLTheme::~CXFA_FWLTheme
~CXFA_FWLTheme() override
pdfium::CXFA_FWLTheme::GetSpaceAboveBelow
CFX_SizeF GetSpaceAboveBelow(const CFWL_ThemePart &pThemePart) const override
Definition
cxfa_fwltheme.cpp:219
pdfium::CXFA_FWLTheme::PreFinalize
void PreFinalize()
Definition
cxfa_fwltheme.cpp:61
pdfium::CXFA_FWLTheme::GetCYBorderSize
float GetCYBorderSize() const override
Definition
cxfa_fwltheme.cpp:177
pdfium::CXFA_FWLTheme::GetFont
RetainPtr< CFGAS_GEFont > GetFont(const CFWL_ThemePart &pThemePart) override
Definition
cxfa_fwltheme.cpp:187
pdfium::CXFA_FWLTheme::GetScrollBarWidth
float GetScrollBarWidth() const override
Definition
cxfa_fwltheme.cpp:208
pdfium::CXFA_FWLTheme::GetUIMargin
CFX_RectF GetUIMargin(const CFWL_ThemePart &pThemePart) const override
Definition
cxfa_fwltheme.cpp:147
pdfium::CXFA_FWLTheme::CalcTextRect
void CalcTextRect(const CFWL_ThemeText &pParams, CFX_RectF *pRect) override
Definition
cxfa_fwltheme.cpp:232
pdfium::CXFA_FWLTheme::LoadCalendarFont
bool LoadCalendarFont(CXFA_FFDoc *doc)
Definition
cxfa_fwltheme.cpp:70
pdfium::CXFA_FWLTheme::GetFontSize
float GetFontSize(const CFWL_ThemePart &pThemePart) const override
Definition
cxfa_fwltheme.cpp:181
pdfium::CXFA_FWLTheme::GetFWLFont
RetainPtr< CFGAS_GEFont > GetFWLFont() override
Definition
cxfa_fwltheme.cpp:195
pdfium::CXFA_FWLTheme::DrawText
void DrawText(const CFWL_ThemeText &pParams) override
Definition
cxfa_fwltheme.cpp:89
pdfium::CXFA_FWLTheme::DrawBackground
void DrawBackground(const CFWL_ThemeBackground &pParams) override
Definition
cxfa_fwltheme.cpp:85
pdfium::CXFA_FWLTheme::GetTextColor
FX_COLORREF GetTextColor(const CFWL_ThemePart &pThemePart) const override
Definition
cxfa_fwltheme.cpp:212
pdfium::CXFA_FWLTheme::GetCXBorderSize
float GetCXBorderSize() const override
Definition
cxfa_fwltheme.cpp:173
pdfium::CXFA_FWLTheme::GetLineHeight
float GetLineHeight(const CFWL_ThemePart &pThemePart) const override
Definition
cxfa_fwltheme.cpp:202
pdfium::CXFA_FWLTheme::Trace
void Trace(cppgc::Visitor *visitor) const override
Definition
cxfa_fwltheme.cpp:65
pdfium::IFWL_ThemeProvider
Definition
ifwl_themeprovider.h:27
CFX_SizeF
CFX_STemplate< float > CFX_SizeF
Definition
fx_coordinates.h:115
FX_COLORREF
uint32_t FX_COLORREF
Definition
fx_dib.h:42
CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition
heap.h:32
cppgc
Definition
heap.h:12
WideString
fxcrt::WideString WideString
Definition
widestring.h:207
qtwebengine
src
3rdparty
chromium
third_party
pdfium
xfa
fxfa
cxfa_fwltheme.h
Generated on
for Qt by
1.18.0