diff -r 000000000000 -r 2e3d3ce01487 filehandling/richtexttohtmlconverter/inc/HTMLDEFS.H --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/filehandling/richtexttohtmlconverter/inc/HTMLDEFS.H Tue Feb 02 10:12:00 2010 +0200 @@ -0,0 +1,93 @@ +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __RICH_TEXT_2_HTML_TAGS_H_ +#define __RICH_TEXT_2_HTML_TAGS_H_ + +// consts for HTML tags +const TInt KTwipsToBlockQuote = 1440; // +const TInt KHtmlTwipsToHeight = 72; // +const TInt KHtmlTwipsToHeightBaseAdjust = 30; // Assigned by trial & error +const TInt KHtmlMaxFontSize = 7; + +// codes for HTML reserved characters +#define KLessThan '<' +#define KGreaterThan '>' +#define KAmpersand '&' + +_LIT8(KHtmlLessThan, "<"); +_LIT8(KHtmlGreaterThan, ">"); +_LIT8(KHtmlAmpersand, "&"); + +#define KCRLF "\x0d\x0a" + +// Tagsville... +// Meta markup tags +_LIT8(KHTMLDocType32, "\x0d\x0a"); +_LIT8(KHtmlStartTag, " \x0d\x0a"); +_LIT8(KHtmlEndTag, " \x0d\x0a"); +_LIT8(KHtmlHeadStartTag, " \x0d\x0a"); +_LIT8(KHtmlHeadEndTag, " \x0d\x0a"); +_LIT8(KHTMLHeadMetaGenTag, "\x0d\x0a"); +#ifdef _UNICODE + _LIT8(KHTMLMetaCharSetUTF8, ""); +#endif // _UNICODE +_LIT8(KHTMLHeadTitleStartTag, ""); +_LIT8(KHTMLHeadTitleEndTag, "\x0d\x0a"); +_LIT8(KHtmlBodyStartTag, "\x0d\x0a"); +_LIT8(KHtmlBodyEndTag, "\x0d\x0a"); + +_LIT8(KHtmlFontSizeStart, ""); +_LIT8(KHtmlFontColourStart, ""); +// +_LIT8(KHtmlFontStartClrNSize, ""); +// +_LIT8(KHtmlFontEnd, ""); +_LIT8(KHtmlBoldStart, ""); +_LIT8(KHtmlBoldEnd, ""); +_LIT8(KHtmlUnderlineStart, ""); +_LIT8(KHtmlUnderlineEnd, ""); +_LIT8(KHtmlItalicStart, ""); +_LIT8(KHtmlItalicEnd, ""); +_LIT8(KHtmlStrikeoutStart, "") ; +_LIT8(KHtmlStrikeoutEnd, ""); +_LIT8(KHtmlSuperscriptStart, ""); +_LIT8(KHtmlSuperscriptEnd, ""); +_LIT8(KHtmlSubscriptStart, ""); +_LIT8(KHtmlSubscriptEnd, ""); +_LIT8(KHtmlTeletypeStart, ""); +_LIT8(KHtmlTeletypeEnd, ""); + +// Paragraph level formatting +_LIT8(KHtmlDivAlignNoneStart, "
"); +_LIT8(KHtmlDivAlignCentreStart, "
"); +_LIT8(KHtmlDivAlignLeftStart, "
"); +_LIT8(KHtmlDivAlignRightStart, "
"); +_LIT8(KHtmlDivAlignJustifyStart, "
"); +_LIT8(KHtmlDivEnd, "
\x0d\x0a"); +_LIT8(KHtmlDivBlankEnd, " 
"); +_LIT8(KHtmlDivBlank, "
 
"); +_LIT8(KHtmlParagraphEnd, "

\x0d\x0a"); +_LIT8(KHtmlBulletListStart, "
    "); +_LIT8(KHtmlBulletListEnd, "\x0d\x0a
\x0d\x0a"); +_LIT8(KHtmlBulletListPointStart, "\x0d\x0a
  • "); +_LIT8(KHtmlBulletListPointEnd, "
  • "); +_LIT8(KHtmlBlockquoteStart, "
    "); +_LIT8(KHtmlBlockquoteEnd, "
    "); + +_LIT8(KHtmlLineBreak, "
    "); +_LIT8(KHtmlFailedEmbedTag, "X"); + +#endif // __RICH_TEXT_2_HTML_TAGS_H_