Lines 41-46
Link Here
|
41 |
//------------------------------------------------------------------ |
41 |
//------------------------------------------------------------------ |
42 |
|
42 |
|
43 |
#include "scitems.hxx" |
43 |
#include "scitems.hxx" |
|
|
44 |
#include <sfx2/topfrm.hxx> |
44 |
#include <svx/algitem.hxx> |
45 |
#include <svx/algitem.hxx> |
45 |
#include <svx/boxitem.hxx> |
46 |
#include <svx/boxitem.hxx> |
46 |
#include <svx/brshitem.hxx> |
47 |
#include <svx/brshitem.hxx> |
Lines 54-59
Link Here
|
54 |
#include <svx/wghtitem.hxx> |
55 |
#include <svx/wghtitem.hxx> |
55 |
#include <svtools/zforlist.hxx> |
56 |
#include <svtools/zforlist.hxx> |
56 |
#include <vcl/msgbox.hxx> |
57 |
#include <vcl/msgbox.hxx> |
|
|
58 |
#include <vcl/svapp.hxx> |
57 |
#include <comphelper/processfactory.hxx> |
59 |
#include <comphelper/processfactory.hxx> |
58 |
|
60 |
|
59 |
#include "sc.hrc" |
61 |
#include "sc.hrc" |
Lines 69-74
Link Here
|
69 |
#include "autofmt.hxx" |
71 |
#include "autofmt.hxx" |
70 |
#include "scresid.hxx" |
72 |
#include "scresid.hxx" |
71 |
#include "document.hxx" |
73 |
#include "document.hxx" |
|
|
74 |
#include "docsh.hxx" |
75 |
#include "tabvwsh.hxx" |
72 |
|
76 |
|
73 |
#define FRAME_OFFSET 4 |
77 |
#define FRAME_OFFSET 4 |
74 |
|
78 |
|
Lines 596-602
Link Here
|
596 |
4, 5, 6, 5, 7, |
600 |
4, 5, 6, 5, 7, |
597 |
12, 13, 14, 13, 15 |
601 |
12, 13, 14, 13, 15 |
598 |
}; |
602 |
}; |
599 |
return pnFmtMap[ maArray.GetCellIndex( nCol, nRow ) ]; |
603 |
return pnFmtMap[ maArray.GetCellIndex( nCol, nRow, mbRTL ) ]; |
600 |
} |
604 |
} |
601 |
|
605 |
|
602 |
const SvxBoxItem& AutoFmtPreview::GetBoxItem( size_t nCol, size_t nRow ) const |
606 |
const SvxBoxItem& AutoFmtPreview::GetBoxItem( size_t nCol, size_t nRow ) const |
Lines 626-632
Link Here
|
626 |
ULONG nNum; |
630 |
ULONG nNum; |
627 |
double nVal; |
631 |
double nVal; |
628 |
Color* pDummy = NULL; |
632 |
Color* pDummy = NULL; |
629 |
USHORT nIndex = static_cast< USHORT >( maArray.GetCellIndex( nCol, nRow ) ); |
633 |
USHORT nIndex = static_cast< USHORT >( maArray.GetCellIndex( nCol, nRow, mbRTL ) ); |
630 |
|
634 |
|
631 |
switch( nIndex ) |
635 |
switch( nIndex ) |
632 |
{ |
636 |
{ |
Lines 688-696
Link Here
|
688 |
//------------- |
692 |
//------------- |
689 |
// Ausrichtung: |
693 |
// Ausrichtung: |
690 |
//------------- |
694 |
//------------- |
691 |
eJustification = bJustify ? |
695 |
eJustification = mbRTL ? SVX_HOR_JUSTIFY_RIGHT : bJustify ? |
692 |
(SvxCellHorJustify)(((const SvxHorJustifyItem*)pCurData->GetItem( nFmtIndex, ATTR_HOR_JUSTIFY ))->GetValue()) : |
696 |
(SvxCellHorJustify)(((const SvxHorJustifyItem*)pCurData->GetItem( nFmtIndex, ATTR_HOR_JUSTIFY ))->GetValue()) : |
693 |
SVX_HOR_JUSTIFY_STANDARD; |
697 |
SVX_HOR_JUSTIFY_STANDARD; |
694 |
|
698 |
|
695 |
if ( pCurData->GetIncludeFont() ) |
699 |
if ( pCurData->GetIncludeFont() ) |
696 |
{ |
700 |
{ |
Lines 856-861
Link Here
|
856 |
maArray.SetUseDiagDoubleClipping( false ); |
860 |
maArray.SetUseDiagDoubleClipping( false ); |
857 |
CalcCellArray( FALSE ); |
861 |
CalcCellArray( FALSE ); |
858 |
CalcLineMap(); |
862 |
CalcLineMap(); |
|
|
863 |
TypeId aType(TYPE(ScDocShell)); |
864 |
ScDocShell* pDocShell = (ScDocShell*)SfxObjectShell::GetFirst(&aType); |
865 |
SfxViewFrame* pFrame = SfxViewFrame::GetFirst( pDocShell ); |
866 |
SfxViewShell* p = pFrame->GetViewShell(); |
867 |
ScTabViewShell* pViewSh = PTR_CAST(ScTabViewShell,p); |
868 |
ScViewData* pViewData = pViewSh->GetViewData(); |
869 |
SCTAB nCurrentTab = pViewData->GetTabNo(); |
870 |
ScDocument* pDoc = pViewData->GetDocument(); |
871 |
mbRTL = pDoc->IsLayoutRTL( nCurrentTab ); |
859 |
} |
872 |
} |
860 |
|
873 |
|
861 |
//------------------------------------------------------------------------ |
874 |
//------------------------------------------------------------------------ |
Lines 958-963
Link Here
|
958 |
DrawRect( aRect ); |
971 |
DrawRect( aRect ); |
959 |
|
972 |
|
960 |
Point aPos( (aWndSize.Width() - aPrvSize.Width()) / 2, (aWndSize.Height() - aPrvSize.Height()) / 2 ); |
973 |
Point aPos( (aWndSize.Width() - aPrvSize.Width()) / 2, (aWndSize.Height() - aPrvSize.Height()) / 2 ); |
|
|
974 |
if (Application::GetSettings().GetLayoutRTL()) |
975 |
aPos.X() = -aPos.X(); |
961 |
DrawOutDev( aPos, aWndSize, Point(), aWndSize, aVD ); |
976 |
DrawOutDev( aPos, aWndSize, Point(), aWndSize, aVD ); |
962 |
|
977 |
|
963 |
aVD.SetDrawMode( nOldDrawMode ); |
978 |
aVD.SetDrawMode( nOldDrawMode ); |