diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-12-14 14:35:26 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-12-14 14:35:26 +0000 |
commit | 4d240c4535597b194041d4351a891c973fb73737 (patch) | |
tree | 6a82f3f90145cde7ee88f1f61d0a9a9c28481c7a /autodoc/source/display/toolkit/htmlfile.cxx | |
parent | 6effa0d095fcb02ef6f744c5f8c2371da4223f46 (diff) |
INTEGRATION: CWS rt13 (1.5.8); FILE MERGED
2005/12/05 14:45:13 np 1.5.8.1: #i58717#
Diffstat (limited to 'autodoc/source/display/toolkit/htmlfile.cxx')
-rw-r--r-- | autodoc/source/display/toolkit/htmlfile.cxx | 30 |
1 files changed, 27 insertions, 3 deletions
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 <cosv/file.hxx> #include <udm/html/htmlitem.hxx> +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 <div> tag to allow better formatting for OOo. + aBodyData + << new xml::XmlCode("<div id=\"") + << new xml::XmlCode(C_sOOoFrameDiv_IdlId) + << 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 <div> tag to allow better formatting for OOo. + aBodyData + << new xml::XmlCode("\n</div> <!-- id=\"") + << new xml::XmlCode(C_sOOoFrameDiv_IdlId) + << new xml::XmlCode("\" -->\n"); + } + + aBodyData.WriteOut(aBuffer); io_aFile.write(aBuffer.c_str(), aBuffer.size()); } |