blob: 216da9e781ac9ba0cee9c0a2296c990fee0b7848 (
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
|
#include "dphierarchy.hxx"
#include "dplevels.hxx"
#include <com/sun/star/container/XNameAccess.hpp>
using ::com::sun::star::container::XNameAccess;
using ::com::sun::star::uno::RuntimeException;
using ::com::sun::star::uno::Reference;
using ::rtl::OUString;
namespace dpsource {
DPHierarchy::DPHierarchy(DPDimension* pDim) :
mpDim(pDim)
{
}
DPHierarchy::~DPHierarchy()
{
}
// XNamed
OUString DPHierarchy::getName() throw (RuntimeException)
{
return maName;
}
void DPHierarchy::setName(const OUString& aName) throw (RuntimeException)
{
maName = aName;
}
Reference<XNameAccess> DPHierarchy::getLevels() throw (RuntimeException)
{
if (!mxLevels.is())
mxLevels.set(new DPLevels(mpDim));
return mxLevels;
}
}
|