LibreOffice Module svx (master) 1
|
#include <xmlgrhlp.hxx>
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 |
Public Member Functions inherited from comphelper::WeakComponentImplHelper< css::document::XGraphicObjectResolver, css::document::XGraphicStorageHandler, css::document::XBinaryStreamResolver > | |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual void SAL_CALL | dispose () noexcept final override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
Public Member Functions inherited from comphelper::WeakComponentImplHelperBase | |
virtual | ~WeakComponentImplHelperBase () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
virtual void | disposing (std::unique_lock< std::mutex > &) |
Public Member Functions inherited from comphelper::UnoImplBase | |
virtual | ~UnoImplBase () |
Static Public Member Functions | |
static rtl::Reference< SvXMLGraphicHelper > | Create (const css::uno::Reference< css::embed::XStorage > &rXMLStorage, SvXMLGraphicHelperMode eCreateMode) |
static rtl::Reference< SvXMLGraphicHelper > | Create (SvXMLGraphicHelperMode eCreateMode, const OUString &rMimeType=OUString()) |
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()) |
SVX_DLLPRIVATE OUString | implSaveGraphic (css::uno::Reference< css::graphic::XGraphic > const &rxGraphic, OUString &rOutMimeType, std::u16string_view rRequestName) |
Static Private Member Functions | |
static SVX_DLLPRIVATE bool | ImplGetStreamNames (const OUString &rURLStr, OUString &rPictureStorageName, OUString &rPictureStreamName) |
static SVX_DLLPRIVATE OUString | ImplGetGraphicMimeType (std::u16string_view rFileName) |
Private Attributes | |
css::uno::Reference< css::embed::XStorage > | mxRootStorage |
OUString | maCurStorageName |
std::vector< css::uno::Reference< css::io::XOutputStream > > | maGrfStms |
std::unordered_map< OUString, css::uno::Reference< css::graphic::XGraphic > > | maGraphicObjects |
std::unordered_map< Graphic, std::pair< OUString, OUString > > | maExportGraphics |
SvXMLGraphicHelperMode | meCreateMode |
OUString | maOutputMimeType |
Additional Inherited Members | |
Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase | |
void | throwIfDisposed (std::unique_lock< std::mutex > &) |
Protected Attributes inherited from comphelper::WeakComponentImplHelperBase | |
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | maEventListeners |
Protected Attributes inherited from comphelper::UnoImplBase | |
std::mutex | m_aMutex |
bool | m_bDisposed |
Definition at line 48 of file xmlgrhlp.hxx.
|
private |
|
overrideprivatevirtual |
Definition at line 373 of file xmlgrhlp.cxx.
SvXMLGraphicHelper::SvXMLGraphicHelper | ( | SvXMLGraphicHelperMode | eCreateMode | ) |
Definition at line 363 of file xmlgrhlp.cxx.
References Init().
|
static |
References Create(), createInputStream(), and createOutputStream().
Referenced by createStorageStream(), openStorageStream(), SvxDrawingLayerExport(), and SvxDrawingLayerImport().
|
static |
Definition at line 531 of file xmlgrhlp.cxx.
References SvXMLGraphicHelper().
|
overridevirtual |
Definition at line 853 of file xmlgrhlp.cxx.
References comphelper::GraphicMimeTypeHelper::GetMimeTypeForExtension(), maOutputMimeType, meCreateMode, OUStringToOString(), and Write.
|
overridevirtual |
Definition at line 880 of file xmlgrhlp.cxx.
References maGrfStms, meCreateMode, and Read.
|
overridevirtual |
Definition at line 874 of file xmlgrhlp.cxx.
|
staticprivate |
Definition at line 482 of file xmlgrhlp.cxx.
References comphelper::GraphicMimeTypeHelper::GetMimeTypeForExtension(), and OUStringToOString().
Referenced by implSaveGraphic().
|
private |
Definition at line 399 of file xmlgrhlp.cxx.
References maCurStorageName, meCreateMode, mxRootStorage, and Write.
Referenced by ImplGetGraphicStream().
|
private |
Definition at line 433 of file xmlgrhlp.cxx.
References ImplGetGraphicStorage(), meCreateMode, mxRootStorage, TOOLS_WARN_EXCEPTION, Write, SvxGraphicHelperStream_Impl::xStorage, and SvxGraphicHelperStream_Impl::xStream.
Referenced by ImplReadGraphic(), and implSaveGraphic().
|
staticprivate |
Definition at line 377 of file xmlgrhlp.cxx.
References SAL_WARN_IF, and SvXMLEmbeddedObjectHelper::splitObjectURL().
Referenced by loadGraphic().
|
private |
Definition at line 494 of file xmlgrhlp.cxx.
References utl::UcbStreamHelper::CreateStream(), GraphicFilter::GetGraphicFilter(), ImplGetGraphicStream(), GraphicFilter::ImportGraphic(), GraphicFilter::ImportUnloadedGraphic(), Graphic::IsNone(), u, and SvxGraphicHelperStream_Impl::xStream.
Referenced by loadGraphic().
|
private |
Definition at line 630 of file xmlgrhlp.cxx.
References aMimeType, Any, utl::UcbStreamHelper::CreateStream(), ERRCODE_NONE, GraphicFilter::ExportGraphic(), GDIMetaFile::FirstAction(), GfxLink::GetData(), MetaCommentAction::GetData(), GfxLink::GetDataSize(), MetaCommentAction::GetDataSize(), GraphicFilter::GetExportFormatNumberForShortName(), Graphic::GetGDIMetaFile(), Graphic::GetGfxLink(), GraphicFilter::GetGraphicFilter(), MetaEPSAction::GetLink(), comphelper::GraphicMimeTypeHelper::GetMimeTypeForExtension(), GetODFSaneDefaultVersion(), GfxLink::GetType(), Graphic::GetType(), GraphicObject::GetType(), GraphicObject::GetUniqueID(), ImplGetGraphicMimeType(), ImplGetGraphicStream(), Graphic::IsAnimated(), GraphicObject::IsAnimated(), GfxLink::IsEMF(), maExportGraphics, SvtSaveOptions::ODFSVER_012, SvtSaveOptions::ODFSVER_012_EXT_COMPAT, p, pData, sId, SOFFICE_FILEFORMAT_8, u, SvmWriter::Write(), XML_GRAPHICSTORAGE_NAME, SvxGraphicHelperStream_Impl::xStorage, and SvxGraphicHelperStream_Impl::xStream.
Referenced by saveGraphic(), and saveGraphicByName().
|
private |
Definition at line 513 of file xmlgrhlp.cxx.
References maOutputMimeType, meCreateMode, and mxRootStorage.
Referenced by SvXMLGraphicHelper().
|
overridevirtual |
Definition at line 568 of file xmlgrhlp.cxx.
References GraphicObject::GetGraphic(), GraphicObject::GetType(), Graphic::GetXGraphic(), ImplGetStreamNames(), ImplReadGraphic(), comphelper::UnoImplBase::m_aMutex, and maGraphicObjects.
|
overridevirtual |
Definition at line 600 of file xmlgrhlp.cxx.
References comphelper::UnoImplBase::m_aMutex, meCreateMode, and Read.
|
overridevirtual |
Definition at line 562 of file xmlgrhlp.cxx.
|
overridevirtual |
Definition at line 898 of file xmlgrhlp.cxx.
References GraphicObject::GetUniqueID(), maGrfStms, meCreateMode, Read, and XML_GRAPHICOBJECT_URL_BASE.
|
overridevirtual |
Definition at line 624 of file xmlgrhlp.cxx.
References implSaveGraphic().
|
overridevirtual |
Definition at line 618 of file xmlgrhlp.cxx.
References implSaveGraphic().
|
private |
Definition at line 55 of file xmlgrhlp.hxx.
Referenced by ImplGetGraphicStorage().
|
private |
Definition at line 60 of file xmlgrhlp.hxx.
Referenced by implSaveGraphic().
|
private |
Definition at line 59 of file xmlgrhlp.hxx.
Referenced by loadGraphic().
|
private |
Definition at line 57 of file xmlgrhlp.hxx.
Referenced by createOutputStream(), and resolveOutputStream().
|
private |
Definition at line 63 of file xmlgrhlp.hxx.
Referenced by createInputStream(), and Init().
|
private |
Definition at line 62 of file xmlgrhlp.hxx.
Referenced by createInputStream(), createOutputStream(), ImplGetGraphicStorage(), ImplGetGraphicStream(), Init(), loadGraphicFromOutputStream(), and resolveOutputStream().
|
private |
Definition at line 54 of file xmlgrhlp.hxx.
Referenced by ImplGetGraphicStorage(), ImplGetGraphicStream(), and Init().