8c508356d7
2008/04/01 12:27:38 thb 1.8.130.2: #i85898# Stripping all external header guards 2008/03/31 12:22:56 rt 1.8.130.1: #i87441# Change license header to LPGL v3.
75 lines
2.9 KiB
C++
75 lines
2.9 KiB
C++
/*************************************************************************
|
|
*
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
*
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: roottreeimpl.hxx,v $
|
|
* $Revision: 1.9 $
|
|
*
|
|
* This file is part of OpenOffice.org.
|
|
*
|
|
* 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.
|
|
*
|
|
* 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).
|
|
*
|
|
* 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.
|
|
*
|
|
************************************************************************/
|
|
|
|
#ifndef CONFIGMGR_ROOTTREEIMPL_HXX_
|
|
#define CONFIGMGR_ROOTTREEIMPL_HXX_
|
|
|
|
#include "treeimpl.hxx"
|
|
|
|
namespace configmgr
|
|
{
|
|
//-----------------------------------------------------------------------------
|
|
namespace data { class NodeAccess; }
|
|
//-----------------------------------------------------------------------------
|
|
namespace configuration
|
|
{
|
|
//-----------------------------------------------------------------------------
|
|
/** is the Implementation class for class <type>Tree</type>.
|
|
<p> Holds a list of <type>Node</type> which it allows to access by
|
|
<type>NodeOffset</type> (which is basically a one-based index).
|
|
</p>
|
|
<p> Also provides for navigation to the context this tree is located in
|
|
</p>
|
|
*/
|
|
class RootTreeImpl : public TreeImpl
|
|
{
|
|
public:
|
|
// Construction
|
|
/// creates a TreeImpl without a parent tree
|
|
RootTreeImpl( rtl::Reference<view::ViewStrategy> const& _xStrategy,
|
|
AbsolutePath const& aRootPath,
|
|
data::NodeAccess const& _aCacheNode, TreeDepth nDepth,
|
|
TemplateProvider const& aTemplateProvider);
|
|
|
|
// make it public
|
|
private:
|
|
virtual RootTreeImpl const* doCastToRootTree() const;
|
|
virtual ElementTreeImpl const* doCastToElementTree() const;
|
|
|
|
virtual Path::Component doGetRootName() const;
|
|
virtual void doFinishRootPath(Path::Rep& rPath) const;
|
|
|
|
AbsolutePath m_aRootPath;
|
|
};
|
|
//-----------------------------------------------------------------------------
|
|
}
|
|
}
|
|
|
|
#endif // CONFIGMGR_ROOTTREEIMPL_HXX_
|