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/Reference.h>
17 #include <com/sun/star/uno/XComponentContext.hpp>
18 #include <com/sun/star/task/XStatusIndicator.hpp>
19 #include <com/sun/star/lang/XInitialization.hpp>
20 #include <cppuhelper/implbase.hxx>
21 #include <osl/mutex.hxx>
22 
23 namespace desktop {
24 
25 class UnxSplashScreen : public ::cppu::WeakImplHelper< css::task::XStatusIndicator, css::lang::XInitialization, css::lang::XServiceInfo >
26 {
27 private:
28  UnxSplashScreen( const UnxSplashScreen& ) = delete;
29  UnxSplashScreen operator =( const UnxSplashScreen& ) = delete;
30 
31  virtual ~UnxSplashScreen() override;
32 
34 
35  static osl::Mutex m_aMutex;
36 
37  FILE *m_pOutFd;
38 
39 public:
40  explicit UnxSplashScreen();
41 
42  // XStatusIndicator
43  virtual void SAL_CALL start( const OUString& aText, sal_Int32 nRange ) override;
44  virtual void SAL_CALL end() override;
45  virtual void SAL_CALL reset() override;
46  virtual void SAL_CALL setText( const OUString& aText ) override;
47  virtual void SAL_CALL setValue( sal_Int32 nValue ) override;
48 
49  // XInitialize
50  virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any>& aArguments ) override;
51 
52  virtual OUString SAL_CALL getImplementationName() override;
53 
54  virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
55 
56  virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
57 };
58 
59 }
60 
62 css::uno::Reference< css::uno::XInterface > UnxSplash_createInstance(const css::uno::Reference< css::uno::XComponentContext > & xCtx );
64 css::uno::Sequence< OUString > UnxSplash_getSupportedServiceNames() throw ();
65 
66 #endif // INCLUDED_DESKTOP_SOURCE_SPLASH_UNXSPLASH_HXX
67 
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static osl::Mutex m_aMutex
Definition: unxsplash.hxx:35
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unxsplash.cxx:113
virtual void SAL_CALL setText(const OUString &aText) override
Definition: unxsplash.cxx:69
virtual void SAL_CALL setValue(sal_Int32 nValue) override
Definition: unxsplash.cxx:74
Definition: app.cxx:161
OUString UnxSplash_getImplementationName()
Definition: unxsplash.cxx:138
virtual void SAL_CALL end() override
Definition: unxsplash.cxx:49
static UnxSplashScreen * m_pINSTANCE
Definition: unxsplash.hxx:33
UnxSplashScreen operator=(const UnxSplashScreen &)=delete
virtual ~UnxSplashScreen() override
Definition: unxsplash.cxx:35
unsigned char sal_Bool
virtual void SAL_CALL start(const OUString &aText, sal_Int32 nRange) override
Definition: unxsplash.cxx:45
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
Definition: unxsplash.cxx:85
virtual sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
Definition: unxsplash.cxx:108
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:59
css::uno::Sequence< OUString > UnxSplash_getSupportedServiceNames()
Definition: unxsplash.cxx:143
virtual OUString SAL_CALL getImplementationName() override
Definition: unxsplash.cxx:103