Skip clipboard queries while the document is still loading
commit9c8aa1c217f016fae9a57c6a4feca43551e5068e
authorKatarina Behrens <Katarina.Behrens@cib.de>
Tue, 23 Apr 2019 09:59:40 +0000 (23 11:59 +0200)
committerThorsten Behrens <Thorsten.Behrens@CIB.de>
Tue, 23 Apr 2019 21:32:46 +0000 (23 23:32 +0200)
tree7fe22a0bac280a27c50ea02764bdaf7bc84bb225
parent74a58038b2001ddea5673300bd0317d29c100459
Skip clipboard queries while the document is still loading

Use-case here is .ods document with 16k tracked changes. For every
tracked change, Calc generates a formula cell. For every formula
cell, clipboard content is queried (via ScDocument::IsClipboardSource,
ScModule::GetClipDoc respectively). This is dog-slow on Windows

Therefore don't query clipboard content while the document is in
the process of being loaded. Instead return from ScDocument::
IsClipboardSource early and return 'false' because at this point
of time it can't be reliably determined whether this doc is a clipboard
source anyway

Change-Id: If5aa62cbfb62fb326a3c73b4d9be839127d3c03b
Reviewed-on: https://gerrit.libreoffice.org/71121
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
sc/source/core/data/document.cxx