LibreOffice Module writerperfect (master) 1
|
Public Member Functions | |
WPXSvInputStreamImpl (css::uno::Reference< css::io::XInputStream > const &xStream) | |
bool | isStructured () |
unsigned | subStreamCount () |
const char * | subStreamName (unsigned id) |
bool | existsSubStream (const char *name) |
librevenge::RVNGInputStream * | getSubStreamByName (const char *name) |
librevenge::RVNGInputStream * | getSubStreamById (unsigned id) |
const unsigned char * | read (unsigned long numBytes, unsigned long &numBytesRead) |
int | seek (tools::Long offset) |
tools::Long | tell () |
bool | isEnd () |
void | invalidateReadBuffer () |
Public Attributes | |
sal_Int64 | mnLength |
const unsigned char * | mpReadBuffer |
unsigned long | mnReadBufferLength |
unsigned long | mnReadBufferPos |
Private Member Functions | |
bool | isOLE () |
void | ensureOLEIsInitialized () |
bool | isZip () |
void | ensureZipIsInitialized () |
Static Private Member Functions | |
static librevenge::RVNGInputStream * | createWPXStream (const tools::SvRef< SotStorageStream > &rxStorage) |
static librevenge::RVNGInputStream * | createWPXStream (const Reference< XInputStream > &rxStream) |
Private Attributes | |
css::uno::Reference< css::io::XInputStream > | mxStream |
css::uno::Reference< css::io::XSeekable > | mxSeekable |
css::uno::Sequence< sal_Int8 > | maData |
std::unique_ptr< OLEStorageImpl > | mpOLEStorage |
std::unique_ptr< ZipStorageImpl > | mpZipStorage |
bool | mbCheckedOLE |
bool | mbCheckedZip |
Definition at line 398 of file WPXSvInputStream.cxx.
|
explicit |
Definition at line 444 of file WPXSvInputStream.cxx.
References maData, mnLength, mxSeekable, mxStream, SAL_WARN, and xStream.
|
staticprivate |
Definition at line 740 of file WPXSvInputStream.cxx.
|
staticprivate |
Definition at line 729 of file WPXSvInputStream.cxx.
References tools::SvRef< typename T >::get(), and tools::SvRef< typename T >::is().
Referenced by getSubStreamById(), and getSubStreamByName().
|
private |
Definition at line 791 of file WPXSvInputStream.cxx.
References utl::UcbStreamHelper::CreateStream(), mpOLEStorage, and mxStream.
Referenced by existsSubStream(), getSubStreamById(), getSubStreamByName(), subStreamCount(), and subStreamName().
|
private |
Definition at line 799 of file WPXSvInputStream.cxx.
References mpZipStorage.
Referenced by existsSubStream(), getSubStreamById(), getSubStreamByName(), subStreamCount(), and subStreamName().
bool writerperfect::WPXSvInputStreamImpl::existsSubStream | ( | const char * | name | ) |
Definition at line 609 of file WPXSvInputStream.cxx.
References aName, ensureOLEIsInitialized(), ensureZipIsInitialized(), isOLE(), isZip(), mnLength, mpOLEStorage, mpZipStorage, mxSeekable, mxStream, name, and pos.
librevenge::RVNGInputStream * writerperfect::WPXSvInputStreamImpl::getSubStreamById | ( | unsigned | id | ) |
Definition at line 677 of file WPXSvInputStream.cxx.
References createWPXStream(), ensureOLEIsInitialized(), ensureZipIsInitialized(), Exception, isOLE(), isZip(), mnLength, mpOLEStorage, mpZipStorage, mxSeekable, mxStream, and pos.
librevenge::RVNGInputStream * writerperfect::WPXSvInputStreamImpl::getSubStreamByName | ( | const char * | name | ) |
Definition at line 639 of file WPXSvInputStream.cxx.
References aName, createWPXStream(), ensureOLEIsInitialized(), ensureZipIsInitialized(), Exception, isOLE(), isZip(), mnLength, mpOLEStorage, mpZipStorage, mxSeekable, mxStream, name, and pos.
void writerperfect::WPXSvInputStreamImpl::invalidateReadBuffer | ( | ) |
Definition at line 716 of file WPXSvInputStream.cxx.
References mnReadBufferLength, mnReadBufferPos, mpReadBuffer, seek(), and tell().
bool writerperfect::WPXSvInputStreamImpl::isEnd | ( | ) |
Definition at line 526 of file WPXSvInputStream.cxx.
References mnLength, mxSeekable, and mxStream.
Referenced by read().
|
private |
Definition at line 748 of file WPXSvInputStream.cxx.
References utl::UcbStreamHelper::CreateStream(), SotStorage::IsOLEStorage(), mbCheckedOLE, mpOLEStorage, mxSeekable, and mxStream.
Referenced by existsSubStream(), getSubStreamById(), getSubStreamByName(), isStructured(), subStreamCount(), and subStreamName().
bool writerperfect::WPXSvInputStreamImpl::isStructured | ( | ) |
Definition at line 533 of file WPXSvInputStream.cxx.
References isOLE(), isZip(), mnLength, mxSeekable, mxStream, and pos.
|
private |
Definition at line 764 of file WPXSvInputStream.cxx.
References Exception, comphelper::getProcessComponentContext(), mbCheckedZip, mpZipStorage, and mxSeekable.
Referenced by existsSubStream(), getSubStreamById(), getSubStreamByName(), isStructured(), subStreamCount(), and subStreamName().
const unsigned char * writerperfect::WPXSvInputStreamImpl::read | ( | unsigned long | numBytes, |
unsigned long & | numBytesRead | ||
) |
Definition at line 478 of file WPXSvInputStream.cxx.
int writerperfect::WPXSvInputStreamImpl::seek | ( | tools::Long | offset | ) |
Definition at line 505 of file WPXSvInputStream.cxx.
References LONG_MAX, mnLength, mxSeekable, mxStream, and SAL_WARN.
Referenced by invalidateReadBuffer().
unsigned writerperfect::WPXSvInputStreamImpl::subStreamCount | ( | ) |
Definition at line 549 of file WPXSvInputStream.cxx.
References ensureOLEIsInitialized(), ensureZipIsInitialized(), isOLE(), isZip(), mnLength, mpOLEStorage, mpZipStorage, mxSeekable, mxStream, and pos.
const char * writerperfect::WPXSvInputStreamImpl::subStreamName | ( | unsigned | id | ) |
Definition at line 576 of file WPXSvInputStream.cxx.
References ensureOLEIsInitialized(), ensureZipIsInitialized(), isOLE(), isZip(), mnLength, mpOLEStorage, mpZipStorage, mxSeekable, mxStream, and pos.
tools::Long writerperfect::WPXSvInputStreamImpl::tell | ( | ) |
Definition at line 492 of file WPXSvInputStream.cxx.
References LONG_MAX, mnLength, mxSeekable, and mxStream.
Referenced by invalidateReadBuffer().
|
private |
Definition at line 431 of file WPXSvInputStream.cxx.
Referenced by read().
|
private |
Definition at line 434 of file WPXSvInputStream.cxx.
Referenced by isOLE().
|
private |
Definition at line 435 of file WPXSvInputStream.cxx.
Referenced by isZip().
sal_Int64 writerperfect::WPXSvInputStreamImpl::mnLength |
Definition at line 438 of file WPXSvInputStream.cxx.
Referenced by existsSubStream(), getSubStreamById(), getSubStreamByName(), isEnd(), isStructured(), seek(), subStreamCount(), subStreamName(), tell(), and WPXSvInputStreamImpl().
unsigned long writerperfect::WPXSvInputStreamImpl::mnReadBufferLength |
Definition at line 440 of file WPXSvInputStream.cxx.
Referenced by invalidateReadBuffer().
unsigned long writerperfect::WPXSvInputStreamImpl::mnReadBufferPos |
Definition at line 441 of file WPXSvInputStream.cxx.
Referenced by invalidateReadBuffer().
|
private |
Definition at line 432 of file WPXSvInputStream.cxx.
Referenced by ensureOLEIsInitialized(), existsSubStream(), getSubStreamById(), getSubStreamByName(), isOLE(), subStreamCount(), and subStreamName().
const unsigned char* writerperfect::WPXSvInputStreamImpl::mpReadBuffer |
Definition at line 439 of file WPXSvInputStream.cxx.
Referenced by invalidateReadBuffer().
|
private |
Definition at line 433 of file WPXSvInputStream.cxx.
Referenced by ensureZipIsInitialized(), existsSubStream(), getSubStreamById(), getSubStreamByName(), isZip(), subStreamCount(), and subStreamName().
|
private |
Definition at line 430 of file WPXSvInputStream.cxx.
Referenced by existsSubStream(), getSubStreamById(), getSubStreamByName(), isEnd(), isOLE(), isStructured(), isZip(), seek(), subStreamCount(), subStreamName(), tell(), and WPXSvInputStreamImpl().
|
private |
Definition at line 429 of file WPXSvInputStream.cxx.
Referenced by ensureOLEIsInitialized(), existsSubStream(), getSubStreamById(), getSubStreamByName(), isEnd(), isOLE(), isStructured(), read(), seek(), subStreamCount(), subStreamName(), tell(), and WPXSvInputStreamImpl().