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


Hi Matteo,

On Mon, May 05, 2014 at 10:24:55AM -0400, Matteo Campanelli <matteo.campanelli@gmail.com> wrote:
I'm working on adding text background color to Draw text frames but I
suspect I'm having troubles finding my way through the basics of the whole
application's architecture.

In general, TextFrame is a Writer concept, what you want to improve here
is the shape text of drawinglayer shapes, I guess. ;-)

Browsing through code in sd/,  I haven't found anything that seemed to deal
specifically with text properties.
I suppose most of the responsibility for text features is in some external
module (editeng, by any chance?), but I don't understand where it is that
Draw-specific code makes use of these features.

Yes, it's editeng that provides the shape text functionality in
Impress/Draw.

Could anyone point to any documentation/code I could look at or could
anyone help me get clarity on this point?

include/editeng/eeitem.hxx provides the identifiers for editeng
properties, EE_CHAR_GRABBAG and EE_CHAR_CASEMAP are quite recent
additions, they may serve as a good example on how to add a new editeng
character (i.e. when the property is not for the paragraph, but only for
a portion of it) property.

That's the document model. Once you are done with that, the next steps
are dealing with UNO API, layout, filters, tests, UI -- but one step at
a time. :-)

Miklos

Attachment: signature.asc
Description: Digital signature


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.