[Libreoffice] Help with moving misplaced options from ScDocOptions to ScAppOptions

Albert Thuswaldner albert.thuswaldner at gmail.com
Wed Jun 22 15:38:30 PDT 2011

Hi devs,
I took on the relative straight-forward task to move some misplaced
options in calc from ScDocOptions to ScAppOptions. The rational behind
this move, see:

Simple as this task might seem (it's is mostly a matter of copy&paste)
I still have run into troubles that I can't figure out. In
tpcompatibility.cxx we have the following line:

 const ScTpCalcItem& rItem = static_cast<const ScTpCalcItem&>(


I'm no quite sure what this line actually does. It seems to identify
the ScDocOption class and bind a pointer to this class to a
Unfortunately for me there is no corresponding slot-ID to
SID_SCDOCOPTIONS for the ScAppOptions class, otherwise I could just
changed that and be done.

The question is now how to implement some corresponding functionality
here for ScAppOptions.

As I understand the overall purpose you what to create two pointers to
copies of the option set, manipulate one set, compare them and then
store the modified set to file.

Help on this is appreciated.




More information about the LibreOffice mailing list