2010-10-12 15:53:47 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-12 21:00:32 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2009-05-15 14:06:56 +02:00
|
|
|
|
2014-05-28 15:24:46 +02:00
|
|
|
#include <sal/config.h>
|
2009-05-15 14:06:56 +02:00
|
|
|
|
2014-05-28 15:24:46 +02:00
|
|
|
#include <rtl/ref.hxx>
|
2009-05-15 14:06:56 +02:00
|
|
|
|
|
|
|
#include "localizedpropertynode.hxx"
|
|
|
|
#include "node.hxx"
|
2009-05-20 17:20:08 +02:00
|
|
|
#include "nodemap.hxx"
|
2009-05-15 14:06:56 +02:00
|
|
|
#include "type.hxx"
|
|
|
|
|
|
|
|
namespace configmgr {
|
|
|
|
|
2009-07-22 14:41:57 +02:00
|
|
|
LocalizedPropertyNode::LocalizedPropertyNode(
|
2009-11-11 13:51:17 +01:00
|
|
|
int layer, Type staticType, bool nillable):
|
|
|
|
Node(layer), staticType_(staticType), nillable_(nillable)
|
2009-05-29 16:48:52 +02:00
|
|
|
{}
|
2009-05-15 14:06:56 +02:00
|
|
|
|
2010-05-11 09:29:37 +02:00
|
|
|
rtl::Reference< Node > LocalizedPropertyNode::clone(bool) const {
|
2009-07-29 15:30:40 +02:00
|
|
|
return new LocalizedPropertyNode(*this);
|
2009-05-15 14:06:56 +02:00
|
|
|
}
|
|
|
|
|
2011-12-13 22:16:31 +01:00
|
|
|
NodeMap & LocalizedPropertyNode::getMembers() {
|
|
|
|
return members_;
|
2009-09-04 11:24:45 +02:00
|
|
|
}
|
|
|
|
|
2009-05-15 14:06:56 +02:00
|
|
|
|
2009-07-29 15:30:40 +02:00
|
|
|
LocalizedPropertyNode::LocalizedPropertyNode(
|
|
|
|
LocalizedPropertyNode const & other):
|
2009-11-11 13:51:17 +01:00
|
|
|
Node(other), staticType_(other.staticType_), nillable_(other.nillable_)
|
2009-07-29 15:30:40 +02:00
|
|
|
{
|
2014-06-26 14:49:38 +01:00
|
|
|
other.members_.cloneInto(&members_);
|
2009-07-29 15:30:40 +02:00
|
|
|
}
|
|
|
|
|
2009-05-19 10:49:37 +02:00
|
|
|
LocalizedPropertyNode::~LocalizedPropertyNode() {}
|
|
|
|
|
2009-09-04 11:24:45 +02:00
|
|
|
Node::Kind LocalizedPropertyNode::kind() const {
|
|
|
|
return KIND_LOCALIZED_PROPERTY;
|
|
|
|
}
|
|
|
|
|
2009-05-15 14:06:56 +02:00
|
|
|
}
|
2010-10-12 15:53:47 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|