Attorney/Legal Fees

For what reasons would a spouse be awarded attorney fees?

In the event they are found to be the dependant spouse who is without the financial means to meet the other spouse on equal footing in an action for support or child custody.