Hi Christian,
SdPage::CreateTitleAndLayout() is where I made the changes. But I still
have the problem. Here are my changes in a cvs diff for sdpage.cxx:
@@ -883,9 +883,13 @@
Point aPos(nX, nY + NOTES_HEADER_FOOTER_HEIGHT);
USHORT nPgNum = 0;
+ BOOL bRTL = TRUE; // testing
for (USHORT nRow = 0; nRow < nRowCnt; nRow++)
{
- aPos.X() = nX;
+ if (bRTL)
+ aPos.X() = nX +
(aPartArea.Width() + nGapW)*(nColCnt - 1);
+ else
+ aPos.X() = nX;
for (USHORT nCol = 0; nCol < nColCnt;
nCol++)
{
@@ -904,7 +908,10 @@
}
nPgNum++;
- aPos.X() += aPartArea.Width() +
nGapW;
+ if (bRTL)
+ aPos.X() -=
aPartArea.Width() + nGapW;
+ else
+ aPos.X() +=
aPartArea.Width() + nGapW;
}
aPos.Y() += aPartArea.Height() + nGapH;
Thanks for your help,
Alan
Christian Lippka wrote:
Hi Alan,
the code you want to change is in SdPage::CreateTitleAndLayout().
Search for "if( mePageKind == PK_HANDOUT && bInit )", the code inside
this if
creates the previews for handout layouts.
This only changes the positions for newly created documents. But I would
not start to change existing documents on load, this is never a good
idea. Esp. if there is the workaround to fix them by assigning a layout
again.
As this is a complex function, please let me review your changes before
this is added to the master.
Regards,
Christian
Alan Yaniger wrote:
Hi list-members,
I'm working on adjusting the layout for handouts in RTL (Issue
37195). I wrote code in SdPage::CreateTitleAndLayout which sets the
co-ordinates of the slides so that the display is RTL. My changes
work fine if I am already in "Handout" view, and I change the layout
by clicking on one of the options in the "Layouts" window. However,
when I first enter "Handout" view, this code is not executed, and the
order of the slides remains LTR. Where is the code which sets the
co-ordinates of the slides when I first enter "Handout" view?
Thanks,
Alan
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]