1*0841af79SAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*0841af79SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*0841af79SAndrew Rist * or more contributor license agreements. See the NOTICE file
5*0841af79SAndrew Rist * distributed with this work for additional information
6*0841af79SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*0841af79SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*0841af79SAndrew Rist * "License"); you may not use this file except in compliance
9*0841af79SAndrew Rist * with the License. You may obtain a copy of the License at
10*0841af79SAndrew Rist *
11*0841af79SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12*0841af79SAndrew Rist *
13*0841af79SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*0841af79SAndrew Rist * software distributed under the License is distributed on an
15*0841af79SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*0841af79SAndrew Rist * KIND, either express or implied. See the License for the
17*0841af79SAndrew Rist * specific language governing permissions and limitations
18*0841af79SAndrew Rist * under the License.
19*0841af79SAndrew Rist *
20*0841af79SAndrew Rist *************************************************************/
21cdf0e10cSrcweir
22cdf0e10cSrcweir #include <precomp.h>
23cdf0e10cSrcweir #include "pm_start.hxx"
24cdf0e10cSrcweir
25cdf0e10cSrcweir
26cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES
27cdf0e10cSrcweir #include <ary/ary.hxx>
28cdf0e10cSrcweir #include "hd_chlst.hxx"
29cdf0e10cSrcweir #include "hd_docu.hxx"
30cdf0e10cSrcweir #include "navibar.hxx"
31cdf0e10cSrcweir #include "html_kit.hxx"
32cdf0e10cSrcweir #include "opageenv.hxx"
33cdf0e10cSrcweir #include "pagemake.hxx"
34cdf0e10cSrcweir #include "strconst.hxx"
35cdf0e10cSrcweir
36cdf0e10cSrcweir
37cdf0e10cSrcweir using namespace csi;
38cdf0e10cSrcweir using csi::html::Paragraph;
39cdf0e10cSrcweir using csi::html::HorizontalLine;
40cdf0e10cSrcweir using csi::html::AlignAttr;
41cdf0e10cSrcweir using csi::html::Bold;
42cdf0e10cSrcweir using csi::html::Link;
43cdf0e10cSrcweir using csi::html::Sbr;
44cdf0e10cSrcweir using csi::html::LineBreak;
45cdf0e10cSrcweir
46cdf0e10cSrcweir
47cdf0e10cSrcweir
PageMaker_Overview(PageDisplay & io_rPage)48cdf0e10cSrcweir PageMaker_Overview::PageMaker_Overview( PageDisplay & io_rPage )
49cdf0e10cSrcweir : SpecializedPageMaker(io_rPage),
50cdf0e10cSrcweir pNavi(0)
51cdf0e10cSrcweir {
52cdf0e10cSrcweir }
53cdf0e10cSrcweir
~PageMaker_Overview()54cdf0e10cSrcweir PageMaker_Overview::~PageMaker_Overview()
55cdf0e10cSrcweir {
56cdf0e10cSrcweir }
57cdf0e10cSrcweir
58cdf0e10cSrcweir void
MakePage()59cdf0e10cSrcweir PageMaker_Overview::MakePage()
60cdf0e10cSrcweir {
61cdf0e10cSrcweir pNavi = new NavigationBar( Env(), NavigationBar::LOC_Overview );
62cdf0e10cSrcweir Write_NavBar();
63cdf0e10cSrcweir
64cdf0e10cSrcweir Write_TopArea();
65cdf0e10cSrcweir Write_DocuArea();
66cdf0e10cSrcweir }
67cdf0e10cSrcweir
68cdf0e10cSrcweir void
Write_NavBar()69cdf0e10cSrcweir PageMaker_Overview::Write_NavBar()
70cdf0e10cSrcweir {
71cdf0e10cSrcweir pNavi->Write( CurOut() );
72cdf0e10cSrcweir CurOut() << new HorizontalLine;
73cdf0e10cSrcweir }
74cdf0e10cSrcweir
75cdf0e10cSrcweir void
Write_TopArea()76cdf0e10cSrcweir PageMaker_Overview::Write_TopArea()
77cdf0e10cSrcweir {
78cdf0e10cSrcweir adcdisp::PageTitle_Std fTitle;
79cdf0e10cSrcweir fTitle( CurOut(), Env().RepositoryTitle(), "" );
80cdf0e10cSrcweir
81cdf0e10cSrcweir CurOut()
82cdf0e10cSrcweir >> *new Paragraph
83cdf0e10cSrcweir << new html::StyleAttr("font-size:14pt;")
84cdf0e10cSrcweir << "This is a reference documentation for the C++ source code."
85cdf0e10cSrcweir << new LineBreak
86cdf0e10cSrcweir << new LineBreak
87cdf0e10cSrcweir << "Points to start:";
88cdf0e10cSrcweir
89cdf0e10cSrcweir html::SimpleList &
90cdf0e10cSrcweir rList = *new html::SimpleList;
91cdf0e10cSrcweir CurOut() >> rList;
92cdf0e10cSrcweir
93cdf0e10cSrcweir html::ListItem & rNamedObjsItem =
94cdf0e10cSrcweir rList.AddItem();
95cdf0e10cSrcweir
96cdf0e10cSrcweir StreamLock sNspDir(50);
97cdf0e10cSrcweir rNamedObjsItem
98cdf0e10cSrcweir << new html::StyleAttr("font-size:14pt;")
99cdf0e10cSrcweir >> *new Link( sNspDir() << C_sDIR_NamespacesCpp
100cdf0e10cSrcweir << "/"
101cdf0e10cSrcweir << C_sHFN_Namespace
102cdf0e10cSrcweir << c_str )
103cdf0e10cSrcweir >> *new Bold
104cdf0e10cSrcweir << "Named Objects";
105cdf0e10cSrcweir rNamedObjsItem << " (classes, functions, namespaces, etc.)"
106cdf0e10cSrcweir << new html::LineBreak;
107cdf0e10cSrcweir rList.AddItem()
108cdf0e10cSrcweir << new html::StyleAttr("font-size:14pt;")
109cdf0e10cSrcweir >> *new Link( "def-all.html" )
110cdf0e10cSrcweir >> *new Bold
111cdf0e10cSrcweir << "Defines and Macros"
112cdf0e10cSrcweir << new html::LineBreak;
113cdf0e10cSrcweir StreamLock sIndexDir(50);
114cdf0e10cSrcweir rList.AddItem()
115cdf0e10cSrcweir << new html::StyleAttr("font-size:14pt;")
116cdf0e10cSrcweir >> *new Link( sIndexDir() << C_sDIR_Index
117cdf0e10cSrcweir << "/index-1.html"
118cdf0e10cSrcweir << c_str )
119cdf0e10cSrcweir >> *new Bold
120cdf0e10cSrcweir << "Global Index"
121cdf0e10cSrcweir << new html::LineBreak;
122cdf0e10cSrcweir }
123cdf0e10cSrcweir
124cdf0e10cSrcweir void
Write_DocuArea()125cdf0e10cSrcweir PageMaker_Overview::Write_DocuArea()
126cdf0e10cSrcweir {
127cdf0e10cSrcweir CurOut() << new HorizontalLine;
128cdf0e10cSrcweir }
129cdf0e10cSrcweir
130cdf0e10cSrcweir
131cdf0e10cSrcweir
132