If I was using the above code, how would I exclude "footer-1" as an example of a widget area to exclude or "Text" as an example of excluding Text widgets or "Primary Sidebar" as an example of a sidebar to exclude.
I don't understand what you mean by "widget area".
I already explained the information you can use. Beyond that, it's just basic PHP knowledge. One final example:
To disable editing of all text widgets in the 'primary' sidebar, in the first example, you would replace this:
if ( 'categories' == $widget_type )
if ( 'text' == $widget_type && 'primary' == $sidebar_id )