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