Replaces the current layer with the layer given as input
parameter.
After the replacement has been performed, reading the
layer will return the new content. Some implementations
may not support this, so after an update
XLayer::readData() may fail.
Parameter aNewLayer
replacement layer
Throws
com::sun::star::lang::NullPointerException
if a NULL handler is passed.
Throws
com::sun::star::lang::WrappedTargetException
if an error occurs during the replacement.
Throws
com::sun::star::configuration::backend::MalformedDataException
if the layer contains invalid data.