Somehow a sad story, R.I.P. Food. Some cats, at least for me, can be like an "animal Soulmate". Glad to hear, that your cat somehow accepted your dog, i heard about some terrible cat/dog relations.
17 years is really good age for a cat to be honest!