diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-10 13:13:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-11 10:16:16 +0200 |
commit | 9fa75f677a7b48a2177fe11cca0d00f5a2deb7da (patch) | |
tree | aecf6d5d272166c169935e1563517d020085ee54 /sd | |
parent | 88829fd914105a0837ee41d3f00f9178228c19cf (diff) |
loplugin:mergeclasses merge E3dScene with E3dPolyScene
Change-Id: I70f28fb4c87ad8c0e0ad46f4ce04914b6536d6b9
Reviewed-on: https://gerrit.libreoffice.org/36376
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/inc/pch/precompiled_sd.hxx | 1 | ||||
-rw-r--r-- | sd/source/ui/func/fucon3d.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/func/fudraw.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/func/fusel.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/func/futransf.cxx | 1 | ||||
-rw-r--r-- | sd/source/ui/view/drviews4.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/drviewsj.cxx | 8 |
7 files changed, 11 insertions, 14 deletions
diff --git a/sd/inc/pch/precompiled_sd.hxx b/sd/inc/pch/precompiled_sd.hxx index bb12f7c1a65b..72edaa133137 100644 --- a/sd/inc/pch/precompiled_sd.hxx +++ b/sd/inc/pch/precompiled_sd.hxx @@ -417,7 +417,6 @@ #include <svx/hyperdlg.hxx> #include <svx/imapdlg.hxx> #include <svx/obj3d.hxx> -#include <svx/polysc3d.hxx> #include <svx/ruler.hxx> #include <svx/sdmetitm.hxx> #include <svx/sdooitm.hxx> diff --git a/sd/source/ui/func/fucon3d.cxx b/sd/source/ui/func/fucon3d.cxx index d26f8fd56531..dfbb806136b6 100644 --- a/sd/source/ui/func/fucon3d.cxx +++ b/sd/source/ui/func/fucon3d.cxx @@ -45,7 +45,6 @@ #include "ToolBarManager.hxx" #include <svx/svx3ditems.hxx> -#include <svx/polysc3d.hxx> #include <basegfx/polygon/b2dpolygontools.hxx> using namespace com::sun::star; @@ -374,7 +373,7 @@ SdrObject* FuConstruct3dObject::CreateDefaultObject(const sal_uInt16 nID, const double fW(aVolume.getWidth()); double fH(aVolume.getHeight()); ::tools::Rectangle a3DRect(0, 0, (long)fW, (long)fH); - E3dScene* pScene = new E3dPolyScene(mpView->Get3DDefaultAttributes()); + E3dScene* pScene = new E3dScene(mpView->Get3DDefaultAttributes()); // copied code from E3dView::InitScene double fCamZ(aVolume.getMaxZ() + ((fW + fH) / 4.0)); diff --git a/sd/source/ui/func/fudraw.cxx b/sd/source/ui/func/fudraw.cxx index 25b3483b9a24..404b3be53d65 100644 --- a/sd/source/ui/func/fudraw.cxx +++ b/sd/source/ui/func/fudraw.cxx @@ -35,7 +35,7 @@ #include <svtools/imapobj.hxx> #include <svx/svxids.hrc> #include <svx/obj3d.hxx> -#include <svx/polysc3d.hxx> +#include <svx/scene3d.hxx> #include <sfx2/viewfrm.hxx> #include "anminfo.hxx" @@ -568,7 +568,7 @@ void FuDraw::ForcePointer(const MouseEvent* pMEvt) // test for animation or ImageMap bDefPointer = !SetPointer(pObj, aPnt); - if (bDefPointer && (dynamic_cast< const SdrObjGroup *>( pObj ) != nullptr || dynamic_cast< const E3dPolyScene* >(pObj) != nullptr)) + if (bDefPointer && (dynamic_cast< const SdrObjGroup *>( pObj ) != nullptr || dynamic_cast< const E3dScene* >(pObj) != nullptr)) { // take a glance into the group pObj = mpView->PickObj(aPnt, mpView->getHitTolLog(), pPV, SdrSearchOptions::ALSOONMASTER | SdrSearchOptions::DEEP); @@ -754,7 +754,7 @@ bool FuDraw::RequestHelp(const HelpEvent& rHEvt) bReturn = SetHelpText(pObj, aPosPixel, aVEvt); - if (!bReturn && (dynamic_cast< const SdrObjGroup *>( pObj ) != nullptr || dynamic_cast< const E3dPolyScene* >(pObj) != nullptr)) + if (!bReturn && (dynamic_cast< const SdrObjGroup *>( pObj ) != nullptr || dynamic_cast< const E3dScene* >(pObj) != nullptr)) { // take a glance into the group SdrPageView* pPV = nullptr; diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx index f17998f58024..725ea9f4e54e 100644 --- a/sd/source/ui/func/fusel.cxx +++ b/sd/source/ui/func/fusel.cxx @@ -22,7 +22,7 @@ #include <svx/svddrgmt.hxx> #include <svx/svdpagv.hxx> #include <svx/svdogrp.hxx> -#include <svx/polysc3d.hxx> +#include <svx/scene3d.hxx> #include "drawview.hxx" #include <svtools/imapobj.hxx> #include <svl/urihelper.hxx> @@ -308,7 +308,7 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) if ( ! bSelectionOnly) bReturn = AnimateObj(pObj, aMDPos); - if( !bReturn && (dynamic_cast< const SdrObjGroup *>( pObj ) != nullptr || dynamic_cast< const E3dPolyScene* >(pObj) != nullptr)) + if( !bReturn && (dynamic_cast< const SdrObjGroup *>( pObj ) != nullptr || dynamic_cast< const E3dScene* >(pObj) != nullptr)) { if(rMEvt.GetClicks() == 1) { diff --git a/sd/source/ui/func/futransf.cxx b/sd/source/ui/func/futransf.cxx index d8f33c578bbd..45aeff70c7b5 100644 --- a/sd/source/ui/func/futransf.cxx +++ b/sd/source/ui/func/futransf.cxx @@ -20,7 +20,6 @@ #include "futransf.hxx" #include <svx/dialogs.hrc> -#include <svx/polysc3d.hxx> #include <vcl/msgbox.hxx> #include <sfx2/request.hxx> diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx index fc5d537e2796..064c9a611fe6 100644 --- a/sd/source/ui/view/drviews4.cxx +++ b/sd/source/ui/view/drviews4.cxx @@ -703,7 +703,7 @@ void DrawViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin) } else if( nInv == SdrInventor::E3d ) { - if( nId == E3D_POLYSCENE_ID || nId == E3D_SCENE_ID ) + if( nId == E3D_SCENE_ID ) { if( !mpDrawView->IsGroupEntered() ) aPopupId = "3dscene"; diff --git a/sd/source/ui/view/drviewsj.cxx b/sd/source/ui/view/drviewsj.cxx index cc52eb9e5ab9..fc1f80294393 100644 --- a/sd/source/ui/view/drviewsj.cxx +++ b/sd/source/ui/view/drviewsj.cxx @@ -31,8 +31,8 @@ #include <sfx2/dispatch.hxx> #include <sfx2/request.hxx> #include <svx/svdopath.hxx> -#include <svx/polysc3d.hxx> #include <svx/obj3d.hxx> +#include <svx/scene3d.hxx> #include <sfx2/event.hxx> #include <sfx2/docfile.hxx> #include <rtl/ustrbuf.hxx> @@ -127,14 +127,14 @@ void DrawViewShell::GetMenuStateSel( SfxItemSet &rSet ) /* If it is not a group object or 3D object, we disable "enter group". */ - if( !( ( dynamic_cast< const SdrObjGroup *>( pObj ) != nullptr && nInv == SdrInventor::Default ) || - (dynamic_cast< const E3dPolyScene* >(pObj) != nullptr|| dynamic_cast< const E3dScene* >(pObj) != nullptr /*|| pObj->ISA (E3dCompoundObject) */) ) ) + if( !( ( dynamic_cast< const SdrObjGroup *>( pObj ) != nullptr && nInv == SdrInventor::Default ) || + ( dynamic_cast< const E3dScene* >(pObj) != nullptr ) ) ) { rSet.DisableItem( SID_ENTER_GROUP ); } // If it is not a group object, we disable "ungroup" - if(!(dynamic_cast< const SdrObjGroup *>( pObj ) != nullptr && nInv == SdrInventor::Default)) + if(!(dynamic_cast< const SdrObjGroup *>( pObj ) != nullptr && nInv == SdrInventor::Default)) { rSet.DisableItem(SID_UNGROUP); } |