LibreOffice Module dtrans (master)  1
Typedefs | Functions | Variables
FmtFilter.cxx File Reference
#include <string.h>
#include "FmtFilter.hxx"
#include <osl/diagnose.h>
#include <shobjidl.h>
#include <shlguid.h>
#include <objidl.h>
#include <shellapi.h>
#include <string>
#include <sstream>
#include <vector>
#include <iomanip>
#include <systools/win32/comtools.hxx>
Include dependency graph for FmtFilter.cxx:

Go to the source code of this file.

Typedefs

typedef Sequence< sal_Int8ByteSequence_t
 

Functions

Sequence< sal_Int8WinMFPictToOOMFPict (Sequence< sal_Int8 > &aMetaFilePict)
 
Sequence< sal_Int8WinENHMFPictToOOMFPict (HENHMETAFILE hEnhMetaFile)
 
HMETAFILEPICT OOMFPictToWinMFPict (Sequence< sal_Int8 > const &aOOMetaFilePict)
 
HENHMETAFILE OOMFPictToWinENHMFPict (Sequence< sal_Int8 > const &aOOMetaFilePict)
 
Sequence< sal_Int8WinDIBToOOBMP (const Sequence< sal_Int8 > &aWinDIB)
 
Sequence< sal_Int8OOBmpToWinDIB (Sequence< sal_Int8 > &aOOBmp)
 
static std::string GetHtmlFormatHeader (size_t startHtml, size_t endHtml, size_t startFragment, size_t endFragment)
 
const std::string TAG_HTML ("<html>")
 
const std::string TAG_END_HTML ("</html>")
 
const std::string TAG_BODY ("<body")
 
const std::string TAG_END_BODY ("</body")
 
Sequence< sal_Int8TextHtmlToHTMLFormat (Sequence< sal_Int8 > const &aTextHtml)
 
static std::wstring getFileExtension (const std::wstring &aFilename)
 
static bool isShellLink (const std::wstring &aFilename)
 
static std::wstring getShellLinkTarget (const std::wstring &aLnkFile)
 Resolve a Windows Shell Link (lnk) file. More...
 
static size_t CalcSizeForStringListBuffer (const std::vector< std::wstring > &fileList)
 
static ByteSequence_t FileListToByteSequence (const std::vector< std::wstring > &fileList)
 
css::uno::Sequence< sal_Int8CF_HDROPToFileList (HGLOBAL hGlobal)
 Return a FileList in which Windows Shell Links (lnk) are resolved. More...
 
Sequence< sal_Int8WinBITMAPToOOBMP (HBITMAP aHBMP)
 

Variables

const std::wstring SHELL_LINK_FILE_EXTENSION = L".lnk"
 

Typedef Documentation

Definition at line 340 of file FmtFilter.cxx.

Function Documentation

static size_t CalcSizeForStringListBuffer ( const std::vector< std::wstring > &  fileList)
static

Definition at line 344 of file FmtFilter.cxx.

References size.

Referenced by FileListToByteSequence().

css::uno::Sequence<sal_Int8> CF_HDROPToFileList ( HGLOBAL  hGlobal)

Return a FileList in which Windows Shell Links (lnk) are resolved.

If for whatever reason a resolution is not possible leave the original lnk file.

Definition at line 377 of file FmtFilter.cxx.

References FileListToByteSequence(), getShellLinkTarget(), i, isShellLink(), and MAX_PATH.

Referenced by CDOTransferable::getClipboardData().

static ByteSequence_t FileListToByteSequence ( const std::vector< std::wstring > &  fileList)
static

Definition at line 357 of file FmtFilter.cxx.

References CalcSizeForStringListBuffer(), p, and size.

Referenced by CF_HDROPToFileList().

static std::wstring getFileExtension ( const std::wstring &  aFilename)
static

Definition at line 279 of file FmtFilter.cxx.

Referenced by isShellLink().

static std::string GetHtmlFormatHeader ( size_t  startHtml,
size_t  endHtml,
size_t  startFragment,
size_t  endFragment 
)
static

Definition at line 221 of file FmtFilter.cxx.

Referenced by TextHtmlToHTMLFormat().

static std::wstring getShellLinkTarget ( const std::wstring &  aLnkFile)
static

Resolve a Windows Shell Link (lnk) file.

If a resolution is not possible simply return the provided name of the lnk file.

Definition at line 300 of file FmtFilter.cxx.

References hr, isShellLink(), and MAX_PATH.

Referenced by CF_HDROPToFileList().

static bool isShellLink ( const std::wstring &  aFilename)
static

Definition at line 291 of file FmtFilter.cxx.

References getFileExtension(), and SHELL_LINK_FILE_EXTENSION.

Referenced by CF_HDROPToFileList(), and getShellLinkTarget().

Sequence< sal_Int8 > OOBmpToWinDIB ( Sequence< sal_Int8 > &  aOOBmp)

Definition at line 210 of file FmtFilter.cxx.

Referenced by CXTDataObject::renderAnyDataAndSetupStgMedium().

HENHMETAFILE OOMFPictToWinENHMFPict ( Sequence< sal_Int8 > const &  aOOMetaFilePict)

Definition at line 168 of file FmtFilter.cxx.

Referenced by CXTDataObject::renderAnyDataAndSetupStgMedium().

HMETAFILEPICT OOMFPictToWinMFPict ( Sequence< sal_Int8 > const &  aOOMetaFilePict)

Definition at line 146 of file FmtFilter.cxx.

Referenced by CXTDataObject::renderAnyDataAndSetupStgMedium().

const std::string TAG_BODY ( )

Referenced by TextHtmlToHTMLFormat().

const std::string TAG_END_BODY ( )

Referenced by TextHtmlToHTMLFormat().

const std::string TAG_END_HTML ( "</html>"  )

Referenced by TextHtmlToHTMLFormat().

const std::string TAG_HTML ( "<html>"  )

Referenced by TextHtmlToHTMLFormat().

Sequence<sal_Int8> TextHtmlToHTMLFormat ( Sequence< sal_Int8 > const &  aTextHtml)
Sequence< sal_Int8 > WinBITMAPToOOBMP ( HBITMAP  aHBMP)

Definition at line 396 of file FmtFilter.cxx.

References SIZE, and WinDIBToOOBMP().

Referenced by CDOTransferable::getClipboardData().

Sequence< sal_Int8 > WinDIBToOOBMP ( const Sequence< sal_Int8 > &  aWinDIB)

Definition at line 177 of file FmtFilter.cxx.

Referenced by CDOTransferable::getClipboardData(), and WinBITMAPToOOBMP().

Sequence< sal_Int8 > WinENHMFPictToOOMFPict ( HENHMETAFILE  hEnhMetaFile)

Definition at line 127 of file FmtFilter.cxx.

Referenced by CDOTransferable::getClipboardData().

Sequence< sal_Int8 > WinMFPictToOOMFPict ( Sequence< sal_Int8 > &  aMetaFilePict)

Variable Documentation

const std::wstring SHELL_LINK_FILE_EXTENSION = L".lnk"

Definition at line 289 of file FmtFilter.cxx.

Referenced by isShellLink().