#include "xfa/fwl/cfwl_datetimepicker.h"
#include "xfa/fwl/cfwl_app.h"
#include "xfa/fwl/cfwl_event.h"
#include "xfa/fwl/cfwl_eventselectchanged.h"
#include "xfa/fwl/cfwl_messagemouse.h"
#include "xfa/fwl/cfwl_messagesetfocus.h"
#include "xfa/fwl/cfwl_notedriver.h"
#include "xfa/fwl/cfwl_themebackground.h"
#include "xfa/fwl/cfwl_widgetmgr.h"
#include "xfa/fwl/ifwl_themeprovider.h"
namespace pdfium {
namespace {
constexpr int kDateTimePickerHeight = …;
}
CFWL_DateTimePicker::CFWL_DateTimePicker(CFWL_App* app)
: … { … }
CFWL_DateTimePicker::~CFWL_DateTimePicker() = default;
void CFWL_DateTimePicker::PreFinalize() { … }
void CFWL_DateTimePicker::Trace(cppgc::Visitor* visitor) const { … }
FWL_Type CFWL_DateTimePicker::GetClassID() const { … }
void CFWL_DateTimePicker::Update() { … }
FWL_WidgetHit CFWL_DateTimePicker::HitTest(const CFX_PointF& point) { … }
void CFWL_DateTimePicker::DrawWidget(CFGAS_GEGraphics* pGraphics,
const CFX_Matrix& matrix) { … }
void CFWL_DateTimePicker::GetCurSel(int32_t& iYear,
int32_t& iMonth,
int32_t& iDay) { … }
void CFWL_DateTimePicker::SetCurSel(int32_t iYear,
int32_t iMonth,
int32_t iDay) { … }
void CFWL_DateTimePicker::SetEditText(const WideString& wsText) { … }
WideString CFWL_DateTimePicker::GetEditText() const { … }
size_t CFWL_DateTimePicker::GetEditTextLength() const { … }
CFX_RectF CFWL_DateTimePicker::GetBBox() const { … }
void CFWL_DateTimePicker::ModifyEditStyleExts(uint32_t dwStyleExtsAdded,
uint32_t dwStyleExtsRemoved) { … }
void CFWL_DateTimePicker::DrawDropDownButton(CFGAS_GEGraphics* pGraphics,
const CFX_Matrix& mtMatrix) { … }
WideString CFWL_DateTimePicker::FormatDateString(int32_t iYear,
int32_t iMonth,
int32_t iDay) { … }
void CFWL_DateTimePicker::ShowMonthCalendar() { … }
void CFWL_DateTimePicker::HideMonthCalendar() { … }
void CFWL_DateTimePicker::RepaintInflatedMonthCalRect() { … }
bool CFWL_DateTimePicker::IsMonthCalendarVisible() const { … }
void CFWL_DateTimePicker::ResetEditAlignment() { … }
void CFWL_DateTimePicker::ProcessSelChanged(int32_t iYear,
int32_t iMonth,
int32_t iDay) { … }
bool CFWL_DateTimePicker::NeedsToShowButton() const { … }
void CFWL_DateTimePicker::OnProcessMessage(CFWL_Message* pMessage) { … }
void CFWL_DateTimePicker::OnDrawWidget(CFGAS_GEGraphics* pGraphics,
const CFX_Matrix& matrix) { … }
void CFWL_DateTimePicker::OnFocusGained(CFWL_Message* pMsg) { … }
void CFWL_DateTimePicker::OnFocusLost(CFWL_Message* pMsg) { … }
void CFWL_DateTimePicker::OnLButtonDown(CFWL_MessageMouse* pMsg) { … }
void CFWL_DateTimePicker::OnLButtonUp(CFWL_MessageMouse* pMsg) { … }
void CFWL_DateTimePicker::OnMouseMove(CFWL_MessageMouse* pMsg) { … }
void CFWL_DateTimePicker::OnMouseLeave(CFWL_MessageMouse* pMsg) { … }
void CFWL_DateTimePicker::GetPopupPos(float fMinHeight,
float fMaxHeight,
const CFX_RectF& rtAnchor,
CFX_RectF* pPopupRect) { … }
void CFWL_DateTimePicker::ClearText() { … }
void CFWL_DateTimePicker::SelectAll() { … }
void CFWL_DateTimePicker::ClearSelection() { … }
std::optional<WideString> CFWL_DateTimePicker::Copy() { … }
std::optional<WideString> CFWL_DateTimePicker::Cut() { … }
bool CFWL_DateTimePicker::Paste(const WideString& wsPaste) { … }
bool CFWL_DateTimePicker::Undo() { … }
bool CFWL_DateTimePicker::Redo() { … }
bool CFWL_DateTimePicker::CanUndo() { … }
bool CFWL_DateTimePicker::CanRedo() { … }
}