diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-07-06 05:23:43 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2012-07-06 05:23:43 -0430 |
commit | 5eb74b1fcad83c605cc00e377460e0ae313d7277 (patch) | |
tree | dae1a098290f55460e0da0a024105c1e28e19410 /svx/source/sdr | |
parent | dafa1f576482bc7a0086c353ffff0dbd594a7915 (diff) | |
parent | fa99c1ea4f6d450cc12998d4513ed8cf77bafcc9 (diff) |
Merge branch 'feature/template-dialog'
Conflicts:
sfx2/Library_sfx.mk
sfx2/inc/sfx2/sfxcommands.h
sfx2/inc/sfx2/sfxsids.hrc
sfx2/source/appl/appserv.cxx
svtools/Library_svt.mk
Change-Id: I4305d81cb5fd6f5192a29f85835c78f31310b0d6
Diffstat (limited to 'svx/source/sdr')
7 files changed, 17 insertions, 109 deletions
diff --git a/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx b/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx index 638feed24d31..4a6ac5189992 100644 --- a/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx +++ b/svx/source/sdr/contact/objectcontactofobjlistpainter.cxx @@ -26,7 +26,7 @@ #include <svx/svdmodel.hxx> #include <drawinglayer/processor2d/vclprocessor2d.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> -#include <svx/sdr/contact/objectcontacttools.hxx> +#include <drawinglayer/processor2d/processorfromoutputdevice.hxx> #include <svx/unoapi.hxx> ////////////////////////////////////////////////////////////////////////////// @@ -128,8 +128,9 @@ namespace sdr // if there is something to show, use a vclProcessor to render it if(xPrimitiveSequence.hasElements()) { - drawinglayer::processor2d::BaseProcessor2D* pProcessor2D = createBaseProcessor2DFromOutputDevice( - *pTargetDevice, getViewInformation2D()); + drawinglayer::processor2d::BaseProcessor2D* pProcessor2D = + drawinglayer::processor2d::createBaseProcessor2DFromOutputDevice( + *pTargetDevice, getViewInformation2D()); if(pProcessor2D) { diff --git a/svx/source/sdr/contact/objectcontactofpageview.cxx b/svx/source/sdr/contact/objectcontactofpageview.cxx index 5c62adb0b067..ac24a00b662b 100644 --- a/svx/source/sdr/contact/objectcontactofpageview.cxx +++ b/svx/source/sdr/contact/objectcontactofpageview.cxx @@ -32,7 +32,7 @@ #include <drawinglayer/processor2d/vclprocessor2d.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> #include <drawinglayer/primitive2d/transformprimitive2d.hxx> -#include <svx/sdr/contact/objectcontacttools.hxx> +#include <drawinglayer/processor2d/processorfromoutputdevice.hxx> #include <com/sun/star/rendering/XSpriteCanvas.hpp> #include <svx/unoapi.hxx> @@ -250,8 +250,9 @@ namespace sdr pOutDev->SetLayoutMode(0); // reset, default is no BiDi/RTL // create renderer - drawinglayer::processor2d::BaseProcessor2D* pProcessor2D = createBaseProcessor2DFromOutputDevice( - rTargetOutDev, getViewInformation2D()); + drawinglayer::processor2d::BaseProcessor2D* pProcessor2D = + drawinglayer::processor2d::createBaseProcessor2DFromOutputDevice( + rTargetOutDev, getViewInformation2D()); if(pProcessor2D) { diff --git a/svx/source/sdr/contact/objectcontacttools.cxx b/svx/source/sdr/contact/objectcontacttools.cxx deleted file mode 100644 index 173075c3e26b..000000000000 --- a/svx/source/sdr/contact/objectcontacttools.cxx +++ /dev/null @@ -1,96 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - - -#include <svx/sdr/contact/objectcontacttools.hxx> -#include <vcl/outdev.hxx> -#include <basegfx/matrix/b2dhommatrix.hxx> -#include <basegfx/range/b2drange.hxx> -#include <vcl/gdimtf.hxx> -#include <basegfx/tools/canvastools.hxx> -#include <drawinglayer/processor2d/vclmetafileprocessor2d.hxx> -#include <drawinglayer/processor2d/vclpixelprocessor2d.hxx> -#include <drawinglayer/processor2d/canvasprocessor.hxx> -#include <vcl/window.hxx> - -////////////////////////////////////////////////////////////////////////////// - -using namespace com::sun::star; - -////////////////////////////////////////////////////////////////////////////// - -namespace sdr -{ - namespace contact - { - drawinglayer::processor2d::BaseProcessor2D* createBaseProcessor2DFromOutputDevice( - OutputDevice& rTargetOutDev, - const drawinglayer::geometry::ViewInformation2D& rViewInformation2D) - { - const GDIMetaFile* pMetaFile = rTargetOutDev.GetConnectMetaFile(); - const bool bOutputToRecordingMetaFile(pMetaFile && pMetaFile->IsRecord() && !pMetaFile->IsPause()); - - if(bOutputToRecordingMetaFile) - { - // create MetaFile Vcl-Processor and process - return new drawinglayer::processor2d::VclMetafileProcessor2D(rViewInformation2D, rTargetOutDev); - } - else - { -#ifdef WIN32 - // for a first AA incarnation VCL-PixelRenderer will be okay since - // simple (and fast) GDIPlus support over VCL will be used. - // Leaving the code below as a hint for what to do when we will - // use canvas renderers in the future - - //static SvtOptionsDrawinglayer aSvtOptionsDrawinglayer; - - //if(false && aSvtOptionsDrawinglayer.IsAntiAliasing()) - //{ - // // for WIN32 AA, create cairo canvas processor - // return new drawinglayer::processor2d::canvasProcessor2D(rViewInformation2D, rTargetOutDev); - //} - //else - //{ - // create Pixel Vcl-Processor - return new drawinglayer::processor2d::VclPixelProcessor2D(rViewInformation2D, rTargetOutDev); - //} -#else - static bool bTryTestCanvas(false); - - if(bTryTestCanvas) - { - // create test-cancas-Processor - return new drawinglayer::processor2d::canvasProcessor2D(rViewInformation2D, rTargetOutDev); - } - else - { - // create Pixel Vcl-Processor - return new drawinglayer::processor2d::VclPixelProcessor2D(rViewInformation2D, rTargetOutDev); - } -#endif - } - } - } // end of namespace contact -} // end of namespace sdr - -////////////////////////////////////////////////////////////////////////////// -// eof - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx b/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx index 4b6eb2280b69..e1d0950d12a3 100644 --- a/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx @@ -31,6 +31,7 @@ #include <svx/svdomedia.hxx> #include <svx/sdr/contact/viewobjectcontactofsdrmediaobj.hxx> #include <drawinglayer/primitive2d/mediaprimitive2d.hxx> +#include <avmedia/mediawindow.hxx> namespace sdr { namespace contact { @@ -150,7 +151,8 @@ namespace sdr const sal_uInt32 nPixelBorder(4L); const drawinglayer::primitive2d::Primitive2DReference xRetval( new drawinglayer::primitive2d::MediaPrimitive2D( - aTransform, rURL, aBackgroundColor, nPixelBorder)); + aTransform, rURL, aBackgroundColor, nPixelBorder, + avmedia::MediaWindow::grabFrame(rURL, true))); return drawinglayer::primitive2d::Primitive2DSequence(&xRetval, 1); } diff --git a/svx/source/sdr/overlay/overlaymanager.cxx b/svx/source/sdr/overlay/overlaymanager.cxx index 236775b15647..2bd3e51a0fcf 100644 --- a/svx/source/sdr/overlay/overlaymanager.cxx +++ b/svx/source/sdr/overlay/overlaymanager.cxx @@ -36,7 +36,7 @@ #include <svx/sdr/overlay/overlayobject.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> #include <drawinglayer/processor2d/baseprocessor2d.hxx> -#include <svx/sdr/contact/objectcontacttools.hxx> +#include <drawinglayer/processor2d/processorfromoutputdevice.hxx> ////////////////////////////////////////////////////////////////////////////// @@ -58,9 +58,10 @@ namespace sdr const bool bIsAntiAliasing(getDrawinglayerOpt().IsAntiAliasing()); // create processor - drawinglayer::processor2d::BaseProcessor2D* pProcessor = ::sdr::contact::createBaseProcessor2DFromOutputDevice( - rDestinationDevice, - getCurrentViewInformation2D()); + drawinglayer::processor2d::BaseProcessor2D* pProcessor = + ::drawinglayer::processor2d::createBaseProcessor2DFromOutputDevice( + rDestinationDevice, + getCurrentViewInformation2D()); if(pProcessor) { diff --git a/svx/source/sdr/overlay/overlayobject.cxx b/svx/source/sdr/overlay/overlayobject.cxx index cd1d709a4f6b..e2ad9f13d9d0 100644 --- a/svx/source/sdr/overlay/overlayobject.cxx +++ b/svx/source/sdr/overlay/overlayobject.cxx @@ -36,7 +36,6 @@ #include <basegfx/polygon/b2dpolypolygon.hxx> #include <basegfx/polygon/b2dpolygontools.hxx> #include <basegfx/polygon/b2dpolypolygontools.hxx> -#include <svx/sdr/contact/objectcontacttools.hxx> #include <drawinglayer/primitive2d/polygonprimitive2d.hxx> ////////////////////////////////////////////////////////////////////////////// diff --git a/svx/source/sdr/overlay/overlayprimitive2dsequenceobject.cxx b/svx/source/sdr/overlay/overlayprimitive2dsequenceobject.cxx index a03823bc4ec3..55ddf1b4da12 100644 --- a/svx/source/sdr/overlay/overlayprimitive2dsequenceobject.cxx +++ b/svx/source/sdr/overlay/overlayprimitive2dsequenceobject.cxx @@ -21,7 +21,7 @@ #include <svx/sdr/overlay/overlayprimitive2dsequenceobject.hxx> #include <drawinglayer/geometry/viewinformation2d.hxx> #include <drawinglayer/processor2d/vclpixelprocessor2d.hxx> -#include <svx/sdr/contact/objectcontacttools.hxx> +#include <drawinglayer/processor2d/processorfromoutputdevice.hxx> #include <svx/sdr/overlay/overlaymanager.hxx> ////////////////////////////////////////////////////////////////////////////// |