LibreOffice Module framework (master) 1
Public Member Functions | Private Types | Private Attributes | List of all members
framework::OReadMenuPopupHandler Class Referencefinal

#include <menudocumenthandler.hxx>

Inheritance diagram for framework::OReadMenuPopupHandler:
[legend]
Collaboration diagram for framework::OReadMenuPopupHandler:
[legend]

Public Member Functions

 OReadMenuPopupHandler (const css::uno::Reference< css::container::XIndexContainer > &rMenuContainer, const css::uno::Reference< css::lang::XSingleComponentFactory > &rContainerFactory)
 
virtual ~OReadMenuPopupHandler () override
 
virtual void SAL_CALL startDocument () override
 
virtual void SAL_CALL endDocument () override
 
virtual void SAL_CALL startElement (const OUString &aName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
 
virtual void SAL_CALL endElement (const OUString &aName) override
 
virtual void SAL_CALL characters (const OUString &aChars) override
 
- Public Member Functions inherited from framework::ReadMenuDocumentHandlerBase
 ReadMenuDocumentHandlerBase ()
 
virtual ~ReadMenuDocumentHandlerBase () override
 
virtual void SAL_CALL startDocument () override=0
 
virtual void SAL_CALL endDocument () override=0
 
virtual void SAL_CALL startElement (const OUString &aName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override=0
 
virtual void SAL_CALL endElement (const OUString &aName) override=0
 
virtual void SAL_CALL characters (const OUString &aChars) override=0
 
virtual void SAL_CALL ignorableWhitespace (const OUString &aWhitespaces) override
 
virtual void SAL_CALL processingInstruction (const OUString &aTarget, const OUString &aData) override
 
virtual void SAL_CALL setDocumentLocator (const css::uno::Reference< css::xml::sax::XLocator > &xLocator) override
 

Private Types

enum  NextElementClose {
  ELEM_CLOSE_NONE ,
  ELEM_CLOSE_MENUITEM ,
  ELEM_CLOSE_MENUSEPARATOR
}
 

Private Attributes

int m_nElementDepth
 
bool m_bMenuMode
 
css::uno::Reference< css::container::XIndexContainer > m_xMenuContainer
 
css::uno::Reference< css::lang::XSingleComponentFactory > m_xContainerFactory
 
css::uno::Reference< css::uno::XComponentContext > m_xComponentContext
 
NextElementClose m_nNextElementExpected
 

Additional Inherited Members

- Protected Member Functions inherited from framework::ReadMenuDocumentHandlerBase
OUString getErrorLineString ()
 
void initPropertyCommon (css::uno::Sequence< css::beans::PropertyValue > &rProps, const OUString &rCommandURL, const OUString &rHelpId, const OUString &rLabel, sal_Int16 nItemStyleBits)
 
- Protected Attributes inherited from framework::ReadMenuDocumentHandlerBase
css::uno::Reference< css::xml::sax::XLocator > m_xLocator
 
css::uno::Reference< css::xml::sax::XDocumentHandler > m_xReader
 

Detailed Description

Definition at line 161 of file menudocumenthandler.hxx.

Member Enumeration Documentation

◆ NextElementClose

Enumerator
ELEM_CLOSE_NONE 
ELEM_CLOSE_MENUITEM 
ELEM_CLOSE_MENUSEPARATOR 

Definition at line 183 of file menudocumenthandler.hxx.

Constructor & Destructor Documentation

◆ OReadMenuPopupHandler()

framework::OReadMenuPopupHandler::OReadMenuPopupHandler ( const css::uno::Reference< css::container::XIndexContainer > &  rMenuContainer,
const css::uno::Reference< css::lang::XSingleComponentFactory > &  rContainerFactory 
)

Definition at line 499 of file menudocumenthandler.cxx.

References getProcessComponentContext(), and m_xComponentContext.

◆ ~OReadMenuPopupHandler()

framework::OReadMenuPopupHandler::~OReadMenuPopupHandler ( )
overridevirtual

Definition at line 511 of file menudocumenthandler.cxx.

Member Function Documentation

◆ characters()

void SAL_CALL framework::OReadMenuPopupHandler::characters ( const OUString &  aChars)
overridevirtual

Implements framework::ReadMenuDocumentHandlerBase.

Definition at line 660 of file menudocumenthandler.cxx.

◆ endDocument()

void SAL_CALL framework::OReadMenuPopupHandler::endDocument ( )
overridevirtual

Implements framework::ReadMenuDocumentHandlerBase.

Definition at line 519 of file menudocumenthandler.cxx.

◆ endElement()

void SAL_CALL framework::OReadMenuPopupHandler::endElement ( const OUString &  aName)
overridevirtual

◆ startDocument()

void SAL_CALL framework::OReadMenuPopupHandler::startDocument ( )
overridevirtual

Implements framework::ReadMenuDocumentHandlerBase.

Definition at line 515 of file menudocumenthandler.cxx.

◆ startElement()

void SAL_CALL framework::OReadMenuPopupHandler::startElement ( const OUString &  aName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttribs 
)
overridevirtual

Member Data Documentation

◆ m_bMenuMode

bool framework::OReadMenuPopupHandler::m_bMenuMode
private

Definition at line 186 of file menudocumenthandler.hxx.

Referenced by endElement(), and startElement().

◆ m_nElementDepth

int framework::OReadMenuPopupHandler::m_nElementDepth
private

Definition at line 185 of file menudocumenthandler.hxx.

Referenced by endElement(), and startElement().

◆ m_nNextElementExpected

NextElementClose framework::OReadMenuPopupHandler::m_nNextElementExpected
private

Definition at line 190 of file menudocumenthandler.hxx.

Referenced by endElement(), and startElement().

◆ m_xComponentContext

css::uno::Reference< css::uno::XComponentContext > framework::OReadMenuPopupHandler::m_xComponentContext
private

Definition at line 189 of file menudocumenthandler.hxx.

Referenced by startElement().

◆ m_xContainerFactory

css::uno::Reference< css::lang::XSingleComponentFactory > framework::OReadMenuPopupHandler::m_xContainerFactory
private

Definition at line 188 of file menudocumenthandler.hxx.

Referenced by startElement().

◆ m_xMenuContainer

css::uno::Reference< css::container::XIndexContainer > framework::OReadMenuPopupHandler::m_xMenuContainer
private

Definition at line 187 of file menudocumenthandler.hxx.

Referenced by startElement().


The documentation for this class was generated from the following files: