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

#include <toolboxdocumenthandler.hxx>

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

Classes

class  ToolBoxHashMap
 

Public Types

enum  ToolBox_XML_Entry {
  TB_ELEMENT_TOOLBAR ,
  TB_ELEMENT_TOOLBARITEM ,
  TB_ELEMENT_TOOLBARSPACE ,
  TB_ELEMENT_TOOLBARBREAK ,
  TB_ELEMENT_TOOLBARSEPARATOR ,
  TB_ATTRIBUTE_TEXT ,
  TB_ATTRIBUTE_URL ,
  TB_ATTRIBUTE_VISIBLE ,
  TB_ATTRIBUTE_STYLE ,
  TB_ATTRIBUTE_UINAME ,
  TB_XML_ENTRY_COUNT
}
 
enum  ToolBox_XML_Namespace {
  TB_NS_TOOLBAR ,
  TB_NS_XLINK
}
 

Public Member Functions

 OReadToolBoxDocumentHandler (const css::uno::Reference< css::container::XIndexContainer > &rItemContainer)
 
virtual ~OReadToolBoxDocumentHandler () 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
 
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 Member Functions

OUString getErrorLineString ()
 

Private Attributes

bool m_bToolBarStartFound: 1
 
bool m_bToolBarItemStartFound: 1
 
bool m_bToolBarSpaceStartFound: 1
 
bool m_bToolBarBreakStartFound: 1
 
bool m_bToolBarSeparatorStartFound: 1
 
ToolBoxHashMap m_aToolBoxMap
 
css::uno::Reference< css::container::XIndexContainer > m_rItemContainer
 
css::uno::Reference< css::xml::sax::XLocator > m_xLocator
 
OUString m_aType
 
OUString m_aLabel
 
OUString m_aStyle
 
OUString m_aIsVisible
 
OUString m_aCommandURL
 

Detailed Description

Definition at line 38 of file toolboxdocumenthandler.hxx.

Member Enumeration Documentation

◆ ToolBox_XML_Entry

Enumerator
TB_ELEMENT_TOOLBAR 
TB_ELEMENT_TOOLBARITEM 
TB_ELEMENT_TOOLBARSPACE 
TB_ELEMENT_TOOLBARBREAK 
TB_ELEMENT_TOOLBARSEPARATOR 
TB_ATTRIBUTE_TEXT 
TB_ATTRIBUTE_URL 
TB_ATTRIBUTE_VISIBLE 
TB_ATTRIBUTE_STYLE 
TB_ATTRIBUTE_UINAME 
TB_XML_ENTRY_COUNT 

Definition at line 41 of file toolboxdocumenthandler.hxx.

◆ ToolBox_XML_Namespace

Enumerator
TB_NS_TOOLBAR 
TB_NS_XLINK 

Definition at line 56 of file toolboxdocumenthandler.hxx.

Constructor & Destructor Documentation

◆ OReadToolBoxDocumentHandler()

framework::OReadToolBoxDocumentHandler::OReadToolBoxDocumentHandler ( const css::uno::Reference< css::container::XIndexContainer > &  rItemContainer)

◆ ~OReadToolBoxDocumentHandler()

framework::OReadToolBoxDocumentHandler::~OReadToolBoxDocumentHandler ( )
overridevirtual

Definition at line 159 of file toolboxdocumenthandler.cxx.

Member Function Documentation

◆ characters()

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

Definition at line 516 of file toolboxdocumenthandler.cxx.

◆ endDocument()

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

Definition at line 168 of file toolboxdocumenthandler.cxx.

References Any, getErrorLineString(), and m_bToolBarStartFound.

◆ endElement()

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

◆ getErrorLineString()

OUString framework::OReadToolBoxDocumentHandler::getErrorLineString ( )
private

Definition at line 535 of file toolboxdocumenthandler.cxx.

References m_xLocator.

Referenced by endDocument(), endElement(), and startElement().

◆ ignorableWhitespace()

void SAL_CALL framework::OReadToolBoxDocumentHandler::ignorableWhitespace ( const OUString &  aWhitespaces)
overridevirtual

Definition at line 520 of file toolboxdocumenthandler.cxx.

◆ processingInstruction()

void SAL_CALL framework::OReadToolBoxDocumentHandler::processingInstruction ( const OUString &  aTarget,
const OUString &  aData 
)
overridevirtual

Definition at line 524 of file toolboxdocumenthandler.cxx.

◆ setDocumentLocator()

void SAL_CALL framework::OReadToolBoxDocumentHandler::setDocumentLocator ( const css::uno::Reference< css::xml::sax::XLocator > &  xLocator)
overridevirtual

Definition at line 529 of file toolboxdocumenthandler.cxx.

References m_xLocator.

◆ startDocument()

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

Definition at line 164 of file toolboxdocumenthandler.cxx.

◆ startElement()

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

Member Data Documentation

◆ m_aCommandURL

OUString framework::OReadToolBoxDocumentHandler::m_aCommandURL
private

Definition at line 107 of file toolboxdocumenthandler.hxx.

Referenced by startElement().

◆ m_aIsVisible

OUString framework::OReadToolBoxDocumentHandler::m_aIsVisible
private

Definition at line 106 of file toolboxdocumenthandler.hxx.

Referenced by startElement().

◆ m_aLabel

OUString framework::OReadToolBoxDocumentHandler::m_aLabel
private

Definition at line 104 of file toolboxdocumenthandler.hxx.

Referenced by startElement().

◆ m_aStyle

OUString framework::OReadToolBoxDocumentHandler::m_aStyle
private

Definition at line 105 of file toolboxdocumenthandler.hxx.

Referenced by startElement().

◆ m_aToolBoxMap

ToolBoxHashMap framework::OReadToolBoxDocumentHandler::m_aToolBoxMap
private

◆ m_aType

OUString framework::OReadToolBoxDocumentHandler::m_aType
private

Definition at line 103 of file toolboxdocumenthandler.hxx.

Referenced by startElement().

◆ m_bToolBarBreakStartFound

bool framework::OReadToolBoxDocumentHandler::m_bToolBarBreakStartFound
private

◆ m_bToolBarItemStartFound

bool framework::OReadToolBoxDocumentHandler::m_bToolBarItemStartFound
private

◆ m_bToolBarSeparatorStartFound

bool framework::OReadToolBoxDocumentHandler::m_bToolBarSeparatorStartFound
private

◆ m_bToolBarSpaceStartFound

bool framework::OReadToolBoxDocumentHandler::m_bToolBarSpaceStartFound
private

◆ m_bToolBarStartFound

bool framework::OReadToolBoxDocumentHandler::m_bToolBarStartFound
private

◆ m_rItemContainer

css::uno::Reference< css::container::XIndexContainer > framework::OReadToolBoxDocumentHandler::m_rItemContainer
private

Definition at line 100 of file toolboxdocumenthandler.hxx.

Referenced by startElement().

◆ m_xLocator

css::uno::Reference< css::xml::sax::XLocator > framework::OReadToolBoxDocumentHandler::m_xLocator
private

Definition at line 101 of file toolboxdocumenthandler.hxx.

Referenced by getErrorLineString(), and setDocumentLocator().


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