Kaydet (Commit) 6bb4f892 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS cfg01 (1.7.10.1.4); FILE MERGED

2003/03/12 16:56:00 jb 1.7.10.1.4.3: #107404# Further clean up of node::Attributes interface
2003/02/28 16:26:13 ssmith 1.7.10.1.4.2: #107403# #107403# adding support for mandatory flag and changing dynamic properties semantics
2003/02/17 15:52:36 ssmith 1.7.10.1.4.1: #107404# refactoring code to support encapsulation
üst b58b2feb
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: propertyinfohelper.cxx,v $ * $RCSfile: propertyinfohelper.cxx,v $
* *
* $Revision: 1.8 $ * $Revision: 1.9 $
* *
* last change: $Author: hr $ $Date: 2003-03-19 16:18:35 $ * last change: $Author: vg $ $Date: 2003-04-01 13:29:32 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -90,11 +90,12 @@ beans::Property helperMakeProperty(configuration::Name const& aName, ...@@ -90,11 +90,12 @@ beans::Property helperMakeProperty(configuration::Name const& aName,
namespace PropertyAttribute = com::sun::star::beans::PropertyAttribute; namespace PropertyAttribute = com::sun::star::beans::PropertyAttribute;
sal_Int16 nPropAttributes = 0; sal_Int16 nPropAttributes = 0;
if (!aAttributes.bWritable) nPropAttributes |= PropertyAttribute::READONLY; if (aAttributes.isReadonly()) nPropAttributes |= PropertyAttribute::READONLY;
if ( aAttributes.bNullable) nPropAttributes |= PropertyAttribute::MAYBEVOID; if (aAttributes.isNullable()) nPropAttributes |= PropertyAttribute::MAYBEVOID;
/*if ( aAttributes.bNotified)*/ nPropAttributes |= PropertyAttribute::BOUND; /*if ( aAttributes.bNotified)*/ nPropAttributes |= PropertyAttribute::BOUND;
/*if ( aAttributes.bConstrained)nPropAttributes |= PropertyAttribute::CONSTRAINED;*/ /*if ( aAttributes.bConstrained)nPropAttributes |= PropertyAttribute::CONSTRAINED;*/
if ( aAttributes.isRemovable()) nPropAttributes |= PropertyAttribute::REMOVABLE;
if ( bDefaultable) nPropAttributes |= PropertyAttribute::MAYBEDEFAULT; if ( bDefaultable) nPropAttributes |= PropertyAttribute::MAYBEDEFAULT;
return beans::Property(aName.toString(), -1, aType, nPropAttributes); return beans::Property(aName.toString(), -1, aType, nPropAttributes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment