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