diff options
author | Kai Sommerfeld <kso@openoffice.org> | 2000-10-30 09:08:43 +0000 |
---|---|---|
committer | Kai Sommerfeld <kso@openoffice.org> | 2000-10-30 09:08:43 +0000 |
commit | 210a534b12bfc3befed9e50c74a1204adb994af1 (patch) | |
tree | f94fd32c009dabe5fc2bc67ed5d01b83ac42dfdb /ucbhelper/source/client | |
parent | 8af0b35e462b941c55e22640b3b199e77d37d3e2 (diff) |
Fixed: Content::isFolder() and Content::isDocument()
Diffstat (limited to 'ucbhelper/source/client')
-rw-r--r-- | ucbhelper/source/client/content.cxx | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index 4ac6f1678f4c..aee17a45cd2a 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -2,9 +2,9 @@ * * $RCSfile: content.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: kso $ $Date: 2000-10-30 10:03:00 $ + * last change: $Author: kso $ $Date: 2000-10-30 10:08:43 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -453,6 +453,7 @@ Sequence< Any > Content::getPropertyValues( for ( sal_Int32 n = 0; n < nCount; ++n ) pValues[ n ] = xRow->getObject( n + 1, Reference< XNameAccess >() ); } + return aValues; } @@ -1002,8 +1003,12 @@ sal_Bool Content::isFolder() throw( CommandAbortedException, RuntimeException, Exception ) { sal_Bool bFolder = sal_False; - getPropertyValue( OUString::createFromAscii( "IsFolder" ) ) >>= bFolder; - return bFolder; + if ( getPropertyValue( OUString::createFromAscii( "IsFolder" ) ) + >>= bFolder ) + return bFolder; + + VOS_ENSURE( sal_False, "Content::isFolder - Got no property value!" ); + throw CommandAbortedException(); } //========================================================================= @@ -1011,8 +1016,12 @@ sal_Bool Content::isDocument() throw( CommandAbortedException, RuntimeException, Exception ) { sal_Bool bDoc = sal_False; - getPropertyValue( OUString::createFromAscii( "IsDocument" ) ) >>= bDoc; - return bDoc; + if ( getPropertyValue( OUString::createFromAscii( "IsDocument" ) ) + >>= bDoc ) + return bDoc; + + VOS_ENSURE( sal_False, "Content::isDocument - Got no property value!" ); + throw CommandAbortedException(); } //========================================================================= |