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 +0000 
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

Reply via email to