XRef behaviour

On 25/02/2013 at 00:16, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   13 
Platform:   Windows  ;   
Language(s) :     C++  ;


I'm developing a plugin with a similar behaviour like the XRef object. And now I have to set some flags so that the linked objects are also save again drag and drop, removing and modifying.
You know, the objects in a XRef objects are protected

Which flags I have to set? Or is it more than flags ?