LibreOffice Module vcl (master)
1
|
#include <config_folders.h>
#include <sal/log.hxx>
#include <osl/mutex.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/threadpool.hxx>
#include <cppuhelper/implbase.hxx>
#include <tools/fract.hxx>
#include <unotools/configmgr.hxx>
#include <tools/stream.hxx>
#include <tools/urlobj.hxx>
#include <tools/zcodec.hxx>
#include <vcl/dibtools.hxx>
#include <fltcall.hxx>
#include <vcl/salctype.hxx>
#include <vcl/pngread.hxx>
#include <vcl/pngwrite.hxx>
#include <vcl/vectorgraphicdata.hxx>
#include <vcl/virdev.hxx>
#include <impgraph.hxx>
#include <vcl/svapp.hxx>
#include <osl/file.hxx>
#include <vcl/graphicfilter.hxx>
#include <vcl/FilterConfigItem.hxx>
#include <vcl/wmf.hxx>
#include "igif/gifread.hxx"
#include <vcl/pdfread.hxx>
#include "jpeg/jpeg.hxx"
#include "ixbm/xbmread.hxx"
#include "ixpm/xpmread.hxx"
#include <filter/TiffReader.hxx>
#include <filter/TiffWriter.hxx>
#include <osl/module.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/awt/Size.hpp>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/io/XActiveDataSource.hpp>
#include <com/sun/star/io/XOutputStream.hpp>
#include <com/sun/star/svg/XSVGWriter.hpp>
#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
#include <com/sun/star/xml/sax/Writer.hpp>
#include <unotools/ucbstreamhelper.hxx>
#include <rtl/bootstrap.hxx>
#include <rtl/instance.hxx>
#include <tools/svlibrary.h>
#include <comphelper/string.hxx>
#include <unotools/ucbhelper.hxx>
#include <vector>
#include <memory>
#include <string_view>
#include <vcl/TypeSerializer.hxx>
#include "FilterConfigCache.hxx"
#include "graphicfilter_internal.hxx"
#include <graphic/GraphicFormatDetector.hxx>
#include <graphic/GraphicReader.hxx>
Go to the source code of this file.
Macros | |
#define | PMGCHUNG_msOG 0x6d734f47 |
Typedefs | |
typedef ::std::vector< GraphicFilter * > | FilterList_impl |
Functions | |
::osl::Mutex & | getListMutex () |
sal_uInt8 * | ImplSearchEntry (sal_uInt8 *pSource, sal_uInt8 const *pDest, sal_uLong nComp, sal_uLong nSize) |
static OUString | ImpGetExtension (const OUString &rPath) |
bool | isPCT (SvStream &rStream, sal_uLong nStreamPos, sal_uLong nStreamLen) |
bool | ImpPeekGraphicFormat (SvStream &rStream, OUString &rFormatExtension, bool bTest) |
static Graphic | ImpGetScaledGraphic (const Graphic &rGraphic, FilterConfigItem &rConfigItem) |
static OUString | ImpCreateFullFilterPath (const OUString &rPath, std::u16string_view rFilterName) |
IMPL_LINK (GraphicFilter, FilterCallback, ConvertData &, rData, bool) | |
Variables | |
static FilterList_impl * | pFilterHdlList = nullptr |
#define PMGCHUNG_msOG 0x6d734f47 |
Definition at line 78 of file graphicfilter.cxx.
Referenced by GraphicFilter::ImportGraphic(), and GraphicFilter::ImportUnloadedGraphic().
typedef ::std::vector< GraphicFilter* > FilterList_impl |
Definition at line 80 of file graphicfilter.cxx.
|
static |
Definition at line 83 of file graphicfilter.cxx.
Referenced by GraphicFilter::ImplInit(), and GraphicFilter::~GraphicFilter().
|
static |
Definition at line 590 of file graphicfilter.cxx.
Referenced by GraphicFilter::ExportGraphic().
|
static |
Definition at line 127 of file graphicfilter.cxx.
References aURL, and INetURLObject::GetFileExtension().
Referenced by GraphicFilter::ImpTestOrFindFormat().
|
static |
Definition at line 496 of file graphicfilter.cxx.
References aMap, Bitmap, BitmapEx::Convert(), Graphic::GetBitmapEx(), Application::GetDefaultDevice(), Graphic::GetGDIMetaFile(), Graphic::GetPrefMapMode(), Graphic::GetPrefSize(), Graphic::GetType(), Size::Height(), OutputDevice::LogicToLogic(), NONE, OutputDevice::PixelToLogic(), FilterConfigItem::ReadInt32(), Graphic::SetPrefMapMode(), Graphic::SetPrefSize(), and Size::Width().
Referenced by GraphicFilter::ExportGraphic().
IMPL_LINK | ( | GraphicFilter | , |
FilterCallback | , | ||
ConvertData & | , | ||
rData | , | ||
bool | |||
) |
Definition at line 2247 of file graphicfilter.cxx.
References BMP, BMP_SHORTNAME, EMF, EMF_SHORTNAME, ERRCODE_NONE, GIF, GIF_SHORTNAME, GRFILTER_FORMAT_DONTKNOW, JPG, JPG_SHORTNAME, MET, MET_SHORTNAME, NONE, PCT, PCT_SHORTNAME, PNG, PNG_SHORTNAME, SVG, SVG_SHORTNAME, SVM, SVM_SHORTNAME, TIF, TIF_SHORTNAME, WMF, and WMF_SHORTNAME.
sal_uInt8* ImplSearchEntry | ( | sal_uInt8 * | pSource, |
sal_uInt8 const * | pDest, | ||
sal_uLong | nComp, | ||
sal_uLong | nSize | ||
) |
Definition at line 110 of file graphicfilter.cxx.
References i.
Referenced by GraphicDescriptor::ImpDetectEPS().
bool ImpPeekGraphicFormat | ( | SvStream & | rStream, |
OUString & | rFormatExtension, | ||
bool | bTest | ||
) |
Definition at line 199 of file graphicfilter.cxx.
References vcl::GraphicFormatDetector::checkBMP(), vcl::GraphicFormatDetector::checkDXF(), vcl::GraphicFormatDetector::checkEPS(), vcl::GraphicFormatDetector::checkGIF(), vcl::GraphicFormatDetector::checkJPG(), vcl::GraphicFormatDetector::checkMET(), vcl::GraphicFormatDetector::checkMOV(), vcl::GraphicFormatDetector::checkPBMorPGMorPPM(), vcl::GraphicFormatDetector::checkPCD(), vcl::GraphicFormatDetector::checkPCT(), vcl::GraphicFormatDetector::checkPCX(), vcl::GraphicFormatDetector::checkPDF(), vcl::GraphicFormatDetector::checkPNG(), vcl::GraphicFormatDetector::checkPSD(), vcl::GraphicFormatDetector::checkRAS(), vcl::GraphicFormatDetector::checkSVG(), vcl::GraphicFormatDetector::checkSVM(), vcl::GraphicFormatDetector::checkTGA(), vcl::GraphicFormatDetector::checkTIF(), vcl::GraphicFormatDetector::checkWMForEMF(), vcl::GraphicFormatDetector::checkXBM(), vcl::GraphicFormatDetector::checkXPM(), vcl::GraphicFormatDetector::detect(), and vcl::GraphicFormatDetector::msDetectedFormat.
Referenced by GraphicFilter::ImpTestOrFindFormat().
Definition at line 135 of file graphicfilter.cxx.
References SvStream::GetEndian(), SvStream::ReadBytes(), SvStream::ReadInt16(), SvStream::Seek(), SvStream::SeekRel(), and SvStream::SetEndian().
Referenced by vcl::GraphicFormatDetector::checkPCT(), and GraphicDescriptor::ImpDetectPCT().
|
static |
Definition at line 81 of file graphicfilter.cxx.
Referenced by GraphicFilter::ImplInit(), and GraphicFilter::~GraphicFilter().