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
217a0f0c
Kaydet (Commit)
217a0f0c
authored
Şub 26, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SOME BROKEN FOO
Change-Id: I37b7dc860c7fd2272724eb58345a7ab4391fba34
üst
def72096
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
sortkeydlg.cxx
sc/source/ui/dbgui/sortkeydlg.cxx
+16
-1
sortkeydlg.hxx
sc/source/ui/inc/sortkeydlg.hxx
+2
-0
No files found.
sc/source/ui/dbgui/sortkeydlg.cxx
Dosyayı görüntüle @
217a0f0c
...
@@ -111,7 +111,7 @@ ScSortKeyCtrl::ScSortKeyCtrl(SfxTabPage* pParent, ScSortKeyItems& rItems)
...
@@ -111,7 +111,7 @@ ScSortKeyCtrl::ScSortKeyCtrl(SfxTabPage* pParent, ScSortKeyItems& rItems)
,
m_rVertScroll
(
m_rScrolledWindow
.
getVertScrollBar
())
,
m_rVertScroll
(
m_rScrolledWindow
.
getVertScrollBar
())
{
{
m_rVertScroll
.
EnableDrag
();
m_rVertScroll
.
EnableDrag
();
m_rVertScroll
.
Show
();
m_rVertScroll
.
Show
(
m_rScrolledWindow
.
GetStyle
()
&
WB_VSCROLL
);
m_rVertScroll
.
SetRangeMin
(
0
);
m_rVertScroll
.
SetRangeMin
(
0
);
m_rVertScroll
.
SetVisibleSize
(
0xFFFF
);
m_rVertScroll
.
SetVisibleSize
(
0xFFFF
);
...
@@ -120,6 +120,19 @@ ScSortKeyCtrl::ScSortKeyCtrl(SfxTabPage* pParent, ScSortKeyItems& rItems)
...
@@ -120,6 +120,19 @@ ScSortKeyCtrl::ScSortKeyCtrl(SfxTabPage* pParent, ScSortKeyItems& rItems)
m_rVertScroll
.
SetScrollHdl
(
aScrollLink
);
m_rVertScroll
.
SetScrollHdl
(
aScrollLink
);
}
}
void
ScSortKeyCtrl
::
checkAutoVScroll
()
{
WinBits
nBits
=
m_rScrolledWindow
.
GetStyle
();
if
(
nBits
&
WB_VSCROLL
)
return
;
if
(
nBits
&
WB_AUTOVSCROLL
)
{
bool
bShow
=
m_rVertScroll
.
GetRangeMax
()
>
m_rVertScroll
.
GetVisibleSize
();
if
(
bShow
!=
m_rVertScroll
.
IsVisible
())
m_rVertScroll
.
Show
(
bShow
);
}
}
void
ScSortKeyCtrl
::
setScrollRange
()
void
ScSortKeyCtrl
::
setScrollRange
()
{
{
sal_Int32
nScrollOffset
=
m_aSortWin
.
GetItemHeight
();
sal_Int32
nScrollOffset
=
m_aSortWin
.
GetItemHeight
();
...
@@ -127,6 +140,7 @@ void ScSortKeyCtrl::setScrollRange()
...
@@ -127,6 +140,7 @@ void ScSortKeyCtrl::setScrollRange()
m_rVertScroll
.
SetPageSize
(
nVisibleItems
-
1
);
m_rVertScroll
.
SetPageSize
(
nVisibleItems
-
1
);
m_rVertScroll
.
SetVisibleSize
(
nVisibleItems
);
m_rVertScroll
.
SetVisibleSize
(
nVisibleItems
);
m_rVertScroll
.
Scroll
();
m_rVertScroll
.
Scroll
();
checkAutoVScroll
();
}
}
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
...
@@ -146,6 +160,7 @@ void ScSortKeyCtrl::AddSortKey( sal_uInt16 nItem )
...
@@ -146,6 +160,7 @@ void ScSortKeyCtrl::AddSortKey( sal_uInt16 nItem )
m_rVertScroll
.
SetRangeMax
(
nItem
);
m_rVertScroll
.
SetRangeMax
(
nItem
);
m_rVertScroll
.
DoScroll
(
nItem
);
m_rVertScroll
.
DoScroll
(
nItem
);
m_aSortWin
.
AddSortKey
(
nItem
);
m_aSortWin
.
AddSortKey
(
nItem
);
checkAutoVScroll
();
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/ui/inc/sortkeydlg.hxx
Dosyayı görüntüle @
217a0f0c
...
@@ -94,6 +94,8 @@ private:
...
@@ -94,6 +94,8 @@ private:
DECL_LINK
(
ScrollHdl
,
ScrollBar
*
);
DECL_LINK
(
ScrollHdl
,
ScrollBar
*
);
void
checkAutoVScroll
();
public
:
public
:
ScSortKeyCtrl
(
SfxTabPage
*
pParent
,
ScSortKeyItems
&
mrSortKeyItems
);
ScSortKeyCtrl
(
SfxTabPage
*
pParent
,
ScSortKeyItems
&
mrSortKeyItems
);
void
setScrollRange
();
void
setScrollRange
();
...
...
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