LibreOffice
LibreOffice 24.2 SDK API Reference
|
Interface of SAX Event Keeper. More...
import"XSAXEventKeeper.idl";
Public Member Functions | |
long | addElementCollector () |
Adds a new element collector on the next element in the SAX event stream. More... | |
void | removeElementCollector ([in] long id) |
Removes an element collector. More... | |
long | addBlocker () |
Adds a new blocker on the next element in the SAX event stream. More... | |
void | removeBlocker ([in] long id) |
Removes a blocker. More... | |
boolean | isBlocking () |
Checks whether the SAX event stream is blocking. More... | |
com::sun::star::xml::wrapper::XXMLElementWrapper | getElement ([in] long id) |
Gets the element of an element mark. More... | |
void | setElement ([in] long id, [in] com::sun::star::xml::wrapper::XXMLElementWrapper aElement) |
Sets the element of an element mark. More... | |
com::sun::star::xml::sax::XDocumentHandler | setNextHandler ([in] com::sun::star::xml::sax::XDocumentHandler nextHandler) |
Sets the next document handler in the SAX chain. More... | |
string | printBufferNodeTree () |
Prints information about all buffered elements. More... | |
com::sun::star::xml::wrapper::XXMLElementWrapper | getCurrentBlockingNode () |
Gets the element which current blocking happens. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
Interface of SAX Event Keeper.
This interface is used to manipulate element marks in a SAX event stream.
There are two kinds of element mark, one is element collector, which is used to collect a particular element from the SAX event stream; the other is blocker, which is used to block the SAX event stream.
long addBlocker | ( | ) |
Adds a new blocker on the next element in the SAX event stream.
No SAX event starting from the next element will be forwarded until this blocker is removed.
long addElementCollector | ( | ) |
Adds a new element collector on the next element in the SAX event stream.
com::sun::star::xml::wrapper::XXMLElementWrapper getCurrentBlockingNode | ( | ) |
Gets the element which current blocking happens.
This element is the working element of the first blocker in tree order.
com::sun::star::xml::wrapper::XXMLElementWrapper getElement | ( | [in] long | id | ) |
Gets the element of an element mark.
id | the keeper id of the element mark, it can be an element collector or a blocker |
boolean isBlocking | ( | ) |
Checks whether the SAX event stream is blocking.
true
if blocking, false
otherwise string printBufferNodeTree | ( | ) |
Prints information about all buffered elements.
void removeBlocker | ( | [in] long | id | ) |
Removes a blocker.
id | the keeper id of the blocker to be removed |
void removeElementCollector | ( | [in] long | id | ) |
Removes an element collector.
id | the keeper id of the element collector to be removed |
void setElement | ( | [in] long | id, |
[in] com::sun::star::xml::wrapper::XXMLElementWrapper | aElement | ||
) |
Sets the element of an element mark.
When an element is replaced outside of this interface, then uses this method can restore the link between an element mark and its working element.
id | the keeper id of the element mark to be set |
aElement | the new element for this element mark. |
com::sun::star::xml::sax::XDocumentHandler setNextHandler | ( | [in] com::sun::star::xml::sax::XDocumentHandler | nextHandler | ) |
Sets the next document handler in the SAX chain.
This handler will receive SAX events forwarded by the SAXEventKeeper.
nextHandler | the next handler in the SAX chain |