Sorry for the delay, Sunday
Please check the Macro for generating vertical and horizontal bars. (green note)
With this, you can easily make a Style for various combinations.
Depending on the selection of which bar will be enabled you can add Frames and set size/padding/offsets using nods on the blue note.
Let me know if you need more info.