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

#define EXESUFFIX   ""

Definition at line 195 of file ieps.cxx.

Referenced by RenderAsBMPThroughConvert(), RenderAsBMPThroughGS(), and RenderAsEMF().

Function Documentation

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
static int ImplGetLen ( sal_uInt8 pBuf,
int  nMax 
)
static

Definition at line 115 of file ieps.cxx.

Referenced by MakePreview().

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

Definition at line 73 of file ieps.cxx.

Referenced by ImportEpsGraphic(), and MakePreview().

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().

bool ImportEpsGraphic ( SvStream rStream,
Graphic rGraphic 
)
static void MakeAsMeta ( Graphic rGraphic)
static
static void MakePreview ( sal_uInt8 pBuf,
sal_uInt32  nBytesRead,
tools::Long  nWidth,
tools::Long  nHeight,
Graphic rGraphic 
)
static
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().

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().

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().

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
static bool RenderAsEMF ( const sal_uInt8 pBuf,
sal_uInt32  nBytesRead,
Graphic rGraphic 
)
static
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, and result.

Referenced by RenderAsBMPThroughHelper(), and RenderAsEMF().

static void WriteFileInThread ( void wData)
static

Definition at line 288 of file ieps.cxx.

References nCount.

Referenced by RenderAsBMPThroughHelper().