Re: text:id is deprecated

2012-01-05 Thread Pierre Stirnweiss
You either call KoTextEditor->beginEditBlock before doing all the operations (ie, before deleting the shape and the anchor), and call textEditor->endEditBlock(), or alternatively you create a KUndo2Command and call KoTextEditor->addCommand(yourCommand). I think the second method is better as it all

Re: text:id is deprecated

2012-01-04 Thread Thorsten Zachmann
On Wednesday, January 04, 2012 11:55:14 Boudewijn Rempt wrote: > On Thursday 15 December 2011 Dec, Boudewijn Rempt wrote: > > It turns out that currently, only the rdf system keeps the actual id > > strings after loading is finished, the other parts of calligra only > > use the id strings to build

Re: text:id is deprecated

2012-01-04 Thread Boudewijn Rempt
On Thursday 15 December 2011 Dec, Boudewijn Rempt wrote: > It turns out that currently, only the rdf system keeps the actual id > strings after loading is finished, the other parts of calligra only > use the id strings to build their mappings during loading, and > recreate them during saving. T

Re: text:id is deprecated

2011-12-16 Thread Boudewijn Rempt
On Thursday 15 December 2011 Dec, Jos van den Oever wrote: > I generally like the plan and could not find any problem. A question though: > would the classes KoElementReferenceData know if there are any > KoElementReference instances that point to it? If there aren't any, there is > no need to

Re: text:id is deprecated

2011-12-15 Thread Jos van den Oever
On Thursday, December 15, 2011 16:24:24 PM Boudewijn Rempt wrote: > On Thursday 15 December 2011 Dec, Jos van den Oever wrote: > > On Thursday, December 15, 2011 11:21:19 AM Thorsten Zachmann wrote: > > > > Well, no... Not that I could find. In fact, until yesterday > > > > encountering an xml:id w

Re: text:id is deprecated

2011-12-15 Thread C. Boemann
On Thursday 15 December 2011 16:24:24 Boudewijn Rempt wrote: > In passing: it would be good if we could directly attach rdf metadata to an > element (like text:table) instead of always having to work with bookmarks. Yes very. Bookmarks, anchors and softbreaks are evil in that they are are non visi

Re: text:id is deprecated

2011-12-15 Thread Boudewijn Rempt
On Thursday 15 December 2011 Dec, Jos van den Oever wrote: > On Thursday, December 15, 2011 11:21:19 AM Thorsten Zachmann wrote: > > > Well, no... Not that I could find. In fact, until yesterday encountering > > > an xml:id when loading text or bookmarks always means "aha! rdf!", and > > > the load

Re: text:id is deprecated

2011-12-15 Thread Jos van den Oever
On Thursday, December 15, 2011 11:21:19 AM Thorsten Zachmann wrote: > > Well, no... Not that I could find. In fact, until yesterday encountering > > an xml:id when loading text or bookmarks always means "aha! rdf!", and > > the loading code doesn't have access to the rdf document, which it could >

Re: text:id is deprecated

2011-12-15 Thread Thorsten Zachmann
On Thursday, December 15, 2011 10:38:42 Boudewijn Rempt wrote: > On Thursday 15 December 2011 Dec, Thorsten Zachmann wrote: > > On Thursday, December 15, 2011 09:14:28 Boudewijn Rempt wrote: > > > On Thursday 15 December 2011 Dec, Thorsten Zachmann wrote: > > > > for me this looks like a bit of ove

Re: text:id is deprecated

2011-12-15 Thread Boudewijn Rempt
On Thursday 15 December 2011 Dec, Thorsten Zachmann wrote: > On Thursday, December 15, 2011 09:14:28 Boudewijn Rempt wrote: > > On Thursday 15 December 2011 Dec, Thorsten Zachmann wrote: > > > for me this looks like a bit of overkill. Let me explain how the id stuff > > > in the animations work. >

Re: text:id is deprecated

2011-12-15 Thread Thorsten Zachmann
On Thursday, December 15, 2011 09:14:28 Boudewijn Rempt wrote: > On Thursday 15 December 2011 Dec, Thorsten Zachmann wrote: > > for me this looks like a bit of overkill. Let me explain how the id stuff > > in the animations work. > > Right now, for animations, draw:id is used, isn't it? right but

Re: text:id is deprecated

2011-12-15 Thread Boudewijn Rempt
On Thursday 15 December 2011 Dec, Thorsten Zachmann wrote: > for me this looks like a bit of overkill. Let me explain how the id stuff in > the animations work. Right now, for animations, draw:id is used, isn't it? > The xml id is not kept. It is only used during loading to > be able to get t

Re: text:id is deprecated

2011-12-14 Thread Thorsten Zachmann
Hello, On Wednesday, December 14, 2011 16:21:53 Boudewijn Rempt wrote: > On Wednesday 14 December 2011 Dec, C. Boemann wrote: > > all well, except how do the animation framework get the related qobject > > from this? > > I'm not sure how that works now, I guess they use the xml:id or draw:id as >

Re: text:id is deprecated

2011-12-14 Thread Boudewijn Rempt
On Wednesday 14 December 2011 Dec, C. Boemann wrote: > all well, except how do the animation framework get the related qobject from > this? I'm not sure how that works now, I guess they use the xml:id or draw:id as a qstring key into a map. So then it should use the reference, not the id string

Re: text:id is deprecated

2011-12-14 Thread C. Boemann
On Wednesday 14 December 2011 16:06:15 Boudewijn Rempt wrote: > On Wednesday 14 December 2011 Dec, Boudewijn Rempt wrote: > > On Friday 02 December 2011 Dec, Jos van den Oever wrote: > > > After upgrading the calligra source code to the latest version of the > > > Relax NG schema, a problem became

Re: text:id is deprecated

2011-12-14 Thread Boudewijn Rempt
On Wednesday 14 December 2011 Dec, Boudewijn Rempt wrote: > On Friday 02 December 2011 Dec, Jos van den Oever wrote: > > After upgrading the calligra source code to the latest version of the Relax > > NG > > schema, a problem became apparent. > > > > In various places, Calligra uses text:id. In

Re: text:id is deprecated

2011-12-14 Thread Boudewijn Rempt
On Friday 02 December 2011 Dec, Jos van den Oever wrote: > After upgrading the calligra source code to the latest version of the Relax > NG > schema, a problem became apparent. > > In various places, Calligra uses text:id. In ODF 1.2, text:id has been > deprecated in many places in favor of xml

Re: text:id is deprecated

2011-12-02 Thread Jos van den Oever
On Friday, December 02, 2011 16:38:29 PM Jos van den Oever wrote: > After upgrading the calligra source code to the latest version of the Relax > NG schema, a problem became apparent. > > In various places, Calligra uses text:id. In ODF 1.2, text:id has been > deprecated in many places in favor of

text:id is deprecated

2011-12-02 Thread Jos van den Oever
After upgrading the calligra source code to the latest version of the Relax NG schema, a problem became apparent. In various places, Calligra uses text:id. In ODF 1.2, text:id has been deprecated in many places in favor of xml:id. For the specification says: --- The text:id attribute speci