1*0a1e2f0eSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*0a1e2f0eSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*0a1e2f0eSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*0a1e2f0eSAndrew Rist * distributed with this work for additional information 6*0a1e2f0eSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*0a1e2f0eSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*0a1e2f0eSAndrew Rist * "License"); you may not use this file except in compliance 9*0a1e2f0eSAndrew Rist * with the License. You may obtain a copy of the License at 10*0a1e2f0eSAndrew Rist * 11*0a1e2f0eSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*0a1e2f0eSAndrew Rist * 13*0a1e2f0eSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*0a1e2f0eSAndrew Rist * software distributed under the License is distributed on an 15*0a1e2f0eSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*0a1e2f0eSAndrew Rist * KIND, either express or implied. See the License for the 17*0a1e2f0eSAndrew Rist * specific language governing permissions and limitations 18*0a1e2f0eSAndrew Rist * under the License. 19*0a1e2f0eSAndrew Rist * 20*0a1e2f0eSAndrew Rist *************************************************************/ 21*0a1e2f0eSAndrew Rist 22*0a1e2f0eSAndrew Rist 23cdf0e10cSrcweir #ifndef INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_GUI_LICENSE_DIALOG_HXX 24cdf0e10cSrcweir #define INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_GUI_LICENSE_DIALOG_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include "dp_gui.h" 27cdf0e10cSrcweir #include "cppuhelper/implbase1.hxx" 28cdf0e10cSrcweir #include "com/sun/star/lang/XServiceInfo.hpp" 29cdf0e10cSrcweir #include "com/sun/star/task/XJobExecutor.hpp" 30cdf0e10cSrcweir #include "com/sun/star/ui/dialogs/XExecutableDialog.hpp" 31cdf0e10cSrcweir 32cdf0e10cSrcweir #include "boost/bind.hpp" 33cdf0e10cSrcweir 34cdf0e10cSrcweir using namespace ::dp_misc; 35cdf0e10cSrcweir using namespace ::com::sun::star; 36cdf0e10cSrcweir using namespace ::com::sun::star::uno; 37cdf0e10cSrcweir using ::rtl::OUString; 38cdf0e10cSrcweir 39cdf0e10cSrcweir namespace dp_gui { 40cdf0e10cSrcweir 41cdf0e10cSrcweir class LicenseDialog 42cdf0e10cSrcweir : public ::cppu::WeakImplHelper1<ui::dialogs::XExecutableDialog> 43cdf0e10cSrcweir // task::XJobExecutor> 44cdf0e10cSrcweir { 45cdf0e10cSrcweir Reference<XComponentContext> const m_xComponentContext; 46cdf0e10cSrcweir Reference<awt::XWindow> /* const */ m_parent; 47cdf0e10cSrcweir OUString m_sExtensionName; 48cdf0e10cSrcweir OUString /* const */ m_sLicenseText; 49cdf0e10cSrcweir OUString m_initialTitle; 50cdf0e10cSrcweir 51cdf0e10cSrcweir sal_Int16 solar_execute(); 52cdf0e10cSrcweir 53cdf0e10cSrcweir public: 54cdf0e10cSrcweir LicenseDialog( Sequence<Any> const & args, 55cdf0e10cSrcweir Reference<XComponentContext> const & xComponentContext ); 56cdf0e10cSrcweir 57cdf0e10cSrcweir // XExecutableDialog 58cdf0e10cSrcweir virtual void SAL_CALL setTitle( OUString const & title ) 59cdf0e10cSrcweir throw (RuntimeException); 60cdf0e10cSrcweir virtual sal_Int16 SAL_CALL execute() throw (RuntimeException); 61cdf0e10cSrcweir 62cdf0e10cSrcweir //// XJobExecutor 63cdf0e10cSrcweir //virtual void SAL_CALL trigger( OUString const & event ) 64cdf0e10cSrcweir // throw (RuntimeException); 65cdf0e10cSrcweir }; 66cdf0e10cSrcweir } 67cdf0e10cSrcweir #endif 68