Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


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:
http://lists.freedesktop.org/archives/libreoffice/2011-May/013087.html

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&>(
         rCoreAttrs.Get(GetWhich(SID_SCDOCOPTIONS)));

Ref::
http://opengrok.libreoffice.org/xref/calc/sc/source/ui/optdlg/tpcompatibility.cxx#48

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
ScTpCalcItem.
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.

TIA

/Albert

.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.