LibreOffice Module oox (master) 1
|
An input stream class for VML streams, implementing the UNO interface com.sun.star.io.XInputStream needed by the Expat XML parsers. More...
#include <vmlinputstream.hxx>
Public Member Functions | |
InputStream (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::io::XInputStream > &rxInStrm) | |
virtual | ~InputStream () override |
virtual sal_Int32 SAL_CALL | readBytes (css::uno::Sequence< sal_Int8 > &rData, sal_Int32 nBytesToRead) override |
virtual sal_Int32 SAL_CALL | readSomeBytes (css::uno::Sequence< sal_Int8 > &rData, sal_Int32 nMaxBytesToRead) override |
virtual void SAL_CALL | skipBytes (sal_Int32 nBytesToSkip) override |
virtual sal_Int32 SAL_CALL | available () override |
virtual void SAL_CALL | closeInput () override |
Private Member Functions | |
void | updateBuffer () |
OString | readToElementBegin () |
OString | readToElementEnd () |
Private Attributes | |
css::uno::Reference< css::io::XTextInputStream2 > | mxTextStrm |
css::uno::Sequence< sal_Unicode > | maOpeningBracket |
css::uno::Sequence< sal_Unicode > | maClosingBracket |
OString | maBuffer |
sal_Int32 | mnBufferPos |
An input stream class for VML streams, implementing the UNO interface com.sun.star.io.XInputStream needed by the Expat XML parsers.
This stream reads the data from the input stream passed to the constructor, and parses all XML elements for features unsupported by the current Expat XML parser:
1) All elements that have the form '<![inst]>' where 'inst' is any string not containing the characters '<' and '>' are stripped from the input stream.
2) Multiple occurrences of the same attribute in an element but the last are removed.
3) Line breaks represented by a single
element (without matching element) are replaced by a literal LF character.
Definition at line 56 of file vmlinputstream.hxx.
|
explicit |
|
overridevirtual |
Definition at line 280 of file vmlinputstream.cxx.
|
overridevirtual |
Definition at line 328 of file vmlinputstream.cxx.
|
overridevirtual |
Definition at line 334 of file vmlinputstream.cxx.
|
overridevirtual |
|
overridevirtual |
|
private |
css::io::IOException | |
css::uno::RuntimeException |
Definition at line 379 of file vmlinputstream.cxx.
References OUStringToOString().
|
private |
css::io::IOException | |
css::uno::RuntimeException |
Definition at line 384 of file vmlinputstream.cxx.
References OUStringToOString().
|
overridevirtual |
Definition at line 314 of file vmlinputstream.cxx.
|
private |
css::io::IOException | |
css::uno::RuntimeException |
Definition at line 341 of file vmlinputstream.cxx.
References aBuffer, oox::vml::gaClosingCData(), and oox::vml::gaOpeningCData().
|
private |
Definition at line 86 of file vmlinputstream.hxx.
|
private |
Definition at line 85 of file vmlinputstream.hxx.
|
private |
Definition at line 84 of file vmlinputstream.hxx.
|
private |
Definition at line 87 of file vmlinputstream.hxx.
|
private |
Definition at line 83 of file vmlinputstream.hxx.