Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / desktop / source / splash / unxsplash.hxx
blobd4ca29fd1be46a955ae662d8f337805406944b94
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 */
10 #ifndef INCLUDED_DESKTOP_SOURCE_SPLASH_UNXSPLASH_HXX
11 #define INCLUDED_DESKTOP_SOURCE_SPLASH_UNXSPLASH_HXX
13 #include <stdio.h>
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>
29 namespace desktop {
31 class UnxSplashScreen : public ::cppu::WeakImplHelper< css::task::XStatusIndicator, css::lang::XInitialization, css::lang::XServiceInfo >
33 private:
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;
43 FILE *m_pOutFd;
45 public:
46 explicit UnxSplashScreen();
48 // XStatusIndicator
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;
55 // XInitialize
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: */