bump product version to 4.1.6.2
[LibreOffice.git] / desktop / unx / splash / unxsplash.hxx
blobecf78a6728cc9f52e9d11c344be58189ddd931d7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9 #include <stdio.h>
11 #include <com/sun/star/lang/XServiceInfo.hpp>
12 #include <com/sun/star/uno/Exception.hpp>
13 #include <com/sun/star/uno/Reference.h>
14 #include <com/sun/star/lang/XComponent.hpp>
15 #include <com/sun/star/uno/XComponentContext.hpp>
16 #include <com/sun/star/task/XStatusIndicator.hpp>
17 #include <com/sun/star/lang/XInitialization.hpp>
18 #include <cppuhelper/implbase2.hxx>
19 #include <cppuhelper/interfacecontainer.h>
20 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
21 #include <osl/mutex.hxx>
22 #include <rtl/bootstrap.hxx>
24 namespace desktop {
26 class UnxSplashScreen : public ::cppu::WeakImplHelper2< css::task::XStatusIndicator, css::lang::XInitialization >
28 private:
29 // don't allow anybody but ourselves to create instances of this class
30 UnxSplashScreen( const UnxSplashScreen& );
31 UnxSplashScreen( void );
32 UnxSplashScreen operator =( const UnxSplashScreen& );
34 virtual ~UnxSplashScreen();
36 static UnxSplashScreen *m_pINSTANCE;
38 static osl::Mutex m_aMutex;
39 css::uno::Reference< css::uno::XComponentContext > m_xCtx;
41 FILE *m_pOutFd;
43 public:
44 UnxSplashScreen( const css::uno::Reference< css::uno::XComponentContext >& xCtx );
46 // XStatusIndicator
47 virtual void SAL_CALL start( const OUString& aText, sal_Int32 nRange ) throw ( css::uno::RuntimeException );
48 virtual void SAL_CALL end() throw ( css::uno::RuntimeException );
49 virtual void SAL_CALL reset() throw ( css::uno::RuntimeException );
50 virtual void SAL_CALL setText( const OUString& aText ) throw ( css::uno::RuntimeException );
51 virtual void SAL_CALL setValue( sal_Int32 nValue ) throw ( css::uno::RuntimeException );
53 // XInitialize
54 virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any>& aArguments ) throw ( css::uno::RuntimeException );
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */