diff options
Diffstat (limited to 'package/source/zippackage/ZipPackageEntry.cxx')
-rw-r--r-- | package/source/zippackage/ZipPackageEntry.cxx | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/package/source/zippackage/ZipPackageEntry.cxx b/package/source/zippackage/ZipPackageEntry.cxx new file mode 100644 index 000000000000..66df06e76944 --- /dev/null +++ b/package/source/zippackage/ZipPackageEntry.cxx @@ -0,0 +1,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; +} |