<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ActiveX button's icon is not saved back to DOCX file"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=113789#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ActiveX button's icon is not saved back to DOCX file"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=113789">bug 113789</a>
              from <span class="vcard"><a class="email" href="mailto:zolnaitamas2000@gmail.com" title="Tamás Zolnai <zolnaitamas2000@gmail.com>"> <span class="fn">Tamás Zolnai</span></a>
</span></b>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>