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
c299413c
Kaydet (Commit)
c299413c
authored
May 06, 2015
tarafından
Tomaž Vajngerl
Kaydeden (comit)
Jan Holesovsky
May 07, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
refactor "HelpTextWindow" - use RenderContext
Change-Id: I6cfcd86fabb2f568b577bb060cccabfe1aebc537
üst
a6b9d9a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
help.cxx
vcl/source/app/help.cxx
+18
-18
No files found.
vcl/source/app/help.cxx
Dosyayı görüntüle @
c299413c
...
...
@@ -352,49 +352,49 @@ void HelpTextWindow::ImplShow()
Update
();
}
void
HelpTextWindow
::
Paint
(
vcl
::
RenderContext
&
/*rRenderContext*/
,
const
Rectangle
&
)
void
HelpTextWindow
::
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
)
{
// paint native background
bool
bNativeOK
=
false
;
if
(
IsNativeControlSupported
(
CTRL_TOOLTIP
,
PART_ENTIRE_CONTROL
)
)
if
(
rRenderContext
.
IsNativeControlSupported
(
CTRL_TOOLTIP
,
PART_ENTIRE_CONTROL
)
)
{
// #i46472# workaround gcc3.3 temporary problem
Rectangle
aCtrlRegion
(
Point
(
0
,
0
),
GetOutputSizePixel
()
);
ImplControlValue
aControlValue
;
bNativeOK
=
DrawNativeControl
(
CTRL_TOOLTIP
,
PART_ENTIRE_CONTROL
,
aCtrlRegion
,
ControlState
::
NONE
,
aControlValue
,
OUString
()
);
Rectangle
aCtrlRegion
(
Point
(
0
,
0
),
GetOutputSizePixel
()
);
ImplControlValue
aControlValue
;
bNativeOK
=
rRenderContext
.
DrawNativeControl
(
CTRL_TOOLTIP
,
PART_ENTIRE_CONTROL
,
aCtrlRegion
,
ControlState
::
NONE
,
aControlValue
,
OUString
()
);
}
// paint text
if
(
mnHelpWinStyle
==
HELPWINSTYLE_QUICK
&&
maHelpText
.
getLength
()
<
HELPTEXTMAXLEN
)
if
(
mnHelpWinStyle
==
HELPWINSTYLE_QUICK
&&
maHelpText
.
getLength
()
<
HELPTEXTMAXLEN
)
{
if
(
mnStyle
&
QUICKHELP_CTRLTEXT
)
DrawCtrlText
(
maTextRect
.
TopLeft
(),
maHelpText
);
rRenderContext
.
DrawCtrlText
(
maTextRect
.
TopLeft
(),
maHelpText
);
else
DrawText
(
maTextRect
.
TopLeft
(),
maHelpText
);
rRenderContext
.
DrawText
(
maTextRect
.
TopLeft
(),
maHelpText
);
}
else
// HELPWINSTYLE_BALLOON
{
sal_uInt16
nDrawFlags
=
TEXT_DRAW_MULTILINE
|
TEXT_DRAW_WORDBREAK
|
TEXT_DRAW_LEFT
|
TEXT_DRAW_TOP
;
if
(
mnStyle
&
QUICKHELP_CTRLTEXT
)
if
(
mnStyle
&
QUICKHELP_CTRLTEXT
)
nDrawFlags
|=
TEXT_DRAW_MNEMONIC
;
DrawText
(
maTextRect
,
maHelpText
,
nDrawFlags
);
rRenderContext
.
DrawText
(
maTextRect
,
maHelpText
,
nDrawFlags
);
}
// border
if
(
!
bNativeOK
)
if
(
!
bNativeOK
)
{
Size
aSz
=
GetOutputSizePixel
();
DrawRect
(
Rectangle
(
Point
(),
aSz
)
);
if
(
mnHelpWinStyle
==
HELPWINSTYLE_BALLOON
)
rRenderContext
.
DrawRect
(
Rectangle
(
Point
(),
aSz
)
);
if
(
mnHelpWinStyle
==
HELPWINSTYLE_BALLOON
)
{
aSz
.
Width
()
-=
2
;
aSz
.
Height
()
-=
2
;
Color
aColor
(
GetLineColor
()
);
SetLineColor
(
(
COL_GRAY
)
);
DrawRect
(
Rectangle
(
Point
(
1
,
1
),
aSz
)
);
SetLineColor
(
aColor
);
Color
aColor
(
rRenderContext
.
GetLineColor
()
);
rRenderContext
.
SetLineColor
(
COL_GRAY
);
rRenderContext
.
DrawRect
(
Rectangle
(
Point
(
1
,
1
),
aSz
)
);
rRenderContext
.
SetLineColor
(
aColor
);
}
}
}
...
...
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