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
6558878d
Kaydet (Commit)
6558878d
authored
May 14, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
refacotr DbGridControl::NavigationBar to use RenderContext
Change-Id: I0675158d83d37706be60dab430e6b9f7ea749bc7
üst
efd4f9b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
gridctrl.cxx
svx/source/fmcomp/gridctrl.cxx
+19
-17
No files found.
svx/source/fmcomp/gridctrl.cxx
Dosyayı görüntüle @
6558878d
...
...
@@ -722,27 +722,29 @@ void DbGridControl::NavigationBar::Paint(vcl::RenderContext& rRenderContext, con
Point
aAbsolutePos
=
m_aAbsolute
->
GetPosPixel
();
Size
aAbsoluteSize
=
m_aAbsolute
->
GetSizePixel
();
DrawLine
(
Point
(
aAbsolutePos
.
X
()
-
1
,
0
),
Point
(
aAbsolutePos
.
X
()
-
1
,
aAbsolutePos
.
Y
()
+
aAbsoluteSize
.
Height
()));
rRenderContext
.
DrawLine
(
Point
(
aAbsolutePos
.
X
()
-
1
,
0
),
Point
(
aAbsolutePos
.
X
()
-
1
,
aAbsolutePos
.
Y
()
+
aAbsoluteSize
.
Height
()));
DrawLine
(
Point
(
aAbsolutePos
.
X
()
+
aAbsoluteSize
.
Width
()
+
1
,
0
),
Point
(
aAbsolutePos
.
X
()
+
aAbsoluteSize
.
Width
()
+
1
,
aAbsolutePos
.
Y
()
+
aAbsoluteSize
.
Height
()));
rRenderContext
.
DrawLine
(
Point
(
aAbsolutePos
.
X
()
+
aAbsoluteSize
.
Width
()
+
1
,
0
),
Point
(
aAbsolutePos
.
X
()
+
aAbsoluteSize
.
Width
()
+
1
,
aAbsolutePos
.
Y
()
+
aAbsoluteSize
.
Height
()));
}
void
DbGridControl
::
NavigationBar
::
StateChanged
(
StateChangedType
nType
)
{
Control
::
StateChanged
(
nType
);
vcl
::
Window
*
pWindows
[]
=
{
m_aRecordText
.
get
(),
m_aAbsolute
.
get
(),
m_aRecordOf
.
get
(),
m_aRecordCount
.
get
(),
m_aFirstBtn
.
get
(),
m_aPrevBtn
.
get
(),
m_aNextBtn
.
get
(),
m_aLastBtn
.
get
(),
m_aNewBtn
.
get
()
};
vcl
::
Window
*
pWindows
[]
=
{
m_aRecordText
.
get
(),
m_aAbsolute
.
get
(),
m_aRecordOf
.
get
(),
m_aRecordCount
.
get
(),
m_aFirstBtn
.
get
(),
m_aPrevBtn
.
get
(),
m_aNextBtn
.
get
(),
m_aLastBtn
.
get
(),
m_aNewBtn
.
get
()
};
switch
(
nType
)
{
...
...
@@ -759,9 +761,9 @@ void DbGridControl::NavigationBar::StateChanged( StateChangedType nType )
Fraction
aZoom
=
GetZoom
();
// not all of these controls need to know the new zoom, but to be sure ...
vcl
::
Font
aFont
(
GetSettings
().
GetStyleSettings
().
GetFieldFont
()
);
if
(
IsControlFont
()
)
aFont
.
Merge
(
GetControlFont
()
);
vcl
::
Font
aFont
(
GetSettings
().
GetStyleSettings
().
GetFieldFont
()
);
if
(
IsControlFont
()
)
aFont
.
Merge
(
GetControlFont
()
);
for
(
size_t
i
=
0
;
i
<
sizeof
(
pWindows
)
/
sizeof
(
pWindows
[
0
]);
++
i
)
{
...
...
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