Hi Max, On 10/10/07 14:12, Maximilian Odendahl wrote:
I am listening to the destruction of fields with StartListening( *static_cast<SwPostItField*>(aField->GetFld()) );
I'm not sure if you should listen on the SwPostItField. Are the SwPostItFields actually destructed if you delete them from the text? Or are they still kept in some undo structure? I bet the SwPostItField::Ctor is called a couple of times whan inserting a new notes. I discussed this issue with OS and we think you should better listen on the SwTxtFld text attribute (or simply add some code to SwTxtFld::Ctor and SwTxtFld::Dtor that registers the note with the notes manager).
Hope this helps, Frank -- Frank Meies (fme) - OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
