Hi thanks to you both for your kind efforts in replying to my post. Yes I do understand she cannot claim it directly, I have already informed DWP from the day of my wife arrival in UK that she has no recourse to public funds and all my benefits are payable in my name only at the (single person rate).
But with SSMG although it can be claimed by either partner, it does make it rather complicated for the father of the baby to be signed on the section at the end of the form to be completed by the health proffesional, as I already mentioned the midwife refused to sign it in my name, as the questions are related to the mother being consulted in respect of an expected child and the number of weeks the mother is due to give birth etc.
I have seen on other forums that it can be claimed by the partner of someone who is subject to immigration control wth no recourse to public funds and later being approved for ILR but which way they claimed SSMG is not clear if they did make a claim before or after the baby is born.
I will therefore take the advice given by Terpe above and wait until the baby is born, then will claim child benefit in my name only, when in receipts child benefit will then take the SSMG form back to the midwife with evidence that the claim for child benefit is in my name only and therefore she need put my name on the section to be completed by the health proffesional.
I will keep you informed in due course.