Bump for 3.6-28
[LibreOffice.git] / chart2 / source / controller / main / ChartFrameloader.hxx
blob3cda73f75135b5303a6a85e673350ba26bb508b7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef _CHARTFRAMELOADER_HXX
29 #define _CHARTFRAMELOADER_HXX
31 #include "ServiceMacros.hxx"
32 #include <osl/conditn.hxx>
33 #include <com/sun/star/frame/XSynchronousFrameLoader.hpp>
34 #include <com/sun/star/lang/XServiceInfo.hpp>
35 #include <com/sun/star/uno/XComponentContext.hpp>
36 #include <cppuhelper/implbase2.hxx>
38 //.............................................................................
39 namespace chart
41 //.............................................................................
43 class ChartFrameLoader : public ::cppu::WeakImplHelper2<
44 ::com::sun::star::frame::XSynchronousFrameLoader
45 , ::com::sun::star::lang::XServiceInfo
46 //comprehends XComponent (required interface)
47 // ,public ::com::sun::star::uno::XWeak // implemented by WeakImplHelper(optional interface)
48 // ,public ::com::sun::star::uno::XInterface // implemented by WeakImplHelper(optional interface)
49 // ,public ::com::sun::star::lang::XTypeProvider // implemented by WeakImplHelper
52 private:
53 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext> m_xCC;
54 sal_Bool m_bCancelRequired;
55 ::osl::Condition m_oCancelFinished;
57 private:
58 sal_Bool impl_checkCancel();
59 //no default constructor
60 ChartFrameLoader(){}
61 public:
62 ChartFrameLoader(::com::sun::star::uno::Reference<
63 ::com::sun::star::uno::XComponentContext > const & xContext);
64 virtual ~ChartFrameLoader();
66 //-----------------------------------------------------------------
67 // ::com::sun::star::lang::XServiceInfo
68 //-----------------------------------------------------------------
70 APPHELPER_XSERVICEINFO_DECL()
71 APPHELPER_SERVICE_FACTORY_HELPER(ChartFrameLoader)
73 //-----------------------------------------------------------------
74 // ::com::sun::star::frame::XFrameLoader
75 //-----------------------------------------------------------------
77 virtual sal_Bool SAL_CALL
78 load( const ::com::sun::star::uno::Sequence<
79 ::com::sun::star::beans::PropertyValue >& rMediaDescriptor
80 ,const ::com::sun::star::uno::Reference<
81 ::com::sun::star::frame::XFrame >& xFrame )
82 throw (::com::sun::star::uno::RuntimeException);
84 virtual void SAL_CALL
85 cancel() throw (::com::sun::star::uno::RuntimeException);
88 //.............................................................................
89 } //namespace chart
90 //.............................................................................
92 #endif
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */