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 .
24 // NOT FULLY DEFINED SERVICES
32 - light background color #eeeeff
33 - dark background color #ccccff
34 - self in navibar background color #2222ad
38 - page title 20, bold, Arial
39 - navibar main 12, bold, Arial
40 - navibar sub 8, Arial, small caps
41 - attrtable title line 8, bold, Arial, small caps
42 - attrtable value line 8, Arial small caps
44 - namespace chain 13, bold
45 - table title 13, bold
48 - member paragraph title 12, bold
50 - docu paragraph title 11, bold
53 - hierarchy 11, monospace
60 h4 member paragraph title
62 td.nmain navigation main bar
63 td.nsub navigation sub bar
64 a.nmain links in navigation main bar
65 a.nsub links in navigation sub bar
67 td.attr1 attribute table head line
68 td.attr2 attribute table value line
70 p.namechain namespace chain in head of pages
71 p.tpl template line in head of pages
73 pre.doc preformatted docu
74 pre.hierarchy class bases hierarchy graphic
76 dl.syntax function- or variable-declaration field
77 a.syntax link in function- or variable-declaration field
79 p.dt docu paragraph title
80 dl.dt docu paragraph title
93 bool bUse_OOoFrameDiv
= true;
96 //*************** These are used for IDL currently only! ********************
98 const char * const C_sStdStyle
=
99 "/*See bottom of file for explanations.*/" CRLF
101 "body { background-color:#ffffff; }" CRLF
103 "h3 { font-size:13pt; font-weight:bold;" CRLF
104 " margin-top:3pt; margin-bottom:1pt; }" CRLF
105 "p, dt, dd, pre { font-size:11pt;" CRLF
106 " margin-top:3pt; margin-bottom:1pt; }" CRLF
107 "pre { font-family:monospace; }" CRLF
109 "table.navimain { background-color:#eeeeff; }" CRLF
110 "table.subtitle { margin-top:6pt; margin-bottom:6pt; }" CRLF
112 "td { font-size:11pt; }" CRLF
113 "td.title { font-family: Arial; font-size:19pt; font-weight:bold;" CRLF
114 " line-height:30pt; background-color:#ccccff; text-align:center; }" CRLF
115 "td.subtitle { font-family: Arial; font-size:13pt;" CRLF
116 " line-height:20pt; background-color:#ccccff; }" CRLF
117 "td.crosstitle { font-size:12pt; font-weight:bold;" CRLF
118 " line-height:15pt; background-color:#eeeeff; }" CRLF
119 "td.imdetail { width:100%; background-color:#eeeeff; }" CRLF
121 "td.imsum_left { width:30%; }" CRLF
122 "td.imsum_right { width:70%; }" CRLF
124 "td.navimain, a.navimain" CRLF
125 " { text-align:center; font-family: Arial; font-size:12pt; font-weight:bold; }" CRLF
126 "td.navimainself { text-align:center; font-family: Arial; font-size:12pt; font-weight:bold;" CRLF
127 " color:#ffffff; background-color:#2222ad; }" CRLF
128 "td.navimainnone { text-align:center; font-family: Arial; font-size:12pt; }" CRLF
129 "td.navisub, a.navisub" CRLF
130 " { text-align:center; font-family: Arial; font-size:9pt; font-variant:small-caps; }" CRLF
131 "td.navimain, td.navisub" CRLF
132 " { padding-left:7pt; padding-right:7pt; }" CRLF
134 "a.membertitle { font-size:12pt; font-weight:bold; line-height:18pt; }" CRLF
135 "a.navimain, a.navisub { color:#000000; }" CRLF
136 ".dt { font-weight:bold; }" CRLF
137 ".namechain { font-size:13pt; font-weight:bold;" CRLF
138 " margin-top:3pt; margin-bottom:6pt; }" CRLF
139 ".title2 { font-size:13pt; font-style:italic; font-weight:bold; text-align:left; }" CRLF
143 const char * const C_sCssExplanations
=
144 "/* Explanation of CSS classes:" CRLF
146 ".navimain Text in main navigation bar." CRLF
147 ".navisub Text in lower navigation bar." CRLF
148 "td.navimainself Cell in main navigation bar with \"selected\" shadow: You are here." CRLF
149 "td.navimainnone Cell in main navigation bar with no link." CRLF
151 ".namechain Line with current module path." CRLF
153 "td.crosstitle Comment box for bases (base interfaces etc.)" CRLF
154 "td.imsum_left Left part of such boxes." CRLF
155 "td.imsum_right Right part of such boxes." CRLF
157 "td.title Main title of the page like \"interface XYz\"" CRLF
158 ".subtitle Tables, and head cells of those, which list members" CRLF
159 " like \"method summary\" and \"method details\"." CRLF
161 "td.imdetail Background table of method's detail description." CRLF
162 "a.membertitle Method name (as jump label) in method's detail" CRLF
164 ".title2 smaller font prefixes to page titles" CRLF
168 const char * const C_sStdStyle_withDivFrame
=
169 "/*See bottom of file for explanations.*/" CRLF
171 "body { background-color:#ffffff; }" CRLF
173 "#adc-idlref h3 { font-size:13pt; font-weight:bold;" CRLF
174 " margin-top:3pt; margin-bottom:1pt; }" CRLF
175 "#adc-idlref p, #adc-idlref dt, #adc-idlref dd, #adc-idlref pre" CRLF
176 " { font-size:11pt;" CRLF
177 " margin-top:3pt; margin-bottom:1pt; }" CRLF
178 "#adc-idlref pre { font-family:monospace; }" CRLF
180 "#adc-idlref table.navimain { background-color:#eeeeff; }" CRLF
181 "#adc-idlref table.subtitle { margin-top:6pt; margin-bottom:6pt; }" CRLF
183 "#adc-idlref td { font-size:11pt; }" CRLF
184 "#adc-idlref td.title { font-family: Arial; font-size:19pt; font-weight:bold;" CRLF
185 " line-height:30pt; background-color:#ccccff; text-align:center; }" CRLF
186 "#adc-idlref td.subtitle { font-family: Arial; font-size:13pt;" CRLF
187 " line-height:20pt; background-color:#ccccff; }" CRLF
188 "#adc-idlref td.crosstitle { font-size:12pt; font-weight:bold;" CRLF
189 " line-height:15pt; background-color:#eeeeff; }" CRLF
190 "#adc-idlref td.imdetail { width:100%; background-color:#eeeeff; }" CRLF
192 "#adc-idlref td.imsum_left { width:30%; }" CRLF
193 "#adc-idlref td.imsum_right { width:70%; }" CRLF
195 "#adc-idlref td.navimain, #adc-idlref a.navimain" CRLF
196 " { text-align:center; font-family: Arial; font-size:12pt; font-weight:bold; }" CRLF
197 "#adc-idlref td.navimainself { text-align:center; font-family: Arial; font-size:12pt; font-weight:bold;" CRLF
198 " color:#ffffff; background-color:#2222ad; }" CRLF
199 "#adc-idlref td.navimainnone { text-align:center; font-family: Arial; font-size:12pt; }" CRLF
200 "#adc-idlref td.navisub, #adc-idlref a.navisub" CRLF
201 " { text-align:center; font-family: Arial; font-size:9pt; font-variant:small-caps; }" CRLF
202 "#adc-idlref td.navimain, #adc-idlref td.navisub" CRLF
203 " { padding-left:7pt; padding-right:7pt; }" CRLF
205 "#adc-idlref a.membertitle { font-size:12pt; font-weight:bold; line-height:18pt; }" CRLF
206 "#adc-idlref a.navimain, #adc-idlref a.navisub { color:#000000; }" CRLF
207 "#adc-idlref .dt { font-weight:bold; }" CRLF
208 "#adc-idlref .namechain { font-size:13pt; font-weight:bold;" CRLF
209 " margin-top:3pt; margin-bottom:6pt; }" CRLF
210 "#adc-idlref .title2 { font-size:13pt; font-style:italic; font-weight:bold; text-align:left; }" CRLF
212 "#adc-idlref table { empty-cells:show; }" CRLF
214 "#adc-idlref .childlist td, " CRLF
215 "#adc-idlref .commentedlinks td, " CRLF
216 "#adc-idlref .memberlist td, " CRLF
217 "#adc-idlref .subtitle td, " CRLF
218 "#adc-idlref .crosstitle td { border: .1pt solid #000000; }" CRLF
220 "#adc-idlref .flag-table td { border: .1pt solid #cccccc; } " CRLF
222 "#adc-idlref .title-table td, " CRLF
223 "#adc-idlref .table-in-method td, " CRLF
224 "#adc-idlref .table-in-data td, " CRLF
225 "#adc-idlref .navimain td, " CRLF
226 "#adc-idlref .navisub td, " CRLF
227 "#adc-idlref .expl-table td, " CRLF
228 "#adc-idlref .param-table td { border: none; }" CRLF
232 } // anonymous namespace
236 : sDevelopersGuideHtmlRoot()
241 StdFrame::LogoSrc() const
245 // return new Html_Image( "logodot-blu.gif",
255 StdFrame::LogoLink() const
258 // return "http://www.sun.com";
259 // return "http://www.openoffice.org";
263 String
MakeCopyRight();
266 StdFrame::CopyrightText() const
268 static String
sCopyRight_( MakeCopyRight() );
269 return sCopyRight_
.c_str();
273 StdFrame::CssStyle() const
275 if (bUse_OOoFrameDiv
)
276 return C_sStdStyle_withDivFrame
;
282 StdFrame::CssStylesExplanation() const
284 return C_sCssExplanations
;
288 StdFrame::DevelopersGuideHtmlRoot() const
290 return sDevelopersGuideHtmlRoot
;
294 StdFrame::Set_DevelopersGuideHtmlRoot( const String
& i_directory
)
296 if (NOT i_directory
.empty())
298 if (i_directory
.char_at(i_directory
.length()-1) == '/')
300 sDevelopersGuideHtmlRoot
.assign(i_directory
,i_directory
.length()-1);
304 sDevelopersGuideHtmlRoot
= i_directory
;
315 plt
= localtime(>
);
316 int year
= 1900 + plt
->tm_year
;
318 cr
<< "Copyright © 2000, "
320 << " LibreOffice contributors and/or their affiliates. All rights reserved.</p>"
321 << "<p class=\"copyright\" align=\"center\">LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.</p>"
322 << "<p class=\"copyright\" align=\"center\">The Document Foundation acknowledges all community members, please find more info <a href=\"http://www.libreoffice.org/about-us/credits/\" target=\"_blank\">at our website</a>."
324 << "<p class=\"copyright\" align=\"center\"><a href=\"http://www.documentfoundation.org/privacy\" target=\"_blank\">Privacy Policy</a> | <a href=\"http://www.documentfoundation.org/imprint\" target=\"_blank\">Impressum (Legal Info)</a> | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (<a href=\"http://www.libreoffice.org/download/license/\" target=\"_blank\">LGPLv3</a>). \"LibreOffice\" and \"The Document Foundation\" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href=\"http://wiki.documentfoundation.org/TradeMark_Policy\" target=\"_blank\">trademark policy</a>.";
325 return String(cr
.c_str());
329 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */