LibreOffice Module embeddedobj (master) 1
Classes | Macros | Typedefs | Functions | Variables
olecomponent.cxx File Reference
#include <sal/config.h>
#include <com/sun/star/datatransfer/UnsupportedFlavorException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/embed/WrongStateException.hpp>
#include <com/sun/star/embed/UnreachableStateException.hpp>
#include <com/sun/star/ucb/XSimpleFileAccess.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/io/TempFile.hpp>
#include <com/sun/star/io/XTruncate.hpp>
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/awt/XRequestCallback.hpp>
#include "platform.h"
#include <comphelper/multicontainer2.hxx>
#include <comphelper/mimeconfighelper.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/servicehelper.hxx>
#include <comphelper/windowserrorstring.hxx>
#include <osl/file.hxx>
#include <rtl/ref.hxx>
#include <o3tl/char16_t2wchar_t.hxx>
#include <o3tl/unit_conversion.hxx>
#include <systools/win32/comtools.hxx>
#include <vcl/threadex.hxx>
#include "graphconvert.hxx"
#include "olecomponent.hxx"
#include "olepersist.hxx"
#include "olewrapclient.hxx"
#include "advisesink.hxx"
#include <oleembobj.hxx>
#include "mtnotification.hxx"
#include <memory>
#include <string>
Include dependency graph for olecomponent.cxx:

Go to the source code of this file.

Classes

struct  OleComponentNative_Impl
 

Macros

#define MAX_ENUM_ELE   20
 
#define FORMATS_NUM   3
 

Typedefs

typedef std::vector< FORMATETC * > FormatEtcList
 

Functions

static DWORD GetAspectFromFlavor (const datatransfer::DataFlavor &aFlavor)
 
static OUString GetFlavorSuffixFromAspect (DWORD nAsp)
 
static HRESULT OpenIStorageFromURL_Impl (const OUString &aURL, IStorage **ppIStorage)
 
static bool GetClassIDFromSequence_Impl (uno::Sequence< sal_Int8 > const &aSeq, CLSID &aResult)
 
static OUString WinAccToVcl_Impl (const sal_Unicode *pStr)
 

Variables

FORMATETC const pFormatTemplates [FORMATS_NUM]
 

Macro Definition Documentation

◆ FORMATS_NUM

#define FORMATS_NUM   3

Definition at line 60 of file olecomponent.cxx.

◆ MAX_ENUM_ELE

#define MAX_ENUM_ELE   20

Definition at line 59 of file olecomponent.cxx.

Typedef Documentation

◆ FormatEtcList

typedef std::vector< FORMATETC* > FormatEtcList

Definition at line 62 of file olecomponent.cxx.

Function Documentation

◆ GetAspectFromFlavor()

static DWORD GetAspectFromFlavor ( const datatransfer::DataFlavor &  aFlavor)
static

Definition at line 120 of file olecomponent.cxx.

Referenced by OleComponent::getTransferData().

◆ GetClassIDFromSequence_Impl()

static bool GetClassIDFromSequence_Impl ( uno::Sequence< sal_Int8 > const &  aSeq,
CLSID &  aResult 
)
static

Definition at line 277 of file olecomponent.cxx.

References aSeq.

Referenced by OleComponent::CreateNewEmbeddedObject().

◆ GetFlavorSuffixFromAspect()

static OUString GetFlavorSuffixFromAspect ( DWORD  nAsp)
static

Definition at line 133 of file olecomponent.cxx.

Referenced by OleComponentNative_Impl::GetFlavorsForAspects().

◆ OpenIStorageFromURL_Impl()

static HRESULT OpenIStorageFromURL_Impl ( const OUString &  aURL,
IStorage **  ppIStorage 
)
static

Definition at line 150 of file olecomponent.cxx.

References aURL.

Referenced by OleComponent::LoadEmbeddedObject().

◆ WinAccToVcl_Impl()

static OUString WinAccToVcl_Impl ( const sal_Unicode pStr)
static

Definition at line 294 of file olecomponent.cxx.

Referenced by OleComponent::GetVerbList().

Variable Documentation

◆ pFormatTemplates

FORMATETC const pFormatTemplates[FORMATS_NUM]
Initial value:
= {
{ CF_ENHMETAFILE, nullptr, 0, -1, TYMED_ENHMF },
{ CF_METAFILEPICT, nullptr, 0, -1, TYMED_MFPICT },
{ CF_BITMAP, nullptr, 0, -1, TYMED_GDI } }

Definition at line 64 of file olecomponent.cxx.

Referenced by OleComponent::GetExtent(), OleComponent::getTransferData(), and OleComponent::RetrieveObjectDataFlavors_Impl().