diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2015-11-03 18:33:43 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2015-11-03 22:11:35 +0200 |
commit | 0c6305a01f13f5c09dc4c000d5b250319fffe0e4 (patch) | |
tree | 69cece883de7691231a49301625bf4ccde41addb /framework/inc/xml/menudocumenthandler.hxx | |
parent | 281be263619a8e513a26e6a9165d1d77cf6524ea (diff) |
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
Diffstat (limited to 'framework/inc/xml/menudocumenthandler.hxx')
-rw-r--r-- | framework/inc/xml/menudocumenthandler.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/framework/inc/xml/menudocumenthandler.hxx b/framework/inc/xml/menudocumenthandler.hxx index 087836f556af..58df5bb07c2b 100644 --- a/framework/inc/xml/menudocumenthandler.hxx +++ b/framework/inc/xml/menudocumenthandler.hxx @@ -127,7 +127,8 @@ class FWE_DLLPUBLIC OReadMenuDocumentHandler : public ReadMenuDocumentHandlerBas private: int m_nElementDepth; - bool m_bMenuBarMode; + enum class ReaderMode { None, MenuBar, MenuPopup }; + ReaderMode m_eReaderMode; css::uno::Reference< css::container::XIndexContainer > m_xMenuBarContainer; css::uno::Reference< css::lang::XSingleComponentFactory > m_xContainerFactory; }; // OReadMenuDocumentHandler @@ -254,7 +255,8 @@ class FWE_DLLPUBLIC OWriteMenuDocumentHandler public: OWriteMenuDocumentHandler( const css::uno::Reference< css::container::XIndexAccess >& rMenuBarContainer, - const css::uno::Reference< css::xml::sax::XDocumentHandler >& rDocumentHandler ); + const css::uno::Reference< css::xml::sax::XDocumentHandler >& rDocumentHandler, + bool bIsMenuBar ); virtual ~OWriteMenuDocumentHandler(); void WriteMenuDocument() throw @@ -270,6 +272,7 @@ class FWE_DLLPUBLIC OWriteMenuDocumentHandler css::uno::Reference< css::xml::sax::XDocumentHandler > m_xWriteDocumentHandler; css::uno::Reference< css::xml::sax::XAttributeList > m_xEmptyList; OUString m_aAttributeType; + bool m_bIsMenuBar; }; } // namespace framework |