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 | 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 173 of file storagehelper.cxx.
References comphelper::nConstBufferSize.
Referenced by comphelper::EmbeddedObjectContainer::InsertGraphicStream().
|
static |
Definition at line 439 of file storagehelper.cxx.
References comphelper::containerToSequence(), ctx, err, comphelper::getProcessComponentContext(), PACKAGE_ENCRYPTIONDATA_SHA256UTF8, result, and SAL_INFO.
|
static |
Definition at line 368 of file storagehelper.cxx.
References comphelper::Hash::calculateHash(), comphelper::getProcessComponentContext(), OUStringToOString(), PACKAGE_ENCRYPTIONDATA_SHA1CORRECT, PACKAGE_ENCRYPTIONDATA_SHA1MS1252, PACKAGE_ENCRYPTIONDATA_SHA1UTF8, PACKAGE_ENCRYPTIONDATA_SHA256UTF8, and TOOLS_WARN_EXCEPTION.
Referenced by comphelper::DocPasswordHelper::requestAndVerifyDocPassword().
|
static |
css::uno::Exception |
Definition at line 85 of file storagehelper.cxx.
Referenced by GetStorageFromURL2().
|
static |
|
static |
Definition at line 677 of file storagehelper.cxx.
|
static |
Definition at line 638 of file storagehelper.cxx.
References comphelper::LookupStorageAtPath(), and splitPath().
|
static |
css::uno::Exception |
Definition at line 76 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 150 of file storagehelper.cxx.
References GetStorageFactory(), and xStream.
|
static |
css::uno::Exception |
Definition at line 161 of file storagehelper.cxx.
References GetStorageFactory(), and xStream.
|
static |
this one will only return Storage
css::uno::Exception |
Definition at line 101 of file storagehelper.cxx.
References aURL, and GetStorageFactory().
|
static |
this one will return either Storage or FileSystemStorage
css::uno::Exception |
Definition at line 113 of file storagehelper.cxx.
References aURL, cppu::getCaughtException(), GetFileSystemStorageFactory(), comphelper::getProcessComponentContext(), GetStorageFactory(), and ucbhelper::Content::isDocument().
|
static |
css::uno::Exception |
Definition at line 321 of file storagehelper.cxx.
References GetStorageFactory(), and xStream.
|
static |
css::uno::Exception |
Definition at line 344 of file storagehelper.cxx.
References GetStorageFactory(), and xStream.
|
static |
css::uno::Exception |
Definition at line 305 of file storagehelper.cxx.
References aURL, GetStorageFactory(), and comphelper::makePropertyValue().
|
static |
Definition at line 664 of file storagehelper.cxx.
|
static |
Definition at line 648 of file storagehelper.cxx.
References aName, comphelper::LookupStorageAtPath(), and splitPath().
|
static |
css::uno::Exception |
Definition at line 92 of file storagehelper.cxx.
References createInstance(), and GetStorageFactory().
Referenced by comphelper::EmbeddedObjectContainer::EmbeddedObjectContainer().
|
static |
css::uno::Exception |
Definition at line 242 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 545 of file storagehelper.cxx.
|
static |
Definition at line 572 of file storagehelper.cxx.
References o3tl::starts_with().
|
static |