Mix all the ingredients for the dough in a food processor. Press out the dough with your thumb into a pie dish, about 25 cm in diameter. Whisk together the eggs, cream and cheese. Add salt and pepper Stir in the ham and onions. Bake at 200°C for 30-40 minutes, or until the pie has set. Serve it hot or lukewarm.