On Tue, 2006-11-07 at 08:43 +0200, Alan Yaniger wrote:
> Hi list-members,
>
> When I export a document to MS Word format, the style
for footnotes is
> always left-aligned, even for RTL footnotes. Where
could I change the
> alignment of the exported style for RTL footnotes?
The footnote paragraph style itself should be exported like
any other
style, in wrtw8sty.cxx WW8WrtStyle::WW8WrtStyle where the
styles are
collected and exported. So for a style which is r2l then
OutWW8_SvxFrameDirection should be called for that style and
l2r or r2l
set (sprm 0x2441)
The problem *possibly* arises because most of the defaults
for these
styles in writer are "use super-ordinate"
direction, and word doesn't
have this setting, so we resolve at export time the real
direction of
each instance of a paragraph using such a style and set that
manually
for each one. But at style-time we have no idea which
direction to use
and set no direction on the actual style. So if the style in
writer is
"use super-ordinate" then no direction should be
exported on the style
itself, but individually on the paragraphs that use it.
Assuming the super-ordinate case...
The direction is supposed to be determined in wrtw8nds.cxx
at
WW8_SwAttrIter::WW8_SwAttrIter where we find the direction
of the
paragraph (SwTxtNode) we are exporting.
OutWW8_SwTxtNode which exports a paragraph creates such an
attribute
iterator, and checks to see if the current paragraph has no
hardcoded
direction property and adds such a property if needed to the
propertyset
to be exported (pTmpSet) and the whole bundle (hopefully
with either a
pre-existing direction property, or the new calculated one)
is exported
at the rWW8Wrt.Out_SfxItemSet line.
So, OutWW8_SwTxtNode, the test for direction and the few
lines around
the
"If a given para is using the FRMDIR_ENVIRONMENT
direction we cannot
export that..."
comment might be helpful to see what's going on.
It might be the case that footnotes themselves are being
handled
sufficiently differently from body text paragraphs that
they're falling
through some trapdoor which either skips setting the
direction on the
exported paragraph or some silly bug where the exporter took
the wrong
direction.
C.
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe sw.openoffice.org
For additional commands, e-mail: dev-help sw.openoffice.org
|