diff options
author | David Tardon <dtardon@redhat.com> | 2014-01-15 15:14:04 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-01-15 21:27:47 +0100 |
commit | 5b2cca80eeb2c8ee210820cc8ed95e5d69214807 (patch) | |
tree | 8dc9d44892ccf9ef3aa2896857d0858b9a835852 /package/source | |
parent | e9a036aca1062fd5512b8dbd93ef7172831b3bc4 (diff) |
impl. enumeration for ZipPackage
Change-Id: I800d22d8ec99e943b59467cf64b96aaa1f797953
Diffstat (limited to 'package/source')
-rw-r--r-- | package/source/zippackage/ZipPackage.cxx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx index f20b1f07414c..77b7862c0ecd 100644 --- a/package/source/zippackage/ZipPackage.cxx +++ b/package/source/zippackage/ZipPackage.cxx @@ -66,6 +66,7 @@ #include <osl/time.h> #include "com/sun/star/io/XAsyncOutputMonitor.hpp" +#include <cassert> #include <cstring> #include <memory> #include <vector> @@ -777,6 +778,30 @@ void SAL_CALL ZipPackage::initialize( const uno::Sequence< Any >& aArguments ) } } +::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL ZipPackage::createEnumeration() + throw( RuntimeException ) +{ + assert(m_pRootFolder); + + return m_pRootFolder->createEnumeration(); +} + +::com::sun::star::uno::Type ZipPackage::getElementType() + throw( RuntimeException ) +{ + assert(m_pRootFolder); + + return m_pRootFolder->getElementType(); +} + +sal_Bool ZipPackage::hasElements() + throw( RuntimeException ) +{ + assert(m_pRootFolder); + + return m_pRootFolder->hasElements(); +} + Any SAL_CALL ZipPackage::getByHierarchicalName( const OUString& aName ) throw( NoSuchElementException, RuntimeException ) { |