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... » AIBRichEdit (a class derived from RichEdit)
AIBRichEdit (a class derived from RichEdit) [message #47219] Thu, 29 December 2016 16:05 Go to next message
wqcmaster is currently offline  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.

  1. 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
  2. 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
  3. create a comment on a to paragraph (para or parts of para)
    -> to display/represent it (in a separat frame or as tooltip)
  4. 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 -> RichObjectType: enable/disable resize feature [message #47235 is a reply to message #47219] Fri, 30 December 2016 14:49 Go to previous messageGo to next message
wqcmaster is currently offline  wqcmaster
Messages: 37
Registered: March 2013
Member
I just start with a simple extension:

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

When you touch this checkbox (a Upp::RichObjectType) , you will see this

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

It is now very difficult to use it in a suitable form. (set it or unset it)
So it was our requirement to disable this Resize feature.
Our result looks like this:

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

And if you want to resize this checkbox:
index.php?t=getfile&id=5126&private=0

to save this object-setting to qtf:


  • @@format:cx&cy keep aspect ratio and resize
  • @@format:cx|cy keepratio and noresize
  • @@format:cx*cy no keepratio and resize
  • @@format:cx#cy no keepratio and noresize


and here our patchfiles for this feature current release 2015.2 (rev 9251):

[Updated on: Fri, 30 December 2016 15:39]

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 Go to previous messageGo to next message
wqcmaster is currently offline  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

AIBRichEdit -> RichEdit: Preview image at insert image [message #47237 is a reply to message #47235] Fri, 30 December 2016 16:25 Go to previous messageGo to next message
wqcmaster is currently offline  wqcmaster
Messages: 37
Registered: March 2013
Member
We believe that if you want to insert a picture, it would be good to preview this image.

index.php?t=getfile&id=5133&private=0
index.php?t=getfile&id=5131&private=0

and here our patchfiles for this feature current release 2015.2 (rev 9251):
Re: AIBRichEdit -> RichEdit: Preview image at insert image [message #47706 is a reply to message #47237] Wed, 08 March 2017 00:00 Go to previous message
mirek is currently offline  mirek
Messages: 13990
Registered: November 2005
Ultimate Member
I feel that all this is really a great work, but it will take time to integrate.

One serious problem is that there was extensive change of richtext that now allows to change header/footer through the text...
Previous Topic: qtf and report print differently on different platform
Next Topic: RichEditCtrl/View without wrap?
Goto Forum:
  


Current Time: Sun Jul 14 23:01:15 CEST 2024

Total time taken to generate the page: 0.02376 seconds