Kaydet (Commit) c0b3d5be authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Try harder to bypass avmedia on non-desktop for now

Change-Id: I8a45f7436383cb904d375d0f0d86416f3ce56567
üst dfd893dd
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <config_features.h>
#include "sal/config.h" #include "sal/config.h"
#include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/lang/XComponent.hpp>
...@@ -3394,7 +3396,9 @@ SdrObject* SdrObjFactory::MakeNewObject(sal_uInt32 nInvent, sal_uInt16 nIdent, S ...@@ -3394,7 +3396,9 @@ SdrObject* SdrObjFactory::MakeNewObject(sal_uInt32 nInvent, sal_uInt16 nIdent, S
case sal_uInt16(OBJ_PAGE ): pObj=new SdrPageObj; break; case sal_uInt16(OBJ_PAGE ): pObj=new SdrPageObj; break;
case sal_uInt16(OBJ_UNO ): pObj=new SdrUnoObj(OUString()); break; case sal_uInt16(OBJ_UNO ): pObj=new SdrUnoObj(OUString()); break;
case sal_uInt16(OBJ_CUSTOMSHAPE ): pObj=new SdrObjCustomShape(); break; case sal_uInt16(OBJ_CUSTOMSHAPE ): pObj=new SdrObjCustomShape(); break;
#if HAVE_FEATURE_DESKTOP
case sal_uInt16(OBJ_MEDIA ): pObj=new SdrMediaObj(); break; case sal_uInt16(OBJ_MEDIA ): pObj=new SdrMediaObj(); break;
#endif
case sal_uInt16(OBJ_TABLE ): pObj=new ::sdr::table::SdrTableObj(pModel); break; case sal_uInt16(OBJ_TABLE ): pObj=new ::sdr::table::SdrTableObj(pModel); break;
case sal_uInt16(OBJ_OPENGL ): pObj=new SdrOpenGLObj; break; case sal_uInt16(OBJ_OPENGL ): pObj=new SdrOpenGLObj; break;
} }
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <config_features.h>
#include <com/sun/star/document/EventObject.hpp> #include <com/sun/star/document/EventObject.hpp>
#include <com/sun/star/lang/DisposedException.hpp> #include <com/sun/star/lang/DisposedException.hpp>
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
...@@ -536,11 +538,13 @@ void SvxDrawPage::GetTypeAndInventor( sal_uInt16& rType, sal_uInt32& rInventor, ...@@ -536,11 +538,13 @@ void SvxDrawPage::GetTypeAndInventor( sal_uInt16& rType, sal_uInt32& rInventor,
rInventor = SdrInventor; rInventor = SdrInventor;
rType = OBJ_TABLE; rType = OBJ_TABLE;
} }
#if HAVE_FEATURE_DESKTOP
else if ( aName == "com.sun.star.presentation.MediaShape" ) else if ( aName == "com.sun.star.presentation.MediaShape" )
{ {
rInventor = SdrInventor; rInventor = SdrInventor;
rType = OBJ_MEDIA; rType = OBJ_MEDIA;
} }
#endif
} }
else if(nTempType & E3D_INVENTOR_FLAG) else if(nTempType & E3D_INVENTOR_FLAG)
{ {
...@@ -732,9 +736,11 @@ SvxShape* SvxDrawPage::CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt3 ...@@ -732,9 +736,11 @@ SvxShape* SvxDrawPage::CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt3
case OBJ_CUSTOMSHAPE: case OBJ_CUSTOMSHAPE:
pRet = new SvxCustomShape( pObj ); pRet = new SvxCustomShape( pObj );
break; break;
#if HAVE_FEATURE_DESKTOP
case OBJ_MEDIA: case OBJ_MEDIA:
pRet = new SvxMediaShape( pObj, referer ); pRet = new SvxMediaShape( pObj, referer );
break; break;
#endif
case OBJ_TABLE: case OBJ_TABLE:
pRet = new SvxTableShape( pObj ); pRet = new SvxTableShape( pObj );
break; break;
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <config_features.h>
#include <hintids.hxx> #include <hintids.hxx>
#include <comphelper/string.hxx> #include <comphelper/string.hxx>
#include <svl/globalnameitem.hxx> #include <svl/globalnameitem.hxx>
...@@ -224,6 +226,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) ...@@ -224,6 +226,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
rReq.Done(); rReq.Done();
break; break;
#if HAVE_FEATURE_DESKTOP
case SID_INSERT_AVMEDIA: case SID_INSERT_AVMEDIA:
rReq.SetReturnValue(SfxBoolItem(nSlot, InsertMediaDlg( rReq ))); rReq.SetReturnValue(SfxBoolItem(nSlot, InsertMediaDlg( rReq )));
break; break;
...@@ -267,6 +270,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) ...@@ -267,6 +270,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
} }
} }
break; break;
#endif
case SID_INSERT_OBJECT: case SID_INSERT_OBJECT:
case SID_INSERT_PLUGIN: case SID_INSERT_PLUGIN:
......
...@@ -337,13 +337,14 @@ void SwView::SelectShell() ...@@ -337,13 +337,14 @@ void SwView::SelectShell()
m_pShell = new SwBezierShell( *this ); m_pShell = new SwBezierShell( *this );
rDispatcher.Push( *m_pShell ); rDispatcher.Push( *m_pShell );
} }
#if HAVE_FEATURE_DESKTOP
else if( m_nSelectionType & nsSelectionType::SEL_MEDIA ) else if( m_nSelectionType & nsSelectionType::SEL_MEDIA )
{ {
eShellMode = SHELL_MODE_MEDIA; eShellMode = SHELL_MODE_MEDIA;
m_pShell = new SwMediaShell( *this ); m_pShell = new SwMediaShell( *this );
rDispatcher.Push( *m_pShell ); rDispatcher.Push( *m_pShell );
} }
#endif
if (m_nSelectionType & nsSelectionType::SEL_EXTRUDED_CUSTOMSHAPE) if (m_nSelectionType & nsSelectionType::SEL_EXTRUDED_CUSTOMSHAPE)
{ {
eShellMode = SHELL_MODE_EXTRUDED_CUSTOMSHAPE; eShellMode = SHELL_MODE_EXTRUDED_CUSTOMSHAPE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment