LibreOffice Module drawinglayer (master) 1
Namespaces | Functions
wmfemfhelper.cxx File Reference
#include <wmfemfhelper.hxx>
#include <drawinglayer/primitive2d/pointarrayprimitive2d.hxx>
#include <vcl/lineinfo.hxx>
#include <vcl/metaact.hxx>
#include <drawinglayer/primitive2d/transformprimitive2d.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <basegfx/utils/gradienttools.hxx>
#include <drawinglayer/primitive2d/unifiedtransparenceprimitive2d.hxx>
#include <drawinglayer/primitive2d/PolygonStrokePrimitive2D.hxx>
#include <drawinglayer/primitive2d/PolygonHairlinePrimitive2D.hxx>
#include <drawinglayer/primitive2d/PolyPolygonColorPrimitive2D.hxx>
#include <drawinglayer/primitive2d/PolyPolygonGradientPrimitive2D.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <drawinglayer/primitive2d/discretebitmapprimitive2d.hxx>
#include <drawinglayer/primitive2d/bitmapprimitive2d.hxx>
#include <vcl/BitmapPalette.hxx>
#include <drawinglayer/primitive2d/fillgradientprimitive2d.hxx>
#include <drawinglayer/primitive2d/transparenceprimitive2d.hxx>
#include <drawinglayer/primitive2d/fillhatchprimitive2d.hxx>
#include <drawinglayer/primitive2d/maskprimitive2d.hxx>
#include <basegfx/polygon/b2dpolygonclipper.hxx>
#include <drawinglayer/primitive2d/invertprimitive2d.hxx>
#include <drawinglayer/primitive2d/modifiedcolorprimitive2d.hxx>
#include <primitive2d/wallpaperprimitive2d.hxx>
#include <drawinglayer/primitive2d/textlayoutdevice.hxx>
#include <drawinglayer/primitive2d/textdecoratedprimitive2d.hxx>
#include <primitive2d/textlineprimitive2d.hxx>
#include <primitive2d/textstrikeoutprimitive2d.hxx>
#include <drawinglayer/primitive2d/epsprimitive2d.hxx>
#include <sal/log.hxx>
#include <tools/fract.hxx>
#include <tools/stream.hxx>
#include <tools/UnitConversion.hxx>
#include <vcl/canvastools.hxx>
#include <vcl/gradient.hxx>
#include <vcl/hatch.hxx>
#include <vcl/outdev.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <emfplushelper.hxx>
#include <numeric>
#include <toolkit/helper/vclunohelper.hxx>
Include dependency graph for wmfemfhelper.cxx:

Go to the source code of this file.

Namespaces

namespace  drawinglayer
 
namespace  drawinglayer::primitive2d
 
namespace  wmfemfhelper
 

Functions

static void wmfemfhelper::createPointArrayPrimitive (std::vector< basegfx::B2DPoint > &&rPositions, TargetHolder &rTarget, PropertyHolder const &rProperties, const basegfx::BColor &rBColor)
 helper to create a PointArrayPrimitive2D based on current context More...
 
static void wmfemfhelper::createHairlinePrimitive (const basegfx::B2DPolygon &rLinePolygon, TargetHolder &rTarget, PropertyHolder const &rProperties)
 helper to create a PolygonHairlinePrimitive2D based on current context More...
 
static void wmfemfhelper::createFillPrimitive (const basegfx::B2DPolyPolygon &rFillPolyPolygon, TargetHolder &rTarget, PropertyHolder const &rProperties)
 helper to create a PolyPolygonColorPrimitive2D based on current context More...
 
static void wmfemfhelper::createLinePrimitive (const basegfx::B2DPolygon &rLinePolygon, const LineInfo &rLineInfo, TargetHolder &rTarget, PropertyHolder const &rProperties)
 helper to create a PolygonStrokePrimitive2D based on current context More...
 
static void wmfemfhelper::createHairlineAndFillPrimitive (const basegfx::B2DPolygon &rPolygon, TargetHolder &rTarget, PropertyHolder const &rProperties)
 helper to create needed line and fill primitives based on current context More...
 
static void wmfemfhelper::createHairlineAndFillPrimitive (const basegfx::B2DPolyPolygon &rPolyPolygon, TargetHolder &rTarget, PropertyHolder const &rProperties)
 helper to create needed line and fill primitives based on current context More...
 
