opendocument: Ported changes for exporter interface