LibreOffice Module comphelper (master)
1
|
#include <storagehelper.hxx>
Static Public Member Functions | |
static css::uno::Reference< css::lang::XSingleServiceFactory > | GetStorageFactory (const css::uno::Reference< css::uno::XComponentContext > &rxContext=css::uno::Reference< css::uno::XComponentContext >()) |
static css::uno::Reference< css::lang::XSingleServiceFactory > | GetFileSystemStorageFactory (const css::uno::Reference< css::uno::XComponentContext > &rxContext=css::uno::Reference< css::uno::XComponentContext >()) |
static css::uno::Reference< css::embed::XStorage > | GetTemporaryStorage (const css::uno::Reference< css::uno::XComponentContext > &rxContext=css::uno::Reference< css::uno::XComponentContext >()) |
static css::uno::Reference< css::embed::XStorage > | GetStorageFromURL (const OUString &aURL, sal_Int32 nStorageMode, const css::uno::Reference< css::uno::XComponentContext > &rxContext=css::uno::Reference< css::uno::XComponentContext >()) |
this one will only return Storage More... | |
static css::uno::Reference< css::embed::XStorage > | GetStorageFromURL2 (const OUString &aURL, sal_Int32 nStorageMode, const css::uno::Reference< css::uno::XComponentContext > &rxContext=css::uno::Reference< css::uno::XComponentContext >()) |
this one will return either Storage or FileSystemStorage More... | |
static css::uno::Reference< css::embed::XStorage > | GetStorageFromInputStream (const css::uno::Reference< css::io::XInputStream > &xStream, const css::uno::Reference< css::uno::XComponentContext > &rxContext=css::uno::Reference< css::uno::XComponentContext >()) |
static css::uno::Reference< css::embed::XStorage > | GetStorageFromStream (const css::uno::Reference< css::io::XStream > &xStream, sal_Int32 nStorageMode=css::embed::ElementModes::READWRITE, const css::uno::Reference< css::uno::XComponentContext > &rxContext=css::uno::Reference< css::uno::XComponentContext >()) |
static void | CopyInputToOutput (const css::uno::Reference< css::io::XInputStream > &xInput, const css::uno::Reference< css::io::XOutputStream > &xOutput) |
static css::uno::Reference< css::io::XInputStream > | GetInputStreamFromURL (const OUString &aURL, const css::uno::Reference< css::uno::XComponentContext > &context) |
static void | SetCommonStorageEncryptionData (const css::uno::Reference< css::embed::XStorage > &xStorage, const css::uno::Sequence< css::beans::NamedValue > &aEncryptionData) |
static sal_Int32 | GetXStorageFormat (const css::uno::Reference< css::embed::XStorage > &xStorage) |
static css::uno::Reference< css::embed::XStorage > | GetStorageOfFormatFromURL (const OUString &aFormat, const OUString &aURL, sal_Int32 nStorageMode, const css::uno::Reference< css::uno::XComponentContext > &rxContext=css::uno::Reference< css::uno::XComponentContext >()) |
static css::uno::Reference< css::embed::XStorage > | GetStorageOfFormatFromInputStream (const OUString &aFormat, const css::uno::Reference< css::io::XInputStream > &xStream, const css::uno::Reference< css::uno::XComponentContext > &rxContext=css::uno::Reference< css::uno::XComponentContext >(), bool bRepairStorage=false) |
static css::uno::Reference< css::embed::XStorage > | GetStorageOfFormatFromStream (const OUString &aFormat, const css::uno::Reference< css::io::XStream > &xStream, sal_Int32 nStorageMode=css::embed::ElementModes::READWRITE, const css::uno::Reference< css::uno::XComponentContext > &rxContext=css::uno::Reference< css::uno::XComponentContext >(), bool bRepairStorage=false) |
static css::uno::Sequence< css::beans::NamedValue > | CreatePackageEncryptionData (std::u16string_view aPassword) |
static css::uno::Sequence< css::beans::NamedValue > | CreateGpgPackageEncryptionData () |
static bool | IsValidZipEntryFileName (std::u16string_view aName, bool bSlashAllowed) |
static bool | IsValidZipEntryFileName (const sal_Unicode *pChar, sal_Int32 nLength, bool bSlashAllowed) |
static bool | PathHasSegment (std::u16string_view aPath, std::u16string_view aSegment) |
static css::uno::Reference< css::embed::XStorage > | GetStorageAtPath (const css::uno::Reference< css::embed::XStorage > &xStorage, std::u16string_view aPath, sal_uInt32 nOpenMode, LifecycleProxy const &rNastiness) |
static css::uno::Reference< css::io::XStream > | GetStreamAtPath (const css::uno::Reference< css::embed::XStorage > &xStorage, std::u16string_view aPath, sal_uInt32 nOpenMode, LifecycleProxy const &rNastiness) |
static css::uno::Reference< css::io::XStream > | GetStreamAtPackageURL (const css::uno::Reference< css::embed::XStorage > &xStorage, const OUString &rURL, sal_uInt32 const nOpenMode, LifecycleProxy const &rNastiness) |
static OUString | GetODFVersionFromStorage (const css::uno::Reference< css::embed::XStorage > &xStorage) |
Definition at line 68 of file storagehelper.hxx.
|
static |
css::uno::Exception |
Definition at line 172 of file storagehelper.cxx.
References comphelper::ByteReader::getUnoTunnelId(), comphelper::ByteWriter::getUnoTunnelId(), comphelper::nConstBufferSize, comphelper::ByteReader::readSomeBytes(), and comphelper::ByteWriter::writeSomeBytes().
Referenced by comphelper::EmbeddedObjectContainer::InsertGraphicStream().
|
static |
Definition at line 453 of file storagehelper.cxx.
References comphelper::containerToSequence(), ctx, err, comphelper::getProcessComponentContext(), PACKAGE_ENCRYPTIONDATA_SHA256UTF8, result, SAL_INFO, and void().
|
static |
Definition at line 382 of file storagehelper.cxx.
References comphelper::Hash::calculateHash(), comphelper::getProcessComponentContext(), OUStringToOString(), PACKAGE_ENCRYPTIONDATA_SHA1CORRECT, PACKAGE_ENCRYPTIONDATA_SHA1MS1252, PACKAGE_ENCRYPTIONDATA_SHA1UTF8, and PACKAGE_ENCRYPTIONDATA_SHA256UTF8.
Referenced by comphelper::DocPasswordHelper::requestAndVerifyDocPassword().
|
static |
css::uno::Exception |
Definition at line 84 of file storagehelper.cxx.
Referenced by GetStorageFromURL2().
|
static |
css::uno::Exception |
Definition at line 222 of file storagehelper.cxx.
|
static |
Definition at line 698 of file storagehelper.cxx.
|
static |
Definition at line 659 of file storagehelper.cxx.
References comphelper::LookupStorageAtPath(), and comphelper::splitPath().
|
static |
css::uno::Exception |
Definition at line 75 of file storagehelper.cxx.
References comphelper::getProcessComponentContext().
Referenced by GetStorageFromInputStream(), GetStorageFromStream(), GetStorageFromURL(), GetStorageFromURL2(), GetStorageOfFormatFromInputStream(), GetStorageOfFormatFromStream(), GetStorageOfFormatFromURL(), and GetTemporaryStorage().
|
static |
css::uno::Exception |
Definition at line 149 of file storagehelper.cxx.
References GetStorageFactory().
|
static |
css::uno::Exception |
Definition at line 160 of file storagehelper.cxx.
References GetStorageFactory().
|
static |
this one will only return Storage
css::uno::Exception |
Definition at line 100 of file storagehelper.cxx.
References GetStorageFactory().
|
static |
this one will return either Storage or FileSystemStorage
css::uno::Exception |
Definition at line 112 of file storagehelper.cxx.
References cppu::getCaughtException(), GetFileSystemStorageFactory(), comphelper::getProcessComponentContext(), GetStorageFactory(), and ucbhelper::Content::isDocument().
|
static |
css::uno::Exception |
Definition at line 335 of file storagehelper.cxx.
References GetStorageFactory().
|
static |
css::uno::Exception |
Definition at line 358 of file storagehelper.cxx.
References GetStorageFactory().
|
static |
css::uno::Exception |
Definition at line 319 of file storagehelper.cxx.
References GetStorageFactory(), and comphelper::makePropertyValue().
|
static |
Definition at line 685 of file storagehelper.cxx.
References GetStreamAtPath().
|
static |
Definition at line 669 of file storagehelper.cxx.
References aName, embed, comphelper::LookupStorageAtPath(), and comphelper::splitPath().
Referenced by GetStreamAtPackageURL().
|
static |
css::uno::Exception |
Definition at line 91 of file storagehelper.cxx.
References createInstance(), and GetStorageFactory().
Referenced by comphelper::EmbeddedObjectContainer::EmbeddedObjectContainer().
|
static |
css::uno::Exception |
Definition at line 256 of file storagehelper.cxx.
References MIMETYPE_OASIS_OPENDOCUMENT_CHART_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_CHART_TEMPLATE_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_DATABASE_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_DRAWING_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_DRAWING_TEMPLATE_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_TEMPLATE_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_TEMPLATE_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_REPORT_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_REPORT_CHART_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET_TEMPLATE_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_TEXT_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_TEXT_GLOBAL_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_TEXT_GLOBAL_TEMPLATE_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_TEXT_TEMPLATE_ASCII, MIMETYPE_OASIS_OPENDOCUMENT_TEXT_WEB_ASCII, MIMETYPE_VND_SUN_XML_CALC_ASCII, MIMETYPE_VND_SUN_XML_CHART_ASCII, MIMETYPE_VND_SUN_XML_DRAW_ASCII, MIMETYPE_VND_SUN_XML_IMPRESS_ASCII, MIMETYPE_VND_SUN_XML_MATH_ASCII, MIMETYPE_VND_SUN_XML_WRITER_ASCII, MIMETYPE_VND_SUN_XML_WRITER_GLOBAL_ASCII, MIMETYPE_VND_SUN_XML_WRITER_WEB_ASCII, SOFFICE_FILEFORMAT_60, SOFFICE_FILEFORMAT_8, and u.
|
static |
Definition at line 559 of file storagehelper.cxx.
|
static |
Definition at line 565 of file storagehelper.cxx.
References i.
|
static |
Definition at line 593 of file storagehelper.cxx.
References o3tl::starts_with().
|
static |