Batch document updates and UI refreshes

Michael Stahl mstahl at redhat.com
Tue Mar 13 20:15:21 UTC 2018


On 12.03.2018 18:31, Robert Marcano wrote:
> I am modifying many properties of document styles, using the 
> XPropertySet interface, that means that there are many consecutive calls 
> to setPropertyValue(), and that generate some bliking on the document 
> while changes are being made.
> 
> Is there a way to run document modifications inside a block of code 
> where documents visual updates are delayed to the end of the block? or 
> what is the best way to make document updates in one go, without 
> triggering temporary events?.

try XModel::lockControllers/unlockControllers, it should delay the view
update until unlock.


More information about the LibreOffice mailing list