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
fdffaef6
Kaydet (Commit)
fdffaef6
authored
Eyl 16, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl menu: More abstraction around MenuBar to get dynamic_cast to one place.
Change-Id: Idbefee0e4230a3c75646e87143f5c3042221aee9
üst
d2d8cda6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
102 additions
and
56 deletions
+102
-56
menu.hxx
include/vcl/menu.hxx
+7
-1
menu.cxx
vcl/source/window/menu.cxx
+36
-31
menubarwindow.cxx
vcl/source/window/menubarwindow.cxx
+6
-6
menubarwindow.hxx
vcl/source/window/menubarwindow.hxx
+17
-17
menufloatingwindow.hxx
vcl/source/window/menufloatingwindow.hxx
+1
-1
menuwindow.hxx
vcl/source/window/menuwindow.hxx
+35
-0
No files found.
include/vcl/menu.hxx
Dosyayı görüntüle @
fdffaef6
...
...
@@ -45,6 +45,7 @@ class KeyEvent;
class
MenuFloatingWindow
;
class
Window
;
class
SalMenu
;
class
IMenuBarWindow
;
struct
SystemMenuData
;
namespace
com
{
...
...
@@ -410,6 +411,11 @@ class VCL_DLLPUBLIC MenuBar : public Menu
SAL_DLLPRIVATE
static
void
ImplDestroy
(
MenuBar
*
pMenu
,
bool
bDelete
);
SAL_DLLPRIVATE
bool
ImplHandleKeyEvent
(
const
KeyEvent
&
rKEvent
,
bool
bFromMenu
=
true
);
protected
:
/// Return the IMenuBarWindow interface.
IMenuBarWindow
*
getMenuBarWindow
();
public
:
MenuBar
();
MenuBar
(
const
MenuBar
&
rMenu
);
...
...
@@ -439,7 +445,7 @@ public:
bool
HandleMenuDeActivateEvent
(
Menu
*
pMenu
)
const
;
bool
HandleMenuHighlightEvent
(
Menu
*
pMenu
,
sal_uInt16
nEventId
)
const
;
bool
HandleMenuCommandEvent
(
Menu
*
pMenu
,
sal_uInt16
nEventId
)
const
;
bool
HandleMenuButtonEvent
(
Menu
*
pMenu
,
sal_uInt16
nEventId
)
const
;
bool
HandleMenuButtonEvent
(
Menu
*
pMenu
,
sal_uInt16
nEventId
);
void
SetCloseButtonClickHdl
(
const
Link
&
rLink
)
{
maCloseHdl
=
rLink
;
}
const
Link
&
GetCloseButtonClickHdl
()
const
{
return
maCloseHdl
;
}
...
...
vcl/source/window/menu.cxx
Dosyayı görüntüle @
fdffaef6
...
...
@@ -2386,6 +2386,15 @@ void Menu::HighlightItem( sal_uInt16 nItemPos )
// - MenuBar -
IMenuBarWindow
*
MenuBar
::
getMenuBarWindow
()
{
// so far just a dynamic_cast, hopefully to be turned into something saner
// at some stage
IMenuBarWindow
*
pWin
=
dynamic_cast
<
IMenuBarWindow
*>
(
pWindow
);
assert
(
pWin
);
return
pWin
;
}
MenuBar
::
MenuBar
()
:
Menu
(),
mbCloseBtnVisible
(
false
),
...
...
@@ -2414,17 +2423,15 @@ MenuBar::~MenuBar()
void
MenuBar
::
ClosePopup
(
Menu
*
pMenu
)
{
MenuBarWindow
*
p
=
dynamic_cast
<
MenuBarWindow
*>
(
ImplGetWindow
());
if
(
p
)
p
->
PopupClosed
(
pMenu
);
getMenuBarWindow
()
->
PopupClosed
(
pMenu
);
}
sal_uLong
MenuBar
::
DeactivateMenuBar
(
sal_uLong
nFocusId
)
{
nFocusId
=
dynamic_cast
<
MenuBarWindow
*>
(
ImplGetWindow
()
)
->
GetFocusId
();
nFocusId
=
getMenuBarWindow
(
)
->
GetFocusId
();
if
(
nFocusId
)
{
dynamic_cast
<
MenuBarWindow
*>
(
ImplGetWindow
()
)
->
SetFocusId
(
0
);
getMenuBarWindow
(
)
->
SetFocusId
(
0
);
ImplGetSVData
()
->
maWinData
.
mbNoDeactivate
=
false
;
}
...
...
@@ -2433,7 +2440,7 @@ sal_uLong MenuBar::DeactivateMenuBar(sal_uLong nFocusId)
void
MenuBar
::
MenuBarKeyInput
(
const
KeyEvent
&
rEvent
)
{
((
MenuBarWindow
*
)(
dynamic_cast
<
MenuBar
*>
(
this
))
->
ImplGetWindow
())
->
KeyInput
(
rEvent
);
pWindow
->
KeyInput
(
rEvent
);
}
void
MenuBar
::
ShowCloseButton
(
bool
bShow
)
...
...
@@ -2450,8 +2457,7 @@ void MenuBar::ShowButtons( bool bClose, bool bFloat, bool bHide )
mbCloseBtnVisible
=
bClose
;
mbFloatBtnVisible
=
bFloat
;
mbHideBtnVisible
=
bHide
;
if
(
ImplGetWindow
()
)
((
MenuBarWindow
*
)
ImplGetWindow
())
->
ShowButtons
(
bClose
,
bFloat
,
bHide
);
getMenuBarWindow
()
->
ShowButtons
(
bClose
,
bFloat
,
bHide
);
}
}
...
...
@@ -2460,20 +2466,21 @@ void MenuBar::SetDisplayable( bool bDisplayable )
if
(
bDisplayable
!=
mbDisplayable
)
{
mbDisplayable
=
bDisplayable
;
MenuBarWindow
*
pMenuWin
=
(
MenuBarWindow
*
)
ImplGetWindow
();
if
(
pMenuWin
)
pMenuWin
->
ImplLayoutChanged
();
getMenuBarWindow
()
->
LayoutChanged
();
}
}
Window
*
MenuBar
::
ImplCreate
(
Window
*
pParent
,
Window
*
pWindow
,
MenuBar
*
pMenu
)
{
if
(
!
pWindow
)
pWindow
=
new
MenuBarWindow
(
pParent
);
MenuBarWindow
*
pMenuBarWindow
=
dynamic_cast
<
MenuBarWindow
*>
(
pWindow
);
if
(
!
pMenuBarWindow
)
{
pWindow
=
pMenuBarWindow
=
new
MenuBarWindow
(
pParent
);
}
pMenu
->
pStartedFrom
=
0
;
pMenu
->
pWindow
=
pWindow
;
((
MenuBarWindow
*
)
pWindow
)
->
SetMenu
(
pMenu
);
pMenuBarWindow
->
SetMenu
(
pMenu
);
long
nHeight
=
pMenu
->
ImplCalcSize
(
pWindow
).
Height
();
// depending on the native implementation or the displayable flag
...
...
@@ -2488,10 +2495,10 @@ Window* MenuBar::ImplCreate( Window* pParent, Window* pWindow, MenuBar* pMenu )
void
MenuBar
::
ImplDestroy
(
MenuBar
*
pMenu
,
bool
bDelete
)
{
MenuBarWindow
*
pWindow
=
(
MenuBarWindow
*
)
pMenu
->
ImplGetWindow
();
if
(
pWindow
&&
bDelete
)
Window
*
pWindow
=
pMenu
->
ImplGetWindow
();
if
(
pWindow
&&
bDelete
)
{
p
Window
->
KillActivePopup
();
p
Menu
->
getMenuBarWindow
()
->
KillActivePopup
();
delete
pWindow
;
}
pMenu
->
pWindow
=
NULL
;
...
...
@@ -2509,27 +2516,27 @@ bool MenuBar::ImplHandleKeyEvent( const KeyEvent& rKEvent, bool bFromMenu )
// check for enabled, if this method is called from another window...
Window
*
pWin
=
ImplGetWindow
();
if
(
pWin
&&
pWin
->
IsEnabled
()
&&
pWin
->
IsInputEnabled
()
&&
!
pWin
->
IsInModalMode
()
)
bDone
=
((
MenuBarWindow
*
)
pWin
)
->
Impl
HandleKeyEvent
(
rKEvent
,
bFromMenu
);
bDone
=
getMenuBarWindow
()
->
HandleKeyEvent
(
rKEvent
,
bFromMenu
);
return
bDone
;
}
void
MenuBar
::
SelectItem
(
sal_uInt16
nId
)
{
MenuBarWindow
*
pMenuWin
=
(
MenuBarWindow
*
)
ImplGet
Window
();
IMenuBarWindow
*
pMenuWin
=
getMenuBar
Window
();
if
(
pMenuWin
)
if
(
pWindow
)
{
p
MenuWin
->
GrabFocus
();
p
Window
->
GrabFocus
();
nId
=
GetItemPos
(
nId
);
// #99705# popup the selected menu
pMenuWin
->
SetAutoPopup
(
true
);
if
(
ITEMPOS_INVALID
!=
pMenuWin
->
nHighlightedItem
)
if
(
ITEMPOS_INVALID
!=
pMenuWin
->
GetHighlightedItem
()
)
{
pMenuWin
->
KillActivePopup
();
pMenuWin
->
ChangeHighlightItem
(
ITEMPOS_INVALID
,
false
);
}
if
(
nId
!=
ITEMPOS_INVALID
)
if
(
nId
!=
ITEMPOS_INVALID
)
pMenuWin
->
ChangeHighlightItem
(
nId
,
false
);
}
}
...
...
@@ -2608,29 +2615,27 @@ bool MenuBar::HandleMenuCommandEvent( Menu *pMenu, sal_uInt16 nCommandEventId )
sal_uInt16
MenuBar
::
AddMenuBarButton
(
const
Image
&
i_rImage
,
const
Link
&
i_rLink
,
const
OUString
&
i_rToolTip
,
sal_uInt16
i_nPos
)
{
return
pWindow
?
static_cast
<
MenuBarWindow
*>
(
pWindow
)
->
AddMenuBarButton
(
i_rImage
,
i_rLink
,
i_rToolTip
,
i_nPos
)
:
0
;
return
getMenuBarWindow
()
->
AddMenuBarButton
(
i_rImage
,
i_rLink
,
i_rToolTip
,
i_nPos
)
;
}
void
MenuBar
::
SetMenuBarButtonHighlightHdl
(
sal_uInt16
nId
,
const
Link
&
rLink
)
{
if
(
pWindow
)
static_cast
<
MenuBarWindow
*>
(
pWindow
)
->
SetMenuBarButtonHighlightHdl
(
nId
,
rLink
);
getMenuBarWindow
()
->
SetMenuBarButtonHighlightHdl
(
nId
,
rLink
);
}
Rectangle
MenuBar
::
GetMenuBarButtonRectPixel
(
sal_uInt16
nId
)
{
return
pWindow
?
static_cast
<
MenuBarWindow
*>
(
pWindow
)
->
GetMenuBarButtonRectPixel
(
nId
)
:
Rectangle
(
);
return
getMenuBarWindow
()
->
GetMenuBarButtonRectPixel
(
nId
);
}
void
MenuBar
::
RemoveMenuBarButton
(
sal_uInt16
nId
)
{
if
(
pWindow
)
static_cast
<
MenuBarWindow
*>
(
pWindow
)
->
RemoveMenuBarButton
(
nId
);
getMenuBarWindow
()
->
RemoveMenuBarButton
(
nId
);
}
bool
MenuBar
::
HandleMenuButtonEvent
(
Menu
*
,
sal_uInt16
i_nButtonId
)
const
bool
MenuBar
::
HandleMenuButtonEvent
(
Menu
*
,
sal_uInt16
i_nButtonId
)
{
return
static_cast
<
MenuBarWindow
*>
(
pWindow
)
->
HandleMenuButtonEvent
(
i_nButtonId
);
return
getMenuBarWindow
()
->
HandleMenuButtonEvent
(
i_nButtonId
);
}
// bool PopupMenu::bAnyPopupInExecute = false;
...
...
vcl/source/window/menubarwindow.cxx
Dosyayı görüntüle @
fdffaef6
...
...
@@ -690,11 +690,11 @@ Rectangle MenuBarWindow::ImplGetItemRect( sal_uInt16 nPos )
void
MenuBarWindow
::
KeyInput
(
const
KeyEvent
&
rKEvent
)
{
if
(
!
Impl
HandleKeyEvent
(
rKEvent
)
)
if
(
!
HandleKeyEvent
(
rKEvent
)
)
Window
::
KeyInput
(
rKEvent
);
}
bool
MenuBarWindow
::
Impl
HandleKeyEvent
(
const
KeyEvent
&
rKEvent
,
bool
bFromMenu
)
bool
MenuBarWindow
::
HandleKeyEvent
(
const
KeyEvent
&
rKEvent
,
bool
bFromMenu
)
{
if
(
!
pMenu
)
return
false
;
...
...
@@ -986,7 +986,7 @@ void MenuBarWindow::StateChanged( StateChangedType nType )
}
void
MenuBarWindow
::
Impl
LayoutChanged
()
void
MenuBarWindow
::
LayoutChanged
()
{
if
(
pMenu
)
{
...
...
@@ -1037,7 +1037,7 @@ void MenuBarWindow::DataChanged( const DataChangedEvent& rDCEvt )
(
rDCEvt
.
GetFlags
()
&
SETTINGS_STYLE
))
)
{
ImplInitStyleSettings
();
Impl
LayoutChanged
();
LayoutChanged
();
}
}
...
...
@@ -1085,7 +1085,7 @@ sal_uInt16 MenuBarWindow::AddMenuBarButton( const Image& i_rImage, const Link& i
aCloseBtn
.
InsertItem
(
nId
,
i_rImage
,
0
,
0
);
aCloseBtn
.
calcMinSize
();
ShowButtons
(
aCloseBtn
.
IsItemVisible
(
IID_DOCUMENTCLOSE
),
aFloatBtn
.
IsVisible
(),
aHideBtn
.
IsVisible
());
Impl
LayoutChanged
();
LayoutChanged
();
if
(
pMenu
->
mpSalMenu
)
pMenu
->
mpSalMenu
->
AddMenuBarButton
(
SalMenuButtonItem
(
nId
,
i_rImage
,
i_rToolTip
)
);
...
...
@@ -1131,7 +1131,7 @@ void MenuBarWindow::RemoveMenuBarButton( sal_uInt16 nId )
aCloseBtn
.
RemoveItem
(
nPos
);
m_aAddButtons
.
erase
(
nId
);
aCloseBtn
.
calcMinSize
();
Impl
LayoutChanged
();
LayoutChanged
();
if
(
pMenu
->
mpSalMenu
)
pMenu
->
mpSalMenu
->
RemoveMenuBarButton
(
nId
);
...
...
vcl/source/window/menubarwindow.hxx
Dosyayı görüntüle @
fdffaef6
...
...
@@ -54,7 +54,7 @@ public:
/** Class that implements the actual window of the menu bar.
*/
class
MenuBarWindow
:
public
MenuWindow
,
public
Window
class
MenuBarWindow
:
public
Window
,
public
IMenuBar
Window
{
friend
class
MenuBar
;
friend
class
Menu
;
...
...
@@ -85,11 +85,11 @@ private:
std
::
map
<
sal_uInt16
,
AddButtonEntry
>
m_aAddButtons
;
void
HighlightItem
(
sal_uInt16
nPos
,
bool
bHighlight
);
v
oid
ChangeHighlightItem
(
sal_uInt16
n
,
bool
bSelectPopupEntry
,
bool
bAllowRestoreFocus
=
true
,
bool
bDefaultToDocument
=
true
)
;
v
irtual
void
ChangeHighlightItem
(
sal_uInt16
n
,
bool
bSelectPopupEntry
,
bool
bAllowRestoreFocus
=
true
,
bool
bDefaultToDocument
=
true
)
SAL_OVERRIDE
;
sal_uInt16
ImplFindEntry
(
const
Point
&
rMousePos
)
const
;
void
ImplCreatePopup
(
bool
bPreSelectFirst
);
bool
ImplHandleKeyEvent
(
const
KeyEvent
&
rKEvent
,
bool
bFromMenu
=
true
)
;
virtual
bool
HandleKeyEvent
(
const
KeyEvent
&
rKEvent
,
bool
bFromMenu
=
true
)
SAL_OVERRIDE
;
Rectangle
ImplGetItemRect
(
sal_uInt16
nPos
);
void
ImplInitStyleSettings
();
...
...
@@ -109,7 +109,7 @@ public:
MenuBarWindow
(
Window
*
pParent
);
virtual
~
MenuBarWindow
();
v
oid
ShowButtons
(
bool
bClose
,
bool
bFloat
,
bool
bHide
);
v
irtual
void
ShowButtons
(
bool
bClose
,
bool
bFloat
,
bool
bHide
);
virtual
void
MouseMove
(
const
MouseEvent
&
rMEvt
)
SAL_OVERRIDE
;
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
SAL_OVERRIDE
;
...
...
@@ -119,25 +119,25 @@ public:
virtual
void
Resize
()
SAL_OVERRIDE
;
virtual
void
RequestHelp
(
const
HelpEvent
&
rHEvt
)
SAL_OVERRIDE
;
v
oid
SetFocusId
(
sal_uLong
nId
)
{
nSaveFocusId
=
nId
;
}
sal_uLong
GetFocusId
()
const
{
return
nSaveFocusId
;
}
v
irtual
void
SetFocusId
(
sal_uLong
nId
)
SAL_OVERRIDE
{
nSaveFocusId
=
nId
;
}
virtual
sal_uLong
GetFocusId
()
const
SAL_OVERRIDE
{
return
nSaveFocusId
;
}
v
oid
SetMenu
(
MenuBar
*
pMenu
)
;
v
oid
KillActivePopup
()
;
v
oid
PopupClosed
(
Menu
*
pMenu
)
;
sal_uInt16
GetHighlightedItem
()
const
{
return
nHighlightedItem
;
}
v
irtual
void
SetMenu
(
MenuBar
*
pMenu
)
SAL_OVERRIDE
;
v
irtual
void
KillActivePopup
()
SAL_OVERRIDE
;
v
irtual
void
PopupClosed
(
Menu
*
pMenu
)
SAL_OVERRIDE
;
virtual
sal_uInt16
GetHighlightedItem
()
const
SAL_OVERRIDE
{
return
nHighlightedItem
;
}
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
accessibility
::
XAccessible
>
CreateAccessible
()
SAL_OVERRIDE
;
v
oid
SetAutoPopup
(
bool
bAuto
)
{
mbAutoPopup
=
bAuto
;
}
v
oid
ImplLayoutChanged
()
;
v
irtual
void
SetAutoPopup
(
bool
bAuto
)
SAL_OVERRIDE
{
mbAutoPopup
=
bAuto
;
}
v
irtual
void
LayoutChanged
()
SAL_OVERRIDE
;
Size
MinCloseButtonSize
();
/// Add an arbitrary button to the menubar that will appear next to the close button.
sal_uInt16
AddMenuBarButton
(
const
Image
&
,
const
Link
&
,
const
OUString
&
,
sal_uInt16
nPos
)
;
v
oid
SetMenuBarButtonHighlightHdl
(
sal_uInt16
nId
,
const
Link
&
)
;
Rectangle
GetMenuBarButtonRectPixel
(
sal_uInt16
nId
)
;
v
oid
RemoveMenuBarButton
(
sal_uInt16
nId
)
;
bool
HandleMenuButtonEvent
(
sal_uInt16
i_nButtonId
)
;
virtual
sal_uInt16
AddMenuBarButton
(
const
Image
&
,
const
Link
&
,
const
OUString
&
,
sal_uInt16
nPos
)
SAL_OVERRIDE
;
v
irtual
void
SetMenuBarButtonHighlightHdl
(
sal_uInt16
nId
,
const
Link
&
)
SAL_OVERRIDE
;
virtual
Rectangle
GetMenuBarButtonRectPixel
(
sal_uInt16
nId
)
SAL_OVERRIDE
;
v
irtual
void
RemoveMenuBarButton
(
sal_uInt16
nId
)
SAL_OVERRIDE
;
virtual
bool
HandleMenuButtonEvent
(
sal_uInt16
i_nButtonId
)
SAL_OVERRIDE
;
};
#endif // INCLUDED_VCL_SOURCE_WINDOW_MENUBARWINDOW_HXX
...
...
vcl/source/window/menufloatingwindow.hxx
Dosyayı görüntüle @
fdffaef6
...
...
@@ -30,7 +30,7 @@
/** Class that implements the actual window of the floating menu.
*/
class
MenuFloatingWindow
:
public
MenuWindow
,
public
Floating
Window
class
MenuFloatingWindow
:
public
FloatingWindow
,
public
Menu
Window
{
friend
void
Menu
::
ImplFillLayoutData
()
const
;
friend
Menu
::~
Menu
();
...
...
vcl/source/window/menuwindow.hxx
Dosyayı görüntüle @
fdffaef6
...
...
@@ -21,9 +21,14 @@
#define INCLUDED_VCL_SOURCE_WINDOW_MENUWINDOW_HXX
#include <sal/types.h>
#include <tools/solar.h>
#include <vcl/event.hxx>
class
HelpEvent
;
class
Image
;
class
Link
;
class
Menu
;
class
MenuBar
;
class
Rectangle
;
class
Window
;
...
...
@@ -46,6 +51,7 @@ common class for MenuFloatingWindow and MenuBarWindow:
class
MenuWindow
{
public
:
virtual
~
MenuWindow
()
{}
/// Sets up some visual properties of the underlying window.
void
ImplInitMenuWindow
(
Window
*
pWin
,
bool
bFont
,
bool
bMenuBar
);
...
...
@@ -55,5 +61,34 @@ public:
const
HelpEvent
&
rHEvt
,
const
Rectangle
&
rHighlightRect
);
};
/// Interface for the MenuBarWindow functionality.
class
IMenuBarWindow
:
public
MenuWindow
{
public
:
virtual
~
IMenuBarWindow
()
{}
virtual
sal_uLong
GetFocusId
()
const
=
0
;
virtual
void
SetFocusId
(
sal_uLong
nId
)
=
0
;
virtual
bool
HandleKeyEvent
(
const
KeyEvent
&
rKEvent
,
bool
bFromMenu
=
true
)
=
0
;
virtual
void
LayoutChanged
()
=
0
;
virtual
void
PopupClosed
(
Menu
*
pMenu
)
=
0
;
virtual
void
ShowButtons
(
bool
bClose
,
bool
bFloat
,
bool
bHide
)
=
0
;
virtual
void
ChangeHighlightItem
(
sal_uInt16
n
,
bool
bSelectPopupEntry
,
bool
bAllowRestoreFocus
=
true
,
bool
bDefaultToDocument
=
true
)
=
0
;
virtual
sal_uInt16
GetHighlightedItem
()
const
=
0
;
virtual
void
SetAutoPopup
(
bool
bAuto
)
=
0
;
virtual
void
SetMenu
(
MenuBar
*
pMenu
)
=
0
;
virtual
void
KillActivePopup
()
=
0
;
/// Add an arbitrary button to the menubar that will appear next to the close button.
virtual
sal_uInt16
AddMenuBarButton
(
const
Image
&
,
const
Link
&
,
const
OUString
&
,
sal_uInt16
nPos
)
=
0
;
virtual
void
SetMenuBarButtonHighlightHdl
(
sal_uInt16
nId
,
const
Link
&
)
=
0
;
virtual
Rectangle
GetMenuBarButtonRectPixel
(
sal_uInt16
nId
)
=
0
;
virtual
void
RemoveMenuBarButton
(
sal_uInt16
nId
)
=
0
;
virtual
bool
HandleMenuButtonEvent
(
sal_uInt16
i_nButtonId
)
=
0
;
};
#endif // INCLUDED_VCL_SOURCE_WINDOW_MENUWINDOW_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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