Home » U++ Library support » RichText,QTF,RTF... » AIBRichEdit (a class derived from RichEdit)
AIBRichEdit (a class derived from RichEdit) [message #47219] |
Thu, 29 December 2016 16:05  |
wqcmaster
Messages: 37 Registered: March 2013
|
Member |
|
|
We have made several extension of RichEdit / RichText(RichTxt) for AIBWord
Do you need a patch file or should I tell you what we did and why we did make it?
We have some ideas, but I do not have a good workable approach at the moment.
- objects that not store in a para:
maybe (QTF): ^O<name of object>^^<data> -> in the text, if necessary, refer to the object
At the moment our solution is as follows: Because QTF objects have to store in para, we have additional para at the end of a document at saving time. When load a document, we delete this additional para - para with additional attributs:
locking of para (or parts of para) -> no modification on text in this para
marker or typ of para (or parts of para) -> to create a table of content - create a comment on a to paragraph (para or parts of para)
-> to display/represent it (in a separat frame or as tooltip) - line count, word count, current position
at the moment, we have a badly solution to display info at the statusbar
additional statistik
[Updated on: Fri, 30 December 2016 13:59] Report message to a moderator
|
|
|
|
AIBRichEdit -> CtrlCore\ParseRTF.cpp read token "line" and "MERGEFIELD" [message #47236 is a reply to message #47219] |
Fri, 30 December 2016 15:34   |
wqcmaster
Messages: 37 Registered: March 2013
|
Member |
|
|
a second simple extension:
in CtrlCore\ParseRTF.cpp:
read token "line" and "MERGEFIELD" from a rtf file.
> if(symdef[0] == "MERGEFIELD" && symdef.GetCount() >= 1){ // add dagobert Nov 2016
> para.Cat(Upp::Id("MERGEFIELD"),symdef[1],state.charformat);
> return true;
> }
In our AIBWord solution, we haven't registerd a fieldtype "MERGEFIELD". In AIBWord we replace this field "MERGEFIELD" with a suitable element that meets the relevant criteria.
and here our patchfiles for this feature current release 2015.2 (rev 9251):
[Updated on: Fri, 30 December 2016 15:37] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:07:22 CEST 2025
Total time taken to generate the page: 0.01240 seconds
|