diff options
| author | xuri <xuri.me@gmail.com> | 2020-05-22 16:53:46 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-22 16:53:46 +0800 |
| commit | ec14de32f0c06f7a26b6b79578f666c0cc50b72c (patch) | |
| tree | c6ebd61a7d9a7da5b993ffb82e4fb6c036e75d6a /xmlComments.go | |
| parent | aa7eadbffe6ae2f9f86201bbaaa4c1d1e8829cae (diff) | |
| parent | 2efc7107ff30dc7f1e1a798082616ee488f99489 (diff) | |
Merge branch 'master' into fix/cell_lock
Diffstat (limited to 'xmlComments.go')
| -rw-r--r-- | xmlComments.go | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/xmlComments.go b/xmlComments.go index 5ffbecf..687c486 100644 --- a/xmlComments.go +++ b/xmlComments.go @@ -1,11 +1,11 @@ -// Copyright 2016 - 2019 The excelize Authors. All rights reserved. Use of +// Copyright 2016 - 2020 The excelize Authors. All rights reserved. Use of // this source code is governed by a BSD-style license that can be found in // the LICENSE file. // // Package excelize providing a set of functions that allow you to write to // and read from XLSX files. Support reads and writes XLSX file generated by // Microsoft Excelâ„¢ 2007 and later. Support save file without losing original -// charts of XLSX. This library needs Go version 1.8 or later. +// charts of XLSX. This library needs Go version 1.10 or later. package excelize @@ -54,7 +54,20 @@ type xlsxComment struct { // spreadsheet application implementation detail. A recommended guideline is // 32767 chars. type xlsxText struct { - R []xlsxR `xml:"r"` + T *string `xml:"t"` + R []xlsxR `xml:"r"` + RPh *xlsxPhoneticRun `xml:"rPh"` + PhoneticPr *xlsxPhoneticPr `xml:"phoneticPr"` +} + +// xlsxPhoneticRun element represents a run of text which displays a phonetic +// hint for this String Item (si). Phonetic hints are used to give information +// about the pronunciation of an East Asian language. The hints are displayed +// as text within the spreadsheet cells across the top portion of the cell. +type xlsxPhoneticRun struct { + Sb uint32 `xml:"sb,attr"` + Eb uint32 `xml:"eb,attr"` + T string `xml:"t,attr"` } // formatComment directly maps the format settings of the comment. |
