diff options
Diffstat (limited to 'configmgr/source/localizedvaluenode.hxx')
-rw-r--r-- | configmgr/source/localizedvaluenode.hxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/configmgr/source/localizedvaluenode.hxx b/configmgr/source/localizedvaluenode.hxx index 34fe2815365a..305c82811f33 100644 --- a/configmgr/source/localizedvaluenode.hxx +++ b/configmgr/source/localizedvaluenode.hxx @@ -32,20 +32,23 @@ class LocalizedValueNode : public Node { public: explicit LocalizedValueNode(int layer); - LocalizedValueNode(int layer, css::uno::Any const& value); + LocalizedValueNode(int layer, css::uno::Any value); virtual rtl::Reference<Node> clone(bool keepTemplateName) const override; virtual OUString getTemplateName() const override; const css::uno::Any& getValue() const { return value_; } - css::uno::Any* getValuePtr(int layer) + css::uno::Any* getValuePtr(int layer, bool bIsUserModification) { setLayer(layer); + modified_ = bIsUserModification; return &value_; } - void setValue(int layer, css::uno::Any const& value); + void setValue(int layer, css::uno::Any const& value, bool bIsUserModification); + + bool isModified() { return modified_; } private: LocalizedValueNode(LocalizedValueNode const&) = default; @@ -55,6 +58,7 @@ private: virtual Kind kind() const override; css::uno::Any value_; + bool modified_; }; } |