28#include <svx/svxids.hrc>
33#include <drawview.hxx>
38#define ShellClass_ScGraphicShell
46 SfxVisibilityFlags::Standard | SfxVisibilityFlags::Server,
47 ToolbarId::Graphic_Objectbar);
49 GetStaticInterface()->RegisterPopupMenu(
"graphic");
93 if(
auto pGraphicObj =
dynamic_cast<SdrGrafObj*
>( pObj) )
94 if( pGraphicObj->GetGraphicType() == GraphicType::Bitmap )
111 if(
auto pGraphicObj =
dynamic_cast<SdrGrafObj*
>( pObj) )
112 if( pGraphicObj->GetGraphicType() == GraphicType::Bitmap )
116 if( SvxGraphicFilterResult::NONE ==
126 pFilteredObj->SetGraphicObject( aFilterObj );
141 bool bEnable =
false;
146 if(
auto pGraphicObj =
dynamic_cast<SdrGrafObj*
>( pObj) )
147 if( pGraphicObj->GetGraphicType() == GraphicType::Bitmap )
167 if(
auto pGraphicObj =
dynamic_cast<SdrGrafObj*
>( pObj) )
168 if( pGraphicObj->GetGraphicType() == GraphicType::Bitmap )
170 GraphicObject aGraphicObject( pGraphicObj->GetGraphicObject() );
172 pView, pGraphicObj));
184 bool bEnable =
false;
189 if(
auto pGraphicObj =
dynamic_cast<const SdrGrafObj*
>( pObj) )
190 if( pGraphicObj->GetGraphicType() == GraphicType::Bitmap )
207 if(
auto pGraphicObj =
dynamic_cast<SdrGrafObj*
>( pObj) )
208 if( pGraphicObj->GetGraphicType() == GraphicType::Bitmap )
211 if (dialog.run() ==
RET_OK)
230 bool bEnable =
false;
235 if(
auto pGraphicObj =
dynamic_cast<const SdrGrafObj*
>( pObj) )
236 if( pGraphicObj->GetGraphicType() == GraphicType::Bitmap )
253 if(
auto pGraphicObj =
dynamic_cast<const SdrGrafObj*
>( pObj) )
254 if( pGraphicObj->GetGraphicType() == GraphicType::Bitmap )
308 bool bEnable =
false;
313 if(
auto pGraphicObj =
dynamic_cast<const SdrGrafObj*
>( pObj) )
314 if( pGraphicObj->GetGraphicType() == GraphicType::Bitmap )
334 if(
auto pGraphicObj =
dynamic_cast<SdrGrafObj*
>( pObj) )
335 if( pGraphicObj->GetGraphicType() == GraphicType::Bitmap )
347 pNewObject->SetGraphic( aGraphic );
365 bool bEnable =
false;
370 if(
auto pGrafObj =
dynamic_cast<const SdrGrafObj*
>( pObj) )
371 if( pGrafObj->GetGraphicType() == GraphicType::Bitmap )
rtl::Reference< SdrGrafObj > GetCompressedSdrGrafObj()
static OUString ExportGraphic(weld::Window *pWin, const Graphic &rGraphic, const OUString &rGraphicName)
static short HasToSaveTransformedImage(weld::Widget *pWin)
const Graphic & GetGraphic() const
ScViewData & GetViewData()
void GetExternalEditState(SfxItemSet &rSet)
void Execute(SfxRequest &rReq)
void GetCompressGraphicState(SfxItemSet &rSet)
void ExecuteCropGraphic(SfxRequest &rReq)
void ExecuteFilter(const SfxRequest &rReq)
void ExecuteCompressGraphic(SfxRequest &rReq)
void GetChangePictureState(SfxItemSet &rSet)
void GetSaveGraphicState(SfxItemSet &rSet)
void GetCropGraphicState(SfxItemSet &rSet)
void ExecuteSaveGraphic(SfxRequest &rReq)
std::vector< std::unique_ptr< SdrExternalToolEdit > > m_ExternalEdits
void ExecuteChangePicture(SfxRequest &rReq)
void GetFilterState(SfxItemSet &rSet)
void ExecuteExternalEdit(SfxRequest &rReq)
void GetAttrState(SfxItemSet &rSet)
ScGraphicShell(ScViewData &rData)
virtual ~ScGraphicShell() override
ScGridWindow * GetActiveWin()
ScDrawView * GetScDrawView()
void SetEditMode(SdrViewEditMode eMode)
void ReplaceObjectAtView(SdrObject *pOldObj, SdrPageView &rPV, SdrObject *pNewObj, bool bMark=true)
GraphicAttr GetGraphicAttr(SdrGrafObjTransformsAttrs nTransformFlags=SdrGrafObjTransformsAttrs::ALL) const
Graphic GetTransformedGraphic(SdrGrafObjTransformsAttrs nTransformFlags=SdrGrafObjTransformsAttrs::ALL) const
GraphicType GetGraphicType() const
const GraphicObject & GetGraphicObject(bool bForceSwapIn=false) const
size_t GetMarkCount() const
SdrMark * GetMark(size_t nNum) const
void SetDragMode(SdrDragMode eMode)
const SdrMarkList & GetMarkedObjectList() const
OUString const & GetDescriptionOfMarkedObjects() const
SdrObject * GetMarkedSdrObj() const
static rtl::Reference< T > Clone(T const &rObj, SdrModel &rTargetModel)
SdrPageView * GetSdrPageView() const
void DisableItem(sal_uInt16 nWhich)
void SetContextName(const OUString &rsContextName)
virtual void Invalidate(sal_uInt16 nId=0)
virtual SfxObjectShell * GetObjectShell()
void SetName(const OUString &rName)
static void ExecuteGrafAttr(SfxRequest &rReq, SdrView &rView)
static void GetGrafAttrState(SfxItemSet &rSet, SdrView const &rView)
static SvxGraphicFilterResult ExecuteGrfFilterSlot(SfxRequest const &rReq, GraphicObject &rFilterObject)
static void DisableGraphicFilterSlots(SfxItemSet &rSet)
ErrCode GetGraphic(Graphic &) const
static const OUString & GetContextName(const Context eContext)
weld::Window * GetFrameWeld() const
virtual SfxBindings & GetBindings() override
#define SFX_OBJECTBAR_OBJECT
OUString ScResId(TranslateId aId)
#define SFX_IMPL_INTERFACE(Class, SuperClass)