Cook the spaghetti until done. Cut the ham into fine strips. Cut the leek into rings.
Toss the spaghetti in the margarine and mix in the leek, cheese and ham. Put everything in a greased baking dish and spread the tomato pieces on top. Whisk eggs with cream, salt, pepper and oregano and pour over the pasta.