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 (const OUString &aName, bool bSlashAllowed) |
static bool | IsValidZipEntryFileName (const sal_Unicode *pChar, sal_Int32 nLength, bool bSlashAllowed) |
static bool | PathHasSegment (const OUString &aPath, const OUString &aSegment) |
static css::uno::Reference< css::embed::XStorage > | GetStorageAtPath (const css::uno::Reference< css::embed::XStorage > &xStorage, const OUString &aPath, sal_uInt32 nOpenMode, LifecycleProxy const &rNastiness) |
static css::uno::Reference< css::io::XStream > | GetStreamAtPath (const css::uno::Reference< css::embed::XStorage > &xStorage, const OUString &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 179 of file storagehelper.cxx.
References comphelper::nConstBufferSize.
Referenced by comphelper::EmbeddedObjectContainer::InsertGraphicStream().
|
static |
Definition at line 453 of file storagehelper.cxx.
References assert(), 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 80 of file storagehelper.cxx.
Referenced by GetStorageFromURL2().
|
static |
css::uno::Exception |
Definition at line 203 of file storagehelper.cxx.
|
static |
Definition at line 703 of file storagehelper.cxx.
|
static |
Definition at line 664 of file storagehelper.cxx.
References comphelper::LookupStorageAtPath(), and comphelper::splitPath().
|
static |
css::uno::Exception |
Definition at line 71 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().
|
static |
css::uno::Exception |
Definition at line 164 of file storagehelper.cxx.
References GetStorageFactory().
|
static |
this one will only return Storage
css::uno::Exception |
Definition at line 96 of file storagehelper.cxx.
References GetStorageFactory().
|
static |
this one will return either Storage or FileSystemStorage
css::uno::Exception |
Definition at line 111 of file storagehelper.cxx.
References 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 nPos.
|
static |
css::uno::Exception |
Definition at line 351 of file storagehelper.cxx.
References GetStorageFactory(), and nPos.
|
static |
css::uno::Exception |
Definition at line 300 of file storagehelper.cxx.
References GetStorageFactory().
|
static |
Definition at line 690 of file storagehelper.cxx.
References GetStreamAtPath().
|
static |
Definition at line 674 of file storagehelper.cxx.
References aName, embed, comphelper::LookupStorageAtPath(), and comphelper::splitPath().
Referenced by GetStreamAtPackageURL().
|
static |
css::uno::Exception |
Definition at line 87 of file storagehelper.cxx.
References createInstance(), and GetStorageFactory().
Referenced by comphelper::EmbeddedObjectContainer::EmbeddedObjectContainer().
|
static |
css::uno::Exception |
Definition at line 237 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 563 of file storagehelper.cxx.
|
static |
Definition at line 569 of file storagehelper.cxx.
References i.
|
static |
Definition at line 597 of file storagehelper.cxx.
|
static |