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: DataSeriesTree.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 CHART_DATASERIESTREE_HXX
31 #define CHART_DATASERIESTREE_HXX
33 #include <cppuhelper/implbase2.hxx>
35 #include "ServiceMacros.hxx"
36 #include <com/sun/star/uno/XComponentContext.hpp>
37 #include <com/sun/star/lang/XServiceInfo.hpp>
38 #include <com/sun/star/chart2/XDataSeriesTreeParent.hpp>
45 class DataSeriesTree
: public
46 ::cppu::WeakImplHelper2
<
47 ::com::sun::star::lang::XServiceInfo
,
48 ::com::sun::star::chart2::XDataSeriesTreeParent
>
51 DataSeriesTree( const ::com::sun::star::uno::Reference
<
52 ::com::sun::star::uno::XComponentContext
> & xContext
);
53 virtual ~DataSeriesTree();
55 /// declare XServiceInfo methods
56 APPHELPER_XSERVICEINFO_DECL()
57 /// establish methods for factory instatiation
58 APPHELPER_SERVICE_FACTORY_HELPER( DataSeriesTree
)
62 // ____ XDataSeriesTreeParent ____
63 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::XDataSeriesTreeNode
> >
64 SAL_CALL
getChildren()
65 throw (::com::sun::star::uno::RuntimeException
);
66 virtual void SAL_CALL
setChildren(
67 const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::XDataSeriesTreeNode
> >& aNewChildren
)
68 throw (::com::sun::star::uno::RuntimeException
);
69 virtual void SAL_CALL
addChild(
70 const ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::XDataSeriesTreeNode
>& aNode
)
71 throw (::com::sun::star::lang::IllegalArgumentException
,
72 ::com::sun::star::uno::RuntimeException
);
73 virtual void SAL_CALL
removeChild(
74 const ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::XDataSeriesTreeNode
>& aNode
)
75 throw (::com::sun::star::container::NoSuchElementException
,
76 ::com::sun::star::uno::RuntimeException
);
78 // ____ XDataSeriesTreeNode ____
81 typedef ::std::vector
< ::com::sun::star::uno::Reference
<
82 ::com::sun::star::chart2::XDataSeriesTreeNode
> >
85 m_tChildType m_aChildren
;
87 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>
93 // CHART_DATASERIESTREE_HXX