summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2005-08-05 13:25:33 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2005-08-05 13:25:33 +0000
commitdecf0ffb0f6a63ca3c77d885de50b7b950f22ec5 (patch)
tree590ed589072163883da38f673876d2beb8116bcb
parent8632b86fac7de416d9f1bf87c99592d545850dab (diff)
INTEGRATION: CWS adc12p (1.4.6); FILE MERGED
2005/07/27 11:21:24 np 1.4.6.1: #i52495#
-rw-r--r--autodoc/source/display/html/outfile.cxx29
1 files changed, 19 insertions, 10 deletions
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[] =
"<html>\n<head>\n"
"<title>";
@@ -284,17 +287,21 @@ HtmlDocuFile::WriteHeader( csv::File & io_aFile )
static const char s3[] =
"\">\n</head>\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());
}