RTF editing widget?

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
Yapper
In need of some credit
In need of some credit
Posts: 4
Joined: Thu Feb 03, 2005 10:37 pm

RTF editing widget?

Post by Yapper » Thu Feb 03, 2005 10:43 pm

Is there a widget -- doesn't have to be related to wxWidgets but that would be a plus -- that can display a full featured RTF (and/or Word) document, with functionality to edit text (bold, italics, fonts,etc)? Basically, a widget version of something like Abiword that I can embed into my project.

leio
Can't get richer than this
Can't get richer than this
Posts: 802
Joined: Mon Dec 27, 2004 10:46 am
Location: Estonia, Tallinn
Contact:

Re: RTF editing widget?

Post by leio » Fri Feb 04, 2005 2:08 am

Yapper wrote:Is there a widget -- doesn't have to be related to wxWidgets but that would be a plus -- that can display a full featured RTF (and/or Word) document, with functionality to edit text (bold, italics, fonts,etc)? Basically, a widget version of something like Abiword that I can embed into my project.
don't think so, but the idea is there to create a wxRichTextCtrl, so if you are really interested then we could work out something in the long run.
If your needs aren't THAT high as having to be equal to abiword then wxTextCtrl or some contrib (stc?) might do the job. Otherwise it'd have to be something non-wx.

I am interested in working on a wxRichTextCtrl class one day, if you're too, let me know.
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD

Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/

Yapper
In need of some credit
In need of some credit
Posts: 4
Joined: Thu Feb 03, 2005 10:37 pm

Post by Yapper » Fri Feb 04, 2005 6:39 pm

hmm, what do you mean by work something out in the long run? While I am interested in seeing an rtf control, i don't think I'm at the place right now where I can really contribute to working on one. I still have a long way to go as far as programming proficiency is concerned.

I don't have to have something that's as advanced as Abiword, I was just using that as an example, but I was hoping for a little more functionality than MS's richview component for example. And wx's cross platform support is desirable.

leio
Can't get richer than this
Can't get richer than this
Posts: 802
Joined: Mon Dec 27, 2004 10:46 am
Location: Estonia, Tallinn
Contact:

Post by leio » Sat Feb 05, 2005 10:51 pm

wxTextCtrl is a somewhat richtext editing widget, but it isn't very well suitable to be a WYSIWYG editor as I have experienced on my own. My projects demands weren't really high, so we got away by overloading some of wxTextCtrl's methods to get what we want.
wxTextCtrl lacks proper support for advanced richtext concepts. Indent, margins, tabs, embedded images/widgets, and so on. That's where a wxRichTextCtrl would be in order.

If you need to have a set amount of styling, you can look at the stc contrib that uses scintilla.
That's what you'd want if you are doing something like a source code editor that has a set amount of different styles known (different highlighting of code parts - remarks that color and italized, reserver keywords that color and bold, and so on). If the amount is unlimited due to the user doing WYSIWYG editing, then stc becomes very limited as far I know.

There are other classes available. wxMozilla, some other stuff I haven't had a look on.

Not sure what exactly do you need to accomplish.
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD

Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/

Frank
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Jan 01, 2005 6:19 pm

Post by Frank » Sat Feb 05, 2005 11:09 pm

I'm using TER from Subsystems (see http://www.subsystems.com/tewf.htm)

It's commercial and Windows-Only. But it is a complete textprocessor control, comes with source in ANSI C and works quite well.

Yapper
In need of some credit
In need of some credit
Posts: 4
Joined: Thu Feb 03, 2005 10:37 pm

Post by Yapper » Sun Feb 06, 2005 8:04 pm

leio wrote:Not sure what exactly do you need to accomplish.
I'm writing a program that will help me organize my notes and data, mostly for stories and such that I'm developing, I'm a writer. I'll be doing a lot of writing in the program.

I was looking at http://www.trichview.com/ for Delphi, that's a pretty good example of what my needs are. But, all things considered, the development costs I was looking at sent me looking for more affordable options, using mostly open source components and tools.


Frank, good god, how did you ever manage to afford it? :shock:

leio
Can't get richer than this
Can't get richer than this
Posts: 802
Joined: Mon Dec 27, 2004 10:46 am
Location: Estonia, Tallinn
Contact:

Post by leio » Tue Feb 08, 2005 12:42 am

Yapper wrote:I'm writing a program that will help me organize my notes and data, mostly for stories and such that I'm developing, I'm a writer. I'll be doing a lot of writing in the program.
But there's Writer's Caf
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD

Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/

Yapper
In need of some credit
In need of some credit
Posts: 4
Joined: Thu Feb 03, 2005 10:37 pm

Post by Yapper » Wed Feb 09, 2005 10:40 pm

I'll take a look at it. I've used other writing aid programs in the past but I've never found anything I'm really comfortable with -- either too bulky and incompatible with the way I work, or not enough features.

leio
Can't get richer than this
Can't get richer than this
Posts: 802
Joined: Mon Dec 27, 2004 10:46 am
Location: Estonia, Tallinn
Contact:

Post by leio » Thu Feb 10, 2005 1:17 am

I'm sure they'll be happy to hear your feedback!
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD

Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/

Post Reply