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: InternalData.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef CHART2_INTERNALDATA_HXX
31 #define CHART2_INTERNALDATA_HXX
33 #include <com/sun/star/embed/XEmbeddedClient.hpp>
34 #include <com/sun/star/embed/XEmbeddedObject.hpp>
35 #include <com/sun/star/util/XCloseListener.hpp>
36 #include <cppuhelper/implbase2.hxx>
38 namespace com
{ namespace sun
{ namespace star
{
40 class XComponentContext
;
44 class XEmbeddedObject
;
57 public ::cppu::WeakImplHelper2
<
58 ::com::sun::star::embed::XEmbeddedClient
,
59 ::com::sun::star::util::XCloseListener
>
62 explicit InternalData(
63 const ::com::sun::star::uno::Reference
<
64 ::com::sun::star::uno::XComponentContext
> & xContext
,
65 const ::com::sun::star::uno::Reference
<
66 ::com::sun::star::embed::XStorage
> & xParentStorage
);
67 virtual ~InternalData();
69 ::com::sun::star::uno::Reference
<
70 ::com::sun::star::chart2::data::XDataProvider
> createEmbeddedObject() throw();
72 void removeEmbeddedObject() throw();
74 ::com::sun::star::uno::Reference
<
75 ::com::sun::star::embed::XEmbeddedObject
> getEmbeddedObject() const throw();
77 // ____ XEmbeddedClient ____
78 virtual void SAL_CALL
saveObject()
79 throw (::com::sun::star::embed::ObjectSaveVetoException
,
80 ::com::sun::star::uno::Exception
,
81 ::com::sun::star::uno::RuntimeException
);
82 virtual void SAL_CALL
visibilityChanged( sal_Bool bVisible
)
83 throw (::com::sun::star::embed::WrongStateException
,
84 ::com::sun::star::uno::RuntimeException
);
86 // ____ XComponentSupplier ____
87 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::util::XCloseable
> SAL_CALL
getComponent()
88 throw (::com::sun::star::uno::RuntimeException
);
90 // ____ XCloseListener ____
91 virtual void SAL_CALL
queryClosing(
92 const ::com::sun::star::lang::EventObject
& Source
,
93 ::sal_Bool GetsOwnership
)
94 throw (::com::sun::star::util::CloseVetoException
,
95 ::com::sun::star::uno::RuntimeException
);
96 virtual void SAL_CALL
notifyClosing(
97 const ::com::sun::star::lang::EventObject
& Source
)
98 throw (::com::sun::star::uno::RuntimeException
);
100 // ____ XEventListener ____
101 virtual void SAL_CALL
disposing(
102 const ::com::sun::star::lang::EventObject
& Source
)
103 throw (::com::sun::star::uno::RuntimeException
);
106 const ::rtl::OUString m_aDataStorageName
;
108 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>
111 ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XEmbeddedObject
>
114 ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XStorage
>
120 // CHART2_INTERNALDATA_HXX