summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorJacobo Aragunde Pérez <jaragunde@igalia.com>2014-03-19 11:19:54 +0100
committerJacobo Aragunde Pérez <jaragunde@igalia.com>2014-03-20 10:28:22 +0100
commit64ad575674e6170ebb8ebeeacd41b14af07a0377 (patch)
tree18b8b7b7944082a46d6f941143f331b97b47d505 /oox
parentde1f5cb2ad67d94dfac46b3577a7c0b8ed06ba6d (diff)
ooxml: preserve checkbox sdt control
Checkbox controls in docx are implemented with a sdt block containing the property w:14:checkbox, which has several child elements. To implement the preservation of the field, we had to add several tags to the ooxml model file. Notice they belong to namespace w14, that's why we had to add a redundant definitions of CT_STRING, ST_STRING and their actions. Then, we just used the existing mechanisms on the importer and the exporter. Finally, added a unit test. TODO: the checkbox is preserved on export but it cannot be modified. We should import it like we do for combo and date boxes. Change-Id: I40f29b48ec24719c48482b9c8cff10176d1b188d
Diffstat (limited to 'oox')
-rw-r--r--oox/source/token/tokens.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/oox/source/token/tokens.txt b/oox/source/token/tokens.txt
index 8d40a4bfd747..e2740015a9b6 100644
--- a/oox/source/token/tokens.txt
+++ b/oox/source/token/tokens.txt
@@ -1141,8 +1141,10 @@ chartStar
chartX
chartreuse
chartsheet
+checkbox
checkBox
checkCompatibility
+checkedState
checkErrors
checkStyle
checked
@@ -5395,6 +5397,7 @@ unbalanced
unbalancedGroup
unboundColumnsLeft
unboundColumnsRight
+uncheckedState
undOvr
underDot
underlineTabInNumList