Re: configuration provider doesn't implement setPropertyToDefault anymore

2015-10-15 Thread Stephan Bergmann

On 10/14/2015 07:30 PM, Lionel Elie Mamane wrote:

According to
https://wiki.openoffice.org/wiki/Documentation/DevGuide/Config/Updating_Configuration_Data
and
odk/examples/DevelopersGuide/Config/ConfigExamples.java
(in method resetGridConfiguration)

our implementation of the
"com.sun.star.configuration.ConfigurationUpdateAccess" service is
supposed to implement the com.sun.star.beans.XPropertyState interface,
which provides the "setPropertyToDefault" method.

However, actually trying it yields a configmgr::Access (file
configmgr/source/access.hxx) which does *not* implement that
interface.

The configuration system seems to have been reimplemented in 2009,
maybe that's when this disappeared?


Yes, see , 
comment 7 of "Unable to choose proxy type 'system' [UI]," for details.



Maybe something to EasyHackify?


Unfortunately it's harder than an easy hack.  But I guess I'll indeed 
eventually need to tackle that...

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


configuration provider doesn't implement setPropertyToDefault anymore

2015-10-14 Thread Lionel Elie Mamane
According to
https://wiki.openoffice.org/wiki/Documentation/DevGuide/Config/Updating_Configuration_Data
and
odk/examples/DevelopersGuide/Config/ConfigExamples.java
(in method resetGridConfiguration)

our implementation of the
"com.sun.star.configuration.ConfigurationUpdateAccess" service is
supposed to implement the com.sun.star.beans.XPropertyState interface,
which provides the "setPropertyToDefault" method.

However, actually trying it yields a configmgr::Access (file
configmgr/source/access.hxx) which does *not* implement that
interface.

The configuration system seems to have been reimplemented in 2009,
maybe that's when this disappeared?

I also see in configmgr/qa/unit/test.cxx:
//TODO: support setPropertyToDefault


Maybe something to EasyHackify?

-- 
Lionel
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice