LibreOffice Module comphelper (master)  1
Static Public Member Functions | List of all members
comphelper::OStorageHelper Class Reference

#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 (const OUString &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)
 

Detailed Description

Definition at line 67 of file storagehelper.hxx.

Member Function Documentation

void comphelper::OStorageHelper::CopyInputToOutput ( const css::uno::Reference< css::io::XInputStream > &  xInput,
const css::uno::Reference< css::io::XOutputStream > &  xOutput 
)
static
Exceptions
css::uno::Exception

Definition at line 179 of file storagehelper.cxx.

References comphelper::nConstBufferSize.

Referenced by comphelper::EmbeddedObjectContainer::InsertGraphicStream().

uno::Sequence< beans::NamedValue > comphelper::OStorageHelper::CreateGpgPackageEncryptionData ( )
static
uno::Sequence< beans::NamedValue > comphelper::OStorageHelper::CreatePackageEncryptionData ( const OUString &  aPassword)
static
uno::Reference< lang::XSingleServiceFactory > comphelper::OStorageHelper::GetFileSystemStorageFactory ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext = css::uno::Reference< css::uno::XComponentContext >())
static
Exceptions
css::uno::Exception

Definition at line 80 of file storagehelper.cxx.

Referenced by GetStorageFromURL2().

uno::Reference< io::XInputStream > comphelper::OStorageHelper::GetInputStreamFromURL ( const OUString &  aURL,
const css::uno::Reference< css::uno::XComponentContext > &  context 
)
static
Exceptions
css::uno::Exception

Definition at line 203 of file storagehelper.cxx.

OUString comphelper::OStorageHelper::GetODFVersionFromStorage ( const css::uno::Reference< css::embed::XStorage > &  xStorage)
static

Definition at line 702 of file storagehelper.cxx.

uno::Reference< embed::XStorage > comphelper::OStorageHelper::GetStorageAtPath ( const css::uno::Reference< css::embed::XStorage > &  xStorage,
const OUString &  aPath,
sal_uInt32  nOpenMode,
LifecycleProxy const &  rNastiness 
)
static
uno::Reference< lang::XSingleServiceFactory > comphelper::OStorageHelper::GetStorageFactory ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext = css::uno::Reference< css::uno::XComponentContext >())
static
uno::Reference< embed::XStorage > comphelper::OStorageHelper::GetStorageFromInputStream ( const css::uno::Reference< css::io::XInputStream > &  xStream,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext = css::uno::Reference< css::uno::XComponentContext >() 
)
static
Exceptions
css::uno::Exception

Definition at line 150 of file storagehelper.cxx.

References GetStorageFactory().

uno::Reference< embed::XStorage > comphelper::OStorageHelper::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
Exceptions
css::uno::Exception

Definition at line 164 of file storagehelper.cxx.

References GetStorageFactory().

uno::Reference< embed::XStorage > comphelper::OStorageHelper::GetStorageFromURL ( const OUString &  aURL,
sal_Int32  nStorageMode,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext = css::uno::Reference< css::uno::XComponentContext >() 
)
static

this one will only return Storage

Exceptions
css::uno::Exception

Definition at line 96 of file storagehelper.cxx.

References GetStorageFactory().

uno::Reference< embed::XStorage > comphelper::OStorageHelper::GetStorageFromURL2 ( const OUString &  aURL,
sal_Int32  nStorageMode,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext = css::uno::Reference< css::uno::XComponentContext >() 
)
static

this one will return either Storage or FileSystemStorage

Exceptions
css::uno::Exception

Definition at line 111 of file storagehelper.cxx.

References cppu::getCaughtException(), GetFileSystemStorageFactory(), comphelper::getProcessComponentContext(), GetStorageFactory(), and ucbhelper::Content::isDocument().

uno::Reference< embed::XStorage > comphelper::OStorageHelper::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
Exceptions
css::uno::Exception

Definition at line 321 of file storagehelper.cxx.

References GetStorageFactory(), and nPos.

uno::Reference< embed::XStorage > comphelper::OStorageHelper::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
Exceptions
css::uno::Exception

Definition at line 351 of file storagehelper.cxx.

References GetStorageFactory(), and nPos.

uno::Reference< embed::XStorage > comphelper::OStorageHelper::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
Exceptions
css::uno::Exception

Definition at line 300 of file storagehelper.cxx.

References GetStorageFactory().

uno::Reference< io::XStream > comphelper::OStorageHelper::GetStreamAtPackageURL ( const css::uno::Reference< css::embed::XStorage > &  xStorage,
const OUString &  rURL,
sal_uInt32 const  nOpenMode,
LifecycleProxy const &  rNastiness 
)
static

Definition at line 689 of file storagehelper.cxx.

References GetStreamAtPath().

uno::Reference< io::XStream > comphelper::OStorageHelper::GetStreamAtPath ( const css::uno::Reference< css::embed::XStorage > &  xStorage,
const OUString &  aPath,
sal_uInt32  nOpenMode,
LifecycleProxy const &  rNastiness 
)
static
uno::Reference< embed::XStorage > comphelper::OStorageHelper::GetTemporaryStorage ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext = css::uno::Reference< css::uno::XComponentContext >())
static
Exceptions
css::uno::Exception

Definition at line 87 of file storagehelper.cxx.

References createInstance(), and GetStorageFactory().

Referenced by comphelper::EmbeddedObjectContainer::EmbeddedObjectContainer().

sal_Int32 comphelper::OStorageHelper::GetXStorageFormat ( const css::uno::Reference< css::embed::XStorage > &  xStorage)
static
bool comphelper::OStorageHelper::IsValidZipEntryFileName ( const OUString &  aName,
bool  bSlashAllowed 
)
static

Definition at line 562 of file storagehelper.cxx.

bool comphelper::OStorageHelper::IsValidZipEntryFileName ( const sal_Unicode pChar,
sal_Int32  nLength,
bool  bSlashAllowed 
)
static

Definition at line 568 of file storagehelper.cxx.

References i.

bool comphelper::OStorageHelper::PathHasSegment ( const OUString &  aPath,
const OUString &  aSegment 
)
static

Definition at line 596 of file storagehelper.cxx.

void comphelper::OStorageHelper::SetCommonStorageEncryptionData ( const css::uno::Reference< css::embed::XStorage > &  xStorage,
const css::uno::Sequence< css::beans::NamedValue > &  aEncryptionData 
)
static
Exceptions
css::uno::Exception

Definition at line 215 of file storagehelper.cxx.

References Value.


The documentation for this class was generated from the following files: