LibreOffice Module svx (master)  1
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SvXMLGraphicHelper Class Referencefinal

#include <xmlgrhlp.hxx>

Inheritance diagram for SvXMLGraphicHelper:
[legend]
Collaboration diagram for SvXMLGraphicHelper:
[legend]

Public Member Functions

 SvXMLGraphicHelper (SvXMLGraphicHelperMode eCreateMode)
 
virtual OUString SAL_CALL resolveGraphicObjectURL (const OUString &aURL) override
 
virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL loadGraphic (OUString const &aURL) override
 
virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL loadGraphicFromOutputStream (css::uno::Reference< css::io::XOutputStream > const &rxOutputStream) override
 
virtual OUString SAL_CALL saveGraphic (css::uno::Reference< css::graphic::XGraphic > const &rxGraphic) override
 
virtual OUString SAL_CALL saveGraphicByName (css::uno::Reference< css::graphic::XGraphic > const &rxGraphic, OUString &rOutSavedMimeType, OUString const &rRequestName) override
 
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL createInputStream (css::uno::Reference< css::graphic::XGraphic > const &rxGraphic) override
 
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getInputStream (const OUString &rURL) override
 
virtual css::uno::Reference< css::io::XOutputStream > SAL_CALL createOutputStream () override
 
virtual OUString SAL_CALL resolveOutputStream (const css::uno::Reference< css::io::XOutputStream > &rxBinaryStream) override
 

Static Public Member Functions

static rtl::Reference< SvXMLGraphicHelperCreate (const css::uno::Reference< css::embed::XStorage > &rXMLStorage, SvXMLGraphicHelperMode eCreateMode)
 
static rtl::Reference< SvXMLGraphicHelperCreate (SvXMLGraphicHelperMode eCreateMode, const OUString &rMimeType=OUString())
 

Private Types

typedef ::std::vector< css::uno::Reference< css::io::XOutputStream > > GraphicOutputStreamVector
 

Private Member Functions

SVX_DLLPRIVATE css::uno::Reference< css::embed::XStorage > ImplGetGraphicStorage (const OUString &rPictureStorageName)
 
SVX_DLLPRIVATE SvxGraphicHelperStream_Impl ImplGetGraphicStream (const OUString &rPictureStorageName, const OUString &rPictureStreamName)
 
SVX_DLLPRIVATE Graphic ImplReadGraphic (const OUString &rPictureStorageName, const OUString &rPictureStreamName)
 
 SvXMLGraphicHelper ()
 
virtual ~SvXMLGraphicHelper () override
 
void Init (const css::uno::Reference< css::embed::XStorage > &xXMLStorage, SvXMLGraphicHelperMode eCreateMode, const OUString &rGraphicMimeType=OUString())
 
virtual void SAL_CALL disposing () override
 
SVX_DLLPRIVATE OUString implSaveGraphic (css::uno::Reference< css::graphic::XGraphic > const &rxGraphic, OUString &rOutMimeType, OUString const &rRequestName)
 

Static Private Member Functions

static SVX_DLLPRIVATE bool ImplGetStreamNames (const OUString &rURLStr, OUString &rPictureStorageName, OUString &rPictureStreamName)
 
static SVX_DLLPRIVATE OUString ImplGetGraphicMimeType (const OUString &rFileName)
 

Private Attributes

::osl::Mutex maMutex
 
css::uno::Reference< css::embed::XStorage > mxRootStorage
 
OUString maCurStorageName
 
GraphicOutputStreamVector maGrfStms
 
std::unordered_map< OUString, css::uno::Reference< css::graphic::XGraphic > > maGraphicObjects
 
std::unordered_map< Graphic, std::pair< OUString, OUString > > maExportGraphics
 
std::unordered_map< void *, std::pair< OUString, OUString > > maExportPdf
 
SvXMLGraphicHelperMode meCreateMode
 
OUString maOutputMimeType
 

Detailed Description

Definition at line 47 of file xmlgrhlp.hxx.

Member Typedef Documentation

typedef ::std::vector< css::uno::Reference< css::io::XOutputStream > > SvXMLGraphicHelper::GraphicOutputStreamVector
private

Definition at line 52 of file xmlgrhlp.hxx.

Constructor & Destructor Documentation

SvXMLGraphicHelper::SvXMLGraphicHelper ( )
private

Definition at line 375 of file xmlgrhlp.cxx.

References maMutex, and Read.

Referenced by Create().

SvXMLGraphicHelper::~SvXMLGraphicHelper ( )
overrideprivatevirtual

Definition at line 383 of file xmlgrhlp.cxx.

SvXMLGraphicHelper::SvXMLGraphicHelper ( SvXMLGraphicHelperMode  eCreateMode)

Definition at line 367 of file xmlgrhlp.cxx.

References Init(), and maMutex.

Member Function Documentation

static rtl::Reference<SvXMLGraphicHelper> SvXMLGraphicHelper::Create ( const css::uno::Reference< css::embed::XStorage > &  rXMLStorage,
SvXMLGraphicHelperMode  eCreateMode 
)
static
rtl::Reference< SvXMLGraphicHelper > SvXMLGraphicHelper::Create ( SvXMLGraphicHelperMode  eCreateMode,
const OUString &  rMimeType = OUString() 
)
static

Definition at line 521 of file xmlgrhlp.cxx.

References SvXMLGraphicHelper().

uno::Reference< io::XInputStream > SAL_CALL SvXMLGraphicHelper::createInputStream ( css::uno::Reference< css::graphic::XGraphic > const &  rxGraphic)
overridevirtual
Reference< XOutputStream > SAL_CALL SvXMLGraphicHelper::createOutputStream ( )
overridevirtual

