7#include "xfa/fxfa/cxfa_ffpasswordedit.h"
9#include "third_party/base/check.h"
10#include "xfa/fwl/cfwl_edit.h"
11#include "xfa/fwl/cfwl_notedriver.h"
12#include "xfa/fxfa/cxfa_ffdoc.h"
13#include "xfa/fxfa/parser/cxfa_node.h"
14#include "xfa/fxfa/parser/cxfa_passwordedit.h"
16CXFA_FFPasswordEdit::CXFA_FFPasswordEdit(
CXFA_Node* pNode,
17 CXFA_PasswordEdit* password_node)
22void CXFA_FFPasswordEdit::
Trace(
cppgc::Visitor* visitor)
const {
23 CXFA_FFTextEdit::Trace(visitor);
24 visitor->Trace(password_node_);
30 CFWL_Edit* pWidget = cppgc::MakeGarbageCollected<CFWL_Edit>(
31 GetFWLApp()->GetHeap()->GetAllocationHandle(), GetFWLApp(),
32 CFWL_Widget::Properties(),
nullptr);
36 CFWL_NoteDriver* pNoteDriver = pWidget
->GetFWLApp()->GetNoteDriver();
38 m_pOldDelegate = pWidget->GetDelegate();
43 pWidget->SetText(m_pNode->GetValue(XFA_ValuePicture::kDisplay));
60 WideString password = password_node_->GetPasswordChar();
63 if (!m_pNode->IsHorizontalScrollPolicyOff())
65 if (!m_pNode->IsOpenAccess() || !GetDoc()->GetXFADoc()->IsInteractive())
69 GetNormalWidget()->ModifyStyleExts(dwExtendedStyle, 0xFFFFFFFF);
#define FWL_STYLEEXT_EDT_ShowScrollbarFocus
#define FWL_STYLEEXT_EDT_OuterScrollbar
#define FWL_STYLEEXT_EDT_AutoHScroll
#define FWL_STYLEEXT_EDT_ReadOnly
#define FWL_STYLEEXT_EDT_Password
void SetAliasChar(wchar_t wAlias)
void RegisterEventTarget(CFWL_Widget *pListener, CFWL_Widget *pEventSource)
bool LoadWidget() override
void SetNormalWidget(CFWL_Widget *widget)
uint32_t UpdateUIProperty()
~CXFA_FFPasswordEdit() override
bool LoadWidget() override
void UpdateWidgetProperty() override
void Trace(cppgc::Visitor *visitor) const override
CXFA_FFTextEdit(CXFA_Node *pNode)
CharType operator[](const size_t index) const