1*3a7cf181SAndrew Rist /**************************************************************
2*3a7cf181SAndrew Rist  *
3*3a7cf181SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*3a7cf181SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*3a7cf181SAndrew Rist  * distributed with this work for additional information
6*3a7cf181SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*3a7cf181SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*3a7cf181SAndrew Rist  * "License"); you may not use this file except in compliance
9*3a7cf181SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*3a7cf181SAndrew Rist  *
11*3a7cf181SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*3a7cf181SAndrew Rist  *
13*3a7cf181SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*3a7cf181SAndrew Rist  * software distributed under the License is distributed on an
15*3a7cf181SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*3a7cf181SAndrew Rist  * KIND, either express or implied.  See the License for the
17*3a7cf181SAndrew Rist  * specific language governing permissions and limitations
18*3a7cf181SAndrew Rist  * under the License.
19*3a7cf181SAndrew Rist  *
20*3a7cf181SAndrew Rist  *************************************************************/
21*3a7cf181SAndrew Rist 
22*3a7cf181SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #include "precompiled_configmgr.hxx"
25cdf0e10cSrcweir #include "sal/config.h"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "com/sun/star/uno/Any.hxx"
28cdf0e10cSrcweir #include "rtl/ref.hxx"
29cdf0e10cSrcweir #include "rtl/ustring.h"
30cdf0e10cSrcweir #include "rtl/ustring.hxx"
31cdf0e10cSrcweir 
32cdf0e10cSrcweir #include "localizedpropertynode.hxx"
33cdf0e10cSrcweir #include "node.hxx"
34cdf0e10cSrcweir #include "nodemap.hxx"
35cdf0e10cSrcweir #include "type.hxx"
36cdf0e10cSrcweir 
37cdf0e10cSrcweir namespace configmgr {
38cdf0e10cSrcweir 
39cdf0e10cSrcweir namespace {
40cdf0e10cSrcweir 
41cdf0e10cSrcweir namespace css = com::sun::star;
42cdf0e10cSrcweir 
43cdf0e10cSrcweir }
44cdf0e10cSrcweir 
LocalizedPropertyNode(int layer,Type staticType,bool nillable)45cdf0e10cSrcweir LocalizedPropertyNode::LocalizedPropertyNode(
46cdf0e10cSrcweir     int layer, Type staticType, bool nillable):
47cdf0e10cSrcweir     Node(layer), staticType_(staticType), nillable_(nillable)
48cdf0e10cSrcweir {}
49cdf0e10cSrcweir 
clone(bool) const50cdf0e10cSrcweir rtl::Reference< Node > LocalizedPropertyNode::clone(bool) const {
51cdf0e10cSrcweir     return new LocalizedPropertyNode(*this);
52cdf0e10cSrcweir }
53cdf0e10cSrcweir 
getMembers()54cdf0e10cSrcweir NodeMap & LocalizedPropertyNode::getMembers() {
55cdf0e10cSrcweir     return members_;
56cdf0e10cSrcweir }
57cdf0e10cSrcweir 
getStaticType() const58cdf0e10cSrcweir Type LocalizedPropertyNode::getStaticType() const {
59cdf0e10cSrcweir     return staticType_;
60cdf0e10cSrcweir }
61cdf0e10cSrcweir 
isNillable() const62cdf0e10cSrcweir bool LocalizedPropertyNode::isNillable() const {
63cdf0e10cSrcweir     return nillable_;
64cdf0e10cSrcweir }
65cdf0e10cSrcweir 
LocalizedPropertyNode(LocalizedPropertyNode const & other)66cdf0e10cSrcweir LocalizedPropertyNode::LocalizedPropertyNode(
67cdf0e10cSrcweir     LocalizedPropertyNode const & other):
68cdf0e10cSrcweir     Node(other), staticType_(other.staticType_), nillable_(other.nillable_)
69cdf0e10cSrcweir {
70cdf0e10cSrcweir     cloneNodeMap(other.members_, &members_);
71cdf0e10cSrcweir }
72cdf0e10cSrcweir 
~LocalizedPropertyNode()73cdf0e10cSrcweir LocalizedPropertyNode::~LocalizedPropertyNode() {}
74cdf0e10cSrcweir 
kind() const75cdf0e10cSrcweir Node::Kind LocalizedPropertyNode::kind() const {
76cdf0e10cSrcweir     return KIND_LOCALIZED_PROPERTY;
77cdf0e10cSrcweir }
78cdf0e10cSrcweir 
clear()79cdf0e10cSrcweir void LocalizedPropertyNode::clear() {
80cdf0e10cSrcweir     members_.clear();
81cdf0e10cSrcweir }
82cdf0e10cSrcweir 
83cdf0e10cSrcweir }
84