1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #if ! defined INCLUDED_DP_GUI_H 29 #define INCLUDED_DP_GUI_H 30 31 #include "dp_gui_updatedata.hxx" 32 #include "dp_misc.h" 33 #include "dp_gui.hrc" 34 #include "rtl/ref.hxx" 35 #include "rtl/instance.hxx" 36 #include "osl/thread.hxx" 37 #include "cppuhelper/implbase2.hxx" 38 #include "vcl/svapp.hxx" 39 #include "vcl/dialog.hxx" 40 #include "vcl/button.hxx" 41 #include "vcl/fixed.hxx" 42 #include "salhelper/simplereferenceobject.hxx" 43 #include "svtools/svtabbx.hxx" 44 #include "svtools/headbar.hxx" 45 #include "com/sun/star/ucb/XContentEventListener.hpp" 46 #include "osl/mutex.hxx" 47 #include <list> 48 #include <memory> 49 #include <queue> 50 51 namespace com { namespace sun { namespace star { 52 namespace container { 53 class XNameAccess; 54 } 55 namespace frame { 56 class XDesktop; 57 } 58 namespace awt { 59 class XWindow; 60 } 61 namespace uno { 62 class XComponentContext; 63 } 64 namespace deployment { 65 class XPackageManagerFactory; 66 } 67 } } } 68 69 namespace svt { 70 class FixedHyperlink; 71 } 72 73 namespace dp_gui { 74 75 enum PackageState { REGISTERED, NOT_REGISTERED, AMBIGUOUS, NOT_AVAILABLE }; 76 77 //============================================================================== 78 79 class SelectedPackage: public salhelper::SimpleReferenceObject { 80 public: 81 SelectedPackage() {} 82 SelectedPackage( const ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage> &xPackage) 83 : m_xPackage( xPackage ) 84 {} 85 86 virtual ~SelectedPackage(); 87 ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage> getPackage() const { return m_xPackage; } 88 89 private: 90 SelectedPackage(SelectedPackage &); // not defined 91 void operator =(SelectedPackage &); // not defined 92 93 ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage> m_xPackage; 94 }; 95 96 } // namespace dp_gui 97 98 #endif 99