mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fix SetDV for radiobutton
This commit is contained in:
@ -2046,6 +2046,14 @@ namespace PdfWriter
|
|||||||
else
|
else
|
||||||
pOwner->Add("V", new CStringObject(sV.c_str(), true));
|
pOwner->Add("V", new CStringObject(sV.c_str(), true));
|
||||||
}
|
}
|
||||||
|
void CCheckBoxWidget::SetDV(const std::wstring& wsDV)
|
||||||
|
{
|
||||||
|
std::string sValue = U_TO_UTF8(wsDV);
|
||||||
|
CDictObject* pOwner = GetObjOwnValue("DV");
|
||||||
|
if (!pOwner)
|
||||||
|
pOwner = this;
|
||||||
|
pOwner->Add("DV", sValue.c_str());
|
||||||
|
}
|
||||||
void CCheckBoxWidget::SetStyle(BYTE nStyle)
|
void CCheckBoxWidget::SetStyle(BYTE nStyle)
|
||||||
{
|
{
|
||||||
m_nStyle = ECheckBoxStyle(nStyle);
|
m_nStyle = ECheckBoxStyle(nStyle);
|
||||||
|
|||||||
@ -476,7 +476,7 @@ namespace PdfWriter
|
|||||||
void SetMEOptions(const int& nMEOptions);
|
void SetMEOptions(const int& nMEOptions);
|
||||||
void SetTU(const std::wstring& wsTU);
|
void SetTU(const std::wstring& wsTU);
|
||||||
void SetDS(const std::wstring& wsDS);
|
void SetDS(const std::wstring& wsDS);
|
||||||
void SetDV(const std::wstring& wsDV);
|
virtual void SetDV(const std::wstring& wsDV);
|
||||||
void SetT (const std::wstring& wsT);
|
void SetT (const std::wstring& wsT);
|
||||||
void SetBC(const std::vector<double>& arrBC);
|
void SetBC(const std::vector<double>& arrBC);
|
||||||
void SetBG(const std::vector<double>& arrBG);
|
void SetBG(const std::vector<double>& arrBG);
|
||||||
@ -555,6 +555,7 @@ namespace PdfWriter
|
|||||||
CCheckBoxWidget(CXref* pXref, EWidgetType nSubtype = WidgetCheckbox);
|
CCheckBoxWidget(CXref* pXref, EWidgetType nSubtype = WidgetCheckbox);
|
||||||
|
|
||||||
void SetV(const std::wstring& wsV);
|
void SetV(const std::wstring& wsV);
|
||||||
|
virtual void SetDV(const std::wstring& wsDV) override;
|
||||||
void SetOpt(const std::vector< std::pair<std::wstring, std::wstring> >& arrOpt);
|
void SetOpt(const std::vector< std::pair<std::wstring, std::wstring> >& arrOpt);
|
||||||
void SetStyle(BYTE nStyle);
|
void SetStyle(BYTE nStyle);
|
||||||
ECheckBoxStyle GetStyle() { return m_nStyle; }
|
ECheckBoxStyle GetStyle() { return m_nStyle; }
|
||||||
|
|||||||
Reference in New Issue
Block a user