fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / autodoc / source / display / inc / toolkit / out_tree.hxx
blob518c39428f690648b27bdc3a2e7943dd7a12568c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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
24 // USED SERVICES
25 // BASE CLASSES
26 // COMPONENTS
27 #include "out_position.hxx"
28 // PARAMETERS
31 namespace output
34 inline const char *
35 ModuleFileName()
36 { return "module-ix.html"; }
37 inline const char *
38 IndexFilesDirName()
39 { return "index-files"; }
40 inline const char *
41 IndexFile_A()
42 { return "index-1.html"; }
45 class Tree
47 public:
48 // LIFECYCLE
49 Tree();
50 ~Tree();
52 // OPERATIONS
53 void Set_Overview(
54 const StringVector &
55 i_path,
56 const String & i_sFileName );
57 Node & Set_NamesRoot(
58 const StringVector &
59 i_path );
60 Node & Set_IndexRoot(
61 const StringVector &
62 i_path );
63 Node & Set_ProjectsRoot(
64 const StringVector &
65 i_path );
66 Node & Provide_Node(
67 const StringVector &
68 i_path );
70 // ACCESS
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); }
82 private:
83 // forbidden:
84 Tree(const Tree&);
85 Tree & operator=(const Tree&);
87 // DATA
88 Dyn<Node> pRoot;
89 Node * pNamesRoot;
90 Node * pIndexRoot;
91 Node * pProjectsRoot;
92 Position aOverview;
96 // IMPLEMENTATION
98 inline Node &
99 Tree::Provide_Node( const StringVector & i_path )
100 { return pRoot->Provide_Child(i_path); }
103 inline void
104 Tree::Set_Overview( const StringVector & i_path,
105 const String & i_sFileName )
106 { aOverview.Set(Provide_Node(i_path), i_sFileName); }
108 inline Node &
109 Tree::Set_NamesRoot( const StringVector & i_path )
110 { pNamesRoot = &Provide_Node(i_path);
111 return *pNamesRoot; }
113 inline Node &
114 Tree::Set_IndexRoot( const StringVector & i_path )
115 { pIndexRoot = &Provide_Node(i_path);
116 return *pIndexRoot; }
118 inline Node &
119 Tree::Set_ProjectsRoot( const StringVector & i_path )
120 { pProjectsRoot = &Provide_Node(i_path);
121 return *pProjectsRoot; }
125 } // namespace output
128 #endif
130 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */