2000-11-07 07:35:59 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 07:48:56 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-11-07 07:35:59 -06:00
|
|
|
*
|
2008-04-11 07:48:56 -05:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2000-11-07 07:35:59 -06:00
|
|
|
*
|
2008-04-11 07:48:56 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-11-07 07:35:59 -06:00
|
|
|
*
|
2008-04-11 07:48:56 -05:00
|
|
|
* $RCSfile: nodefactory.hxx,v $
|
|
|
|
* $Revision: 1.5 $
|
2000-11-07 07:35:59 -06:00
|
|
|
*
|
2008-04-11 07:48:56 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-11-07 07:35:59 -06:00
|
|
|
*
|
2008-04-11 07:48:56 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-11-07 07:35:59 -06:00
|
|
|
*
|
2008-04-11 07:48:56 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-11-07 07:35:59 -06:00
|
|
|
*
|
2008-04-11 07:48:56 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-11-07 07:35:59 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef CONFIGMGR_CONFIGNODEFACTORY_HXX_
|
|
|
|
#define CONFIGMGR_CONFIGNODEFACTORY_HXX_
|
|
|
|
|
2002-02-11 06:47:56 -06:00
|
|
|
#include <rtl/ref.hxx>
|
2000-11-07 07:35:59 -06:00
|
|
|
|
|
|
|
namespace configmgr
|
|
|
|
{
|
2002-02-11 06:47:56 -06:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
namespace data
|
2000-11-07 07:35:59 -06:00
|
|
|
{
|
2002-02-11 06:47:56 -06:00
|
|
|
class ValueNodeAccess;
|
|
|
|
class GroupNodeAccess;
|
|
|
|
class SetNodeAccess;
|
|
|
|
}
|
2000-11-07 07:35:59 -06:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2002-02-11 06:47:56 -06:00
|
|
|
namespace configuration
|
|
|
|
{
|
2000-11-07 07:35:59 -06:00
|
|
|
class NodeImpl;
|
|
|
|
class Template;
|
2002-02-11 06:47:56 -06:00
|
|
|
}
|
2000-11-07 07:35:59 -06:00
|
|
|
//-----------------------------------------------------------------------------
|
2002-02-11 06:47:56 -06:00
|
|
|
namespace view
|
|
|
|
{
|
|
|
|
typedef rtl::Reference<configuration::NodeImpl> NodeImplRef;
|
2000-11-07 07:35:59 -06:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2002-02-11 06:47:56 -06:00
|
|
|
// Creating Specific types of nodes
|
2000-11-07 07:35:59 -06:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2002-02-11 06:47:56 -06:00
|
|
|
struct NodeFactory
|
2000-11-07 07:35:59 -06:00
|
|
|
{
|
2002-02-11 06:47:56 -06:00
|
|
|
virtual NodeImplRef makeValueNode(data::ValueNodeAccess const& _aNodeAccess) = 0;
|
|
|
|
virtual NodeImplRef makeGroupNode(data::GroupNodeAccess const& _aNodeAccess) = 0;
|
|
|
|
virtual NodeImplRef makeSetNode(data::SetNodeAccess const& _aNodeAccess, configuration::Template* pTemplate) = 0;
|
|
|
|
};
|
|
|
|
}
|
2000-11-07 07:35:59 -06:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // CONFIGMGR_CONFIGNODEFACTORY_HXX_
|