using leonardo to upload sketches to atmega168/328

You want to use the Leonardo as an ISP programmer, is that it?