update dev300-m58
[ooovba.git] / configmgr / source / treemgr / valuenodeimpl.hxx
blobed17bca95c20cafe5a8ddb1f5f2f657ca5a09336
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: valuenodeimpl.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef CONFIGMGR_VALUENODEBEHAVIOR_HXX_
32 #define CONFIGMGR_VALUENODEBEHAVIOR_HXX_
34 #include "nodeimpl.hxx"
36 namespace configmgr
38 class ValueChange;
40 namespace configuration
42 //-----------------------------------------------------------------------------
43 // Another types of node
44 //-----------------------------------------------------------------------------
46 /** a special kind of node that is used to represent an element of a set of values
47 <p> This is an immutable value (changes are done by adding/replacing/removing set elements)
48 </p>
50 class ValueElementNodeImpl : public NodeImpl
52 public:
53 explicit ValueElementNodeImpl(sharable::ValueNode * const& _aNodeRef) ;
55 // the following delegate directly to the original node
56 public:
57 /// Does this node assume its default value
58 /// retrieve the current value of this node
59 com::sun::star::uno::Any getValue() const;
61 /// get the type of this value
62 com::sun::star::uno::Type getValueType() const;
64 sharable::ValueNode * getDataAccess() const;
67 // domain-specific 'dynamic_cast' replacement
68 ValueElementNodeImpl& AsValueNode(NodeImpl& rNode);
72 #endif // CONFIGMGR_VALUENODEBEHAVIOR_HXX_