summaryrefslogtreecommitdiff
path: root/vcl/inc/salmenu.hxx
diff options
context:
space:
mode:
authorAntonio Fernandez <antonio.fernandez@aentos.es>2012-09-24 13:11:45 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-11-14 13:52:54 +0100
commit30e4465c44cb729b9238f33c4f21dade2a83d6f1 (patch)
tree5d3dc8d4f8438835a41866480225409da0e11e64 /vcl/inc/salmenu.hxx
parentcf7908f875a6091e8fe8dd7bfe87dfbd9ac5078e (diff)
Hidden items are not shown anymore.
Change-Id: I957c8c7690321be58e8daaf2fb65ebef136d95bc
Diffstat (limited to 'vcl/inc/salmenu.hxx')
-rw-r--r--vcl/inc/salmenu.hxx6
1 files changed, 4 insertions, 2 deletions
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