Created attachment 145038 [details] Example ODT file from Writer with a check box. The Tristate property of the check box form control is incorrectly saved in DOCX document. Steps to reproduce: 1. Create a new document in LibreOffice Writer.. 2. On the Form tab, click Design Mode. 3. Insert a check box. 4. Right-click the control, and click Control Properties. 5. Set the Tristate property: Yes. 6. Save the file as DOCX. 7. Select File and Reload. 8. Right-click the control, and click Control Properties. Actual results: The value of the Tristate property is No. Expected results: The Tristate property shouldn’t change. LibreOffice details: Version: 6.2.0.0.alpha0+ Build ID: efe119aaa50e9f532b3fac1ef153469c80f24b80 CPU threads: 4; OS: Windows 6.1; UI render: default; TinderBox: Win-x86@42, Branch:master, Time: 2018-09-10_00:02:50 Locale: en-US (hu_HU); Calc: threaded
Created attachment 145039 [details] Example DOCX file from Writer with a check box.
Created attachment 145040 [details] Screenshot of the original and exported document side by side in Writer.
Confirm. Version: 6.2.0.0.alpha0+ Build ID: a27ae800fed5a974c9b255f7ce2b38ec2dbaa426 CPU threads: 4; OS: Windows 6.1; UI render: default;
The export feature was implemented in author Tamás Zolnai <tamas.zolnai@collabora.com> 2017-08-17 21:47:22 +0200 committer Tamás Zolnai <tamas.zolnai@collabora.com> 2017-08-17 23:11:15 +0200 commit c0cc02e2934aeb12dda44818955e5964496c186a (patch) tree 16f450bbe38e14d336bdbac3220b642b9a302a87 parent 8c0cc5cd7befffc6e8e6361ba67807a799cc997f (diff) tdf#50097: DOCX: export form controls as MSO ActiveX controls @Tamás Zolnai, I thought you could be interested in this issue...
Let's turn this into a easy hack. The code is here: oox/source/ole/axcontrol.cxx Check AxCheckBoxModel class. Some additional info here: https://bugs.documentfoundation.org/show_bug.cgi?id=113789#c4 Also might need to check the activex documentation: https://msdn.microsoft.com/en-us/library/office/cc313125(v=office.12).aspx
Martin van Zijl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/a995d10e27149dc701d7f6fa093545888b5250f5%5E%21 tdf#119991 save checkbox tristate in oox format It will be available in 6.3.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.