diff options
author | Andreas Bille <abi@openoffice.org> | 2001-07-02 07:08:24 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2001-07-02 07:08:24 +0000 |
commit | 5462dbf3a308104b15394f89016b870d4684a53c (patch) | |
tree | 2eb543db2b23941ed9e4f44e7a60ee365a780183 /xmlhelp/source/cxxhelp/provider/contentcaps.cxx | |
parent | d7f3a62df58680e28e3a36b50f6d240253f89e1b (diff) |
Added readonly property "IsReadOnly"
Diffstat (limited to 'xmlhelp/source/cxxhelp/provider/contentcaps.cxx')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/contentcaps.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
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(), |