Kemo, my background is not accounting but here is what I understand of it.
better double check with yours
re capital gain: if you transfer securities into tfsa there will be a deemed disposition, often closing value on day of transfer. If you have a capital gain you will be taxed as if you had sold these holdings, and if you have a capital loss you will be able to claim it.
taken from:
http://www.canadianmoneyforum.com/showthread.php?t=1703
AU1