diff options
Diffstat (limited to 'xmlhelp/source')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/content.cxx | 6 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/contentcaps.cxx | 13 |
2 files changed, 14 insertions, 5 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/content.cxx b/xmlhelp/source/cxxhelp/provider/content.cxx index 4421bd9b12a4..2ed69ac9373f 100644 --- a/xmlhelp/source/cxxhelp/provider/content.cxx +++ b/xmlhelp/source/cxxhelp/provider/content.cxx @@ -2,9 +2,9 @@ * * $RCSfile: content.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: abi $ $Date: 2001-06-13 09:10:13 $ + * last change: $Author: abi $ $Date: 2001-07-02 08:08:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -501,6 +501,8 @@ Reference< XRow > Content::getPropertyValues( const Sequence< Property >& rPrope xRow->appendString( rProp,rtl::OUString::createFromAscii( "application/vnd.sun.star.help" ) ); else if( rProp.Name.compareToAscii( "Title" ) == 0 ) xRow->appendString ( rProp,m_aURLParameter.get_title() ); + else if( rProp.Name.compareToAscii( "IsReadOnly" ) == 0 ) + xRow->appendBoolean( rProp,true ); else if( rProp.Name.compareToAscii( "IsDocument" ) == 0 ) xRow->appendBoolean( rProp,m_aURLParameter.isFile() || m_aURLParameter.isRoot() ); else if( rProp.Name.compareToAscii( "IsFolder" ) == 0 ) diff --git a/xmlhelp/source/cxxhelp/provider/contentcaps.cxx b/xmlhelp/source/cxxhelp/provider/contentcaps.cxx index 7adc517a2fbd..07e62ec57a35 100644 --- a/xmlhelp/source/cxxhelp/provider/contentcaps.cxx +++ b/xmlhelp/source/cxxhelp/provider/contentcaps.cxx @@ -2,9 +2,9 @@ * * $RCSfile: contentcaps.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: abi $ $Date: 2001-06-18 12:10:12 $ + * last change: $Author: abi $ $Date: 2001-07-02 08:08:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -95,7 +95,7 @@ Sequence< Property > Content::getProperties( const Reference< XCommandEnvironmen bool isModule = m_aURLParameter.isModule(); bool isFile = m_aURLParameter.isFile(); - sal_Int32 num = withMediaType ? 5 : 4; + sal_Int32 num = withMediaType ? 6 : 5; if( isModule ) num+=5; if( isFile ) num++; @@ -111,6 +111,13 @@ Sequence< Property > Content::getProperties( const Reference< XCommandEnvironmen props[idx++] = Property( + OUString( RTL_CONSTASCII_USTRINGPARAM( "IsReadOnly" ) ), + -1, + getCppuBooleanType(), + PropertyAttribute::BOUND | PropertyAttribute::READONLY ); + + props[idx++] = + Property( OUString( RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ), -1, getCppuBooleanType(), |