They are BC549 (NPN) transistors with the collectors connected to + 5 Volt.
All of the LED anode columns are connected to the emitters,
and the cathode rows are sunk directly by the pic pins.

I deleted the LED schematic section from flickr. It may also picture the wrong transistors
(wired for a common cathode display).

Ooh.. the PCB artwork is nice