Not entirely sure, but I know annual leave accrues during maternity leave so, if you don't take leave before the baby is due and stay off for the rest of the year, I think you can take your annual leave just before mat leave starts or just after it finishes, ie it gives you another few weeks of paid "holiday" to extend the mat leave.