[framework-issues] [Issue 101422] set nodes can't be reset correctly via configuration API

2009-04-29 Thread wuy
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=101422
 Issue #|101422
 Summary|set nodes can't be reset correctly via configuration A
|PI
   Component|framework
 Version|OOO310m9
Platform|All
 URL|
  OS/Version|All
  Status|UNCONFIRMED
   Status whiteboard|
Keywords|
  Resolution|
  Issue type|DEFECT
Priority|P3
Subcomponent|code
 Assigned to|sb
 Reported by|wuy





--- Additional comments from w...@openoffice.org Wed Apr 29 09:28:55 + 
2009 ---
I am encountering a problem to reset the Accelerators.xcu in the user layer to
it's default values in the default layer.
I want to reset the nodes of a set in the user layer to it's default values in
the share layer. It seems that method
com.sun.star.beans.XPropertyWithState.setToDefaultAsProperty() doesn't work
correctly. 
In order to test this configuration API, I wrote a macro(please see the
attachment) to reset all the nodes of org.openoffice.Office.Views/Windows, and
got the result as following:
 node oor:name=Windows
  node oor:name=SplitWindow0 oor:op=remove/
  node oor:name=SplitWindow2 oor:op=remove/
  node oor:name=SplitWindow1 oor:op=remove/
  node oor:name=SplitWindow3 oor:op=remove/
 /node 
If such nodes(SplitWindow0,1,...) exist in the default layer, they would be
overrided. A better result in the user layer would be:
 node oor:name=Windows
 /node

BTW, com.sun.star.beans.XMultiPropertyStates.setAllPropertiesToDefault() works
fine to reset the properties of a group node. It removes those properties in 
the 
user layer.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 101422] set nodes can't be reset correctly via configuration API

2009-04-29 Thread wuy
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=101422





--- Additional comments from w...@openoffice.org Wed Apr 29 09:31:25 + 
2009 ---
Created an attachment (id=61881)
to retrieve default configuration values for set nodes


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 101422] set nodes can't be reset correctly via configuration API

2009-04-29 Thread sb
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=101422


User sb changed the following:

What|Old value |New value

  Status|UNCONFIRMED   |RESOLVED

  Resolution|  |INVALID





--- Additional comments from s...@openoffice.org Wed Apr 29 11:29:08 + 
2009 ---
@wuy:  I assume this is a misunderstanding.  Properties can have default values,
which must be specified in the corresponding .xcs files.  The configuration API
allows to reset a given property to its default value, if any.  For a given set,
there cannot be any set elements specified in the corresponding .xcs file. 
Hence, resetting a set element to its default can only be interpreted as
removing that set element.  So, in turn, the current behavior look OK to me.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 101422] set nodes can't be reset correctly via configuration API

2009-04-29 Thread cd
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=101422


User cd changed the following:

What|Old value |New value

  Status|RESOLVED  |UNCONFIRMED

  Issue type|DEFECT|ENHANCEMENT

  Resolution|INVALID   |





--- Additional comments from c...@openoffice.org Wed Apr 29 11:58:13 + 
2009 ---
cd: This sounds like a misunderstanding. Joerg Barfurth explained to us that
setToDefaultXXX(...) methods are designed to have something like reset to
factory settings. Your explanation of the setToDefaultXXX() method makes sense
and that it works as designed. Unfortunately this is not what we need for the
accelerator configuration.

I think this is worth to be converted to an request for enhancement. 

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 101422] set nodes can't be reset correctly via configuration API

2009-04-29 Thread sb
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=101422


User sb changed the following:

What|Old value |New value

  Ever confirmed|  |1

  Status|UNCONFIRMED   |STARTED

Target milestone|---   |OOo 3.x





--- Additional comments from s...@openoffice.org Wed Apr 29 12:05:52 + 
2009 ---
lets see whether something can be done here

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org