This Doctor Who screencap contains
fedora, felt hat, homburg, stetson, trilby, boater, leghorn, panama, panama hat, sailor, skimmer, and straw hat.
There might also be
snap brim hat, porkpie, porkpie hat, and campaign hat.
Part two of "Curse of the Fatal Death", where the Doctor, about to retire and get married, faces his enemies the Master and the Daleks. Part of a comic relief special.