But to specifically answer your question, NEMA type 7 is (was) for Class I, Division 1, Groups A, B, C, or D. You can use a NEMA 7 enclosure for Class 1 Division 2 if you like, but often for Division 2 areas you can use regular enclosures with devices inside that are rated for use in Div. 2 environments.
As Bob says though, NEMA types are not official, they are guidelines. OFFICIALLY, the enclosure must be rated, typically by an NRTL such as UL, for the environment it will be used in. UL enclosure types generally match the old NEMA standards (i.e. UL Type 1, 3R, 4, 12 etc.), but UL stops using those designation numbers for classified environments. So for Explosion Proof enclosures, there is no UL Type 7, UL gets specific about Class, Division and Group. But you will see that the explosion proof enclosure mfrs will still market them as NEMA type 7, you just need to ensure what division and group they are listed for.