[Libreoffice-bugs] [Bug 113789] ActiveX button's icon is not saved back to DOCX file

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Dec 8 01:45:03 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=113789

--- Comment #4 from Tamás Zolnai <zolnaitamas2000 at gmail.com> ---
ActiveX controls' properties are stored in a binary file inside the DOCX file
(which is a zipped file structure). You can find this binary here
\word\activeX\activex2.bin, inside the DOCX file.
All types of form controls have an importBinaryModel() and exportBinaryModel()
method which do the reading and writing of this binary file. The imported value
are stored as the specific class member variable (e.g.
AxCommandButtonModel::maPictureData) and later this value is converted to an
API property (convertProperties), which leads to apply this properties on the
opened document. During export we have the same workflow in the oposite
direction. We have convertFromProperties() method which gets the currently
opened document's properties and sets the member variables based on that. Later
the exportBinaryModel() will write this values out into the binary file.
So you will need to set AxCommandButtonModel::maPictureData based on API
properties inside convertFromProperties() method and also export this member
variable inside exportBinaryModel(). For how to do that you should check what
happens by import and you can do the same in the oposite direction.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171208/2420f55d/attachment.html>


More information about the Libreoffice-bugs mailing list