Re: [Text Chains in Draw] A few question on general handling of chains of text boxes
This part has been completed; also we can chain-links are set directly after loading from file now. Thorsten, everything that worked already is working after setting the UNO property but the solution is a bit dirty. Please see my last chat message today. Matteo On Fri, Jul 24, 2015 at 12:14 AM Thorsten Behrens t...@documentfoundation.org wrote: Matteo Campanelli wrote: *Question*: what is a good place to keep these chains in svx? They hold some kind of global information so my first guess would be SdrModel. Does that make sense? Absolutely. At some point it should be possible to specify next links from the UI. *Question*: where should one put such commands/methods (called from the UI) for setting/removing links ? SdrTextObj-s themselves? There, or as a binary op on the SdrModel again, with the two boxes (upstream downstream) as parameters. See what feels more natural when calling it (SdrTextObj::setNextLink() or SdrModel::linkBoxes(up, down))... HTH, -- Thorsten ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Text Chains in Draw] A few question on general handling of chains of text boxes
Matteo Campanelli wrote: This part has been completed; also we can chain-links are set directly after loading from file now. Nice! Thorsten, everything that worked already is working after setting the UNO property but the solution is a bit dirty. Please see my last chat message today. To paste my answer (after spell-checking by mst): Look at include/svl/lstner.hxx for the listener interface, and SdrPaintView::Notify(), SdrPaintView::SetDefaultStyleSheet() for how to set yourself up for notifications and react on them. HTH, -- Thorsten signature.asc Description: Digital signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Text Chains in Draw] A few question on general handling of chains of text boxes
Matteo Campanelli wrote: *Question*: what is a good place to keep these chains in svx? They hold some kind of global information so my first guess would be SdrModel. Does that make sense? Absolutely. At some point it should be possible to specify next links from the UI. *Question*: where should one put such commands/methods (called from the UI) for setting/removing links ? SdrTextObj-s themselves? There, or as a binary op on the SdrModel again, with the two boxes (upstream downstream) as parameters. See what feels more natural when calling it (SdrTextObj::setNextLink() or SdrModel::linkBoxes(up, down))... HTH, -- Thorsten signature.asc Description: Digital signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice