diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-10-26 18:31:39 -0700 |
---|---|---|
committer | pranavk <pranavk@collabora.co.uk> | 2017-10-28 17:07:19 +0200 |
commit | fdb56a741a66e152f0f120d00bf62049fe566a79 (patch) | |
tree | 8fca2c834d462d80a02de22c61f2be61107bb17b /sw/source/uibase/uno | |
parent | 79fa071767c7c6b88950b82143fa76df63b172e6 (diff) |
lokdialog: Tunnel dialog title to lokclient as outparam
Change-Id: I1beb5ab3f06debdca7ebf999af7ac879a41ea47e
Reviewed-on: https://gerrit.libreoffice.org/43959
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/uno')
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 818a47ff5a83..cdff7acc2018 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3639,7 +3639,7 @@ void SAL_CALL SwXTextDocument::paintTile( const ::css::uno::Any& Parent, ::sal_I #endif } -void SwXTextDocument::paintDialog(const vcl::DialogID& rDialogID, VirtualDevice& rDevice, int& nWidth, int& nHeight) +void SwXTextDocument::paintDialog(const vcl::DialogID& rDialogID, VirtualDevice& rDevice, OUString& rDialogTitle, int& nWidth, int& nHeight) { SfxViewFrame* pViewFrame = pDocShell->GetView()->GetViewFrame(); SfxSlotPool* pSlotPool = SW_MOD()->GetSlotPool(); @@ -3665,6 +3665,9 @@ void SwXTextDocument::paintDialog(const vcl::DialogID& rDialogID, VirtualDevice& // register the instance so that vcl::Dialog can emit LOK callbacks pDlg->registerDialogRenderable(this, rDialogID); pDlg->paintDialog(rDevice); + + // set outparams + rDialogTitle = pDlg->GetText(); const Size aSize = pDlg->GetOptimalSize(); nWidth = aSize.getWidth(); nHeight = aSize.getHeight(); |