From 929fbdd7eaa007f5fdbcddd28a9b6b05d792f5e7 Mon Sep 17 00:00:00 2001 From: Ivo Hinkelmann Date: Tue, 19 Dec 2006 10:41:32 +0000 Subject: 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 --- desktop/source/deployment/gui/dp_gui.h | 39 ++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 13 deletions(-) (limited to 'desktop/source/deployment/gui/dp_gui.h') 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 getPackage( SvLBoxEntry * entry ) const; css::uno::Sequence > - getSelectedPackages( bool onlyFirstLevel = false ) const; + getSelectedPackages( bool onlyFirstLevel = false ) const; + void select(css::uno::Reference 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 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 m_xComponentContext; css::uno::Reference m_xPkgMgrFac; css::uno::Reference m_xDesktop; css::uno::Reference 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 m_ftPackages; ::std::auto_ptr m_selectionBox; @@ -247,14 +257,17 @@ struct DialogImpl : ::std::auto_ptr m_helpButton; DECL_STATIC_LINK( DialogImpl, destroyDialog, void * ); + DECL_LINK( startInstallExtensions, DialogImpl *); static ::rtl::Reference 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 get( css::uno::Reference const & xContext, css::uno::Reference 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 ) -- cgit