summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/gui/dp_gui.h
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-12-19 10:41:32 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-12-19 10:41:32 +0000
commit929fbdd7eaa007f5fdbcddd28a9b6b05d792f5e7 (patch)
treef01ae371de3a2e0f08a130762fdf7296f70f6c25 /desktop/source/deployment/gui/dp_gui.h
parent6413eb0829a566fc2383f1f09d0505e32695b563 (diff)
INTEGRATION: CWS jl46 (1.9.120); FILE MERGED
2006/12/05 16:13:12 jl 1.9.120.3: #i69173# removed warnings 2006/12/04 18:03:04 jl 1.9.120.2: RESYNC: (1.9-1.10); FILE MERGED 2006/09/15 13:04:46 jl 1.9.120.1: #i69173# adding gui + extension mode
Diffstat (limited to 'desktop/source/deployment/gui/dp_gui.h')
-rw-r--r--desktop/source/deployment/gui/dp_gui.h39
1 files changed, 26 insertions, 13 deletions
diff --git a/desktop/source/deployment/gui/dp_gui.h b/desktop/source/deployment/gui/dp_gui.h
index f6add8fd7c9c..42960f2f59e8 100644
--- a/desktop/source/deployment/gui/dp_gui.h
+++ b/desktop/source/deployment/gui/dp_gui.h
@@ -4,9 +4,9 @@
*
* $RCSfile: dp_gui.h,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: obo $ $Date: 2006-10-12 14:07:30 $
+ * last change: $Author: ihi $ $Date: 2006-12-19 11:41:32 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -40,7 +40,7 @@
#include "dp_gui_cmdenv.h"
#include "dp_gui.hrc"
#include "rtl/ref.hxx"
-#include "osl/thread.h"
+#include "osl/thread.hxx"
#include "cppuhelper/implbase2.hxx"
#include "vcl/svapp.hxx"
#include "vcl/dialog.hxx"
@@ -149,7 +149,9 @@ struct DialogImpl :
css::uno::Reference<css::deployment::XPackage> getPackage(
SvLBoxEntry * entry ) const;
css::uno::Sequence<css::uno::Reference<css::deployment::XPackage> >
- getSelectedPackages( bool onlyFirstLevel = false ) const;
+ getSelectedPackages( bool onlyFirstLevel = false ) const;
+ void select(css::uno::Reference<css::deployment::XPackage> const & xPackage);
+
};
class SyncPushButton : public PushButton
@@ -200,7 +202,9 @@ struct DialogImpl :
void clickEnableDisable( USHORT id );
void clickExport( USHORT id );
- bool m_allowSharedLayerModification;
+ void installExtensions();
+
+
void updateButtonStates(
css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv =
com::sun::star::uno::Reference<
@@ -208,19 +212,16 @@ struct DialogImpl :
void errbox( ::rtl::OUString const & msg );
+
+ const css::uno::Sequence< ::rtl::OUString > m_arExtensions;
+ oslThread m_installThread;
+ bool m_bAutoInstallFinished;
+ bool m_allowSharedLayerModification;
css::uno::Reference<css::uno::XComponentContext> m_xComponentContext;
css::uno::Reference<css::deployment::XPackageManagerFactory> m_xPkgMgrFac;
css::uno::Reference<css::frame::XDesktop> m_xDesktop;
css::uno::Reference<css::ucb::XContent> m_xTdocRoot;
- Size m_buttonSize;
- Size m_relatedSpace;
- Size m_unrelatedSpace;
- Size m_borderLeftTopSpace;
- Size m_borderRightBottomSpace;
- long m_ftFontHeight;
- long m_descriptionYSpace;
-
const String m_strAddPackages;
const String m_strAddingPackages;
const String m_strRemovingPackages;
@@ -230,6 +231,15 @@ struct DialogImpl :
const String m_strExportPackages;
const String m_strExportingPackages;
+ Size m_buttonSize;
+ Size m_relatedSpace;
+ Size m_unrelatedSpace;
+ Size m_borderLeftTopSpace;
+ Size m_borderRightBottomSpace;
+ long m_ftFontHeight;
+ long m_descriptionYSpace;
+
+
// controls:
::std::auto_ptr<FixedText> m_ftPackages;
::std::auto_ptr<SelectionBoxControl> m_selectionBox;
@@ -247,14 +257,17 @@ struct DialogImpl :
::std::auto_ptr<HelpButton> m_helpButton;
DECL_STATIC_LINK( DialogImpl, destroyDialog, void * );
+ DECL_LINK( startInstallExtensions, DialogImpl *);
static ::rtl::Reference<DialogImpl> s_dialog;
virtual ~DialogImpl();
DialogImpl(
Window * pParent,
+ css::uno::Sequence< ::rtl::OUString > const & arExtensions,
css::uno::Reference< css::uno::XComponentContext > const & xContext );
static ::rtl::Reference<DialogImpl> get(
css::uno::Reference<css::uno::XComponentContext> const & xContext,
css::uno::Reference<css::awt::XWindow> const & xParent = 0,
+ css::uno::Sequence< ::rtl::OUString > const & arExtensions = 0,
::rtl::OUString const & view = ::rtl::OUString() );
// XEventListener
virtual void SAL_CALL disposing( css::lang::EventObject const & evt )