From koffice-devel Tue Mar 18 07:16:27 2008 From: Thorsten Zachmann Date: Tue, 18 Mar 2008 07:16:27 +0000 To: koffice-devel Subject: Re: Tables in KWord? (was: MS filters) Message-Id: <200803180816.27192.t.zachmann () zagge ! de> X-MARC-Message: https://marc.info/?l=koffice-devel&m=120582471310900 On Monday 17 March 2008, Thomas Zander wrote: > On Monday 17. March 2008 22:08:47 Thomas Zander wrote: > > > * Integrate the table shape as an embedded object > > > in a text shape's QTextDocument by: > > > * using a Unicode text object > > > (QChar::ObjectReplacementCharacter) > > > * a QTextObject derived class > > > (QTextTable is a QTextObject already) > > > > Those two things are the same thing, really. In the QTextLayout (aka > > plain Qt) the QTextObject stuff is implemented on top of the former as > > an easier way for Qt customers to extend this.  I wrote my own version > > which IMO is more powerful.  See the KoInlineObject class. > > I just noted that the KoInlineObjectRegistry has been removed (merged with > the KoVariable one). This means that you can no longer have a plugin like > a table as you suggested above. Instead you need a KoVariable inheriting > object if you want to have a text plugin; which means those plugins are > limited to having a purely textual content. The code is still there. It is just not compiled at the moment. So it is very easy to bring it back. Thorsten _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel