From decf0ffb0f6a63ca3c77d885de50b7b950f22ec5 Mon Sep 17 00:00:00 2001
From: Jens-Heiner Rechtien
Date: Fri, 5 Aug 2005 13:25:33 +0000
Subject: INTEGRATION: CWS adc12p (1.4.6); FILE MERGED 2005/07/27 11:21:24 np
1.4.6.1: #i52495#
---
autodoc/source/display/html/outfile.cxx | 29 +++++++++++++++++++----------
1 file changed, 19 insertions(+), 10 deletions(-)
(limited to 'autodoc/source/display')
diff --git a/autodoc/source/display/html/outfile.cxx b/autodoc/source/display/html/outfile.cxx
index f76231fe8830..212ea6ac375a 100644
--- a/autodoc/source/display/html/outfile.cxx
+++ b/autodoc/source/display/html/outfile.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: outfile.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: vg $ $Date: 2005-03-23 08:58:31 $
+ * last change: $Author: hr $ $Date: 2005-08-05 14:25:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -184,7 +184,8 @@ HtmlDocuFile::HtmlDocuFile()
sTitle(),
sCopyright(),
nDepth(0),
- aBodyData()
+ aBodyData(),
+ aBuffer(60000) // Grows dynamically when necessary.
{
}
@@ -275,6 +276,8 @@ HtmlDocuFile::WriteCssFile( const csv::ploc::Path & i_rFilePath )
void
HtmlDocuFile::WriteHeader( csv::File & io_aFile )
{
+ aBuffer.reset();
+
static const char s1[] =
"\n\n"
"";
@@ -284,17 +287,21 @@ HtmlDocuFile::WriteHeader( csv::File & io_aFile )
static const char s3[] =
"\">\n\n";
- io_aFile.write( s1 );
- io_aFile.write( sTitle );
- io_aFile.write( s2 );
- io_aFile.write( output::get_UpLink(nDepth) );
- io_aFile.write( C_sHFN_Css );
- io_aFile.write( s3 );
+ aBuffer.write( s1 );
+ aBuffer.write( sTitle );
+ aBuffer.write( s2 );
+ aBuffer.write( output::get_UpLink(nDepth) );
+ aBuffer.write( C_sHFN_Css );
+ aBuffer.write( s3 );
+
+ io_aFile.write(aBuffer.c_str(), aBuffer.size());
}
void
HtmlDocuFile::WriteBody( csv::File & io_aFile )
{
+ aBuffer.reset();
+
aBodyData
>> *new html::Link( "#_top_" )
<< new html::ClassAttr( "objchapter" )
@@ -316,5 +323,7 @@ HtmlDocuFile::WriteBody( csv::File & io_aFile )
<< new xml::AnAttribute( "align", "center" )
<< new xml::XmlCode(sCopyright);
}
- aBodyData.WriteOut(io_aFile);
+ aBodyData.WriteOut(aBuffer);
+
+ io_aFile.write(aBuffer.c_str(), aBuffer.size());
}
--
cgit