diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-04-01 12:38:18 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-04-01 12:38:18 +0000 |
commit | 8a7e6e498ef4b1697e9db053cd598d53a24e99c1 (patch) | |
tree | 011271709ad27eac550164b001fab475dd47e4b7 /configmgr/source | |
parent | 33e64f7847ba5f7e962d9088321e8ca1bfe8e791 (diff) |
INTEGRATION: CWS cfg01 (1.2.24); FILE MERGED
2003/03/13 15:09:13 jb 1.2.24.3: #107404# Further clean up of node::Attributes interface
2003/02/28 16:33:37 ssmith 1.2.24.2: #107403# #107403# adding support for mandatory flag and changing dynamic properties semantics
2003/02/17 15:57:36 ssmith 1.2.24.1: #107404# refactoring code to support encapsulation
Diffstat (limited to 'configmgr/source')
-rw-r--r-- | configmgr/source/tree/treefragment.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/configmgr/source/tree/treefragment.cxx b/configmgr/source/tree/treefragment.cxx index b5aa2eda68a5..8dece27b279f 100644 --- a/configmgr/source/tree/treefragment.cxx +++ b/configmgr/source/tree/treefragment.cxx @@ -2,9 +2,9 @@ * * $RCSfile: treefragment.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2002-02-19 13:09:06 $ + * last change: $Author: vg $ $Date: 2003-04-01 13:38:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -135,13 +135,17 @@ configmgr::node::Attributes TreeFragment::getAttributes() const default: OSL_ASSERT(false); break; // not reachable } - aResult.bWritable = ! (this->header.state & State::flag_readonly); + aResult.setRemovability(!!(this->header.state & State::flag_removable), + !!(this->header.state & State::flag_mandatory)); + OSL_ASSERT( header.count != 0 ); NodeInfo const & aRootNodeInfo = this->nodes[0].node.info; - aResult.bFinalized = !!(aRootNodeInfo.flags & Flags::finalized); - aResult.bLocalized = !!(aRootNodeInfo.flags & Flags::localized); + aResult.setAccess( !!(this->header.state & State::flag_readonly), + !!(aRootNodeInfo.flags & Flags::finalized) ); + + aResult.setLocalized ( !!(aRootNodeInfo.flags & Flags::localized)); return aResult; } |