Hi Niklas,
OK, I've managed to get the text direction to be RTL. But now, the text
is left-aligned, even before I start editing. How do I get the text to
be right-aligned now? I tried:
pEditDefaults->Put( SvxAdjustItem( SVX_ADJUST_RIGHT,
EE_PARA_JUST ) );
pEdEngine->SetDefaults( *pEditDefaults );
in the ScEditWindow constructor, but it didn't work.
Thanks for your help,
Alan
Niklas Nebel wrote:
Alan Yaniger wrote:
However, I'm stumped by a thrid problem. If I try to edit the
header/footer text, whether in the left, center, or right areas, the
modified text immediately jumps to the left edge of the window, and
the text direction becomes LTR. I've been trying without success to
set the text direction to be RTL. How can it be done?
EditEngine and VCL's automatic RTL handling don't work together.
EnableRTL(FALSE) has to be called for the ScEditWindow, and
EditEngine's paragraph attributes be used for right alignment.
Text direction should be set using SetDefaultHorizontalTextDirection,
using the value from the page style. What did you use?
Niklas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]