From 1fedfa62784a4f61b0cf6cede29634dc863a7b60 Mon Sep 17 00:00:00 2001 From: Muhammet Kara Date: Tue, 2 Jul 2019 23:25:00 +0300 Subject: Prepare PasteSpecial for Async-ness (sw, basesh.cxx) This change is needed to make the paste special dialog async exec because the current design relies on return values of inner functions/methods while moving on. After this patch, the dialog creation and execution will not be so deep, so that it will be able to be converted to async exec in the usual way. The duplication in SvPasteObjectDialog::PreGetFormat() coming from SvPasteObjectDialog::GetFormat() will go away when the conversion is complete for all modules. It is only temporarily needed. Change-Id: I55e8aee39c41be6035c89f217f90f79720f32196 Reviewed-on: https://gerrit.libreoffice.org/75016 Tested-by: Jenkins Reviewed-by: Muhammet Kara --- cui/source/factory/dlgfact.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cui/source/factory/dlgfact.hxx') diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx index 94bb772fecbe..f0e343947aaf 100644 --- a/cui/source/factory/dlgfact.hxx +++ b/cui/source/factory/dlgfact.hxx @@ -571,6 +571,8 @@ public: public: virtual void Insert( SotClipboardFormatId nFormat, const OUString & rFormatName ) override; virtual void SetObjName( const SvGlobalName & rClass, const OUString & rObjName ) override; + virtual void PreGetFormat( const TransferableDataHelper& aHelper ) override; + virtual SotClipboardFormatId GetFormatOnly() override; virtual SotClipboardFormatId GetFormat( const TransferableDataHelper& aHelper ) override; }; -- cgit v1.2.3