LibreOffice Module framework (master) 1
|
#include <acceleratorconfigurationreader.hxx>
Public Member Functions | |
AcceleratorConfigurationReader (AcceleratorCache &rContainer) | |
connect this new reader/writer instance to an outside container, which should be used flushed to the underlying XML configuration or filled from there. More... | |
virtual | ~AcceleratorConfigurationReader () override |
does nothing real ... More... | |
virtual void SAL_CALL | startDocument () override |
virtual void SAL_CALL | endDocument () override |
virtual void SAL_CALL | startElement (const OUString &sElement, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttributeList) override |
virtual void SAL_CALL | endElement (const OUString &sElement) override |
virtual void SAL_CALL | characters (const OUString &sChars) override |
virtual void SAL_CALL | ignorableWhitespace (const OUString &sWhitespaces) override |
virtual void SAL_CALL | processingInstruction (const OUString &sTarget, const OUString &sData) override |
virtual void SAL_CALL | setDocumentLocator (const css::uno::Reference< css::xml::sax::XLocator > &xLocator) override |
Private Types | |
enum | EXMLElement { E_ELEMENT_ACCELERATORLIST , E_ELEMENT_ITEM } |
classification of XML elements. More... | |
enum | EXMLAttribute { E_ATTRIBUTE_KEYCODE , E_ATTRIBUTE_MOD_SHIFT , E_ATTRIBUTE_MOD_MOD1 , E_ATTRIBUTE_MOD_MOD2 , E_ATTRIBUTE_MOD_MOD3 , E_ATTRIBUTE_URL } |
classification of XML attributes. More... | |
Private Member Functions | |
OUString | implts_getErrorLineString () |
TODO document me. More... | |
Static Private Member Functions | |
static EXMLElement | implst_classifyElement (std::u16string_view sElement) |
TODO document me. More... | |
static EXMLAttribute | implst_classifyAttribute (std::u16string_view sAttribute) |
TODO document me. More... | |
Private Attributes | |
AcceleratorCache & | m_rContainer |
reference to the outside container, where this reader/writer must work on. More... | |
bool | m_bInsideAcceleratorList |
used to detect if an accelerator list occurs recursive inside xml. More... | |
bool | m_bInsideAcceleratorItem |
used to detect if an accelerator item occurs recursive inside xml. More... | |
css::uno::Reference< css::xml::sax::XLocator > | m_xLocator |
provide information about the parsing state. More... | |
Definition at line 33 of file acceleratorconfigurationreader.hxx.
classification of XML attributes.
Enumerator | |
---|---|
E_ATTRIBUTE_KEYCODE | |
E_ATTRIBUTE_MOD_SHIFT | |
E_ATTRIBUTE_MOD_MOD1 | |
E_ATTRIBUTE_MOD_MOD2 | |
E_ATTRIBUTE_MOD_MOD3 | |
E_ATTRIBUTE_URL |
Definition at line 48 of file acceleratorconfigurationreader.hxx.
classification of XML elements.
Enumerator | |
---|---|
E_ELEMENT_ACCELERATORLIST | |
E_ELEMENT_ITEM |
Definition at line 41 of file acceleratorconfigurationreader.hxx.
framework::AcceleratorConfigurationReader::AcceleratorConfigurationReader | ( | AcceleratorCache & | rContainer | ) |
connect this new reader/writer instance to an outside container, which should be used flushed to the underlying XML configuration or filled from there.
rContainer | a reference to the outside container. |
Definition at line 50 of file acceleratorconfigurationreader.cxx.
|
overridevirtual |
does nothing real ...
Definition at line 57 of file acceleratorconfigurationreader.cxx.
|
overridevirtual |
Definition at line 186 of file acceleratorconfigurationreader.cxx.
|
overridevirtual |
Definition at line 65 of file acceleratorconfigurationreader.cxx.
References m_bInsideAcceleratorItem, m_bInsideAcceleratorList, and THROW_PARSEEXCEPTION.
|
overridevirtual |
Definition at line 165 of file acceleratorconfigurationreader.cxx.
References E_ELEMENT_ACCELERATORLIST, E_ELEMENT_ITEM, implst_classifyElement(), m_bInsideAcceleratorItem, m_bInsideAcceleratorList, and THROW_PARSEEXCEPTION.
|
overridevirtual |
Definition at line 190 of file acceleratorconfigurationreader.cxx.
|
staticprivate |
TODO document me.
Definition at line 220 of file acceleratorconfigurationreader.cxx.
References E_ATTRIBUTE_KEYCODE, E_ATTRIBUTE_MOD_MOD1, E_ATTRIBUTE_MOD_MOD2, E_ATTRIBUTE_MOD_MOD3, E_ATTRIBUTE_MOD_SHIFT, E_ATTRIBUTE_URL, and u.
Referenced by startElement().
|
staticprivate |
TODO document me.
Definition at line 204 of file acceleratorconfigurationreader.cxx.
References E_ELEMENT_ACCELERATORLIST, E_ELEMENT_ITEM, and u.
Referenced by endElement(), and startElement().
|
private |
TODO document me.
Definition at line 244 of file acceleratorconfigurationreader.cxx.
References m_xLocator.
|
overridevirtual |
Definition at line 194 of file acceleratorconfigurationreader.cxx.
|
overridevirtual |
Definition at line 199 of file acceleratorconfigurationreader.cxx.
References m_xLocator.
|
overridevirtual |
Definition at line 61 of file acceleratorconfigurationreader.cxx.
|
overridevirtual |
Definition at line 76 of file acceleratorconfigurationreader.cxx.
References aEvent, E_ATTRIBUTE_KEYCODE, E_ATTRIBUTE_MOD_MOD1, E_ATTRIBUTE_MOD_MOD2, E_ATTRIBUTE_MOD_MOD3, E_ATTRIBUTE_MOD_SHIFT, E_ATTRIBUTE_URL, E_ELEMENT_ACCELERATORLIST, E_ELEMENT_ITEM, framework::KeyMapping::get(), framework::AcceleratorCache::hasKey(), i, implst_classifyAttribute(), implst_classifyElement(), m_bInsideAcceleratorItem, m_bInsideAcceleratorList, m_rContainer, framework::KeyMapping::mapIdentifierToCode(), SAL_INFO, framework::AcceleratorCache::setKeyCommandPair(), and THROW_PARSEEXCEPTION.
|
private |
used to detect if an accelerator item occurs recursive inside xml.
Definition at line 72 of file acceleratorconfigurationreader.hxx.
Referenced by endDocument(), endElement(), and startElement().
|
private |
used to detect if an accelerator list occurs recursive inside xml.
Definition at line 68 of file acceleratorconfigurationreader.hxx.
Referenced by endDocument(), endElement(), and startElement().
|
private |
reference to the outside container, where this reader/writer must work on.
Definition at line 64 of file acceleratorconfigurationreader.hxx.
Referenced by startElement().
|
private |
provide information about the parsing state.
@descr We use it to find out the line and column, where an error occurred.
Definition at line 79 of file acceleratorconfigurationreader.hxx.
Referenced by implts_getErrorLineString(), and setDocumentLocator().