LibreOffice Module vcl (master) 1
Macros | Functions
ieps.cxx File Reference
#include <filter/EpsReader.hxx>
#include <vcl/svapp.hxx>
#include <vcl/gdimtf.hxx>
#include <vcl/graph.hxx>
#include <vcl/metaact.hxx>
#include <vcl/virdev.hxx>
#include <vcl/cvtgrf.hxx>
#include <vcl/BitmapTools.hxx>
#include <unotools/configmgr.hxx>
#include <unotools/tempfile.hxx>
#include <osl/process.h>
#include <osl/file.hxx>
#include <osl/thread.h>
#include <rtl/byteseq.hxx>
#include <sal/log.hxx>
#include <o3tl/char16_t2wchar_t.hxx>
#include <o3tl/safeint.hxx>
#include <memory>
#include <string_view>
Include dependency graph for ieps.cxx:

Go to the source code of this file.

Macros

#define EXESUFFIX   ""
 

Functions

static sal_uInt8ImplSearchEntry (sal_uInt8 *pSource, sal_uInt8 const *pDest, size_t nComp, size_t nSize)
 
static tools::Long ImplGetNumber (sal_uInt8 *&rBuf, sal_uInt32 &nSecurityCount)
 
static int ImplGetLen (sal_uInt8 *pBuf, int nMax)
 
static void MakeAsMeta (Graphic &rGraphic)
 
static oslProcessError runProcessWithPathSearch (const OUString &rProgName, rtl_uString *pArgs[], sal_uInt32 nArgs, oslProcess *pProcess, oslFileHandle *pIn, oslFileHandle *pOut, oslFileHandle *pErr)
 
static bool RenderAsEMF (const sal_uInt8 *pBuf, sal_uInt32 nBytesRead, Graphic &rGraphic)
 
static void WriteFileInThread (void *wData)
 
static bool RenderAsBMPThroughHelper (const sal_uInt8 *pBuf, sal_uInt32 nBytesRead, Graphic &rGraphic, std::initializer_list< std::u16string_view > aProgNames, rtl_uString *pArgs[], size_t nArgs)
 
static bool RenderAsBMPThroughConvert (const sal_uInt8 *pBuf, sal_uInt32 nBytesRead, Graphic &rGraphic)
 
static bool RenderAsBMPThroughGS (const sal_uInt8 *pBuf, sal_uInt32 nBytesRead, Graphic &rGraphic)
 
static bool RenderAsBMP (const sal_uInt8 *pBuf, sal_uInt32 nBytesRead, Graphic &rGraphic)
 
static void CreateMtfReplacementAction (GDIMetaFile &rMtf, SvStream &rStrm, sal_uInt32 nOrigPos, sal_uInt32 nPSSize, sal_uInt32 nPosWMF, sal_uInt32 nSizeWMF, sal_uInt32 nPosTIFF, sal_uInt32 nSizeTIFF)
 
static void MakePreview (sal_uInt8 *pBuf, sal_uInt32 nBytesRead, tools::Long nWidth, tools::Long nHeight, Graphic &rGraphic)
 
bool ImportEpsGraphic (SvStream &rStream, Graphic &rGraphic)
 

Macro Definition Documentation

◆ EXESUFFIX

#define EXESUFFIX   ""

Definition at line 195 of file ieps.cxx.

Function Documentation

◆ CreateMtfReplacementAction()

static void CreateMtfReplacementAction ( GDIMetaFile rMtf,
SvStream rStrm,
sal_uInt32  nOrigPos,
sal_uInt32  nPSSize,
sal_uInt32  nPosWMF,
sal_uInt32  nSizeWMF,
sal_uInt32  nPosTIFF,
sal_uInt32  nSizeTIFF 
)
static

◆ ImplGetLen()

static int ImplGetLen ( sal_uInt8 pBuf,
int  nMax 
)
static

Definition at line 115 of file ieps.cxx.

Referenced by MakePreview().

◆ ImplGetNumber()

static tools::Long ImplGetNumber ( sal_uInt8 *&  rBuf,
sal_uInt32 &  nSecurityCount 
)
static

Definition at line 73 of file ieps.cxx.

Referenced by ImportEpsGraphic(), and MakePreview().

◆ ImplSearchEntry()

static sal_uInt8 * ImplSearchEntry ( sal_uInt8 pSource,
sal_uInt8 const *  pDest,
size_t  nComp,
size_t  nSize 
)
static

Definition at line 54 of file ieps.cxx.

References i.

Referenced by ImportEpsGraphic(), and MakePreview().

◆ ImportEpsGraphic()

bool ImportEpsGraphic ( SvStream rStream,
Graphic rGraphic 
)

◆ MakeAsMeta()

static void MakeAsMeta ( Graphic rGraphic)
static

◆ MakePreview()

static void MakePreview ( sal_uInt8 pBuf,
sal_uInt32  nBytesRead,
tools::Long  nWidth,
tools::Long  nHeight,
Graphic rGraphic 
)
static

◆ RenderAsBMP()

static bool RenderAsBMP ( const sal_uInt8 pBuf,
sal_uInt32  nBytesRead,
Graphic rGraphic 
)
static

Definition at line 417 of file ieps.cxx.

References RenderAsBMPThroughConvert(), and RenderAsBMPThroughGS().

Referenced by ImportEpsGraphic().

◆ RenderAsBMPThroughConvert()

static bool RenderAsBMPThroughConvert ( const sal_uInt8 pBuf,
sal_uInt32  nBytesRead,
Graphic rGraphic 
)
static

Definition at line 361 of file ieps.cxx.

References args, EXESUFFIX, RenderAsBMPThroughHelper(), SAL_N_ELEMENTS, and u.

Referenced by RenderAsBMP().

◆ RenderAsBMPThroughGS()

static bool RenderAsBMPThroughGS ( const sal_uInt8 pBuf,
sal_uInt32  nBytesRead,
Graphic rGraphic 
)
static

Definition at line 383 of file ieps.cxx.

References args, EXESUFFIX, RenderAsBMPThroughHelper(), SAL_N_ELEMENTS, and u.

Referenced by RenderAsBMP().

◆ RenderAsBMPThroughHelper()

static bool RenderAsBMPThroughHelper ( const sal_uInt8 pBuf,
sal_uInt32  nBytesRead,
Graphic rGraphic,
std::initializer_list< std::u16string_view >  aProgNames,
rtl_uString *  pArgs[],
size_t  nArgs 
)
static

◆ RenderAsEMF()

static bool RenderAsEMF ( const sal_uInt8 pBuf,
sal_uInt32  nBytesRead,
Graphic rGraphic 
)
static

◆ runProcessWithPathSearch()

static oslProcessError runProcessWithPathSearch ( const OUString &  rProgName,
rtl_uString *  pArgs[],
sal_uInt32  nArgs,
oslProcess *  pProcess,
oslFileHandle *  pIn,
oslFileHandle *  pOut,
oslFileHandle *  pErr 
)
static

Definition at line 151 of file ieps.cxx.

References err, pOut, and result.

Referenced by RenderAsBMPThroughHelper(), and RenderAsEMF().

◆ WriteFileInThread()

static void WriteFileInThread ( void *  wData)
static

Definition at line 288 of file ieps.cxx.

References nCount.

Referenced by RenderAsBMPThroughHelper().