mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
MaxLen separately for field and parent
This commit is contained in:
@ -1132,6 +1132,8 @@ bool CWidgetsInfo::Read(NSOnlineOfficeBinToPdf::CBufferReader* pReader, IMetafil
|
||||
}
|
||||
}
|
||||
}
|
||||
if (nFlags & (1 << 9))
|
||||
pParent->nMaxLen = pReader->ReadInt();
|
||||
m_arrParents.push_back(pParent);
|
||||
}
|
||||
|
||||
|
||||
@ -567,6 +567,7 @@ public:
|
||||
{
|
||||
int nID;
|
||||
int nFlags;
|
||||
int nMaxLen;
|
||||
int nParentID;
|
||||
int nFieldFlag;
|
||||
std::wstring sName;
|
||||
|
||||
@ -616,6 +616,8 @@ CFile.prototype["getInteractiveFormsInfo"] = function()
|
||||
readAction(reader, rec["AA"][AAType]);
|
||||
}
|
||||
}
|
||||
if (flags & (1 << 9))
|
||||
rec["maxLen"] = reader.readInt();
|
||||
res["Parents"].push(rec);
|
||||
}
|
||||
|
||||
|
||||
@ -351,7 +351,7 @@ void ReadInteractiveForms(BYTE* pWidgets, int& i)
|
||||
{
|
||||
nPathLength = READ_INT(pWidgets + i);
|
||||
i += 4;
|
||||
std::cout << "Parent " << nPathLength;
|
||||
std::cout << "Parent " << nPathLength << ", ";
|
||||
}
|
||||
if (nFlags & (1 << 5))
|
||||
{
|
||||
@ -392,7 +392,7 @@ void ReadInteractiveForms(BYTE* pWidgets, int& i)
|
||||
{
|
||||
nPathLength = READ_INT(pWidgets + i);
|
||||
i += 4;
|
||||
std::cout << "Ff " << nPathLength;
|
||||
std::cout << "Ff " << nPathLength << ", ";
|
||||
}
|
||||
if (nFlags & (1 << 8))
|
||||
{
|
||||
@ -410,6 +410,12 @@ void ReadInteractiveForms(BYTE* pWidgets, int& i)
|
||||
}
|
||||
std::cout << std::endl;
|
||||
}
|
||||
if (nFlags & (1 << 9))
|
||||
{
|
||||
nPathLength = READ_INT(pWidgets + i);
|
||||
i += 4;
|
||||
std::cout << "MaxLen " << nPathLength << ", ";
|
||||
}
|
||||
|
||||
std::cout << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user