It means that she was a woman and she is no longer a woman. It can refer to the fact that she was a wife before and is no longer a wife or also to the fact that she was a woman and is no longer because of gender change.
EX-WIFE is said to be the one who has ceased to be the wife. It is not said who has changed sex.