Hello Albert,<br><br>I forgot to respond to your mail. Kohei is not here till the beginning of July, but I try to answer your questions as good as possible.<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Simple as this task might seem (it&#39;s is mostly a matter of copy&amp;paste)<br>
I still have run into troubles that I can&#39;t figure out. In<br>
tpcompatibility.cxx we have the following line:<br>
<br>
 const ScTpCalcItem&amp; rItem = static_cast&lt;const ScTpCalcItem&amp;&gt;(<br>
         rCoreAttrs.Get(GetWhich(SID_SCDOCOPTIONS)));<br>
<br>
Ref::<br>
<a href="http://opengrok.libreoffice.org/xref/calc/sc/source/ui/optdlg/tpcompatibility.cxx#48" target="_blank">http://opengrok.libreoffice.org/xref/calc/sc/source/ui/optdlg/tpcompatibility.cxx#48</a><br></blockquote><div>
<br>This line searches the SfxItemSet  for the entry with the key SID_SCDOCOPTIONS. The result is an SfxPoolItem, in this case casted to a ScTpCalcItem which is a subclass of SfxPoolItem.<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
I&#39;m no quite sure what this line actually does. It seems to identify<br>
the ScDocOption class and bind a pointer to this class to a<br>
ScTpCalcItem.<br>
Unfortunately for me there is no corresponding slot-ID to<br>
SID_SCDOCOPTIONS for the ScAppOptions class, otherwise I could just<br>
changed that and be done.<br></blockquote><div><br>No you would not. You would get a totally different SfxPoolItem, that you could not cast to ScTpCalcItem. so if you want to move this option to the other dialog(I think Kohei suggested this) you first need to make sure that you get the same SfxItemSet to your class. <br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
The question is now how to implement some corresponding functionality<br>
here for ScAppOptions.<br></blockquote><div><br>Let me have a look at the code and search you some code pointers. I&#39;ll sent you a mail with some more information in this direction during the next days. <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
As I understand the overall purpose you what to create two pointers to<br>
copies of the option set, manipulate one set, compare them and then<br>
store the modified set to file.<br></blockquote><div><br>No, they are saved back to the SfxItemSet. This ItemSet is used in several other locations to get the Information, for example to write the Shortcuts to the menu entries. At the moment this whole construct is only used to save the keybindings. It might be that some parts could be improved there but I don&#39;t know Kohei&#39;s plan for this class. <br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Help on this is appreciated.<br></blockquote><div><br>If this didn&#39;t help you, go on with asking. I try to answer your questions as good as possible. You can also poke me at IRC, my nick is moggi. <br></div><br>Regards,<br>
Markus<br></div><br>