View | Details | Raw Unified | Return to issue 76697
Collapse All | Expand All

(-)sd/source/ui/slidesorter/inc/view/SlsLayouter.hxx (-1 / +3 lines)
Lines 74-80 Link Here
74
class Layouter
74
class Layouter
75
{
75
{
76
public:
76
public:
77
    Layouter (void);
77
    Layouter (BOOL bRTL);
78
    ~Layouter (void);
78
    ~Layouter (void);
79
79
80
    /** Set the minimal, the maximal, and the desired width of the page
80
    /** Set the minimal, the maximal, and the desired width of the page
Lines 328-333 Link Here
328
328
329
    BackgroundRectangleList maBackgroundRectangleList;
329
    BackgroundRectangleList maBackgroundRectangleList;
330
330
331
    BOOL mbRTL;
332
331
    enum GapMembership { GM_NONE, GM_PREVIOUS, GM_BOTH, GM_NEXT,
333
    enum GapMembership { GM_NONE, GM_PREVIOUS, GM_BOTH, GM_NEXT,
332
                         GM_PAGE_BORDER};
334
                         GM_PAGE_BORDER};
333
335
(-)sd/source/ui/slidesorter/view/SlideSorterView.cxx (-1 / +2 lines)
Lines 99-105 Link Here
99
	mrModel (rModel),
99
	mrModel (rModel),
100
    maPageModel(),
100
    maPageModel(),
101
    mpPage(new SdrPage(maPageModel)),
101
    mpPage(new SdrPage(maPageModel)),
102
    mpLayouter (new Layouter ()),
102
    mpLayouter (new Layouter (rModel.GetDocument()->GetDefaultWritingMode() == ::com::sun::star::text::WritingMode_RL_TB )),
103
    mbPageObjectVisibilitiesValid (false),
103
    mbPageObjectVisibilitiesValid (false),
104
    mpPreviewCache(),
104
    mpPreviewCache(),
105
    mpViewOverlay (new ViewOverlay(rViewShell)),
105
    mpViewOverlay (new ViewOverlay(rViewShell)),
Lines 115-120 Link Here
115
    SetPageVisible (FALSE);
115
    SetPageVisible (FALSE);
116
116
117
    ModelHasChanged();
117
    ModelHasChanged();
118
    ;
118
}
119
}
119
120
120
121
(-)sd/source/ui/slidesorter/view/SlsLayouter.cxx (-2 / +7 lines)
Lines 43-49 Link Here
43
43
44
namespace sd { namespace slidesorter { namespace view {
44
namespace sd { namespace slidesorter { namespace view {
45
45
46
Layouter::Layouter (void)
46
Layouter::Layouter (BOOL bRTL = FALSE)
47
    : mnRequestedLeftBorder(10),
47
    : mnRequestedLeftBorder(10),
48
      mnRequestedRightBorder(10),
48
      mnRequestedRightBorder(10),
49
      mnRequestedTopBorder(10),
49
      mnRequestedTopBorder(10),
Lines 68-74 Link Here
68
      mnMaximalColumnCount (5),
68
      mnMaximalColumnCount (5),
69
      mnColumnCount (1),
69
      mnColumnCount (1),
70
      maPageObjectModelSize (1,1),
70
      maPageObjectModelSize (1,1),
71
      maPageObjectPixelSize (1,1)
71
      maPageObjectPixelSize (1,1),
72
	mbRTL(bRTL)
72
{
73
{
73
}
74
}
74
75
Lines 342-347 Link Here
342
Rectangle Layouter::GetPageObjectBox (sal_Int32 nIndex) const
343
Rectangle Layouter::GetPageObjectBox (sal_Int32 nIndex) const
343
{
344
{
344
    int nColumn = nIndex % mnColumnCount;
345
    int nColumn = nIndex % mnColumnCount;
346
    if (mbRTL) 
347
	    nColumn = mnColumnCount  - 1 - nColumn;
345
    int nRow = nIndex / mnColumnCount;
348
    int nRow = nIndex / mnColumnCount;
346
    return Rectangle (
349
    return Rectangle (
347
        Point (mnLeftBorder.mnModel 
350
        Point (mnLeftBorder.mnModel 
Lines 654-659 Link Here
654
        // column.
657
        // column.
655
        nColumn = 0;
658
        nColumn = 0;
656
    }
659
    }
660
    if (mbRTL) 
661
	    nColumn = mnColumnCount  - 1 - nColumn;
657
    return nColumn;
662
    return nColumn;
658
}
663
}
659
664

Return to issue 76697