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(KHtmlBlockquoteEnd, ""); + +_LIT8(KHtmlLineBreak, "