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
cdadaa55
Kaydet (Commit)
cdadaa55
authored
Eyl 17, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: Ifdcd9121b16b7f33632cf6671449152ebee8beef
üst
d360dd35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
AccessibleSlideSorterView.cxx
sd/source/ui/accessibility/AccessibleSlideSorterView.cxx
+2
-3
SlsFocusManager.cxx
sd/source/ui/slidesorter/controller/SlsFocusManager.cxx
+5
-5
SlsFocusManager.hxx
sd/source/ui/slidesorter/inc/controller/SlsFocusManager.hxx
+3
-3
No files found.
sd/source/ui/accessibility/AccessibleSlideSorterView.cxx
Dosyayı görüntüle @
cdadaa55
...
...
@@ -83,7 +83,7 @@ public:
DECL_LINK
(
WindowEventListener
,
VclWindowEvent
*
);
DECL_LINK
(
SelectionChangeListener
,
void
*
);
DECL_LINK_TYPED
(
BroadcastSelectionChange
,
void
*
,
void
);
DECL_LINK
(
FocusChangeListener
,
void
*
);
DECL_LINK
_TYPED
(
FocusChangeListener
,
LinkParamNone
*
,
void
);
DECL_LINK_TYPED
(
VisibilityChangeListener
,
LinkParamNone
*
,
void
);
DECL_LINK_TYPED
(
UpdateChildrenCallback
,
void
*
,
void
);
...
...
@@ -937,7 +937,7 @@ IMPL_LINK_NOARG_TYPED(AccessibleSlideSorterView::Implementation, BroadcastSelect
Any
());
}
IMPL_LINK_NOARG
(
AccessibleSlideSorterView
::
Implementation
,
FocusChangeListener
)
IMPL_LINK_NOARG
_TYPED
(
AccessibleSlideSorterView
::
Implementation
,
FocusChangeListener
,
LinkParamNone
*
,
void
)
{
sal_Int32
nNewFocusedIndex
(
mrSlideSorter
.
GetController
().
GetFocusManager
().
GetFocusedPageIndex
());
...
...
@@ -977,7 +977,6 @@ IMPL_LINK_NOARG(AccessibleSlideSorterView::Implementation, FocusChangeListener)
if
(
bSentFocus
)
mnFocusedIndex
=
nNewFocusedIndex
;
}
return
1
;
}
IMPL_LINK_NOARG_TYPED
(
AccessibleSlideSorterView
::
Implementation
,
UpdateChildrenCallback
,
void
*
,
void
)
...
...
sd/source/ui/slidesorter/controller/SlsFocusManager.cxx
Dosyayı görüntüle @
cdadaa55
...
...
@@ -243,7 +243,7 @@ void FocusManager::ShowFocusIndicator (
}
}
void
FocusManager
::
AddFocusChangeListener
(
const
Link
<>&
rListener
)
void
FocusManager
::
AddFocusChangeListener
(
const
Link
<
LinkParamNone
*
,
void
>&
rListener
)
{
if
(
::
std
::
find
(
maFocusChangeListeners
.
begin
(),
maFocusChangeListeners
.
end
(),
rListener
)
==
maFocusChangeListeners
.
end
())
...
...
@@ -252,7 +252,7 @@ void FocusManager::AddFocusChangeListener (const Link<>& rListener)
}
}
void
FocusManager
::
RemoveFocusChangeListener
(
const
Link
<>&
rListener
)
void
FocusManager
::
RemoveFocusChangeListener
(
const
Link
<
LinkParamNone
*
,
void
>&
rListener
)
{
maFocusChangeListeners
.
erase
(
::
std
::
find
(
maFocusChangeListeners
.
begin
(),
maFocusChangeListeners
.
end
(),
rListener
));
...
...
@@ -261,11 +261,11 @@ void FocusManager::RemoveFocusChangeListener (const Link<>& rListener)
void
FocusManager
::
NotifyFocusChangeListeners
()
const
{
// Create a copy of the listener list to be safe when that is modified.
::
std
::
vector
<
Link
<>>
aListeners
(
maFocusChangeListeners
);
::
std
::
vector
<
Link
<
LinkParamNone
*
,
void
>>
aListeners
(
maFocusChangeListeners
);
// Tell the selection change listeners that the selection has changed.
::
std
::
vector
<
Link
<>>::
iterator
iListener
(
aListeners
.
begin
());
::
std
::
vector
<
Link
<>>::
iterator
iEnd
(
aListeners
.
end
());
::
std
::
vector
<
Link
<
LinkParamNone
*
,
void
>>::
iterator
iListener
(
aListeners
.
begin
());
::
std
::
vector
<
Link
<
LinkParamNone
*
,
void
>>::
iterator
iEnd
(
aListeners
.
end
());
for
(;
iListener
!=
iEnd
;
++
iListener
)
{
iListener
->
Call
(
NULL
);
...
...
sd/source/ui/slidesorter/inc/controller/SlsFocusManager.hxx
Dosyayı görüntüle @
cdadaa55
...
...
@@ -143,14 +143,14 @@ public:
the second and all following calls are ignored. Each listener
is added only once.
*/
void
AddFocusChangeListener
(
const
Link
<>&
rListener
);
void
AddFocusChangeListener
(
const
Link
<
LinkParamNone
*
,
void
>&
rListener
);
/** Remove a focus change listener.
@param rListener
It is save to pass a listener that was not added are has been
removed previously. Such calls are ignored.
*/
void
RemoveFocusChangeListener
(
const
Link
<>&
rListener
);
void
RemoveFocusChangeListener
(
const
Link
<
LinkParamNone
*
,
void
>&
rListener
);
/** Create an instance of this class to temporarily hide the focus
indicator. It is restored to its former visibility state when the
...
...
@@ -179,7 +179,7 @@ private:
*/
bool
mbPageIsFocused
;
::
std
::
vector
<
Link
<>>
maFocusChangeListeners
;
::
std
::
vector
<
Link
<
LinkParamNone
*
,
void
>>
maFocusChangeListeners
;
/** When vertical wrap is active then pressing UP in the top row moves
the focus to the bottom row, DOWN in the bottom row moves the focus
...
...
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