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... » RichEdit and styles questions
Re: RichEdit and styles questions [message #21537 is a reply to message #21514] Mon, 25 May 2009 17:26 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Sat, 23 May 2009 18:36

Hello all

First question
Using UWord demo it is not possible to set one line with more than one style, but if I change the QTF file by hand, UWord opens the file properly:



I am afraid not really.

The problem is that it is PARAGRAPH style...

Quote:


Second question
I would like to parse the RichEdit text but focusing in the styles. For example text with "Default" style would be copied unchanged but text with "Formula" style would be converted into a mathematical formula, like converting:

Quote:

integral(sqrt(cos(phi_ini^2)) + i^2 + 6, i = 1, 10)*dx = cos((27+x^2)^3.25)/(PI*R_0^2)


in the equivalent formula:

index.php?t=getfile&id=1737&private=0

Do you know how to do this "the simple way" instead of parsing directly the QTF bytes?.



Simple (and I believe correct) way is to do is as RichObject. Do not mix with text...

BTW, nice formula renderer Wink

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: viewing html
Next Topic: Editor Toolbar
Goto Forum:
  


Current Time: Thu Apr 25 14:11:32 CEST 2024

Total time taken to generate the page: 0.02668 seconds