merge the formfield patch from ooo-build
[ooovba.git] / configmgr / source / inc / builddata.hxx
blob232aec06a4d13af17dfb0331f71caea8358f3c20
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: builddata.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef CONFIGMGR_BUILDDATA_HXX
32 #define CONFIGMGR_BUILDDATA_HXX
34 #include "treefragment.hxx"
35 #ifndef INCLUDED_MEMORY
36 #define INCLUDED_MEMORY
37 #include <memory>
38 #endif
39 //-----------------------------------------------------------------------------
40 namespace rtl { class OUString; }
41 //-----------------------------------------------------------------------------
42 namespace configmgr
44 //-----------------------------------------------------------------------------
45 class INode;
46 class ISubtree;
47 class ValueNode;
48 //-----------------------------------------------------------------------------
49 namespace sharable { struct TreeFragment; }
50 namespace data
52 //-----------------------------------------------------------------------------
53 sharable::TreeFragment * buildTree(sharable::TreeFragment * tree);
54 //-----------------------------------------------------------------------------
55 sharable::TreeFragment * buildTree(rtl::OUString const & _aTreeName, INode const& _aNode, bool _bWithDefaults);
56 //-----------------------------------------------------------------------------
57 sharable::TreeFragment * buildElementTree(INode const& _aNode, rtl::OUString const & _aTypeName, bool _bWithDefaults);
58 //-----------------------------------------------------------------------------
59 void mergeDefaults(sharable::TreeFragment * _aBaseAddress, INode const& _aDefaultNode);
60 //-----------------------------------------------------------------------------
61 void destroyTree(sharable::TreeFragment * _aBaseAddress);
62 //-----------------------------------------------------------------------------
63 std::auto_ptr<INode> convertTree(sharable::TreeFragment * tree, bool _bUseTreeName);
64 //-----------------------------------------------------------------------------
66 //-----------------------------------------------------------------------------
67 } // namespace configmgr
68 //-----------------------------------------------------------------------------
70 #endif // CONFIGMGR_BUILDDATA_HXX