summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/gui/license_dialog.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-02-12 15:17:49 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-02-12 15:17:49 +0000
commit9e6b3b2391684a1ce7e6fac046fa5dc6aafaa033 (patch)
treefd632744177d395baa7bbbda99490e59e3b839db /desktop/source/deployment/gui/license_dialog.cxx
parent61f6572401f57032e4266845d5801a6998f5680d (diff)
INTEGRATION: CWS jl87_SRC680 (1.7.44); FILE MERGED
2008/01/22 15:00:24 jl 1.7.44.1: #i80684# licence dialog will be executed in main thread
Diffstat (limited to 'desktop/source/deployment/gui/license_dialog.cxx')
-rw-r--r--desktop/source/deployment/gui/license_dialog.cxx35
1 files changed, 9 insertions, 26 deletions
diff --git a/desktop/source/deployment/gui/license_dialog.cxx b/desktop/source/deployment/gui/license_dialog.cxx
index b09e7eab299a..bb6e86e9d146 100644
--- a/desktop/source/deployment/gui/license_dialog.cxx
+++ b/desktop/source/deployment/gui/license_dialog.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: license_dialog.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: ihi $ $Date: 2007-11-22 15:22:46 $
+ * last change: $Author: vg $ $Date: 2008-02-12 16:17:49 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -50,17 +50,12 @@
#include "svtools/svmedit.hxx"
#include "svtools/lstner.hxx"
#include "svtools/xtextedt.hxx"
-//#include <vcl/mnemonic.hxx>
-//#include <vcl/tabpage.hxx>
-//#include <vcl/fixed.hxx>
-//#include <vcl/button.hxx>
-//#include <vcl/dialog.hxx>
#include <vcl/scrbar.hxx>
-//#include <svtools/wizardmachine.hxx>
+#include "vcl/threadex.hxx"
-//#include "boost/bind.hpp"
+#include "boost/bind.hpp"
#include "dp_gui_shared.hxx"
#include "license_dialog.hxx"
#include "dp_gui.hrc"
@@ -322,29 +317,17 @@ void LicenseDialog::setTitle( OUString const & ) throw (RuntimeException)
//______________________________________________________________________________
sal_Int16 LicenseDialog::execute() throw (RuntimeException)
{
- //if (! dp_gui::DialogImpl::s_dialog.is())
- //{
- //
- //}
+ return vcl::solarthread::syncExecute(
+ boost::bind( &LicenseDialog::solar_execute, this));
+}
- const ::vos::OGuard guard( Application::GetSolarMutex() );
+sal_Int16 LicenseDialog::solar_execute()
+{
std::auto_ptr<LicenseDialogImpl> dlg(new LicenseDialogImpl(
VCLUnoHelper::GetWindow(m_parent), m_xComponentContext, m_sLicenseText));
- //if (m_initialTitle.getLength() > 0) {
-// dialog->SetText( m_initialTitle );
-// m_initialTitle = OUString();
-// }
-
return dlg->Execute();
}
-// XJobExecutor
-//______________________________________________________________________________
-//void LicenseDialog::trigger( OUString const & event ) throw (RuntimeException)
-//{
-// execute();
-//}
-
} // namespace dp_gui