From 4d240c4535597b194041d4351a891c973fb73737 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Wed, 14 Dec 2005 14:35:26 +0000 Subject: INTEGRATION: CWS rt13 (1.5.8); FILE MERGED 2005/12/05 14:45:13 np 1.5.8.1: #i58717# --- autodoc/source/display/toolkit/htmlfile.cxx | 30 ++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'autodoc/source/display/toolkit/htmlfile.cxx') diff --git a/autodoc/source/display/toolkit/htmlfile.cxx b/autodoc/source/display/toolkit/htmlfile.cxx index ed3f081ac282..086405505951 100644 --- a/autodoc/source/display/toolkit/htmlfile.cxx +++ b/autodoc/source/display/toolkit/htmlfile.cxx @@ -4,9 +4,9 @@ * * $RCSfile: htmlfile.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2005-09-07 18:01:59 $ + * last change: $Author: rt $ $Date: 2005-12-14 15:35:26 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -40,6 +40,11 @@ #include #include +namespace +{ +bool bUse_OOoFrameDiv = true; +const String C_sOOoFrameDiv_IdlId("adc-idlref"); +} using namespace csi; using csi::xml::AnAttribute; @@ -93,6 +98,16 @@ void DocuFile_Html::EmptyBody() { aBodyData.SetContent(0); + + if (bUse_OOoFrameDiv) + { + // Insert
tag to allow better formatting for OOo. + aBodyData + << new xml::XmlCode("
\n\n"); + } + aBodyData >> *new html::Label( "_top_" ) << " "; @@ -188,8 +203,17 @@ DocuFile_Html::WriteBody( csv::File & io_aFile ) << new xml::AnAttribute( "align", "center" ) << new xml::XmlCode(sCopyright); } - aBodyData.WriteOut(aBuffer); + if (bUse_OOoFrameDiv) + { + // Insert
tag to allow better formatting for OOo. + aBodyData + << new xml::XmlCode("\n
\n"); + } + + aBodyData.WriteOut(aBuffer); io_aFile.write(aBuffer.c_str(), aBuffer.size()); } -- cgit