vclpixelprocessor2d.cxx (ddde725d) | vclpixelprocessor2d.cxx (78d93489) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 30 unchanged lines hidden (view full) --- 39#include <drawinglayer/primitive2d/transformprimitive2d.hxx> 40#include <drawinglayer/primitive2d/markerarrayprimitive2d.hxx> 41#include <drawinglayer/primitive2d/pointarrayprimitive2d.hxx> 42#include <drawinglayer/primitive2d/wrongspellprimitive2d.hxx> 43#include <drawinglayer/primitive2d/controlprimitive2d.hxx> 44#include <com/sun/star/awt/XWindow2.hpp> 45#include <drawinglayer/primitive2d/unifiedtransparenceprimitive2d.hxx> 46#include <drawinglayer/primitive2d/pagepreviewprimitive2d.hxx> | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 30 unchanged lines hidden (view full) --- 39#include <drawinglayer/primitive2d/transformprimitive2d.hxx> 40#include <drawinglayer/primitive2d/markerarrayprimitive2d.hxx> 41#include <drawinglayer/primitive2d/pointarrayprimitive2d.hxx> 42#include <drawinglayer/primitive2d/wrongspellprimitive2d.hxx> 43#include <drawinglayer/primitive2d/controlprimitive2d.hxx> 44#include <com/sun/star/awt/XWindow2.hpp> 45#include <drawinglayer/primitive2d/unifiedtransparenceprimitive2d.hxx> 46#include <drawinglayer/primitive2d/pagepreviewprimitive2d.hxx> |
47#include <drawinglayer/primitive2d/chartprimitive2d.hxx> 48#include <helperchartrenderer.hxx> | |
49#include <helperwrongspellrenderer.hxx> 50#include <drawinglayer/primitive2d/fillhatchprimitive2d.hxx> 51#include <basegfx/polygon/b2dpolygontools.hxx> 52#include <vcl/hatch.hxx> 53#include <tools/diagnose_ex.h> 54#include <com/sun/star/awt/PosSize.hpp> 55#include <drawinglayer/primitive2d/invertprimitive2d.hxx> 56#include <cstdio> --- 385 unchanged lines hidden (view full) --- 442 RenderPolygonStrokePrimitive2D(rPolygonStrokePrimitive); 443 } 444 445 // restore DrawMode 446 mpOutputDevice->SetDrawMode(nOriginalDrawMode); 447 448 break; 449 } | 47#include <helperwrongspellrenderer.hxx> 48#include <drawinglayer/primitive2d/fillhatchprimitive2d.hxx> 49#include <basegfx/polygon/b2dpolygontools.hxx> 50#include <vcl/hatch.hxx> 51#include <tools/diagnose_ex.h> 52#include <com/sun/star/awt/PosSize.hpp> 53#include <drawinglayer/primitive2d/invertprimitive2d.hxx> 54#include <cstdio> --- 385 unchanged lines hidden (view full) --- 440 RenderPolygonStrokePrimitive2D(rPolygonStrokePrimitive); 441 } 442 443 // restore DrawMode 444 mpOutputDevice->SetDrawMode(nOriginalDrawMode); 445 446 break; 447 } |
450 case PRIMITIVE2D_ID_CHARTPRIMITIVE2D : 451 { 452 // chart primitive in pixel renderer; restore original DrawMode during call 453 // since the evtl. used ChartPrettyPainter will use the MapMode 454 const primitive2d::ChartPrimitive2D& rChartPrimitive = static_cast< const primitive2d::ChartPrimitive2D& >(rCandidate); 455 mpOutputDevice->Push(PUSH_MAPMODE); 456 mpOutputDevice->SetMapMode(maOriginalMapMode); 457 458 if(!renderChartPrimitive2D( 459 rChartPrimitive, 460 *mpOutputDevice, 461 getViewInformation2D())) 462 { 463 // fallback to decomposition (MetaFile) 464 process(rChartPrimitive.get2DDecomposition(getViewInformation2D())); 465 } 466 467 mpOutputDevice->Pop(); 468 break; 469 } | |
470 case PRIMITIVE2D_ID_FILLHATCHPRIMITIVE2D : 471 { 472 static bool bForceIgnoreHatchSmoothing(false); 473 474 if(bForceIgnoreHatchSmoothing || getOptionsDrawinglayer().IsAntiAliasing()) 475 { 476 // if AA is used (or ignore smoothing is on), there is no need to smooth 477 // hatch painting, use decomposition --- 134 unchanged lines hidden --- | 448 case PRIMITIVE2D_ID_FILLHATCHPRIMITIVE2D : 449 { 450 static bool bForceIgnoreHatchSmoothing(false); 451 452 if(bForceIgnoreHatchSmoothing || getOptionsDrawinglayer().IsAntiAliasing()) 453 { 454 // if AA is used (or ignore smoothing is on), there is no need to smooth 455 // hatch painting, use decomposition --- 134 unchanged lines hidden --- |