Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
e5ebee7e
Kaydet (Commit)
e5ebee7e
authored
Şub 23, 2014
tarafından
Faisal M. Al-Otaibi
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#74751: fix reverse base point diagram on RTL UI
Change-Id: I3f3f2d59952577b0533a9d8ef6d27af849bd6bdb
üst
18ab4793
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
dlgctrl.hxx
include/svx/dlgctrl.hxx
+1
-1
dlgctrl.cxx
svx/source/dialog/dlgctrl.cxx
+15
-12
No files found.
include/svx/dlgctrl.hxx
Dosyayı görüntüle @
e5ebee7e
...
@@ -89,7 +89,7 @@ protected:
...
@@ -89,7 +89,7 @@ protected:
sal_Bool
mbCompleteDisable
;
sal_Bool
mbCompleteDisable
;
RECT_POINT
GetRPFromPoint
(
Point
)
const
;
RECT_POINT
GetRPFromPoint
(
Point
,
bool
bRTL
=
false
)
const
;
Point
GetPointFromRP
(
RECT_POINT
)
const
;
Point
GetPointFromRP
(
RECT_POINT
)
const
;
void
SetFocusRect
(
const
Rectangle
*
pRect
=
NULL
);
// pRect == NULL -> calculate rectangle in method
void
SetFocusRect
(
const
Rectangle
*
pRect
=
NULL
);
// pRect == NULL -> calculate rectangle in method
Point
SetActualRPWithoutInvalidate
(
RECT_POINT
eNewRP
);
// returns the last point
Point
SetActualRPWithoutInvalidate
(
RECT_POINT
eNewRP
);
// returns the last point
...
...
svx/source/dialog/dlgctrl.cxx
Dosyayı görüntüle @
e5ebee7e
...
@@ -558,7 +558,9 @@ Point SvxRectCtl::SetActualRPWithoutInvalidate( RECT_POINT eNewRP )
...
@@ -558,7 +558,9 @@ Point SvxRectCtl::SetActualRPWithoutInvalidate( RECT_POINT eNewRP )
if
(
(
m_nState
&
CS_NOVERT
)
!=
0
)
if
(
(
m_nState
&
CS_NOVERT
)
!=
0
)
aPtNew
.
Y
()
=
aPtMM
.
Y
();
aPtNew
.
Y
()
=
aPtMM
.
Y
();
eNewRP
=
GetRPFromPoint
(
aPtNew
);
// fdo#74751 this fix reverse base point on RTL UI.
bool
bRTL
=
Application
::
GetSettings
().
GetLayoutRTL
();
eNewRP
=
GetRPFromPoint
(
aPtNew
,
bRTL
);
eDefRP
=
eNewRP
;
eDefRP
=
eNewRP
;
eRP
=
eNewRP
;
eRP
=
eNewRP
;
...
@@ -621,19 +623,20 @@ Point SvxRectCtl::GetApproxLogPtFromPixPt( const Point& rPt ) const
...
@@ -621,19 +623,20 @@ Point SvxRectCtl::GetApproxLogPtFromPixPt( const Point& rPt ) const
// Converts Point in RECT_POINT
// Converts Point in RECT_POINT
RECT_POINT
SvxRectCtl
::
GetRPFromPoint
(
Point
aPt
)
const
RECT_POINT
SvxRectCtl
::
GetRPFromPoint
(
Point
aPt
,
bool
bRTL
)
const
{
{
if
(
aPt
==
aPtLT
)
return
RP_LT
;
RECT_POINT
rPoint
=
RP_MM
;
// default
else
if
(
aPt
==
aPtMT
)
return
RP_MT
;
else
if
(
aPt
==
aPtRT
)
return
RP_RT
;
else
if
(
aPt
==
aPtLM
)
return
RP_LM
;
else
if
(
aPt
==
aPtRM
)
return
RP_RM
;
else
if
(
aPt
==
aPtLB
)
return
RP_LB
;
else
if
(
aPt
==
aPtMB
)
return
RP_MB
;
else
if
(
aPt
==
aPtRB
)
return
RP_RB
;
else
if
(
aPt
==
aPtLT
)
rPoint
=
bRTL
?
RP_RT
:
RP_LT
;
return
RP_MM
;
// default
else
if
(
aPt
==
aPtMT
)
rPoint
=
RP_MT
;
else
if
(
aPt
==
aPtRT
)
rPoint
=
bRTL
?
RP_LT
:
RP_RT
;
else
if
(
aPt
==
aPtLM
)
rPoint
=
bRTL
?
RP_RM
:
RP_LM
;
else
if
(
aPt
==
aPtRM
)
rPoint
=
bRTL
?
RP_LM
:
RP_RM
;
else
if
(
aPt
==
aPtLB
)
rPoint
=
bRTL
?
RP_RB
:
RP_LB
;
else
if
(
aPt
==
aPtMB
)
rPoint
=
RP_MB
;
else
if
(
aPt
==
aPtRB
)
rPoint
=
bRTL
?
RP_LB
:
RP_RB
;
return
rPoint
;
}
}
// Resets to the original state of the control
// Resets to the original state of the control
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment