LibreOffice Module vcl (master) 1
|
#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>
Go to the source code of this file.
Macros | |
#define | EXESUFFIX "" |
Functions | |
static const sal_uInt8 * | ImplSearchEntry (const sal_uInt8 *pSource, sal_uInt8 const *pDest, size_t nComp, size_t nSize) |
static tools::Long | ImplGetNumber (const sal_uInt8 *&rBuf, sal_uInt32 &nSecurityCount) |
static int | ImplGetLen (const 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 (const sal_uInt8 *pBuf, sal_uInt32 nBytesRead, tools::Long nWidth, tools::Long nHeight, Graphic &rGraphic) |
bool | ImportEpsGraphic (SvStream &rStream, Graphic &rGraphic) |
|
static |
Definition at line 427 of file ieps.cxx.
References GDIMetaFile::AddAction(), checkSeek(), SvMemoryStream::GetData(), nMagic, SvStream::ReadBytes(), SvStream::remainingSize(), rStrm, SvStream::Tell(), SvStream::WriteBytes(), and SvStream::WriteUInt32().
Referenced by ImportEpsGraphic().
Definition at line 115 of file ieps.cxx.
Referenced by MakePreview().
|
static |
Definition at line 73 of file ieps.cxx.
Referenced by ImportEpsGraphic(), and MakePreview().
|
static |
Definition at line 54 of file ieps.cxx.
References i.
Referenced by ImportEpsGraphic(), and MakePreview().
Definition at line 575 of file ieps.cxx.
References aBuf, GDIMetaFile::AddAction(), o3tl::checked_add(), o3tl::checked_multiply(), o3tl::checked_sub(), checkSeek(), COL_BLACK(), COL_WHITE(), ColorTransparency, vcl::bitmap::CreateFromData(), CreateMtfReplacementAction(), EpsBuffer, ERRCODE_NONE, SvStream::GetEndian(), SvStream::GetError(), Graphic::GetGDIMetaFile(), SvStream::good(), i, ImplGetNumber(), ImplSearchEntry(), GraphicConverter::Import(), utl::ConfigManager::IsFuzzing(), OutputDevice::LogicToLogic(), MakeAsMeta(), MakePreview(), SvStream::ReadBytes(), SvStream::ReadChar(), SvStream::ReadUInt32(), GDIMetaFile::Record(), SvStream::remainingSize(), RenderAsBMP(), RenderAsEMF(), SAL_MAX_INT32, SAL_WARN_IF, SvStream::Seek(), SvStream::SetEndian(), vcl::bitmap::RawBitmap::SetPixel(), GDIMetaFile::SetPrefMapMode(), GDIMetaFile::SetPrefSize(), GDIMetaFile::Stop(), STREAM_SEEK_TO_END, SvStream::Tell(), TIF, GDIMetaFile::WindStart(), WMF, x, and y.
Referenced by GraphicFilter::readEPS().
|
static |
Definition at line 128 of file ieps.cxx.
References Graphic::GetBitmapEx(), Application::GetDefaultDevice(), Graphic::GetPrefMapMode(), Graphic::GetPrefSize(), Graphic::GetSizePixel(), Size::Height(), OutputDevice::LogicToLogic(), OutputDevice::PixelToLogic(), GDIMetaFile::Record(), GDIMetaFile::SetPrefMapMode(), GDIMetaFile::SetPrefSize(), GDIMetaFile::Stop(), Size::Width(), and GDIMetaFile::WindStart().
Referenced by ImportEpsGraphic(), and RenderAsBMPThroughHelper().
|
static |
Definition at line 468 of file ieps.cxx.
References Clip, COL_LIGHTRED(), COL_RED(), vcl::FONT, ImplGetLen(), ImplGetNumber(), ImplSearchEntry(), o3tl::make_unsigned(), MultiLine, nCount, GDIMetaFile::Record(), vcl::Font::SetColor(), GDIMetaFile::SetPrefMapMode(), GDIMetaFile::SetPrefSize(), GDIMetaFile::Stop(), and GDIMetaFile::WindStart().
Referenced by ImportEpsGraphic().
|
static |
Definition at line 417 of file ieps.cxx.
References RenderAsBMPThroughConvert(), and RenderAsBMPThroughGS().
Referenced by ImportEpsGraphic().
|
static |
Definition at line 361 of file ieps.cxx.
References args, EXESUFFIX, RenderAsBMPThroughHelper(), SAL_N_ELEMENTS, and u.
Referenced by RenderAsBMP().
|
static |
Definition at line 383 of file ieps.cxx.
References args, EXESUFFIX, RenderAsBMPThroughHelper(), SAL_N_ELEMENTS, and u.
Referenced by RenderAsBMP().
|
static |
Definition at line 305 of file ieps.cxx.
References aBuf, BMP, Data, ERRCODE_NONE, SvMemoryStream::GetEndOfData(), GraphicConverter::Import(), MakeAsMeta(), nCount, pOut, runProcessWithPathSearch(), SvStream::Seek(), SvStream::WriteBytes(), and WriteFileInThread().
Referenced by RenderAsBMPThroughConvert(), and RenderAsBMPThroughGS().
|
static |
Definition at line 198 of file ieps.cxx.
References args, utl::TempFileNamed::CloseStream(), EMF, utl::TempFileNamed::EnableKillingFile(), ERRCODE_NONE, EXESUFFIX, utl::TempFileNamed::GetStream(), utl::TempFileNamed::GetURL(), GraphicConverter::Import(), line, nCount, pOut, runProcessWithPathSearch(), SAL_N_ELEMENTS, and SvStream::WriteBytes().
Referenced by ImportEpsGraphic().
|
static |
Definition at line 151 of file ieps.cxx.
References err, pOut, and result.
Referenced by RenderAsBMPThroughHelper(), and RenderAsEMF().
|
static |
Definition at line 288 of file ieps.cxx.
References nCount.
Referenced by RenderAsBMPThroughHelper().