summaryrefslogtreecommitdiff
path: root/inc/dplevel.hxx
blob: a661a532da35196eea79a0d0c65cae1026db807f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef __DPLEVEL_HXX__
#define __DPLEVEL_HXX__

#include <cppuhelper/implbase2.hxx>

#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/sheet/XMembersSupplier.hpp>

namespace com { namespace sun { namespace star {
    namespace container {
        class XNameAccess;
    }
}}}

namespace dpsource {

class DPLevel : public ::cppu::WeakImplHelper2<
                        ::com::sun::star::container::XNamed,
                        ::com::sun::star::sheet::XMembersSupplier >
{
public:
    DPLevel();
    ~DPLevel();

    // XNamed

    ::rtl::OUString SAL_CALL getName() throw (::com::sun::star::uno::RuntimeException);

    void SAL_CALL setName(const ::rtl::OUString& aName) 
        throw (::com::sun::star::uno::RuntimeException);

    // XMembersSupplier

    virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > 
        SAL_CALL getMembers() throw (::com::sun::star::uno::RuntimeException);

private:
    ::rtl::OUString maName;
};

}

#endif