<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Le 18/09/2011 17:45, Joost Eekhoorn a écrit :
<blockquote
cite="mid:CAMGYdVCt0NB6YA143oy7guvVTj37HhFOTT0Mw082_p4utQQP9Q@mail.gmail.com"
type="cite">Hi Julien,<br>
</blockquote>
Hi Joost,<br>
<blockquote
cite="mid:CAMGYdVCt0NB6YA143oy7guvVTj37HhFOTT0Mw082_p4utQQP9Q@mail.gmail.com"
type="cite"><br>
I tried several evenings to implement only the vertical alignment
of fdo#31005, but I fail. Fine that you will look at this issue.<br>
<br>
1. tblafmt.cxx and tblafmt.hxx are the main places for writer, but
you have also to look at sc/inc/autoformat.hxx, because the
autoformat in calc and witer are related!<br>
</blockquote>
I took a look at sw/inc/tblafmt.hxx, I was quite astonished to read
this :<br>
// Calc specific<br>
99 SvxHorJustifyItem aHorJustify;<br>
100 SvxVerJustifyItem aVerJustify;<br>
101 SfxBoolItem aStacked;<br>
102 SvxMarginItem aMargin;<br>
103 SfxBoolItem aLinebreak;<br>
104 SfxInt32Item aRotateAngle;<br>
105 SvxRotateModeItem aRotateMode;<br>
<br>
In sc/inc/autoform.hxx, you can read too :<br>
// Writer specific<br>
107 SvxAdjustItem aAdjust;<br>
<br>
<blockquote
cite="mid:CAMGYdVCt0NB6YA143oy7guvVTj37HhFOTT0Mw082_p4utQQP9Q@mail.gmail.com"
type="cite">
<br>
2. Each time a new feature is added to table-autoformat, a new
AUTOFORMAT_ID must be created, so it would be nice to add several
features once, otherwise we get very many IDs.<br>
</blockquote>
A search of AUTOFORMAT_ID on opengrok gives these results :<br>
- sw/source/core/doc/tblafmt.cxx<br>
- sc/source/core/tool/autoform.cxx<br>
A quick reading shows it's quite the same structure<br>
<blockquote
cite="mid:CAMGYdVCt0NB6YA143oy7guvVTj37HhFOTT0Mw082_p4utQQP9Q@mail.gmail.com"
type="cite"><br>
3. First I tought that the vertical alignment was in
SvxParaVertAlignItem (editeng/inc/editeng/paravertalignitem.hxx),
but then I found out that is done by SwFmtVertOrient
(sw/inc/fmtornt.hxx). The last one can not be seen by calc, thus
that gives a problem with point 1</blockquote>
I don't know what's the role of editengine, I only found this :<br>
<a class="moz-txt-link-freetext" href="http://wiki.documentfoundation.org/Development/Code_Overview#editeng">http://wiki.documentfoundation.org/Development/Code_Overview#editeng</a><br>
<blockquote
cite="mid:CAMGYdVCt0NB6YA143oy7guvVTj37HhFOTT0Mw082_p4utQQP9Q@mail.gmail.com"
type="cite">.4. I have Implemented SwFmtVertOrient, but it did not
autoformat the table.<br>
</blockquote>
Have you already commited and pushed something about this ?<br>
<br>
<br>
I understand better now why this bug has been there since years.<br>
At this point, I don't know if it can be resolved effectively and
safely without some refactoring.<br>
<br>
Julien.<br>
<br>
PS : Perhaps <a class="moz-txt-link-freetext" href="http://api.libreoffice.org/">http://api.libreoffice.org/</a> could help too<br>
<blockquote
cite="mid:CAMGYdVCt0NB6YA143oy7guvVTj37HhFOTT0Mw082_p4utQQP9Q@mail.gmail.com"
type="cite"><br>
Regards<br>
Joost<br>
<br>
<br>
<div class="gmail_quote">2011/9/18 Julien Nabet <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:serval2412@yahoo.fr">serval2412@yahoo.fr</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">Le 18/09/2011 11:07, Cor Nouws a écrit :<br>
...<br>
<br>
Julien.<br>
<br>
</blockquote>
</div>
<br>
</blockquote>
<br>
</body>
</html>