Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » Qtf to Html
Qtf to Html [message #1031] Wed, 15 February 2006 20:47 Go to previous message
pivica is currently offline  pivica
Messages: 57
Registered: November 2005
Location: Belgrade, Serbia
Member
I have some qtf text and I wont to export it to html file. This is what I figure it for now:

String qtf = GenerateSomeQtf();

FileSel fsHtml;
fsHtml.Type(t_("HTML files"), "*.html")
	  .AllFilesType();

if(!fsHtml.ExecuteSaveAs(t_("Export to html")))
	return;

String fname = ~fsHtml + "." + "html";
FileOut out(fname);
if(!out) { return; }

Index<String> css; //??
const VectorMap<String, String> links;  //??
String basedir = fsHtml.GetActiveDir();

SaveStream(out, EncodeHtml(ParseQTF(qtf), css, links, basedir));


First, how to make css? Can I export them from qtf styles or make them manual.
What are links?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with pasting images with transparency
Next Topic: How to construct RichText without using QTF?
Goto Forum:
  


Current Time: Sat May 04 04:50:15 CEST 2024

Total time taken to generate the page: 0.02299 seconds