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
44404a0c
Kaydet (Commit)
44404a0c
authored
Eyl 15, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: If6334d32abbec379acbb9def98fdf6cb5144238b
üst
c4fb1122
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
updatecheckui.cxx
extensions/source/update/ui/updatecheckui.cxx
+4
-4
menu.hxx
include/vcl/menu.hxx
+1
-1
menu.cxx
vcl/source/window/menu.cxx
+1
-1
menubarwindow.cxx
vcl/source/window/menubarwindow.cxx
+2
-2
menubarwindow.hxx
vcl/source/window/menubarwindow.hxx
+2
-2
No files found.
extensions/source/update/ui/updatecheckui.cxx
Dosyayı görüntüle @
44404a0c
...
@@ -144,7 +144,7 @@ class UpdateCheckUI : public ::cppu::WeakImplHelper
...
@@ -144,7 +144,7 @@ class UpdateCheckUI : public ::cppu::WeakImplHelper
private
:
private
:
DECL_LINK_TYPED
(
ClickHdl
,
MenuBar
::
MenuBarButtonCallbackArg
&
,
bool
);
DECL_LINK_TYPED
(
ClickHdl
,
MenuBar
::
MenuBarButtonCallbackArg
&
,
bool
);
DECL_LINK
(
HighlightHdl
,
MenuBar
::
MenuBarButtonCallbackArg
*
);
DECL_LINK
_TYPED
(
HighlightHdl
,
MenuBar
::
MenuBarButtonCallbackArg
&
,
bool
);
DECL_LINK_TYPED
(
WaitTimeOutHdl
,
Idle
*
,
void
);
DECL_LINK_TYPED
(
WaitTimeOutHdl
,
Idle
*
,
void
);
DECL_LINK_TYPED
(
TimeOutHdl
,
Timer
*
,
void
);
DECL_LINK_TYPED
(
TimeOutHdl
,
Timer
*
,
void
);
DECL_LINK_TYPED
(
UserEventHdl
,
void
*
,
void
);
DECL_LINK_TYPED
(
UserEventHdl
,
void
*
,
void
);
...
@@ -601,14 +601,14 @@ IMPL_LINK_NOARG_TYPED(UpdateCheckUI, ClickHdl, MenuBar::MenuBarButtonCallbackArg
...
@@ -601,14 +601,14 @@ IMPL_LINK_NOARG_TYPED(UpdateCheckUI, ClickHdl, MenuBar::MenuBarButtonCallbackArg
}
}
IMPL_LINK
(
UpdateCheckUI
,
HighlightHdl
,
MenuBar
::
MenuBarButtonCallbackArg
*
,
pData
)
IMPL_LINK
_TYPED
(
UpdateCheckUI
,
HighlightHdl
,
MenuBar
::
MenuBarButtonCallbackArg
&
,
rData
,
bool
)
{
{
if
(
pData
->
bHighlight
)
if
(
rData
.
bHighlight
)
maWaitIdle
.
Start
();
maWaitIdle
.
Start
();
else
else
RemoveBubbleWindow
(
false
);
RemoveBubbleWindow
(
false
);
return
0
;
return
false
;
}
}
...
...
include/vcl/menu.hxx
Dosyayı görüntüle @
44404a0c
...
@@ -488,7 +488,7 @@ public:
...
@@ -488,7 +488,7 @@ public:
// set the highlight link for additional button with ID nId
// set the highlight link for additional button with ID nId
// highlight link will be called with a MenuBarButtonHighlightArg
// highlight link will be called with a MenuBarButtonHighlightArg
// the bHighlight member of that struct shall contain the new state
// the bHighlight member of that struct shall contain the new state
void
SetMenuBarButtonHighlightHdl
(
sal_uInt16
nId
,
const
Link
<>&
);
void
SetMenuBarButtonHighlightHdl
(
sal_uInt16
nId
,
const
Link
<
MenuBar
::
MenuBarButtonCallbackArg
&
,
bool
>&
);
// returns the rectangle occupied by the additional button named nId
// returns the rectangle occupied by the additional button named nId
// coordinates are relative to the systemwindiow the menubar is attached to
// coordinates are relative to the systemwindiow the menubar is attached to
// if the menubar is unattached an empty rectangle is returned
// if the menubar is unattached an empty rectangle is returned
...
...
vcl/source/window/menu.cxx
Dosyayı görüntüle @
44404a0c
...
@@ -2737,7 +2737,7 @@ sal_uInt16 MenuBar::AddMenuBarButton( const Image& i_rImage, const Link<MenuBar:
...
@@ -2737,7 +2737,7 @@ sal_uInt16 MenuBar::AddMenuBarButton( const Image& i_rImage, const Link<MenuBar:
return
pMenuWin
?
pMenuWin
->
AddMenuBarButton
(
i_rImage
,
i_rLink
,
i_rToolTip
)
:
0
;
return
pMenuWin
?
pMenuWin
->
AddMenuBarButton
(
i_rImage
,
i_rLink
,
i_rToolTip
)
:
0
;
}
}
void
MenuBar
::
SetMenuBarButtonHighlightHdl
(
sal_uInt16
nId
,
const
Link
<>&
rLink
)
void
MenuBar
::
SetMenuBarButtonHighlightHdl
(
sal_uInt16
nId
,
const
Link
<
MenuBar
::
MenuBarButtonCallbackArg
&
,
bool
>&
rLink
)
{
{
MenuBarWindow
*
pMenuWin
=
getMenuBarWindow
();
MenuBarWindow
*
pMenuWin
=
getMenuBarWindow
();
if
(
!
pMenuWin
)
if
(
!
pMenuWin
)
...
...
vcl/source/window/menubarwindow.cxx
Dosyayı görüntüle @
44404a0c
...
@@ -270,7 +270,7 @@ IMPL_LINK( MenuBarWindow, ToolboxEventHdl, VclWindowEvent*, pEvent )
...
@@ -270,7 +270,7 @@ IMPL_LINK( MenuBarWindow, ToolboxEventHdl, VclWindowEvent*, pEvent )
std
::
map
<
sal_uInt16
,
AddButtonEntry
>::
iterator
it
=
m_aAddButtons
.
find
(
aArg
.
nId
);
std
::
map
<
sal_uInt16
,
AddButtonEntry
>::
iterator
it
=
m_aAddButtons
.
find
(
aArg
.
nId
);
if
(
it
!=
m_aAddButtons
.
end
()
)
if
(
it
!=
m_aAddButtons
.
end
()
)
{
{
it
->
second
.
m_aHighlightLink
.
Call
(
&
aArg
);
it
->
second
.
m_aHighlightLink
.
Call
(
aArg
);
}
}
return
0
;
return
0
;
}
}
...
@@ -1150,7 +1150,7 @@ sal_uInt16 MenuBarWindow::AddMenuBarButton( const Image& i_rImage, const Link<Me
...
@@ -1150,7 +1150,7 @@ sal_uInt16 MenuBarWindow::AddMenuBarButton( const Image& i_rImage, const Link<Me
return
nId
;
return
nId
;
}
}
void
MenuBarWindow
::
SetMenuBarButtonHighlightHdl
(
sal_uInt16
nId
,
const
Link
<>&
rLink
)
void
MenuBarWindow
::
SetMenuBarButtonHighlightHdl
(
sal_uInt16
nId
,
const
Link
<
MenuBar
::
MenuBarButtonCallbackArg
&
,
bool
>&
rLink
)
{
{
std
::
map
<
sal_uInt16
,
AddButtonEntry
>::
iterator
it
=
m_aAddButtons
.
find
(
nId
);
std
::
map
<
sal_uInt16
,
AddButtonEntry
>::
iterator
it
=
m_aAddButtons
.
find
(
nId
);
if
(
it
!=
m_aAddButtons
.
end
()
)
if
(
it
!=
m_aAddButtons
.
end
()
)
...
...
vcl/source/window/menubarwindow.hxx
Dosyayı görüntüle @
44404a0c
...
@@ -69,7 +69,7 @@ private:
...
@@ -69,7 +69,7 @@ private:
{
{
sal_uInt16
m_nId
;
sal_uInt16
m_nId
;
Link
<
MenuBar
::
MenuBarButtonCallbackArg
&
,
bool
>
m_aSelectLink
;
Link
<
MenuBar
::
MenuBarButtonCallbackArg
&
,
bool
>
m_aSelectLink
;
Link
<
>
m_aHighlightLink
;
Link
<
MenuBar
::
MenuBarButtonCallbackArg
&
,
bool
>
m_aHighlightLink
;
AddButtonEntry
()
:
m_nId
(
0
)
{}
AddButtonEntry
()
:
m_nId
(
0
)
{}
};
};
...
@@ -143,7 +143,7 @@ public:
...
@@ -143,7 +143,7 @@ public:
/// Add an arbitrary button to the menubar that will appear next to the close button.
/// Add an arbitrary button to the menubar that will appear next to the close button.
sal_uInt16
AddMenuBarButton
(
const
Image
&
,
const
Link
<
MenuBar
::
MenuBarButtonCallbackArg
&
,
bool
>&
,
const
OUString
&
);
sal_uInt16
AddMenuBarButton
(
const
Image
&
,
const
Link
<
MenuBar
::
MenuBarButtonCallbackArg
&
,
bool
>&
,
const
OUString
&
);
void
SetMenuBarButtonHighlightHdl
(
sal_uInt16
nId
,
const
Link
<>&
);
void
SetMenuBarButtonHighlightHdl
(
sal_uInt16
nId
,
const
Link
<
MenuBar
::
MenuBarButtonCallbackArg
&
,
bool
>&
);
Rectangle
GetMenuBarButtonRectPixel
(
sal_uInt16
nId
);
Rectangle
GetMenuBarButtonRectPixel
(
sal_uInt16
nId
);
void
RemoveMenuBarButton
(
sal_uInt16
nId
);
void
RemoveMenuBarButton
(
sal_uInt16
nId
);
bool
HandleMenuButtonEvent
(
sal_uInt16
i_nButtonId
);
bool
HandleMenuButtonEvent
(
sal_uInt16
i_nButtonId
);
...
...
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