<HTML><BODY><div><span lang="en"><span><span>We created a new item "SvxTintItem" and updated include/vcl/font.hxx by adding methods for reading and setting tint.</span></span> <span><span>We tried to add processing of this value to vcl/source/outdev/text.cxx, to the ImplDrawSpecialText method.</span></span> <span><span>At the same time, we started looking for where the tint value was exported.<br><br>During the search we found that tint is already used in ComplexColor.</span></span> <span><span>We re-checked the use of attributes in unomap1 and unomapproperties and found out that UNO_NAME_CHAR_COLOR_TINT_OR_SHADE is used there.</span></span> <span><span>Is there a possibility that we did not need to create a new item, but could have applied the existing tint value processing?</span></span></span><br> <blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">On 31/08/2023, 13:36 +04:00, Michael Stahl <mst@libreoffice.org>:<br> <div id=""><div class="js-helper js-readmsg-msg"><div><div id="style_16934745902005034439_BODY">On 30/08/2023 20:24, Tomaž Vajngerl wrote:<div class="mail-quote-collapse">> Hi,<br>><br>> On Tue, Aug 29, 2023 at 12:30PM Амин Иргалиев <<a href="/compose?To=irgaliev01@mail.ru">irgaliev01@mail.ru</a>> wrote:<br>>><br>>> It is possible that the model we need is in sw/source/core/inc/swfont.hxx.<br>><br>> Yes, looks like the correct place (not exactly sure), but that would<br>> add it only for Writer (which is fine for now). I would trace how the<br>> "Relief" parameter (or "Shadow") is used and manipulated as that's<br>> kind-of a text effect that's already implemented. Best to go down from<br>> OOXML import and look how the font attributes are set...</div><br>adding it to the model needs a new SfxPoolItem subclass, and a new<br>WhichId in sw/inc/hintids.hxx, to be inserted before RES_CHRATR_END.<br><br>the item is used in SwTextNode item set, in SwFormatColl item set, and<br>in the SwFormatAutoFormat item set (which is used with<br>RES_TXTATR_AUTOFMT for formatted text portions inside a paragraph).<br><br>the SwFont is then used during the text formatting, there is an array<br>somewhere ... in SwAttrHandler that will need an extra entry for the new<br>item.</div></div></div></div></blockquote> <div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--</div><div>Vladislav Tarakanov</div></div></div><div> </div></div></BODY></HTML>