static void wmfemfhelper::createBitmapExPrimitive (const BitmapEx &rBitmapEx, const Point &rPoint, TargetHolder &rTarget, PropertyHolder const &rProperties)
 helper to create DiscreteBitmapPrimitive2D based on current context. More...
 
static void wmfemfhelper::createBitmapExPrimitive (const BitmapEx &rBitmapEx, const Point &rPoint, const Size &rSize, TargetHolder &rTarget, PropertyHolder const &rProperties)
 helper to create BitmapPrimitive2D based on current context More...
 
static BitmapEx wmfemfhelper::createMaskBmpEx (const Bitmap &rBitmap, const Color &rMaskColor)
 helper to create a regular BotmapEx from a MaskAction (definitions which use a bitmap without transparence but define one of the colors as transparent) More...
 
static drawinglayer::attribute::FillGradientAttribute wmfemfhelper::createFillGradientAttribute (const Gradient &rGradient)
 helper to convert from a VCL Gradient definition to the corresponding data for primitive representation More...
 
static drawinglayer::attribute::FillHatchAttribute wmfemfhelper::createFillHatchAttribute (const Hatch &rHatch)
 helper to convert from a VCL Hatch definition to the corresponding data for primitive representation More...
 
void wmfemfhelper::HandleNewClipRegion (const basegfx::B2DPolyPolygon &rClipPolyPolygon, TargetHolders &rTargetHolders, PropertyHolders &rPropertyHolders)
 helper to take needed action on ClipRegion change. More...
 
static void wmfemfhelper::HandleNewRasterOp (RasterOp aRasterOp, TargetHolders &rTargetHolders, PropertyHolders &rPropertyHolders)
 helper to handle the change of RasterOp. More...
 
static rtl::Reference< drawinglayer::primitive2d::BasePrimitive2Dwmfemfhelper::CreateColorWallpaper (const basegfx::B2DRange &rRange, const basegfx::BColor &rColor, PropertyHolder const &rPropertyHolder)
 helper to create needed data to emulate the VCL Wallpaper Metafile action. More...
 
static rtl::Reference< drawinglayer::primitive2d::BasePrimitive2Dwmfemfhelper::CreateGradientWallpaper (const basegfx::B2DRange &rRange, const Gradient &rGradient, PropertyHolder const &rPropertyHolder)
 helper to create needed data to emulate the VCL Wallpaper Metafile action. More...
 
static void wmfemfhelper::CreateAndAppendBitmapWallpaper (basegfx::B2DRange aWallpaperRange, const Wallpaper &rWallpaper, TargetHolder &rTarget, PropertyHolder const &rProperty)
 helper to create needed data to emulate the VCL Wallpaper Metafile action. More...
 
static bool wmfemfhelper::isUnderlineAbove (const vcl::Font &rFont)
 helper to decide UnderlineAbove for text primitives More...
 
static void wmfemfhelper::createFontAttributeTransformAndAlignment (drawinglayer::attribute::FontAttribute &rFontAttribute, basegfx::B2DHomMatrix &rTextTransform, basegfx::B2DVector &rAlignmentOffset, PropertyHolder const &rProperty)
 
static void wmfemfhelper::processMetaTextAction (const Point &rTextStartPosition, const OUString &rText, sal_uInt16 nTextStart, sal_uInt16 nTextLength, std::vector< double > &&rDXArray, std::vector< sal_Bool > &&rKashidaArray, TargetHolder &rTarget, PropertyHolder const &rProperty)
 helper which takes complete care for creating the needed text primitives. More...
 
static void wmfemfhelper::processMetaTextLineAction (const MetaTextLineAction &rAction, TargetHolder &rTarget, PropertyHolder const &rProperty)
 helper which takes complete care for creating the needed textLine primitives More...
 
static void wmfemfhelper::implInterpretMetafile (const GDIMetaFile &rMetaFile, TargetHolders &rTargetHolders, PropertyHolders &rPropertyHolders, const drawinglayer::geometry::ViewInformation2D &rViewInformation)
 This is the main interpreter method. More...
 
drawinglayer::primitive2d::Primitive2DContainer wmfemfhelper::interpretMetafile (const GDIMetaFile &rMetaFile, const drawinglayer::geometry::ViewInformation2D &rViewInformation)