2010-10-27 13:11:31 +01: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
|
|
|
|
2009-09-08 14:59:07 +02:00
|
|
|
#ifndef INCLUDED_CONFIGMGR_SOURCE_LOCALIZEDVALUENODE_HXX
|
|
|
|
#define INCLUDED_CONFIGMGR_SOURCE_LOCALIZEDVALUENODE_HXX
|
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 <com/sun/star/uno/Any.hxx>
|
|
|
|
#include <rtl/ref.hxx>
|
2009-05-15 14:06:56 +02:00
|
|
|
|
2009-05-20 17:20:08 +02:00
|
|
|
#include "node.hxx"
|
|
|
|
|
2009-05-15 14:06:56 +02:00
|
|
|
|
|
|
|
namespace configmgr {
|
|
|
|
|
2009-09-04 11:42:31 +02:00
|
|
|
class LocalizedValueNode: public Node {
|
2009-05-20 17:20:08 +02:00
|
|
|
public:
|
2015-06-08 16:17:45 +01:00
|
|
|
explicit LocalizedValueNode(int layer);
|
2009-09-04 11:42:31 +02:00
|
|
|
LocalizedValueNode(int layer, com::sun::star::uno::Any const & value);
|
2009-05-20 17:20:08 +02:00
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual rtl::Reference< Node > clone(bool keepTemplateName) const SAL_OVERRIDE;
|
2009-05-20 17:20:08 +02:00
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual OUString getTemplateName() const SAL_OVERRIDE;
|
2009-07-13 17:15:58 +02:00
|
|
|
|
2014-06-26 13:47:54 +01:00
|
|
|
com::sun::star::uno::Any getValue() const { return value_;}
|
|
|
|
com::sun::star::uno::Any *getValuePtr(int layer)
|
|
|
|
{
|
|
|
|
setLayer(layer);
|
|
|
|
return &value_;
|
|
|
|
}
|
2009-05-20 17:20:08 +02:00
|
|
|
|
2009-07-23 12:42:37 +02:00
|
|
|
void setValue(int layer, com::sun::star::uno::Any const & value);
|
2009-05-20 17:20:08 +02:00
|
|
|
|
|
|
|
private:
|
2009-09-04 11:42:31 +02:00
|
|
|
LocalizedValueNode(LocalizedValueNode const & other);
|
2009-07-29 15:30:40 +02:00
|
|
|
|
2009-09-04 11:42:31 +02:00
|
|
|
virtual ~LocalizedValueNode();
|
2009-05-20 17:20:08 +02:00
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual Kind kind() const SAL_OVERRIDE;
|
2009-09-04 11:24:45 +02:00
|
|
|
|
2009-05-20 17:20:08 +02:00
|
|
|
com::sun::star::uno::Any value_;
|
|
|
|
};
|
2009-05-15 14:06:56 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2010-10-27 13:11:31 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|