fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / controller / main / ChartFrameloader.hxx
blob360f97e01b9773db9a1db2cb941f7fb879176655
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_CHARTFRAMELOADER_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_CHARTFRAMELOADER_HXX
22 #include <osl/conditn.hxx>
23 #include <com/sun/star/frame/XSynchronousFrameLoader.hpp>
24 #include <com/sun/star/lang/XServiceInfo.hpp>
25 #include <com/sun/star/uno/XComponentContext.hpp>
26 #include <cppuhelper/implbase2.hxx>
28 namespace chart
31 class ChartFrameLoader : public ::cppu::WeakImplHelper2<
32 ::com::sun::star::frame::XSynchronousFrameLoader
33 , ::com::sun::star::lang::XServiceInfo
34 //comprehends XComponent (required interface)
35 // ,public ::com::sun::star::uno::XWeak // implemented by WeakImplHelper(optional interface)
36 // ,public ::com::sun::star::uno::XInterface // implemented by WeakImplHelper(optional interface)
37 // ,public ::com::sun::star::lang::XTypeProvider // implemented by WeakImplHelper
40 private:
41 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext> m_xCC;
42 bool m_bCancelRequired;
43 ::osl::Condition m_oCancelFinished;
45 private:
46 bool impl_checkCancel();
47 //no default constructor
48 ChartFrameLoader(){}
49 public:
50 ChartFrameLoader(::com::sun::star::uno::Reference<
51 ::com::sun::star::uno::XComponentContext > const & xContext);
52 virtual ~ChartFrameLoader();
54 // ::com::sun::star::lang::XServiceInfo
55 virtual OUString SAL_CALL getImplementationName()
56 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
57 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
58 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
59 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
60 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
62 static OUString getImplementationName_Static();
63 static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
64 static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
65 throw(css::uno::Exception)
67 return (::cppu::OWeakObject *)new ChartFrameLoader( xContext );
70 // ::com::sun::star::frame::XFrameLoader
72 virtual sal_Bool SAL_CALL
73 load( const ::com::sun::star::uno::Sequence<
74 ::com::sun::star::beans::PropertyValue >& rMediaDescriptor
75 ,const ::com::sun::star::uno::Reference<
76 ::com::sun::star::frame::XFrame >& xFrame )
77 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
79 virtual void SAL_CALL
80 cancel() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
83 } //namespace chart
85 #endif
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */