144 CFWL_Barcode* pFWLBarcode = cppgc::MakeGarbageCollected<CFWL_Barcode>(
145 GetFWLApp()->GetHeap()->GetAllocationHandle(), GetFWLApp());
149 CFWL_NoteDriver* pNoteDriver = pFWLBarcode
->GetFWLApp()->GetNoteDriver();
151 m_pOldDelegate = pFWLBarcode->GetDelegate();
156 pFWLBarcode->SetText(m_pNode->GetValue(XFA_ValuePicture::kDisplay));
185 BC_TYPE bc_type = GetBarcodeTypeByName(barcode_->GetBarcodeType());
189 auto* pBarCodeWidget =
static_cast<CFWL_Barcode*>(GetNormalWidget());
190 pBarCodeWidget->SetType(bc_type);
192 std::optional<
bool> calcChecksum = barcode_->GetChecksum();
193 if (calcChecksum.has_value())
194 pBarCodeWidget->SetCalChecksum(calcChecksum.value());
196 std::optional<int32_t> dataLen = barcode_->GetDataLength();
197 if (dataLen.has_value())
198 pBarCodeWidget->SetDataLength(dataLen.value());
200 std::optional<
char> startChar = barcode_->GetStartChar();
201 if (startChar.has_value())
202 pBarCodeWidget->SetStartChar(startChar.value());
204 std::optional<
char> endChar = barcode_->GetEndChar();
205 if (endChar.has_value())
206 pBarCodeWidget->SetEndChar(endChar.value());
208 std::optional<int32_t> ecLevel = barcode_->GetECLevel();
209 if (ecLevel.has_value())
210 pBarCodeWidget->SetErrorCorrectionLevel(ecLevel.value());
212 std::optional<int32_t> width = barcode_->GetModuleWidth();
213 if (width.has_value())
214 pBarCodeWidget->SetModuleWidth(width.value());
216 std::optional<int32_t> height = barcode_->GetModuleHeight();
217 if (height.has_value())
218 pBarCodeWidget->SetModuleHeight(height.value());
220 std::optional<
bool> printCheck = barcode_->GetPrintChecksum();
221 if (printCheck.has_value())
222 pBarCodeWidget->SetPrintChecksum(printCheck.value());
225 if (text_attr.has_value()) {
227 TextLocFromAttribute(text_attr.value());
228 if (textLoc.has_value())
229 pBarCodeWidget->SetTextLocation(textLoc.value());
234 std::optional<int8_t> ratio = barcode_->GetWideNarrowRatio();
235 if (ratio.has_value())
236 pBarCodeWidget->SetWideNarrowRatio(ratio.value());
240 pBarCodeWidget->SetPrintChecksum(
true);
bool AcceptsFocusOnButtonDown(Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point, CFWL_MessageMouse::MouseCommand command) override
CXFA_FFTextEdit(CXFA_Node *pNode)
void UpdateWidgetProperty() override