Robert James Lee Hawke won four elections to become the Labor Party's longest-serving prime minister.