From 30e4465c44cb729b9238f33c4f21dade2a83d6f1 Mon Sep 17 00:00:00 2001 From: Antonio Fernandez Date: Mon, 24 Sep 2012 13:11:45 +0100 Subject: Hidden items are not shown anymore. Change-Id: I957c8c7690321be58e8daaf2fb65ebef136d95bc --- vcl/inc/salmenu.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vcl/inc/salmenu.hxx') diff --git a/vcl/inc/salmenu.hxx b/vcl/inc/salmenu.hxx index fcec96af5590..13f058c6047b 100644 --- a/vcl/inc/salmenu.hxx +++ b/vcl/inc/salmenu.hxx @@ -66,7 +66,7 @@ public: virtual ~SalMenu(); virtual sal_Bool VisibleMenuBar() = 0; // must return sal_True to actually DISPLAY native menu bars - // otherwise only menu messages are processed (eg, OLE on Windows) + // otherwise only menu messages are processed (eg, OLE on Windows) virtual void InsertItem( SalMenuItem* pSalMenuItem, unsigned nPos ) = 0; virtual void RemoveItem( unsigned nPos ) = 0; @@ -82,7 +82,9 @@ public: virtual bool AddMenuBarButton( const SalMenuButtonItem& ); // return false if not implemented or failure virtual void RemoveMenuBarButton( sal_uInt16 nId ); - virtual void SetItemCommand( unsigned nPos, SalMenuItem* pSalMenuItem, const rtl::OUString& aCommandStr ) {} + // FIXME: Make the other VCL native backends to work with these new methods. + virtual void SetItemCommand( unsigned, SalMenuItem*, const rtl::OUString& ) {} + virtual void ShowItem( unsigned nPos, sal_Bool bShow ) { EnableItem( nPos, bShow ); } virtual void Freeze() {} // return an empty rectangle if not implemented -- cgit