Related: #i124065# Low performance opening attached .ods

(cherry picked from commit d89ee4f6306ce8f290e01c80edbcc28a5cd8dcc3)

Conflicts:
	sc/inc/document.hxx
	sc/source/core/data/documen3.cxx
	sc/source/ui/unoobj/nameuno.cxx

Change-Id: Iced475cefe1df62920535db252841fe40339ebb1