diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2010-03-02 18:43:33 +0100 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2010-03-02 18:43:33 +0100 |
commit | d4df362cf645cebad70f89c29ca85fb321b44a54 (patch) | |
tree | 0c36ada2289f53d8774cf104ffc1e038d803b802 /configmgr/source/propertynode.hxx | |
parent | 3ccd714eed214d96e94e8147bd52673499cdd21d (diff) | |
parent | 70bfb4d5a912a064683ac0a312719fcda8f07c15 (diff) |
CWS-TOOLING: integrate CWS sb111
Diffstat (limited to 'configmgr/source/propertynode.hxx')
-rw-r--r-- | configmgr/source/propertynode.hxx | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/configmgr/source/propertynode.hxx b/configmgr/source/propertynode.hxx new file mode 100644 index 000000000000..1566cbf72dbe --- /dev/null +++ b/configmgr/source/propertynode.hxx @@ -0,0 +1,83 @@ +/************************************************************************* +* +* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +* +* Copyright 2000, 2010 Oracle and/or its affiliates. +* +* OpenOffice.org - a multi-platform office productivity suite +* +* This file is part of OpenOffice.org. +* +* OpenOffice.org is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License version 3 +* only, as published by the Free Software Foundation. +* +* OpenOffice.org is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License version 3 for more details +* (a copy is included in the LICENSE file that accompanied this code). +* +* You should have received a copy of the GNU Lesser General Public License +* version 3 along with OpenOffice.org. If not, see +* <http://www.openoffice.org/license.html> +* for a copy of the LGPLv3 License. +* +************************************************************************/ + +#ifndef INCLUDED_CONFIGMGR_SOURCE_PROPERTYNODE_HXX +#define INCLUDED_CONFIGMGR_SOURCE_PROPERTYNODE_HXX + +#include "sal/config.h" + +#include "com/sun/star/uno/Any.hxx" +#include "rtl/ref.hxx" + +#include "node.hxx" +#include "type.hxx" + +namespace rtl { class OUString; } + +namespace configmgr { + +class Components; + +class PropertyNode: public Node { +public: + PropertyNode( + int layer, Type staticType, bool nillable, + com::sun::star::uno::Any const & value, bool extension); + + virtual rtl::Reference< Node > clone() const; + + Type getStaticType() const; + + bool isNillable() const; + + com::sun::star::uno::Any getValue(Components & components); + + void setValue(int layer, com::sun::star::uno::Any const & value); + + void setExternal(int layer, rtl::OUString const & descriptor); + + bool isExtension() const; + +private: + PropertyNode(PropertyNode const & other); + + virtual ~PropertyNode(); + + virtual Kind kind() const; + + Type staticType_; + // as specified in the component-schema (TYPE_ANY, ..., + // TYPE_HEXBINARY_LIST; not TYPE_ERROR or TYPE_NIL) + bool nillable_; + com::sun::star::uno::Any value_; + rtl::OUString externalDescriptor_; + bool extension_; +}; + +} + +#endif |