defer finding dialog parent until we need it
[LibreOffice.git] / desktop / source / splash / unxsplash.hxx
blob52b148abf0efb5ccecfe4745aed5995b0971c2fa
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 #pragma once
12 #include <stdio.h>
14 #include <com/sun/star/lang/XServiceInfo.hpp>
15 #include <com/sun/star/task/XStatusIndicator.hpp>
16 #include <com/sun/star/lang/XInitialization.hpp>
17 #include <cppuhelper/implbase.hxx>
19 namespace desktop {
21 class UnxSplashScreen : public ::cppu::WeakImplHelper< css::task::XStatusIndicator, css::lang::XInitialization, css::lang::XServiceInfo >
23 private:
24 UnxSplashScreen( const UnxSplashScreen& ) = delete;
25 UnxSplashScreen operator =( const UnxSplashScreen& ) = delete;
27 virtual ~UnxSplashScreen() override;
29 FILE *m_pOutFd;
31 public:
32 explicit UnxSplashScreen();
34 // XStatusIndicator
35 virtual void SAL_CALL start( const OUString& aText, sal_Int32 nRange ) override;
36 virtual void SAL_CALL end() override;
37 virtual void SAL_CALL reset() override;
38 virtual void SAL_CALL setText( const OUString& aText ) override;
39 virtual void SAL_CALL setValue( sal_Int32 nValue ) override;
41 // XInitialize
42 virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any>& aArguments ) override;
44 virtual OUString SAL_CALL getImplementationName() override;
46 virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
48 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */