The queen of Spain attended the inaugural ceremony for the long-planned Royal Collections Gallery.