You should be entitled to maternity pay, as I said (and balmerhon confirmed) because it is a contributory benefit, you're not claiming public funds. However, if you stop working, then it could be argued that you are no longer working. I guess you would be okay but only if you return to the same job afterwards.
Vicky