Dissolve the yeast in 125 ml of lukewarm water (about 40°C / 104°F). Mix the flour with 1 teaspoon salt and oregano. Add 3 tablespoons of oil and stir with the dough hook of a hand mixer. Pour in the yeast water and knead everything into a smooth dough. Cover and let rise in a warm place for 40 minutes.
Finely dice the garlic clove and onion. Heat 1 tablespoon of oil over medium heat, add the diced garlic and onion, and fry for 3-4 minutes. Add the rosemary sprig, pour in the canned tomatoes, and roughly chop them in the pan. Simmer on medium heat for 10-15 minutes until the sauce reduces to a creamy consistency. Remove the rosemary sprig and season the sauce with salt, pepper, and sugar to taste.
Drain the pineapple slices and set aside. Moisten a baking sheet with water, place baking paper on top and press firmly. Roll out the dough thinly onto the paper and brush with tomato sauce. Halve the ham slices and place them on the dough with the pineapple slices. Slice the mozzarella, shred or tear it, and spread over the pizza.
Preheat the oven to 200°C / 392°F on electric mode, or 175°C / 347°F on convection mode. Bake the pizza for 20-30 minutes until the cheese is melted and the crust is golden brown.