summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-10-18 16:45:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-10-19 17:33:18 +0200
commit3fb1417804a7f6f1e39e94d62f7f9199fd53a9bb (patch)
tree3a5667c7295ff1a41a4c1dca9749202ead35e61e /fpicker
parent4bc377da92e83192facb736d8dadc32891f99e25 (diff)
Drop ModalDialog middleman
Change-Id: I8bc39e1a85045a6e6c15735b440ada8c3abc222b Reviewed-on: https://gerrit.libreoffice.org/81068 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/RemoteFilesDialog.cxx4
-rw-r--r--fpicker/source/office/fpdialogbase.hxx4
-rw-r--r--fpicker/source/office/iodlg.cxx10
-rw-r--r--fpicker/uiconfig/ui/remotefilesdialog.ui1
4 files changed, 10 insertions, 9 deletions
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx
index 94649c6abb93..a2f8ffb63631 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -367,12 +367,12 @@ void RemoteFilesDialog::dispose()
m_pListView_btn.clear();
m_pAddMenu.clear();
- ModalDialog::dispose();
+ Dialog::dispose();
}
void RemoteFilesDialog::Resize()
{
- ModalDialog::Resize();
+ Dialog::Resize();
if( m_pFileView && m_pContainer )
{
diff --git a/fpicker/source/office/fpdialogbase.hxx b/fpicker/source/office/fpdialogbase.hxx
index f845812ff9ce..961ab53d2d6b 100644
--- a/fpicker/source/office/fpdialogbase.hxx
+++ b/fpicker/source/office/fpdialogbase.hxx
@@ -62,11 +62,11 @@ namespace o3tl {
// SvtFileDialog_Base
-class SvtFileDialog_Base : public ModalDialog, public ::svt::IFilePickerController
+class SvtFileDialog_Base : public Dialog, public ::svt::IFilePickerController
{
public:
SvtFileDialog_Base( vcl::Window* pParent, const OUString& rID, const OUString& rUIXMLDescription )
- : ModalDialog( pParent, rID, rUIXMLDescription )
+ : Dialog( pParent, rID, rUIXMLDescription )
{
}
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index ed097017dc5e..15b95020b5ed 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -532,7 +532,7 @@ void SvtFileDialog::dispose()
_pPbPlay.clear();
_pPrevWin.clear();
m_aDisabledControls.clear();
- ModalDialog::dispose();
+ Dialog::dispose();
}
void SvtFileDialog::Init_Impl
@@ -1585,7 +1585,7 @@ bool SvtFileDialog::EventNotify( NotifyEvent& rNEvt )
}
}
}
- return bRet || ModalDialog::EventNotify(rNEvt);
+ return bRet || Dialog::EventNotify(rNEvt);
}
namespace
@@ -1661,7 +1661,7 @@ short SvtFileDialog::Execute()
// start the dialog
_bIsInExecute = true;
- short nResult = ModalDialog::Execute();
+ short nResult = Dialog::Execute();
_bIsInExecute = false;
SAL_WARN_IF( m_pCurrentAsyncAction.is(), "fpicker.office", "SvtFilePicker::Execute: still running an async action!" );
@@ -1691,7 +1691,7 @@ bool SvtFileDialog::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
return false;
// start of the dialog
- return ModalDialog::StartExecuteAsync(rCtx);
+ return Dialog::StartExecuteAsync(rCtx);
}
void SvtFileDialog::onAsyncOperationStarted()
@@ -2269,7 +2269,7 @@ void SvtFileDialog::DataChanged( const DataChangedEvent& _rDCEvt )
if ( DataChangedEventType::SETTINGS == _rDCEvt.GetType() )
implUpdateImages( );
- ModalDialog::DataChanged( _rDCEvt );
+ Dialog::DataChanged( _rDCEvt );
}
diff --git a/fpicker/uiconfig/ui/remotefilesdialog.ui b/fpicker/uiconfig/ui/remotefilesdialog.ui
index e27242c520e9..eb4b9959c2b8 100644
--- a/fpicker/uiconfig/ui/remotefilesdialog.ui
+++ b/fpicker/uiconfig/ui/remotefilesdialog.ui
@@ -44,6 +44,7 @@
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="title" translatable="yes" context="remotefilesdialog|RemoteFilesDialog">Remote Files</property>
+ <property name="modal">True</property>
<property name="type_hint">dialog</property>
<child>
<placeholder/>