Druid Macro Question

Hey guys and gals!

Is it possible, to write a macro that use different abilitys based on the actual form? For exampie trash if in cat/bear and sunfire if boomie/caster?

Tia!

Edit: or is there an addon that let me switch every actionbar in different forms, not only the main one?