summaryrefslogtreecommitdiff
path: root/package/source/zippackage/ZipPackageEntry.cxx
blob: 66df06e76944b7677add0b1afb775223461c3b83 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65

#ifndef _ZIP_PACKAGE_ENTRY_HXX
#include "ZipPackageEntry.hxx"
#endif

using namespace com::sun::star;
ZipPackageEntry::ZipPackageEntry (void)
{
}

ZipPackageEntry::~ZipPackageEntry( void )
{
}

uno::Any SAL_CALL ZipPackageEntry::queryInterface( const uno::Type& rType )
    throw(uno::RuntimeException)
{
    // Ask for my own supported interfaces ...
    uno::Any aReturn    ( ::cppu::queryInterface    (   rType                                       ,
                                                static_cast< container::XNamed*     > ( this )  ,
                                                static_cast< container::XChild*     > ( this )  ) );

    // If searched interface supported by this class ...
    if ( aReturn.hasValue () == sal_True )
    {
        // ... return this information.
        return aReturn ;
    }
    else
    {
        // Else; ... ask baseclass for interfaces!
        return OWeakObject::queryInterface ( rType ) ;
    }
}
void SAL_CALL ZipPackageEntry::acquire(  )
    throw()
{
    OWeakObject::acquire();
}
void SAL_CALL ZipPackageEntry::release(  )
    throw()
{
    OWeakObject::release();
}
    // XChild
::rtl::OUString SAL_CALL ZipPackageEntry::getName(  )
    throw(uno::RuntimeException)
{
    return aEntry.sName;
}
void SAL_CALL ZipPackageEntry::setName( const ::rtl::OUString& aName )
    throw(uno::RuntimeException)
{
    aEntry.sName = aName;
}
uno::Reference< uno::XInterface > SAL_CALL ZipPackageEntry::getParent(  )
        throw(uno::RuntimeException)
{
    return xParent;
}
void SAL_CALL ZipPackageEntry::setParent( const uno::Reference< uno::XInterface >& Parent )
        throw(lang::NoSupportException, uno::RuntimeException)
{
    xParent = Parent;
}