OnDocFormPreRender, OnDocFormRender and OnDocFormSave to pass parent and template parameters to plugins