You have one dialog for let's say border properties. The user may use that dialog to draw a border around the containing block of the selection or the selection itself. But how can I make the difference between the two requests? MS Word has the solution: if the selection is collapsed, that's for the containing block; otherwise that's for the selection. Very cool.