From 0c6305a01f13f5c09dc4c000d5b250319fffe0e4 Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Tue, 3 Nov 2015 18:33:43 +0200 Subject: Support of popupmenu resource type Reusing the same xml format as the menubar, except that a popup menu use menu:menupopup as the root element. Change-Id: I2987af0dc698b09aeeb757cff828617515bc3009 --- framework/source/fwe/xml/menuconfiguration.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/source/fwe/xml/menuconfiguration.cxx') diff --git a/framework/source/fwe/xml/menuconfiguration.cxx b/framework/source/fwe/xml/menuconfiguration.cxx index b2b378eaf787..417bb05d077f 100644 --- a/framework/source/fwe/xml/menuconfiguration.cxx +++ b/framework/source/fwe/xml/menuconfiguration.cxx @@ -114,7 +114,7 @@ PopupMenu* MenuConfiguration::CreateBookmarkMenu(css::uno::Reference& rMenuBarConfiguration, - Reference< XOutputStream >& rOutputStream ) + Reference< XOutputStream >& rOutputStream, bool bIsMenuBar ) throw (WrappedTargetException, RuntimeException) { Reference< XWriter > xWriter = Writer::create(m_xContext); @@ -122,7 +122,7 @@ void MenuConfiguration::StoreMenuBarConfigurationToXML( try { - OWriteMenuDocumentHandler aWriteMenuDocumentHandler( rMenuBarConfiguration, xWriter ); + OWriteMenuDocumentHandler aWriteMenuDocumentHandler( rMenuBarConfiguration, xWriter, bIsMenuBar ); aWriteMenuDocumentHandler.WriteMenuDocument(); } catch ( const RuntimeException& e ) -- cgit v1.2.3