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
98b5f116
Kaydet (Commit)
98b5f116
authored
May 06, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use typed ToolBox::SetMenuButtonHdl Link
Change-Id: I00cd35374294ccdcc0ac3223ae81ba8129b9a5d7
üst
e1b8ae4b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
8 deletions
+6
-8
toolbarmanager.hxx
framework/inc/uielement/toolbarmanager.hxx
+1
-1
toolbarmanager.cxx
framework/source/uielement/toolbarmanager.cxx
+2
-4
toolbox.hxx
include/vcl/toolbox.hxx
+1
-1
toolbox.h
vcl/inc/toolbox.h
+1
-1
toolbox2.cxx
vcl/source/window/toolbox2.cxx
+1
-1
No files found.
framework/inc/uielement/toolbarmanager.hxx
Dosyayı görüntüle @
98b5f116
...
...
@@ -138,7 +138,7 @@ class ToolBarManager : public ToolbarManager_Base
DECL_LINK_TYPED
(
DataChanged
,
DataChangedEvent
const
*
,
void
);
DECL_LINK
(
MiscOptionsChanged
,
void
*
);
DECL_LINK
(
MenuButton
,
ToolBox
*
);
DECL_LINK
_TYPED
(
MenuButton
,
ToolBox
*
,
void
);
DECL_LINK
(
MenuSelect
,
Menu
*
);
DECL_LINK
(
MenuDeactivate
,
Menu
*
);
DECL_LINK_TYPED
(
AsyncUpdateControllersHdl
,
Timer
*
,
void
);
...
...
framework/source/uielement/toolbarmanager.cxx
Dosyayı görüntüle @
98b5f116
...
...
@@ -1811,18 +1811,16 @@ IMPL_LINK_TYPED( ToolBarManager, Command, CommandEvent const *, pCmdEvt, void )
}
}
IMPL_LINK
(
ToolBarManager
,
MenuButton
,
ToolBox
*
,
pToolBar
)
IMPL_LINK
_TYPED
(
ToolBarManager
,
MenuButton
,
ToolBox
*
,
pToolBar
,
void
)
{
SolarMutexGuard
g
;
if
(
m_bDisposed
)
return
1
;
return
;
pToolBar
->
UpdateCustomMenu
();
// remove all entries that do not come from the toolbar itself (fdo#38276)
ImplClearPopupMenu
(
pToolBar
);
return
0
;
}
IMPL_LINK
(
ToolBarManager
,
MenuSelect
,
Menu
*
,
pMenu
)
...
...
include/vcl/toolbox.hxx
Dosyayı görüntüle @
98b5f116
...
...
@@ -520,7 +520,7 @@ public:
bool
IsMenuEnabled
()
const
;
PopupMenu
*
GetMenu
()
const
;
void
UpdateCustomMenu
();
void
SetMenuButtonHdl
(
const
Link
<>&
rLink
);
void
SetMenuButtonHdl
(
const
Link
<
ToolBox
*
,
void
>&
rLink
);
// open custommenu
void
ExecuteCustomMenu
();
...
...
vcl/inc/toolbox.h
Dosyayı görüntüle @
98b5f116
...
...
@@ -141,7 +141,7 @@ struct ImplToolBoxPrivateData
ImplSVEvent
*
mnEventId
;
// called when menu button is clicked and before the popup menu is executed
Link
<
>
maMenuButtonHdl
;
Link
<
ToolBox
*
,
void
>
maMenuButtonHdl
;
// a dummy item representing the custom menu button
ImplToolItem
maMenubuttonItem
;
...
...
vcl/source/window/toolbox2.cxx
Dosyayı görüntüle @
98b5f116
...
...
@@ -1773,7 +1773,7 @@ PopupMenu* ToolBox::GetMenu() const
return
mpData
->
mpMenu
;
}
void
ToolBox
::
SetMenuButtonHdl
(
const
Link
<>&
rLink
)
void
ToolBox
::
SetMenuButtonHdl
(
const
Link
<
ToolBox
*
,
void
>&
rLink
)
{
mpData
->
maMenuButtonHdl
=
rLink
;
}
...
...
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