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
4e1d190f
Kaydet (Commit)
4e1d190f
authored
Haz 04, 2015
tarafından
Tomaž Vajngerl
Kaydeden (comit)
Andras Timar
Agu 06, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix cherry-pick from master
Change-Id: I8c75292755877e678cadbda8cf5b2307150fa90c
üst
fa7add20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
ruler.cxx
svtools/source/control/ruler.cxx
+20
-20
status.cxx
vcl/source/window/status.cxx
+1
-1
No files found.
svtools/source/control/ruler.cxx
Dosyayı görüntüle @
4e1d190f
...
@@ -1469,7 +1469,7 @@ void Ruler::ImplUpdate( bool bMustCalc )
...
@@ -1469,7 +1469,7 @@ void Ruler::ImplUpdate( bool bMustCalc )
{
{
// clear lines in this place so they aren't considered at recalculation
// clear lines in this place so they aren't considered at recalculation
if
(
!
mbFormat
)
if
(
!
mbFormat
)
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
// set flags
// set flags
if
(
bMustCalc
)
if
(
bMustCalc
)
...
@@ -1483,7 +1483,7 @@ void Ruler::ImplUpdate( bool bMustCalc )
...
@@ -1483,7 +1483,7 @@ void Ruler::ImplUpdate( bool bMustCalc )
// otherwise trigger update
// otherwise trigger update
if
(
IsReallyVisible
()
&&
IsUpdateMode
())
if
(
IsReallyVisible
()
&&
IsUpdateMode
())
{
{
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
}
}
}
}
...
@@ -1879,7 +1879,7 @@ bool Ruler::ImplStartDrag( RulerSelection* pHitTest, sal_uInt16 nModifier )
...
@@ -1879,7 +1879,7 @@ bool Ruler::ImplStartDrag( RulerSelection* pHitTest, sal_uInt16 nModifier )
mbDrag
=
true
;
mbDrag
=
true
;
mnStartDragPos
=
mnDragPos
;
mnStartDragPos
=
mnDragPos
;
StartTracking
();
StartTracking
();
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
return
true
;
return
true
;
}
}
else
else
...
@@ -1946,7 +1946,7 @@ void Ruler::ImplDrag( const Point& rPos )
...
@@ -1946,7 +1946,7 @@ void Ruler::ImplDrag( const Point& rPos )
Drag
();
Drag
();
// and redraw
// and redraw
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
// reset the data as before cancel
// reset the data as before cancel
*
mpDragData
=
aTempData
;
*
mpDragData
=
aTempData
;
...
@@ -1967,7 +1967,7 @@ void Ruler::ImplDrag( const Point& rPos )
...
@@ -1967,7 +1967,7 @@ void Ruler::ImplDrag( const Point& rPos )
// redraw
// redraw
if
(
mbFormat
)
if
(
mbFormat
)
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
}
}
}
}
...
@@ -1996,7 +1996,7 @@ void Ruler::ImplEndDrag()
...
@@ -1996,7 +1996,7 @@ void Ruler::ImplEndDrag()
mnStartDragPos
=
0
;
mnStartDragPos
=
0
;
// redraw
// redraw
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
}
}
void
Ruler
::
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
void
Ruler
::
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
...
@@ -2010,7 +2010,7 @@ void Ruler::MouseButtonDown( const MouseEvent& rMEvt )
...
@@ -2010,7 +2010,7 @@ void Ruler::MouseButtonDown( const MouseEvent& rMEvt )
// update ruler
// update ruler
if
(
mbFormat
)
if
(
mbFormat
)
{
{
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
}
}
if
(
maExtraRect
.
IsInside
(
aMousePos
)
)
if
(
maExtraRect
.
IsInside
(
aMousePos
)
)
...
@@ -2119,7 +2119,7 @@ void Ruler::MouseMove( const MouseEvent& rMEvt )
...
@@ -2119,7 +2119,7 @@ void Ruler::MouseMove( const MouseEvent& rMEvt )
if
(
mbFormat
)
if
(
mbFormat
)
{
{
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
}
}
}
}
...
@@ -2176,7 +2176,7 @@ void Ruler::Resize()
...
@@ -2176,7 +2176,7 @@ void Ruler::Resize()
if
(
bVisible
&&
!
mpData
->
pLines
.
empty
()
)
if
(
bVisible
&&
!
mpData
->
pLines
.
empty
()
)
{
{
mnUpdateFlags
|=
RULER_UPDATE_LINES
;
mnUpdateFlags
|=
RULER_UPDATE_LINES
;
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
}
}
// recalculate some values if the height/width changes
// recalculate some values if the height/width changes
...
@@ -2199,7 +2199,7 @@ void Ruler::Resize()
...
@@ -2199,7 +2199,7 @@ void Ruler::Resize()
if
(
bVisible
)
if
(
bVisible
)
{
{
if
(
nNewHeight
)
if
(
nNewHeight
)
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
else
if
(
mpData
->
bAutoPageWidth
)
else
if
(
mpData
->
bAutoPageWidth
)
{
{
// only at AutoPageWidth muss we redraw
// only at AutoPageWidth muss we redraw
...
@@ -2226,7 +2226,7 @@ void Ruler::Resize()
...
@@ -2226,7 +2226,7 @@ void Ruler::Resize()
aRect
.
Right
()
=
RULER_OFF
+
mnVirHeight
;
aRect
.
Right
()
=
RULER_OFF
+
mnVirHeight
;
}
}
Invalidate
(
aRect
,
I
nvalidateFlags
::
NoErase
);
Invalidate
(
aRect
,
I
NVALIDATE_NOERASE
);
}
}
}
}
...
@@ -2318,13 +2318,13 @@ void Ruler::Activate()
...
@@ -2318,13 +2318,13 @@ void Ruler::Activate()
// update positionlies - draw is delayed
// update positionlies - draw is delayed
mnUpdateFlags
|=
RULER_UPDATE_LINES
;
mnUpdateFlags
|=
RULER_UPDATE_LINES
;
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
}
}
void
Ruler
::
Deactivate
()
void
Ruler
::
Deactivate
()
{
{
// clear positionlines
// clear positionlines
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
mbActive
=
false
;
mbActive
=
false
;
}
}
...
@@ -2344,7 +2344,7 @@ bool Ruler::StartDocDrag( const MouseEvent& rMEvt, RulerType eDragType )
...
@@ -2344,7 +2344,7 @@ bool Ruler::StartDocDrag( const MouseEvent& rMEvt, RulerType eDragType )
// update ruler
// update ruler
if
(
mbFormat
)
if
(
mbFormat
)
{
{
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
}
}
if
(
nMouseClicks
==
1
)
if
(
nMouseClicks
==
1
)
...
@@ -2409,7 +2409,7 @@ RulerType Ruler::GetType( const Point& rPos, sal_uInt16* pAryPos )
...
@@ -2409,7 +2409,7 @@ RulerType Ruler::GetType( const Point& rPos, sal_uInt16* pAryPos )
// update ruler
// update ruler
if
(
IsReallyVisible
()
&&
mbFormat
)
if
(
IsReallyVisible
()
&&
mbFormat
)
{
{
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
}
}
(
void
)
ImplHitTest
(
rPos
,
&
aHitTest
);
(
void
)
ImplHitTest
(
rPos
,
&
aHitTest
);
...
@@ -2459,7 +2459,7 @@ void Ruler::SetBorderPos( long nOff )
...
@@ -2459,7 +2459,7 @@ void Ruler::SetBorderPos( long nOff )
mnBorderOff
=
nOff
;
mnBorderOff
=
nOff
;
if
(
IsReallyVisible
()
&&
IsUpdateMode
()
)
if
(
IsReallyVisible
()
&&
IsUpdateMode
()
)
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
}
}
}
}
}
}
...
@@ -2534,7 +2534,7 @@ void Ruler::SetExtraType( RulerExtra eNewExtraType, sal_uInt16 nStyle )
...
@@ -2534,7 +2534,7 @@ void Ruler::SetExtraType( RulerExtra eNewExtraType, sal_uInt16 nStyle )
meExtraType
=
eNewExtraType
;
meExtraType
=
eNewExtraType
;
mnExtraStyle
=
nStyle
;
mnExtraStyle
=
nStyle
;
if
(
IsReallyVisible
()
&&
IsUpdateMode
())
if
(
IsReallyVisible
()
&&
IsUpdateMode
())
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
}
}
}
}
...
@@ -2620,7 +2620,7 @@ void Ruler::SetLines( sal_uInt32 aLineArraySize, const RulerLine* pLineArray )
...
@@ -2620,7 +2620,7 @@ void Ruler::SetLines( sal_uInt32 aLineArraySize, const RulerLine* pLineArray )
// Delete old lines
// Delete old lines
if
(
bMustUpdate
)
if
(
bMustUpdate
)
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
// New data set
// New data set
if
(
!
aLineArraySize
||
!
pLineArray
)
if
(
!
aLineArraySize
||
!
pLineArray
)
...
@@ -2641,7 +2641,7 @@ void Ruler::SetLines( sal_uInt32 aLineArraySize, const RulerLine* pLineArray )
...
@@ -2641,7 +2641,7 @@ void Ruler::SetLines( sal_uInt32 aLineArraySize, const RulerLine* pLineArray )
mpData
->
pLines
.
begin
()
);
mpData
->
pLines
.
begin
()
);
if
(
bMustUpdate
)
if
(
bMustUpdate
)
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
}
}
}
}
...
@@ -2833,7 +2833,7 @@ RulerUnitData Ruler::GetCurrentRulerUnit() const
...
@@ -2833,7 +2833,7 @@ RulerUnitData Ruler::GetCurrentRulerUnit() const
void
Ruler
::
DrawTicks
()
void
Ruler
::
DrawTicks
()
{
{
mbFormat
=
true
;
mbFormat
=
true
;
Invalidate
(
I
nvalidateFlags
::
NoErase
);
Invalidate
(
I
NVALIDATE_NOERASE
);
}
}
uno
::
Reference
<
XAccessible
>
Ruler
::
CreateAccessible
()
uno
::
Reference
<
XAccessible
>
Ruler
::
CreateAccessible
()
...
...
vcl/source/window/status.cxx
Dosyayı görüntüle @
4e1d190f
...
@@ -1231,7 +1231,7 @@ void StatusBar::SetItemData( sal_uInt16 nItemId, void* pNewData )
...
@@ -1231,7 +1231,7 @@ void StatusBar::SetItemData( sal_uInt16 nItemId, void* pNewData )
{
{
Update
();
Update
();
Rectangle
aRect
=
ImplGetItemRectPos
(
nPos
);
Rectangle
aRect
=
ImplGetItemRectPos
(
nPos
);
Invalidate
(
aRect
,
I
nvalidateFlags
::
NoErase
);
Invalidate
(
aRect
,
I
NVALIDATE_NOERASE
);
Flush
();
Flush
();
}
}
}
}
...
...
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