1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #include <precomp.h>
29*cdf0e10cSrcweir #include "pm_start.hxx"
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir 
32*cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES
33*cdf0e10cSrcweir #include <ary/ary.hxx>
34*cdf0e10cSrcweir #include "hd_chlst.hxx"
35*cdf0e10cSrcweir #include "hd_docu.hxx"
36*cdf0e10cSrcweir #include "navibar.hxx"
37*cdf0e10cSrcweir #include "html_kit.hxx"
38*cdf0e10cSrcweir #include "opageenv.hxx"
39*cdf0e10cSrcweir #include "pagemake.hxx"
40*cdf0e10cSrcweir #include "strconst.hxx"
41*cdf0e10cSrcweir 
42*cdf0e10cSrcweir 
43*cdf0e10cSrcweir using namespace csi;
44*cdf0e10cSrcweir using csi::html::Paragraph;
45*cdf0e10cSrcweir using csi::html::HorizontalLine;
46*cdf0e10cSrcweir using csi::html::AlignAttr;
47*cdf0e10cSrcweir using csi::html::Bold;
48*cdf0e10cSrcweir using csi::html::Link;
49*cdf0e10cSrcweir using csi::html::Sbr;
50*cdf0e10cSrcweir using csi::html::LineBreak;
51*cdf0e10cSrcweir 
52*cdf0e10cSrcweir 
53*cdf0e10cSrcweir 
54*cdf0e10cSrcweir PageMaker_Overview::PageMaker_Overview( PageDisplay & io_rPage )
55*cdf0e10cSrcweir     :   SpecializedPageMaker(io_rPage),
56*cdf0e10cSrcweir         pNavi(0)
57*cdf0e10cSrcweir {
58*cdf0e10cSrcweir }
59*cdf0e10cSrcweir 
60*cdf0e10cSrcweir PageMaker_Overview::~PageMaker_Overview()
61*cdf0e10cSrcweir {
62*cdf0e10cSrcweir }
63*cdf0e10cSrcweir 
64*cdf0e10cSrcweir void
65*cdf0e10cSrcweir PageMaker_Overview::MakePage()
66*cdf0e10cSrcweir {
67*cdf0e10cSrcweir     pNavi = new NavigationBar( Env(), NavigationBar::LOC_Overview );
68*cdf0e10cSrcweir     Write_NavBar();
69*cdf0e10cSrcweir 
70*cdf0e10cSrcweir     Write_TopArea();
71*cdf0e10cSrcweir     Write_DocuArea();
72*cdf0e10cSrcweir }
73*cdf0e10cSrcweir 
74*cdf0e10cSrcweir void
75*cdf0e10cSrcweir PageMaker_Overview::Write_NavBar()
76*cdf0e10cSrcweir {
77*cdf0e10cSrcweir     pNavi->Write( CurOut() );
78*cdf0e10cSrcweir     CurOut() << new HorizontalLine;
79*cdf0e10cSrcweir }
80*cdf0e10cSrcweir 
81*cdf0e10cSrcweir void
82*cdf0e10cSrcweir PageMaker_Overview::Write_TopArea()
83*cdf0e10cSrcweir {
84*cdf0e10cSrcweir     adcdisp::PageTitle_Std fTitle;
85*cdf0e10cSrcweir     fTitle( CurOut(), Env().RepositoryTitle(), "" );
86*cdf0e10cSrcweir 
87*cdf0e10cSrcweir     CurOut()
88*cdf0e10cSrcweir         >> *new Paragraph
89*cdf0e10cSrcweir             << new html::StyleAttr("font-size:14pt;")
90*cdf0e10cSrcweir             << "This is a reference documentation for the C++ source code."
91*cdf0e10cSrcweir             << new LineBreak
92*cdf0e10cSrcweir             << new LineBreak
93*cdf0e10cSrcweir             << "Points to start:";
94*cdf0e10cSrcweir 
95*cdf0e10cSrcweir     html::SimpleList &
96*cdf0e10cSrcweir         rList = *new html::SimpleList;
97*cdf0e10cSrcweir     CurOut() >> rList;
98*cdf0e10cSrcweir 
99*cdf0e10cSrcweir     html::ListItem & rNamedObjsItem =
100*cdf0e10cSrcweir         rList.AddItem();
101*cdf0e10cSrcweir 
102*cdf0e10cSrcweir     StreamLock sNspDir(50);
103*cdf0e10cSrcweir     rNamedObjsItem
104*cdf0e10cSrcweir             << new html::StyleAttr("font-size:14pt;")
105*cdf0e10cSrcweir             >> *new Link( sNspDir() << C_sDIR_NamespacesCpp
106*cdf0e10cSrcweir                                     << "/"
107*cdf0e10cSrcweir                                     << C_sHFN_Namespace
108*cdf0e10cSrcweir                                     << c_str )
109*cdf0e10cSrcweir                     >> *new Bold
110*cdf0e10cSrcweir                         << "Named Objects";
111*cdf0e10cSrcweir     rNamedObjsItem << " (classes, functions, namespaces, etc.)"
112*cdf0e10cSrcweir                    << new html::LineBreak;
113*cdf0e10cSrcweir     rList.AddItem()
114*cdf0e10cSrcweir             << new html::StyleAttr("font-size:14pt;")
115*cdf0e10cSrcweir             >> *new Link( "def-all.html" )
116*cdf0e10cSrcweir                     >> *new Bold
117*cdf0e10cSrcweir                         << "Defines and Macros"
118*cdf0e10cSrcweir                         << new html::LineBreak;
119*cdf0e10cSrcweir     StreamLock sIndexDir(50);
120*cdf0e10cSrcweir     rList.AddItem()
121*cdf0e10cSrcweir             << new html::StyleAttr("font-size:14pt;")
122*cdf0e10cSrcweir             >> *new Link( sIndexDir() << C_sDIR_Index
123*cdf0e10cSrcweir                                       << "/index-1.html"
124*cdf0e10cSrcweir                                       << c_str )
125*cdf0e10cSrcweir                     >> *new Bold
126*cdf0e10cSrcweir                         << "Global Index"
127*cdf0e10cSrcweir                         << new html::LineBreak;
128*cdf0e10cSrcweir }
129*cdf0e10cSrcweir 
130*cdf0e10cSrcweir void
131*cdf0e10cSrcweir PageMaker_Overview::Write_DocuArea()
132*cdf0e10cSrcweir {
133*cdf0e10cSrcweir     CurOut() << new HorizontalLine;
134*cdf0e10cSrcweir }
135*cdf0e10cSrcweir 
136*cdf0e10cSrcweir 
137*cdf0e10cSrcweir 
138