1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: TaskPanelFactory.hxx,v $
13 * This file is part of OpenOffice.org.
15 * OpenOffice.org is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 3
17 * only, as published by the Free Software Foundation.
19 * OpenOffice.org is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Lesser General Public License version 3 for more details
23 * (a copy is included in the LICENSE file that accompanied this code).
25 * You should have received a copy of the GNU Lesser General Public License
26 * version 3 along with OpenOffice.org. If not, see
27 * <http://www.openoffice.org/license.html>
28 * for a copy of the LGPLv3 License.
30 ************************************************************************/
32 #ifndef SD_FRAMEWORK_TASK_PANEL_FACTORY_HXX
33 #define SD_FRAMEWORK_TASK_PANEL_FACTORY_HXX
35 #include <com/sun/star/drawing/framework/XResourceFactory.hpp>
36 #include <com/sun/star/lang/XInitialization.hpp>
37 #include <com/sun/star/uno/XComponentContext.hpp>
38 #include <osl/mutex.hxx>
39 #include <cppuhelper/basemutex.hxx>
40 #include <cppuhelper/compbase2.hxx>
42 #include <boost/scoped_ptr.hpp>
44 namespace css
= ::com::sun::star
;
48 typedef ::cppu::WeakComponentImplHelper2
<
49 css::lang::XInitialization
,
50 css::drawing::framework::XResourceFactory
51 > TaskPanelFactoryInterfaceBase
;
53 } // end of anonymous namespace.
56 namespace sd
{ class ViewShellBase
; }
58 namespace sd
{ namespace framework
{
60 /** This class creates panels for the task pane.
62 class TaskPanelFactory
63 : private ::cppu::BaseMutex
,
64 public TaskPanelFactoryInterfaceBase
68 const css::uno::Reference
<css::uno::XComponentContext
>& rxContext
);
69 virtual ~TaskPanelFactory (void);
71 virtual void SAL_CALL
disposing (void);
76 virtual void SAL_CALL
initialize(
77 const css::uno::Sequence
<css::uno::Any
>& aArguments
)
78 throw (css::uno::Exception
, css::uno::RuntimeException
);
83 virtual css::uno::Reference
<css::drawing::framework::XResource
>
84 SAL_CALL
createResource (
85 const css::uno::Reference
<
86 css::drawing::framework::XResourceId
>& rxResourcesId
)
87 throw (css::uno::RuntimeException
);
89 virtual void SAL_CALL
releaseResource (
90 const css::uno::Reference
<
91 css::drawing::framework::XResource
>& rxResource
)
92 throw (css::uno::RuntimeException
);
95 ViewShellBase
* mpViewShellBase
;
97 void ThrowIfDisposed (void) const throw (css::lang::DisposedException
);
100 } } // end of namespace sd::framework