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 #ifndef INCLUDED_CONFIGMGR_SOURCE_LOCALIZEDVALUENODE_HXX
25 #define INCLUDED_CONFIGMGR_SOURCE_LOCALIZEDVALUENODE_HXX
26 
27 #include "sal/config.h"
28 
29 #include "com/sun/star/uno/Any.hxx"
30 #include "rtl/ref.hxx"
31 
32 #include "node.hxx"
33 
34 namespace rtl { class OUString; }
35 
36 namespace configmgr {
37 
38 class LocalizedValueNode: public Node {
39 public:
40     LocalizedValueNode(int layer, com::sun::star::uno::Any const & value);
41 
42     virtual rtl::Reference< Node > clone(bool keepTemplateName) const;
43 
44     virtual rtl::OUString getTemplateName() const;
45 
46     com::sun::star::uno::Any getValue() const;
47 
48     void setValue(int layer, com::sun::star::uno::Any const & value);
49 
50 private:
51     LocalizedValueNode(LocalizedValueNode const & other);
52 
53     virtual ~LocalizedValueNode();
54 
55     virtual Kind kind() const;
56 
57     com::sun::star::uno::Any value_;
58 };
59 
60 }
61 
62 #endif
63