summaryrefslogtreecommitdiff
path: root/package/source/zippackage/ZipPackageEntry.cxx
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2000-11-16 10:54:40 +0000
committerMartin Gallwey <mtg@openoffice.org>2000-11-16 10:54:40 +0000
commitf39fff0b3d65e430b6ad40c2d4a871a2f32a4ba5 (patch)
tree31d99eb3fbb340c617a9025a44dbf493b3fec0ba /package/source/zippackage/ZipPackageEntry.cxx
parentbb79b528eec001fc70af73e55a77b27f96910862 (diff)
Initial revision. This version is at best 50% functional, and contains
many gaping holes, bugs and half-implemented services, and is only meant as a "preview" for Kai :)
Diffstat (limited to 'package/source/zippackage/ZipPackageEntry.cxx')
-rw-r--r--package/source/zippackage/ZipPackageEntry.cxx65
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;
+}