LibreOffice Module oox (master) 1
Static Public Member Functions | List of all members
oox::dump::InputOutputHelper Class Reference

Static helper functions for system file and stream access. More...

#include <dumperbase.hxx>

Static Public Member Functions

static OUString convertFileNameToUrl (const OUString &rFileName)
 
static sal_Int32 getFileNamePos (std::u16string_view rFileUrl)
 
static std::u16string_view getFileNameExtension (std::u16string_view rFileUrl)
 
static css::uno::Reference< css::io::XInputStream > openInputStream (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const OUString &rFileName)
 
static css::uno::Reference< css::io::XOutputStream > openOutputStream (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const OUString &rFileName)
 
static css::uno::Reference< css::io::XTextOutputStream2 > openTextOutputStream (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::io::XOutputStream > &rxOutStrm, rtl_TextEncoding eTextEnc)
 
static css::uno::Reference< css::io::XTextOutputStream2 > openTextOutputStream (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const OUString &rFileName, rtl_TextEncoding eTextEnc)
 

Detailed Description

Static helper functions for system file and stream access.

Definition at line 99 of file dumperbase.hxx.

Member Function Documentation

◆ convertFileNameToUrl()

OUString oox::dump::InputOutputHelper::convertFileNameToUrl ( const OUString &  rFileName)
static

Definition at line 68 of file dumperbase.cxx.

Referenced by oox::dump::SharedConfigData::SharedConfigData().

◆ getFileNameExtension()

std::u16string_view oox::dump::InputOutputHelper::getFileNameExtension ( std::u16string_view  rFileUrl)
static

Definition at line 82 of file dumperbase.cxx.

References getFileNamePos().

Referenced by oox::dump::XmlStreamObject::implDumpText().

◆ getFileNamePos()

sal_Int32 oox::dump::InputOutputHelper::getFileNamePos ( std::u16string_view  rFileUrl)
static

◆ openInputStream()

Reference< XInputStream > oox::dump::InputOutputHelper::openInputStream ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const OUString &  rFileName 
)
static

◆ openOutputStream()

Reference< XOutputStream > oox::dump::InputOutputHelper::openOutputStream ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const OUString &  rFileName 
)
static

Definition at line 110 of file dumperbase.cxx.

References Exception.

Referenced by oox::dump::StorageObjectBase::extractStream().

◆ openTextOutputStream() [1/2]

static css::uno::Reference< css::io::XTextOutputStream2 > oox::dump::InputOutputHelper::openTextOutputStream ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const css::uno::Reference< css::io::XOutputStream > &  rxOutStrm,
rtl_TextEncoding  eTextEnc 
)
static

◆ openTextOutputStream() [2/2]

static css::uno::Reference< css::io::XTextOutputStream2 > oox::dump::InputOutputHelper::openTextOutputStream ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const OUString &  rFileName,
rtl_TextEncoding  eTextEnc 
)
static

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