Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Hi,

I am working on the global handling of chains of text boxes in Draw.
The idea would be to keep the information on which text objects belong to
which chain by using a svx class TextChain (that I created).
An example of a (partial) interface TextChain would be the following (quite
similar to a linked list):
[Side reminder: text boxes roughly correspond to SdrTextObj objects].
- InsertNode(SdrTextObj *prev, SdrTextObj *newNode)
- AppendNode(SdrTextObj *newNode)
- GetPrevNode(SdrTextObj *)
- GetNextNode(SdrTextObj *)

Also note that in a Draw document there can be an arbitrary number of
chains of SdrTextObj-s.

*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?

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?

Cheers,
Matteo

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.