Definition at line 889 of file xmlgrhlp.cxx.

References maGrfStms, meCreateMode, and Read.

void SAL_CALL SvXMLGraphicHelper::disposing ( )
overrideprivatevirtual

Definition at line 387 of file xmlgrhlp.cxx.

Reference< XInputStream > SAL_CALL SvXMLGraphicHelper::getInputStream ( const OUString &  rURL)
overridevirtual

Definition at line 883 of file xmlgrhlp.cxx.

OUString SvXMLGraphicHelper::ImplGetGraphicMimeType ( const OUString &  rFileName)
staticprivate
uno::Reference< embed::XStorage > SvXMLGraphicHelper::ImplGetGraphicStorage ( const OUString &  rPictureStorageName)
private

Definition at line 413 of file xmlgrhlp.cxx.

References maCurStorageName, meCreateMode, mxRootStorage, and Write.

Referenced by ImplGetGraphicStream().

SvxGraphicHelperStream_Impl SvXMLGraphicHelper::ImplGetGraphicStream ( const OUString &  rPictureStorageName,
const OUString &  rPictureStreamName 
)
private
bool SvXMLGraphicHelper::ImplGetStreamNames ( const OUString &  rURLStr,
OUString &  rPictureStorageName,
OUString &  rPictureStreamName 
)
staticprivate
Graphic SvXMLGraphicHelper::ImplReadGraphic ( const OUString &  rPictureStorageName,
const OUString &  rPictureStreamName 
)
private
OUString SvXMLGraphicHelper::implSaveGraphic ( css::uno::Reference< css::graphic::XGraphic > const &  rxGraphic,
OUString &  rOutMimeType,
OUString const &  rRequestName 
)
private
void SvXMLGraphicHelper::Init ( const css::uno::Reference< css::embed::XStorage > &  xXMLStorage,
SvXMLGraphicHelperMode  eCreateMode,
const OUString &  rGraphicMimeType = OUString() 
)
private

Definition at line 503 of file xmlgrhlp.cxx.

References maOutputMimeType, meCreateMode, and mxRootStorage.

Referenced by SvXMLGraphicHelper().

uno::Reference< graphic::XGraphic > SAL_CALL SvXMLGraphicHelper::loadGraphic ( OUString const &  aURL)
overridevirtual
uno::Reference< graphic::XGraphic > SAL_CALL SvXMLGraphicHelper::loadGraphicFromOutputStream ( css::uno::Reference< css::io::XOutputStream > const &  rxOutputStream)
overridevirtual

Definition at line 590 of file xmlgrhlp.cxx.

References maMutex, meCreateMode, and Read.

OUString SAL_CALL SvXMLGraphicHelper::resolveGraphicObjectURL ( const OUString &  aURL)
overridevirtual

Definition at line 552 of file xmlgrhlp.cxx.

OUString SAL_CALL SvXMLGraphicHelper::resolveOutputStream ( const css::uno::Reference< css::io::XOutputStream > &  rxBinaryStream)
overridevirtual
OUString SAL_CALL SvXMLGraphicHelper::saveGraphic ( css::uno::Reference< css::graphic::XGraphic > const &  rxGraphic)
overridevirtual

Definition at line 614 of file xmlgrhlp.cxx.

References implSaveGraphic().

OUString SAL_CALL SvXMLGraphicHelper::saveGraphicByName ( css::uno::Reference< css::graphic::XGraphic > const &  rxGraphic,
OUString &  rOutSavedMimeType,
OUString const &  rRequestName 
)
overridevirtual

Definition at line 608 of file xmlgrhlp.cxx.

References implSaveGraphic().

Member Data Documentation

OUString SvXMLGraphicHelper::maCurStorageName
private

Definition at line 56 of file xmlgrhlp.hxx.

Referenced by ImplGetGraphicStorage().

std::unordered_map<Graphic, std::pair<OUString, OUString> > SvXMLGraphicHelper::maExportGraphics
private

Definition at line 60 of file xmlgrhlp.hxx.

Referenced by implSaveGraphic().

std::unordered_map<void*, std::pair<OUString, OUString> > SvXMLGraphicHelper::maExportPdf
private

Definition at line 61 of file xmlgrhlp.hxx.

Referenced by implSaveGraphic().

std::unordered_map<OUString, css::uno::Reference<css::graphic::XGraphic> > SvXMLGraphicHelper::maGraphicObjects
private

Definition at line 59 of file xmlgrhlp.hxx.

Referenced by loadGraphic().

GraphicOutputStreamVector SvXMLGraphicHelper::maGrfStms
private

Definition at line 57 of file xmlgrhlp.hxx.

Referenced by createOutputStream(), and resolveOutputStream().

::osl::Mutex SvXMLGraphicHelper::maMutex
private

Definition at line 54 of file xmlgrhlp.hxx.

Referenced by loadGraphic(), and loadGraphicFromOutputStream().

OUString SvXMLGraphicHelper::maOutputMimeType
private

Definition at line 64 of file xmlgrhlp.hxx.

Referenced by createInputStream(), and Init().

SvXMLGraphicHelperMode SvXMLGraphicHelper::meCreateMode
private
css::uno::Reference< css::embed::XStorage > SvXMLGraphicHelper::mxRootStorage
private

Definition at line 55 of file xmlgrhlp.hxx.

Referenced by ImplGetGraphicStorage(), and Init().


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