summaryrefslogtreecommitdiff
path: root/xfa/fwl/theme/cfwl_checkboxtp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/theme/cfwl_checkboxtp.cpp')
-rw-r--r--xfa/fwl/theme/cfwl_checkboxtp.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/xfa/fwl/theme/cfwl_checkboxtp.cpp b/xfa/fwl/theme/cfwl_checkboxtp.cpp
index 9109cb61c4..0bc75ec66b 100644
--- a/xfa/fwl/theme/cfwl_checkboxtp.cpp
+++ b/xfa/fwl/theme/cfwl_checkboxtp.cpp
@@ -36,8 +36,14 @@ CFWL_CheckBoxTP::~CFWL_CheckBoxTP() {
m_pCheckPath->Clear();
}
-bool CFWL_CheckBoxTP::IsValidWidget(CFWL_Widget* pWidget) {
- return pWidget && pWidget->GetClassID() == FWL_Type::CheckBox;
+void CFWL_CheckBoxTP::Initialize() {
+ CFWL_WidgetTP::Initialize();
+ InitTTO();
+}
+
+void CFWL_CheckBoxTP::Finalize() {
+ FinalizeTTO();
+ CFWL_WidgetTP::Finalize();
}
void CFWL_CheckBoxTP::DrawText(CFWL_ThemeText* pParams) {
@@ -50,16 +56,6 @@ void CFWL_CheckBoxTP::DrawText(CFWL_ThemeText* pParams) {
CFWL_WidgetTP::DrawText(pParams);
}
-void CFWL_CheckBoxTP::Initialize() {
- InitTTO();
- CFWL_WidgetTP::Initialize();
-}
-
-void CFWL_CheckBoxTP::Finalize() {
- FinalizeTTO();
- CFWL_WidgetTP::Finalize();
-}
-
void CFWL_CheckBoxTP::DrawSignCheck(CFX_Graphics* pGraphics,
const CFX_RectF* pRtSign,
FX_ARGB argbFill,