diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-06-16 18:59:25 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-06-16 18:59:25 +0200 |
commit | b7f2cad98730ee97805fa1f831613cbfd76a9870 (patch) | |
tree | d22563af3150ba499f1b6455a22ce9810a63f4d6 /sd | |
parent | b7e2a62dec5e9a01b1c83255aedf902f180e4ca0 (diff) |
Revert "Make glTF support an experimental feature"
Actually make it experimental mode was unecessary on master.
This reverts commit 653bac184f579524bc25a9f40281763a736ae6fd.
Conflicts:
sd/qa/unit/import-tests.cxx
xmloff/source/draw/ximpshap.cxx
Change-Id: Ie8747745a9a89ce4d6500a35d15a98e28bda840a
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/import-tests.cxx | 15 | ||||
-rw-r--r-- | sd/source/ui/view/drviews2.cxx | 5 | ||||
-rw-r--r-- | sd/source/ui/view/drviews7.cxx | 11 |
3 files changed, 4 insertions, 27 deletions
diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx index d5917327188e..8d43ea0245a8 100644 --- a/sd/qa/unit/import-tests.cxx +++ b/sd/qa/unit/import-tests.cxx @@ -30,7 +30,6 @@ #include <svx/svdomedia.hxx> #include <svx/svdoole2.hxx> #include <svx/xflclit.hxx> -#include <svtools/miscopt.hxx> #include <animations/animationnodehelper.hxx> #include <com/sun/star/drawing/XDrawPage.hpp> @@ -711,7 +710,6 @@ void SdFiltersTest::testFdo71961() void SdFiltersTest::testMediaEmbedding() { - SvtMiscOptions().SetExperimentalMode(true); ::sd::DrawDocShellRef xDocShRef = loadURL(getURLFromSrc("/sd/qa/unit/data/media_embedding.odp")); #if HAVE_FEATURE_GLTF @@ -729,21 +727,12 @@ void SdFiltersTest::testMediaEmbedding() CPPUNIT_ASSERT_MESSAGE( "missing model", pModelObj != NULL); CPPUNIT_ASSERT_EQUAL( OUString( "vnd.sun.star.Package:Models/duck/duck.json" ), pModelObj->getMediaProperties().getURL()); CPPUNIT_ASSERT_EQUAL( OUString( "model/vnd.gltf+json" ), pModelObj->getMediaProperties().getMimeType()); - - // Check the case when experimental mode is disabled - xDocShRef->DoClose(); - SvtMiscOptions().SetExperimentalMode(false); - xDocShRef = loadURL(getURLFromSrc("/sd/qa/unit/data/media_embedding.odp")); - pDoc = xDocShRef->GetDoc(); - CPPUNIT_ASSERT_MESSAGE( "no document", pDoc != NULL ); - pPage = pDoc->GetPage (1); - CPPUNIT_ASSERT_MESSAGE( "no page", pPage != NULL ); -#endif - +#else // If glTF is not supported, then the fallback image is imported SdrGrafObj *pGrafic = dynamic_cast<SdrGrafObj*>( pPage->GetObj( 2 )); CPPUNIT_ASSERT_MESSAGE( "Could not load glTF fallback image", pGrafic != NULL); CPPUNIT_ASSERT_EQUAL( OUString( "vnd.sun.star.Package:Models/Fallbacks/duck.png" ), pGrafic->GetGrafStreamURL()); +#endif // Second object is a sound SdrMediaObj *pMediaObj = dynamic_cast<SdrMediaObj*>( pPage->GetObj( 3 )); diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index 1e6cf272aba9..2d503cd3fc87 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -79,8 +79,6 @@ #include <svx/xlnstwit.hxx> #include <svx/xlnwtit.hxx> -#include <svtools/miscopt.hxx> - #include <tools/diagnose_ex.h> #include <unotools/useroptions.hxx> @@ -1171,9 +1169,6 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) #if HAVE_FEATURE_GLTF case SID_INSERT_3DMODEL: { - if( !SvtMiscOptions().IsExperimentalMode() ) - break; - SetCurrentFunction( FuInsert3DModel::Create( this, GetActiveWindow(), mpDrawView, GetDoc(), rReq ) ); Cancel(); diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index 2bd235ec3bc6..d57b4a6ad2ba 100644 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -43,8 +43,6 @@ #include <svx/extrusionbar.hxx> #include <svx/fontworkbar.hxx> -#include <svtools/miscopt.hxx> - // #UndoRedo# #include <svl/slstitm.hxx> #include <sfx2/app.hxx> @@ -1662,18 +1660,13 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) } } - bool bDisableInsert3DModel = false; #if !HAVE_FEATURE_GLTF - bDisableInsert3DModel = true; -#else - bDisableInsert3DModel = !SvtMiscOptions().IsExperimentalMode(); -#endif - - if (bDisableInsert3DModel && SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_INSERT_3DMODEL)) + if (SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_INSERT_3DMODEL)) { rSet.DisableItem(SID_INSERT_3DMODEL); rSet.Put(SfxVisibilityItem(SID_INSERT_3DMODEL, false)); } +#endif GetModeSwitchingMenuState (rSet); } |