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
cc599e91
Kaydet (Commit)
cc599e91
authored
Mar 25, 2013
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#61390: allow arrow keys to show hidden thumbnail items
Change-Id: I70924b4c9578122a1c5a5b6c8a67889d6d003a2e
üst
e21114a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
3 deletions
+31
-3
thumbnailview.hxx
sfx2/inc/sfx2/thumbnailview.hxx
+1
-0
thumbnailview.cxx
sfx2/source/control/thumbnailview.cxx
+29
-2
templatedlg.cxx
sfx2/source/doc/templatedlg.cxx
+1
-1
No files found.
sfx2/inc/sfx2/thumbnailview.hxx
Dosyayı görüntüle @
cc599e91
...
@@ -273,6 +273,7 @@ protected:
...
@@ -273,6 +273,7 @@ protected:
using
Window
::
ImplInit
;
using
Window
::
ImplInit
;
void
CalculateItemPositions
();
void
CalculateItemPositions
();
void
MakeItemVisible
(
sal_uInt16
nId
);
SFX2_DLLPRIVATE
void
ImplInit
();
SFX2_DLLPRIVATE
void
ImplInit
();
SFX2_DLLPRIVATE
void
ImplInitSettings
(
bool
bFont
,
bool
bForeground
,
bool
bBackground
);
SFX2_DLLPRIVATE
void
ImplInitSettings
(
bool
bFont
,
bool
bForeground
,
bool
bBackground
);
...
...
sfx2/source/control/thumbnailview.cxx
Dosyayı görüntüle @
cc599e91
...
@@ -550,13 +550,40 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt )
...
@@ -550,13 +550,40 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt )
Control
::
KeyInput
(
rKEvt
);
Control
::
KeyInput
(
rKEvt
);
}
}
if
(
pNext
&&
pNext
->
isVisible
()
)
if
(
pNext
)
{
{
deselectItems
();
deselectItems
();
SelectItem
(
pNext
->
mnId
);
SelectItem
(
pNext
->
mnId
);
MakeItemVisible
(
pNext
->
mnId
);
}
}
}
}
void
ThumbnailView
::
MakeItemVisible
(
sal_uInt16
nItemId
)
{
// Get the item row
size_t
nPos
=
0
;
bool
bFound
=
false
;
for
(
size_t
i
=
0
;
!
bFound
&&
i
<
mFilteredItemList
.
size
();
++
i
)
{
ThumbnailViewItem
*
pItem
=
mFilteredItemList
[
i
];
if
(
pItem
->
mnId
==
nItemId
)
{
nPos
=
i
;
bFound
=
true
;
}
}
sal_uInt16
nRow
=
nPos
/
mnCols
;
// Move the visible rows as little as possible to include that one
if
(
nRow
<
mnFirstLine
)
mnFirstLine
=
nRow
;
else
if
(
nRow
>
mnFirstLine
+
mnVisLines
)
mnFirstLine
=
nRow
-
mnVisLines
;
CalculateItemPositions
();
Invalidate
();
}
void
ThumbnailView
::
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
void
ThumbnailView
::
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
{
{
if
(
rMEvt
.
IsLeft
()
)
if
(
rMEvt
.
IsLeft
()
)
...
@@ -700,11 +727,11 @@ void ThumbnailView::LoseFocus()
...
@@ -700,11 +727,11 @@ void ThumbnailView::LoseFocus()
void
ThumbnailView
::
Resize
()
void
ThumbnailView
::
Resize
()
{
{
Control
::
Resize
();
CalculateItemPositions
();
CalculateItemPositions
();
if
(
IsReallyVisible
()
&&
IsUpdateMode
()
)
if
(
IsReallyVisible
()
&&
IsUpdateMode
()
)
Invalidate
();
Invalidate
();
Control
::
Resize
();
}
}
void
ThumbnailView
::
StateChanged
(
StateChangedType
nType
)
void
ThumbnailView
::
StateChanged
(
StateChangedType
nType
)
...
...
sfx2/source/doc/templatedlg.cxx
Dosyayı görüntüle @
cc599e91
...
@@ -332,7 +332,7 @@ void SfxTemplateManagerDlg::Resize()
...
@@ -332,7 +332,7 @@ void SfxTemplateManagerDlg::Resize()
Point
aViewPos
=
maView
->
GetPosPixel
();
Point
aViewPos
=
maView
->
GetPosPixel
();
aViewPos
.
setY
(
nToolbarsHeight
);
aViewPos
.
setY
(
nToolbarsHeight
);
aViewPos
.
setX
(
0
);
aViewPos
.
setX
(
0
);
Size
aThumbSize
(
aWinSize
.
getWidth
(),
maTabControl
.
GetTabPageSizePixel
().
get
Width
()
-
aViewPos
.
getY
());
Size
aThumbSize
(
aWinSize
.
getWidth
(),
maTabControl
.
GetTabPageSizePixel
().
get
Height
()
-
aViewPos
.
getY
());
maView
->
SetPosSizePixel
(
aViewPos
,
aThumbSize
);
maView
->
SetPosSizePixel
(
aViewPos
,
aThumbSize
);
if
(
aWinSize
.
getHeight
()
<
aViewPos
.
getY
()
+
aThumbSize
.
getHeight
()
+
PADDING_DLG_BORDER
)
if
(
aWinSize
.
getHeight
()
<
aViewPos
.
getY
()
+
aThumbSize
.
getHeight
()
+
PADDING_DLG_BORDER
)
...
...
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