LibreOffice Module desktop (master)  1
unxsplash.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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 
10 #ifndef INCLUDED_DESKTOP_SOURCE_SPLASH_UNXSPLASH_HXX
11 #define INCLUDED_DESKTOP_SOURCE_SPLASH_UNXSPLASH_HXX
12 
13 #include <stdio.h>
14 
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>
25 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
26 #include <osl/mutex.hxx>
27 #include <rtl/bootstrap.hxx>
28 
29 namespace desktop {
30 
31 class UnxSplashScreen : public ::cppu::WeakImplHelper< css::task::XStatusIndicator, css::lang::XInitialization, css::lang::XServiceInfo >
32 {
33 private:
34  UnxSplashScreen( const UnxSplashScreen& ) = delete;
35  UnxSplashScreen operator =( const UnxSplashScreen& ) = delete;
36 
37  virtual ~UnxSplashScreen() override;
38 
40 
41  static osl::Mutex m_aMutex;
42 
43  FILE *m_pOutFd;
44 
45 public:
46  explicit UnxSplashScreen();
47 
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;
54 
55  // XInitialize
56  virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any>& aArguments ) override;
57 
58  virtual OUString SAL_CALL getImplementationName() override;
59 
60  virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
61 
62  virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
63 };
64 
65 }
66 
68 css::uno::Reference< css::uno::XInterface > UnxSplash_createInstance(const css::uno::Reference< css::uno::XComponentContext > & xCtx );
70 css::uno::Sequence< OUString > UnxSplash_getSupportedServiceNames() throw ();
71 
72 #endif // INCLUDED_DESKTOP_SOURCE_SPLASH_UNXSPLASH_HXX
73 
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static osl::Mutex m_aMutex
Definition: unxsplash.hxx:41
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unxsplash.cxx:116
virtual void SAL_CALL setText(const OUString &aText) override
Definition: unxsplash.cxx:72
virtual void SAL_CALL setValue(sal_Int32 nValue) override
Definition: unxsplash.cxx:77
Definition: app.cxx:166
OUString UnxSplash_getImplementationName()
Definition: unxsplash.cxx:141
virtual void SAL_CALL end() override
Definition: unxsplash.cxx:52
static UnxSplashScreen * m_pINSTANCE
Definition: unxsplash.hxx:39
UnxSplashScreen operator=(const UnxSplashScreen &)=delete
virtual ~UnxSplashScreen() override
Definition: unxsplash.cxx:38
unsigned char sal_Bool
virtual void SAL_CALL start(const OUString &aText, sal_Int32 nRange) override
Definition: unxsplash.cxx:48
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
Definition: unxsplash.cxx:88
virtual sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
Definition: unxsplash.cxx:111
css::uno::Reference< css::uno::XInterface > UnxSplash_createInstance(const css::uno::Reference< css::uno::XComponentContext > &xCtx)
virtual void SAL_CALL reset() override
Definition: unxsplash.cxx:62
css::uno::Sequence< OUString > UnxSplash_getSupportedServiceNames()
Definition: unxsplash.cxx:146
virtual OUString SAL_CALL getImplementationName() override
Definition: unxsplash.cxx:106