summaryrefslogtreecommitdiff
path: root/configmgr/source/tree/treenodefactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'configmgr/source/tree/treenodefactory.cxx')
-rw-r--r--configmgr/source/tree/treenodefactory.cxx21
1 files changed, 12 insertions, 9 deletions
diff --git a/configmgr/source/tree/treenodefactory.cxx b/configmgr/source/tree/treenodefactory.cxx
index b3d605b600..a0d677fea2 100644
--- a/configmgr/source/tree/treenodefactory.cxx
+++ b/configmgr/source/tree/treenodefactory.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: treenodefactory.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: jb $ $Date: 2001-07-16 17:01:35 $
+ * last change: $Author: hr $ $Date: 2003-03-19 16:19:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -74,6 +74,9 @@
#include "treechangefactory.hxx"
#endif
+#ifndef CONFIGMGR_CONFIGPATH_HXX_
+#include "configpath.hxx"
+#endif
namespace configmgr
{
@@ -90,7 +93,7 @@ OTreeNodeFactory& getDefaultTreeNodeFactory()
std::auto_ptr<ValueNode> OTreeNodeFactory::createValueNode(
rtl::OUString const& aName,
uno::Any const& aValue,
- configuration::Attributes _aAttrs)
+ node::Attributes _aAttrs)
{
OSL_ENSURE(aValue.hasValue(), "OTreeNodeFactory: Creating a value node having no type");
return std::auto_ptr<ValueNode>( new ValueNode(aName, aValue, _aAttrs) );
@@ -102,7 +105,7 @@ std::auto_ptr<ValueNode> OTreeNodeFactory::createValueNode(
rtl::OUString const& aName,
uno::Any const& aValue,
uno::Any const& aDefault,
- configuration::Attributes _aAttrs)
+ node::Attributes _aAttrs)
{
OSL_ENSURE(aValue.hasValue() || aDefault.hasValue(), "OTreeNodeFactory: Creating a value node having no type");
return std::auto_ptr<ValueNode>( new ValueNode(aName, aValue, aDefault, _aAttrs) );
@@ -114,7 +117,7 @@ std::auto_ptr<ValueNode> OTreeNodeFactory::createValueNode(
std::auto_ptr<ValueNode> OTreeNodeFactory::createNullValueNode(
rtl::OUString const& aName,
uno::Type const& aType,
- configuration::Attributes _aAttrs)
+ node::Attributes _aAttrs)
{
OSL_ENSURE(aType.getTypeClass() != uno::TypeClass_VOID, "OTreeNodeFactory: Creating a value node having VOID type");
return std::auto_ptr<ValueNode>( new ValueNode(aName, aType, _aAttrs) );
@@ -129,14 +132,14 @@ std::auto_ptr<ISubtree> OTreeNodeFactory::createDummyTree(Name const& _aName, Na
if (_aElementTypeName.isEmpty())
{
- pResult.reset( new Subtree(_aName.toString(),configuration::Attributes()) );
+ pResult.reset( new Subtree(_aName.toString(),node::Attributes()) );
}
else
{
pResult.reset( new Subtree(_aName.toString(),
_aElementTypeName.toString(),
getDummySetElementModule().toString(),
- configuration::Attributes()) );
+ node::Attributes()) );
}
return pResult;
}
@@ -145,7 +148,7 @@ std::auto_ptr<ISubtree> OTreeNodeFactory::createDummyTree(Name const& _aName, Na
std::auto_ptr<ISubtree> OTreeNodeFactory::createGroupNode(
rtl::OUString const& aName,
- configuration::Attributes _aAttrs)
+ node::Attributes _aAttrs)
{
return std::auto_ptr<ISubtree>( new Subtree(aName, _aAttrs) );
}
@@ -157,7 +160,7 @@ std::auto_ptr<ISubtree> OTreeNodeFactory::createSetNode(
rtl::OUString const& aName,
rtl::OUString const& _rTemplateName,
rtl::OUString const& _rTemplateModule,
- configuration::Attributes _aAttrs)
+ node::Attributes _aAttrs)
{
return std::auto_ptr<ISubtree>( new Subtree(aName, _rTemplateName, _rTemplateModule, _aAttrs) );
}