Re: [GSoC 2014] Code pointers for text properties in Draw
Hi Matteo, On Mon, May 05, 2014 at 10:24:55AM -0400, Matteo Campanelli matteo.campane...@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 signature.asc Description: Digital signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [GSoC 2014] Code pointers for text properties in Draw
Hi Matteo, What Miklos said and maybe another clue - SdrTextObj [1] (and other related objects like SdrRectObject). They are used in Draw (and use editeng) but are also cross component. However I don't know anything more about this. :) Regards, Tomaž [1] - http://opengrok.libreoffice.org/xref/core/svx/source/svdraw/svdotext.cxx ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [GSoC 2014] Code pointers for text properties in Draw
On 05/05/14 16:24, Matteo Campanelli wrote: Hi all, 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. 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. sd module mostly contains the UI stuff around the document; . for the contents of text boxes, see editeng. the drawing object model stuff is in svx, with class SdrModel acting as a container for everything; probably the document class(es) in sd have one of these. i'd suspect the SdrTextObj class of having something to do with your question, if not grepping for Outliner should help. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[GSoC 2014] Code pointers for text properties in Draw
Hi all, 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. 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. Could anyone point to any documentation/code I could look at or could anyone help me get clarity on this point? Cheers, Matteo ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice