29 #include <mediash.hxx>
30 #include <strings.hrc>
32 #include <drawview.hxx>
35 #define ShellClass_ScMediaShell
36 #include <scslots.hxx>
42 GetStaticInterface()->RegisterObjectBar(
SFX_OBJECTBAR_OBJECT, SfxVisibilityFlags::Invisible, ToolbarId::Media_Objectbar);
44 GetStaticInterface()->RegisterPopupMenu(
"media");
71 if( SID_AVMEDIA_TOOLBOX == nWhich )
76 if( 1 == pMarkList->GetMarkCount() )
78 SdrObject* pObj = pMarkList->GetMark( 0 )->GetMarkedSdrObj();
80 if( dynamic_cast<const SdrMediaObj*>( pObj) )
102 if( pView && SID_AVMEDIA_TOOLBOX == rReq.
GetSlot() )
107 if( !pArgs || ( SfxItemState::SET != pArgs->
GetItemState( SID_AVMEDIA_TOOLBOX,
false, &pItem ) ) )
114 if( 1 == pMarkList->GetMarkCount() )
116 SdrObject* pObj = pMarkList->GetMark( 0 )->GetMarkedSdrObj();
118 if( dynamic_cast<const SdrMediaObj*>( pObj) )
121 static_cast< const ::avmedia::MediaItem& >( *pItem ) );
#define SFX_IMPL_INTERFACE(Class, SuperClass)
ScViewData & GetViewData()
const SfxItemSet * GetArgs() const
sdr::contact::ViewContact & GetViewContact() const
ScDrawView * GetScDrawView()
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SdrMarkList & GetMarkedObjectList() const
OUString ScResId(const char *pId)
void SetName(const OUString &rName)
#define SFX_OBJECTBAR_OBJECT
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
sal_uInt16 GetSlot() const
static const OUString & GetContextName(const Context eContext)
void DisableItem(sal_uInt16 nWhich)
virtual void Invalidate(sal_uInt16 nId=0)
void SetContextName(const OUString &rsContextName)