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
173aa749
Kaydet (Commit)
173aa749
authored
May 27, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert INVERT flags to scoped enum
Change-Id: Iad8faee927de1ad646975157e36c3027c0ba8149
üst
79db3fc0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
16 deletions
+24
-16
window.hxx
include/vcl/window.hxx
+12
-4
preview.cxx
sc/source/ui/view/preview.cxx
+2
-2
scrbar.cxx
vcl/source/control/scrbar.cxx
+1
-1
cursor.cxx
vcl/source/window/cursor.cxx
+3
-3
window2.cxx
vcl/source/window/window2.cxx
+6
-6
No files found.
include/vcl/window.hxx
Dosyayı görüntüle @
173aa749
...
...
@@ -273,8 +273,16 @@ namespace o3tl
#define PARENTCLIPMODE_NOCLIP ((sal_uInt16)0x0002)
// Flags for Invert()
#define INVERT_HIGHLIGHT ((sal_uInt16)0x0001)
#define INVERT_50 ((sal_uInt16)0x0002)
enum
class
InvertFlags
{
NONE
=
0x0000
,
Highlight
=
0x0001
,
N50
=
0x0002
,
};
namespace
o3tl
{
template
<>
struct
typed_flags
<
InvertFlags
>
:
is_typed_flags
<
InvertFlags
,
0x0003
>
{};
}
// Flags for ShowTracking()
#define SHOWTRACK_SMALL ((sal_uInt16)0x0001)
...
...
@@ -1239,8 +1247,8 @@ public:
virtual
void
ShowFocus
(
const
Rectangle
&
rRect
);
void
HideFocus
();
void
Invert
(
const
Rectangle
&
rRect
,
sal_uInt16
nFlags
=
0
);
void
Invert
(
const
Polygon
&
rPoly
,
sal_uInt16
nFlags
=
0
);
void
Invert
(
const
Rectangle
&
rRect
,
InvertFlags
nFlags
=
InvertFlags
::
NONE
);
void
Invert
(
const
Polygon
&
rPoly
,
InvertFlags
nFlags
=
InvertFlags
::
NONE
);
// transparent background for selected or checked items in toolboxes etc.
void
DrawSelectionBackground
(
const
Rectangle
&
rRect
,
sal_uInt16
highlight
,
bool
bChecked
,
bool
bDrawBorder
,
bool
bDrawExtBorderOnly
);
...
...
sc/source/ui/view/preview.cxx
Dosyayı görüntüle @
173aa749
...
...
@@ -1567,12 +1567,12 @@ void ScPreview::DrawInvert( long nDragPos, PointerStyle nFlags )
if
(
nFlags
==
PointerStyle
::
HSizeBar
||
nFlags
==
PointerStyle
::
HSplit
)
{
Rectangle
aRect
(
nDragPos
,
-
aOffset
.
Y
(),
nDragPos
+
1
,(
long
)(
(
nHeight
*
HMM_PER_TWIPS
)
-
aOffset
.
Y
()));
Invert
(
aRect
,
INVERT_
50
);
Invert
(
aRect
,
InvertFlags
::
N
50
);
}
else
if
(
nFlags
==
PointerStyle
::
VSizeBar
)
{
Rectangle
aRect
(
-
aOffset
.
X
(),
nDragPos
,(
long
)(
(
nWidth
*
HMM_PER_TWIPS
)
-
aOffset
.
X
()
),
nDragPos
+
1
);
Invert
(
aRect
,
INVERT_
50
);
Invert
(
aRect
,
InvertFlags
::
N
50
);
}
}
...
...
vcl/source/control/scrbar.cxx
Dosyayı görüntüle @
173aa749
...
...
@@ -1160,7 +1160,7 @@ void ScrollBar::ImplInvert()
aRect
.
Bottom
()
-=
2
;
}
Invert
(
aRect
,
0
);
Invert
(
aRect
);
}
void
ScrollBar
::
GetFocus
()
...
...
vcl/source/window/cursor.cxx
Dosyayı görüntüle @
173aa749
...
...
@@ -46,11 +46,11 @@ static void ImplCursorInvert( ImplCursorData* pData )
vcl
::
Window
*
pWindow
=
pData
->
mpWindow
;
bool
bMapMode
=
pWindow
->
IsMapModeEnabled
();
pWindow
->
EnableMapMode
(
false
);
sal_uInt16
nInvertStyle
;
InvertFlags
nInvertStyle
;
if
(
pData
->
mnStyle
&
CURSOR_SHADOW
)
nInvertStyle
=
I
NVERT_
50
;
nInvertStyle
=
I
nvertFlags
::
N
50
;
else
nInvertStyle
=
0
;
nInvertStyle
=
InvertFlags
::
NONE
;
Rectangle
aRect
(
pData
->
maPixPos
,
pData
->
maPixSize
);
if
(
pData
->
mnDirection
!=
CursorDirection
::
NONE
||
pData
->
mnOrientation
||
pData
->
mnPixSlant
)
...
...
vcl/source/window/window2.cxx
Dosyayı görüntüle @
173aa749
...
...
@@ -127,7 +127,7 @@ void Window::HideFocus()
mpWindowImpl
->
mbInHideFocus
=
false
;
}
void
Window
::
Invert
(
const
Rectangle
&
rRect
,
sal_uInt16
nFlags
)
void
Window
::
Invert
(
const
Rectangle
&
rRect
,
InvertFlags
nFlags
)
{
if
(
!
IsDeviceOutputNecessary
()
)
return
;
...
...
@@ -153,14 +153,14 @@ void Window::Invert( const Rectangle& rRect, sal_uInt16 nFlags )
return
;
SalInvert
nSalFlags
=
0
;
if
(
nFlags
&
I
NVERT_HIGHLIGHT
)
if
(
nFlags
&
I
nvertFlags
::
Highlight
)
nSalFlags
|=
SAL_INVERT_HIGHLIGHT
;
if
(
nFlags
&
I
NVERT_
50
)
if
(
nFlags
&
I
nvertFlags
::
N
50
)
nSalFlags
|=
SAL_INVERT_50
;
mpGraphics
->
Invert
(
aRect
.
Left
(),
aRect
.
Top
(),
aRect
.
GetWidth
(),
aRect
.
GetHeight
(),
nSalFlags
,
this
);
}
void
Window
::
Invert
(
const
Polygon
&
rPoly
,
sal_uInt16
nFlags
)
void
Window
::
Invert
(
const
Polygon
&
rPoly
,
InvertFlags
nFlags
)
{
if
(
!
IsDeviceOutputNecessary
()
)
return
;
...
...
@@ -187,9 +187,9 @@ void Window::Invert( const Polygon& rPoly, sal_uInt16 nFlags )
return
;
SalInvert
nSalFlags
=
0
;
if
(
nFlags
&
I
NVERT_HIGHLIGHT
)
if
(
nFlags
&
I
nvertFlags
::
Highlight
)
nSalFlags
|=
SAL_INVERT_HIGHLIGHT
;
if
(
nFlags
&
I
NVERT_
50
)
if
(
nFlags
&
I
nvertFlags
::
N
50
)
nSalFlags
|=
SAL_INVERT_50
;
const
SalPoint
*
pPtAry
=
reinterpret_cast
<
const
SalPoint
*>
(
aPoly
.
GetConstPointAry
());
mpGraphics
->
Invert
(
nPoints
,
pPtAry
,
nSalFlags
,
this
);
...
...
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