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
ea059454
Kaydet (Commit)
ea059454
authored
Nis 18, 2002
tarafından
Stephan Schäfer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#98762# support HC bitmaps
üst
04d21f4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
6 deletions
+54
-6
msgbox.cxx
vcl/source/window/msgbox.cxx
+20
-4
window.cxx
vcl/source/window/window.cxx
+34
-2
No files found.
vcl/source/window/msgbox.cxx
Dosyayı görüntüle @
ea059454
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: msgbox.cxx,v $
*
* $Revision: 1.
6
$
* $Revision: 1.
7
$
*
* last change: $Author: ssa $ $Date: 2002-0
3-22 17:39:40
$
* last change: $Author: ssa $ $Date: 2002-0
4-18 08:04:36
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -340,6 +340,9 @@ void MessBox::ImplPosControls()
IMPL_DIALOG_OFFSET
-
2
+
IMPL_MSGBOX_OFFSET_EXTRA_Y
),
aImageSize
);
mpFixedImage
->
SetImage
(
maImage
);
// forward the HC image
if
(
!!
maImageHC
)
mpFixedImage
->
SetModeImage
(
maImageHC
,
BMP_COLOR_HIGHCONTRAST
);
mpFixedImage
->
Show
();
nMaxWidth
-=
aImageSize
.
Width
()
+
IMPL_SEP_MSGBOX_IMAGE
;
}
...
...
@@ -468,14 +471,27 @@ void MessBox::SetDefaultCheckBoxText()
maCheckBoxText
=
rText
;
}
// -----------------------------------------------------------------------
BOOL
MessBox
::
SetModeImage
(
const
Image
&
rImage
,
BmpColorMode
eMode
)
{
return
FALSE
;
if
(
eMode
==
BMP_COLOR_NORMAL
)
SetImage
(
rImage
);
else
if
(
eMode
==
BMP_COLOR_HIGHCONTRAST
)
maImageHC
=
rImage
;
else
return
FALSE
;
return
TRUE
;
}
// -----------------------------------------------------------------------
const
Image
&
MessBox
::
GetModeImage
(
BmpColorMode
eMode
)
const
{
return
maImage
;
if
(
eMode
==
BMP_COLOR_HIGHCONTRAST
)
return
maImageHC
;
else
return
maImage
;
}
// -----------------------------------------------------------------------
...
...
vcl/source/window/window.cxx
Dosyayı görüntüle @
ea059454
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: window.cxx,v $
*
* $Revision: 1.7
5
$
* $Revision: 1.7
6
$
*
* last change: $Author:
hr $ $Date: 2002-04-16 11:31:03
$
* last change: $Author:
ssa $ $Date: 2002-04-18 08:04:36
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -7517,3 +7517,35 @@ String Window::GetAccessibleDescription() const
return
aAccessibleDescription
;
}
// returns background color used in this control
// false: could not determine color
BOOL
Window
::
ImplGetCurrentBackgroundColor
(
Color
&
rCol
)
{
BOOL
bRet
=
TRUE
;
switch
(
GetType
()
)
{
// peform special handling here
case
WINDOW_PUSHBUTTON
:
case
WINDOW_OKBUTTON
:
case
WINDOW_CANCELBUTTON
:
// etc.
default
:
if
(
IsControlBackground
()
)
rCol
=
GetControlBackground
();
else
if
(
IsBackground
()
)
{
Wallpaper
aWall
=
GetBackground
();
if
(
!
aWall
.
IsGradient
()
&&
!
aWall
.
IsBitmap
()
)
rCol
=
aWall
.
GetColor
();
else
bRet
=
FALSE
;
}
else
rCol
=
GetSettings
().
GetStyleSettings
().
GetFaceColor
();
break
;
}
return
bRet
;
}
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