Page 1 of 1

Structure-/Treeview: Drag & Drop multiple nodes

Posted: Tue Aug 30, 2011 4:32 pm
by spyro
Hi,

it seems not possible to move more then one node individually in the structure view. In the TreeView (CTRL+T) more then one node can be selected but nothing happens when I try to move them to a new place.

Image
Image

This is very critical for use because we need a way to to simply restrucurize large documents in short amounts time. All selected nodes are in a simple range after another so there is no break in the selection. So it shouldn't be to hard to support this in the future.

This drag & drop actions are possible without problems in the source code but this is very uncomfortable because you have to scroll thousands of lines each time.

spyro

Re: Structure-/Treeview: Drag & Drop multiple nodes

Posted: Tue Aug 30, 2011 5:35 pm
by adrian
Hello,

This is not possible in the Tree Editor(no drag and drop with multiple selection) or in the Outline view from the Text mode(no multiple selection). It's a bit more difficult to implement this in Text mode(especially non-contiguous selection). I've logged your feature request to our issue tracking tool and we will analyze and implement it in a future version.

However, the Outline view from the Author(visual editing) mode(Document > Edit Mode > Author) allows multiple selection and also copy/paste and drag and drop with multiple selection. If you don't have a CSS for the XML file, the document will look garbled in the editor, but you should still be able to use it for its Outline view.
Note that when editing in the Author mode, the modified region of the XML document is formatted when saving or switching back to Text mode(because of the switch between text -> XML model -> text).

Regards,
Adrian

Re: Structure-/Treeview: Drag & Drop multiple nodes

Posted: Tue Aug 30, 2011 6:37 pm
by spyro
Hello adrian,

thanks for your quick answer. I tried your solution and it works. I didn't realize that the outline view acts different when switching in author mode.

Just one more question: You wrote, the document will be reformatted when the user moves any nodes in the outline view. Does this affect the handling of the whitespace in mixed-content-elements?

spyro

Re: Structure-/Treeview: Drag & Drop multiple nodes

Posted: Fri Sep 02, 2011 8:43 am
by Radu
Hi,

If the XML is loaded without a CSS in the Author page then its entire content is regarded as space preserve so you should have no problem with whitespaces in mixed content.

Even if the XML is loaded with a specific CSS Oxygen has lots of ways in which it tries to determine if an element has mixed content or not (by looking at the associated grammar for example).

Regards,
Radu

Re: Structure-/Treeview: Drag & Drop multiple nodes

Posted: Fri Sep 02, 2011 11:21 am
by spyro
Hi radu,

Thank you. Very glad to hear that.

Greetings,
spyro

Re: Structure-/Treeview: Drag & Drop multiple nodes

Posted: Tue Dec 13, 2011 5:39 pm
by patrick
We need this feature in the text view, too. We use an Stylesheet but its faster to change the structure without waiting for css rendering.

Re: Structure-/Treeview: Drag & Drop multiple nodes

Posted: Wed Dec 14, 2011 10:28 am
by Radu
Hi Patrick,

So do I understand correctly that you need support inside the Text page for allowing multiple selection in the Outline view for cut/copy/paste/delete/drag and drop operations?
I added your request to our internal issues list and this thread will be updated when it gets implemented.

Regards,
Radu

Re: Structure-/Treeview: Drag & Drop multiple nodes

Posted: Wed Dec 14, 2011 4:05 pm
by patrick
Right, this is exactly what we need. Thanks for adding it!

Re: Structure-/Treeview: Drag & Drop multiple nodes

Posted: Thu Dec 15, 2011 1:51 pm
by spyro
Thanks, this would be VERY helpful for us.