Write widget's parent

This commit is contained in:
Svetlana Kulikova
2023-11-28 16:04:04 +03:00
parent 8d7692d6f2
commit 0ec39e3d32
11 changed files with 93 additions and 13 deletions

View File

@ -1022,6 +1022,10 @@ bool CPdfFile::DeleteAnnot(int nID)
return bRes;
}
bool CPdfFile::EditWidgets()
{
return true;
}
#endif // BUILDING_WASM_MODULE
// ------------------------------------------------------------------------
@ -2079,7 +2083,10 @@ HRESULT CPdfFile::AdvancedCommand(IAdvancedCommand* command)
case IAdvancedCommand::AdvancedCommandType::WidgetsInfo:
{
CWidgetsInfo* pCommand = (CWidgetsInfo*)command;
#ifndef BUILDING_WASM_MODULE
if (m_pInternal->bEdit && EditWidgets())
return m_pInternal->pWriter->EditWidgetParents(pCommand);
#endif
return S_OK;
}
default: