copied from excel-writer-xlsx.