1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef INCLUDED_DESKTOP_SOURCE_SPLASH_UNXSPLASH_HXX
11 #define INCLUDED_DESKTOP_SOURCE_SPLASH_UNXSPLASH_HXX
15 #include <com/sun/star/lang/XServiceInfo.hpp>
16 #include <com/sun/star/uno/Exception.hpp>
17 #include <com/sun/star/uno/Reference.h>
18 #include <com/sun/star/lang/XComponent.hpp>
19 #include <com/sun/star/uno/XComponentContext.hpp>
20 #include <com/sun/star/registry/XRegistryKey.hpp>
21 #include <com/sun/star/task/XStatusIndicator.hpp>
22 #include <com/sun/star/lang/XInitialization.hpp>
23 #include <cppuhelper/implbase.hxx>
24 #include <cppuhelper/interfacecontainer.h>
25 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
26 #include <osl/mutex.hxx>
27 #include <rtl/bootstrap.hxx>
31 class UnxSplashScreen
: public ::cppu::WeakImplHelper
< css::task::XStatusIndicator
, css::lang::XInitialization
, css::lang::XServiceInfo
>
34 UnxSplashScreen( const UnxSplashScreen
& ) = delete;
35 UnxSplashScreen
operator =( const UnxSplashScreen
& ) = delete;
37 virtual ~UnxSplashScreen() override
;
39 static UnxSplashScreen
*m_pINSTANCE
;
41 static osl::Mutex m_aMutex
;
46 explicit UnxSplashScreen();
49 virtual void SAL_CALL
start( const OUString
& aText
, sal_Int32 nRange
) override
;
50 virtual void SAL_CALL
end() override
;
51 virtual void SAL_CALL
reset() override
;
52 virtual void SAL_CALL
setText( const OUString
& aText
) override
;
53 virtual void SAL_CALL
setValue( sal_Int32 nValue
) override
;
56 virtual void SAL_CALL
initialize( const css::uno::Sequence
< css::uno::Any
>& aArguments
) override
;
58 virtual OUString SAL_CALL
getImplementationName() override
;
60 virtual sal_Bool SAL_CALL
supportsService(OUString
const & ServiceName
) override
;
62 virtual css::uno::Sequence
<OUString
> SAL_CALL
getSupportedServiceNames() override
;
67 /// @throws css::uno::Exception
68 css::uno::Reference
< css::uno::XInterface
> UnxSplash_createInstance(const css::uno::Reference
< css::uno::XComponentContext
> & xCtx
);
69 OUString
UnxSplash_getImplementationName();
70 css::uno::Sequence
< OUString
> UnxSplash_getSupportedServiceNames() throw ();
72 #endif // INCLUDED_DESKTOP_SOURCE_SPLASH_UNXSPLASH_HXX
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */