22#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
23#include <com/sun/star/container/XIndexContainer.hpp>
24#include <com/sun/star/lang/XSingleComponentFactory.hpp>
25#include <com/sun/star/beans/PropertyValue.hpp>
26#include <com/sun/star/uno/Sequence.h>
27#include <com/sun/star/uno/XComponentContext.hpp>
29#include <rtl/ustring.hxx>
46 const OUString& aName,
47 const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs)
override = 0;
49 virtual void SAL_CALL
endElement(
const OUString& aName)
override = 0;
51 virtual void SAL_CALL
characters(
const OUString& aChars)
override = 0;
56 const OUString& aData)
override;
59 const css::uno::Reference< css::xml::sax::XLocator > &xLocator)
override;
64 css::uno::Reference< css::xml::sax::XLocator >
m_xLocator;
65 css::uno::Reference< css::xml::sax::XDocumentHandler>
m_xReader;
67 const OUString &rCommandURL,
const OUString &rHelpId,
68 const OUString &rLabel, sal_Int16 nItemStyleBits );
82 const css::uno::Reference< css::container::XIndexContainer >& rItemContainer );
91 const OUString&
aName,
92 const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs)
override;
96 virtual void SAL_CALL
characters(
const OUString& aChars)
override;
110 const css::uno::Reference< css::container::XIndexContainer >& rMenuBarContainer,
111 const css::uno::Reference< css::lang::XSingleComponentFactory >& rContainerFactory );
120 const OUString&
aName,
121 const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs)
override;
125 virtual void SAL_CALL
characters(
const OUString& aChars)
override;
137 OReadMenuHandler(
const css::uno::Reference< css::container::XIndexContainer >& rMenuContainer,
138 const css::uno::Reference< css::lang::XSingleComponentFactory >& rContainerFactory );
147 const OUString&
aName,
148 const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs)
override;
152 virtual void SAL_CALL
characters(
const OUString& aChars)
override;
165 const css::uno::Reference< css::lang::XSingleComponentFactory >& rContainerFactory );
174 const OUString&
aName,
175 const css::uno::Reference<
176 css::xml::sax::XAttributeList > &xAttribs)
override;
180 virtual void SAL_CALL
characters(
const OUString& aChars)
override;
197 const css::uno::Reference< css::container::XIndexAccess >& rMenuBarContainer,
198 const css::uno::Reference< css::xml::sax::XDocumentHandler >& rDocumentHandler,
208 void WriteMenu(
const css::uno::Reference< css::container::XIndexAccess >& rSubMenuContainer );
210 void WriteMenuItem(
const OUString& aCommandURL,
const OUString&
aLabel,
const OUString& aHelpURL, sal_Int16 nStyle );
css::uno::Reference< css::lang::XSingleComponentFactory > m_xContainerFactory
virtual void SAL_CALL characters(const OUString &aChars) override
virtual ~OReadMenuBarHandler() override
virtual void SAL_CALL startDocument() override
virtual void SAL_CALL endElement(const OUString &aName) override
virtual void SAL_CALL startElement(const OUString &aName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
virtual void SAL_CALL endDocument() override
css::uno::Reference< css::container::XIndexContainer > m_xMenuBarContainer
OReadMenuBarHandler(const css::uno::Reference< css::container::XIndexContainer > &rMenuBarContainer, const css::uno::Reference< css::lang::XSingleComponentFactory > &rContainerFactory)
virtual void SAL_CALL startDocument() override
css::uno::Reference< css::lang::XSingleComponentFactory > m_xContainerFactory
virtual void SAL_CALL startElement(const OUString &aName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
virtual void SAL_CALL characters(const OUString &aChars) override
virtual ~OReadMenuDocumentHandler() override
virtual void SAL_CALL endDocument() override
OReadMenuDocumentHandler(const css::uno::Reference< css::container::XIndexContainer > &rItemContainer)
virtual void SAL_CALL endElement(const OUString &aName) override
css::uno::Reference< css::container::XIndexContainer > m_xMenuBarContainer
virtual void SAL_CALL startElement(const OUString &aName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
virtual void SAL_CALL characters(const OUString &aChars) override
virtual ~OReadMenuHandler() override
virtual void SAL_CALL startDocument() override
css::uno::Reference< css::lang::XSingleComponentFactory > m_xContainerFactory
OReadMenuHandler(const css::uno::Reference< css::container::XIndexContainer > &rMenuContainer, const css::uno::Reference< css::lang::XSingleComponentFactory > &rContainerFactory)
virtual void SAL_CALL endDocument() override
virtual void SAL_CALL endElement(const OUString &aName) override
css::uno::Reference< css::container::XIndexContainer > m_xMenuContainer
virtual void SAL_CALL characters(const OUString &aChars) override
virtual ~OReadMenuPopupHandler() override
css::uno::Reference< css::uno::XComponentContext > m_xComponentContext
NextElementClose m_nNextElementExpected
virtual void SAL_CALL startElement(const OUString &aName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
@ ELEM_CLOSE_MENUSEPARATOR
virtual void SAL_CALL endDocument() override
virtual void SAL_CALL startDocument() override
virtual void SAL_CALL endElement(const OUString &aName) override
OReadMenuPopupHandler(const css::uno::Reference< css::container::XIndexContainer > &rMenuContainer, const css::uno::Reference< css::lang::XSingleComponentFactory > &rContainerFactory)
css::uno::Reference< css::container::XIndexContainer > m_xMenuContainer
css::uno::Reference< css::lang::XSingleComponentFactory > m_xContainerFactory
void WriteMenuSeparator()
void WriteMenu(const css::uno::Reference< css::container::XIndexAccess > &rSubMenuContainer)
css::uno::Reference< css::xml::sax::XDocumentHandler > m_xWriteDocumentHandler
~OWriteMenuDocumentHandler()
void WriteMenuItem(const OUString &aCommandURL, const OUString &aLabel, const OUString &aHelpURL, sal_Int16 nStyle)
css::uno::Reference< css::xml::sax::XAttributeList > m_xEmptyList
OWriteMenuDocumentHandler(const css::uno::Reference< css::container::XIndexAccess > &rMenuBarContainer, const css::uno::Reference< css::xml::sax::XDocumentHandler > &rDocumentHandler, bool bIsMenuBar)
css::uno::Reference< css::container::XIndexAccess > m_xMenuBarContainer
virtual void SAL_CALL setDocumentLocator(const css::uno::Reference< css::xml::sax::XLocator > &xLocator) override
OUString getErrorLineString()
ReadMenuDocumentHandlerBase()
virtual void SAL_CALL endElement(const OUString &aName) override=0
virtual void SAL_CALL endDocument() override=0
virtual void SAL_CALL ignorableWhitespace(const OUString &aWhitespaces) override
virtual ~ReadMenuDocumentHandlerBase() override
virtual void SAL_CALL startDocument() override=0
void initPropertyCommon(css::uno::Sequence< css::beans::PropertyValue > &rProps, const OUString &rCommandURL, const OUString &rHelpId, const OUString &rLabel, sal_Int16 nItemStyleBits)
virtual void SAL_CALL startElement(const OUString &aName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override=0
virtual void SAL_CALL characters(const OUString &aChars) override=0
css::uno::Reference< css::xml::sax::XDocumentHandler > m_xReader
virtual void SAL_CALL processingInstruction(const OUString &aTarget, const OUString &aData) override
css::uno::Reference< css::xml::sax::XLocator > m_xLocator