1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef ADC_DISPLAY_OUT_TREE_HXX
21 #define ADC_DISPLAY_OUT_TREE_HXX
27 #include "out_position.hxx"
36 { return "module-ix.html"; }
39 { return "index-files"; }
42 { return "index-1.html"; }
56 const String
& i_sFileName
);
63 Node
& Set_ProjectsRoot(
71 Node
& RootNode() { return *pRoot
; }
72 Node
& NamesRootNode() { return *pNamesRoot
; }
73 Node
& IndexRootNode() { return *pIndexRoot
; }
74 Node
& ProjectsRootNode() { return *pProjectsRoot
; }
76 Position
Root() { return Position(*pRoot
); }
77 Position
Overview() { return aOverview
; }
78 Position
NamesRoot() { return Position(*pNamesRoot
); }
79 Position
IndexRoot() { return Position(*pIndexRoot
); }
80 Position
ProjectsRoot() { return Position(*pProjectsRoot
); }
85 Tree
& operator=(const Tree
&);
99 Tree::Provide_Node( const StringVector
& i_path
)
100 { return pRoot
->Provide_Child(i_path
); }
104 Tree::Set_Overview( const StringVector
& i_path
,
105 const String
& i_sFileName
)
106 { aOverview
.Set(Provide_Node(i_path
), i_sFileName
); }
109 Tree::Set_NamesRoot( const StringVector
& i_path
)
110 { pNamesRoot
= &Provide_Node(i_path
);
111 return *pNamesRoot
; }
114 Tree::Set_IndexRoot( const StringVector
& i_path
)
115 { pIndexRoot
= &Provide_Node(i_path
);
116 return *pIndexRoot
; }
119 Tree::Set_ProjectsRoot( const StringVector
& i_path
)
120 { pProjectsRoot
= &Provide_Node(i_path
);
121 return *pProjectsRoot
; }
125 } // namespace output
130 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */