20#include <config_features.h>
32#include <osl/diagnose.h>
35#include <document.hxx>
41#include <com/sun/star/embed/EmbedVerbs.hpp>
47 sal_uInt16 nSlotId = rReq.
GetSlot();
53 if ( nSlotId == SID_OLE_SELECT || nSlotId == SID_OLE_ACTIVATE || nSlotId == SID_OLE_DEACTIVATE )
55 OSL_FAIL(
"old slot SID_OLE...");
61 case SID_OLE_ACTIVATE:
77 if ( nSlotId == SID_OLE_ACTIVATE )
78 pVisibleSh->
DoVerb(css::embed::EmbedVerbs::MS_OLEVERB_PRIMARY);
81 case SID_OLE_DEACTIVATE:
87 case SID_OBJECT_WIDTH:
88 case SID_OBJECT_HEIGHT:
92 if ( pReqArgs && pReqArgs->
GetItemState( nSlotId,
true, &pItem ) == SfxItemState::SET )
109 if ( nSlotId == SID_OBJECT_LEFT )
111 else if ( nSlotId == SID_OBJECT_TOP )
113 else if ( nSlotId == SID_OBJECT_WIDTH )
125#if HAVE_FEATURE_SCRIPTING
137 uno::Reference < embed::XEmbeddedObject > xRet;
163 case SID_ACTIVE_OBJ_NAME:
174 case SID_OBJECT_LEFT:
176 case SID_OBJECT_WIDTH:
177 case SID_OBJECT_HEIGHT:
189 if ( nWhich == SID_OBJECT_LEFT )
191 else if ( nWhich == SID_OBJECT_TOP )
193 else if ( nWhich == SID_OBJECT_WIDTH )
232 OSL_FAIL(
"no accessibility broadcaster?");
static void SetError(ErrCode)
void AddUnoObject(SfxListener &rObject)
void RemoveUnoObject(SfxListener &rObject)
static OUString GetVisibleName(const SdrObject *pObj)
void WriteNewDataToDocument(ScDocument &rDoc) const
Write the new set of password data to the document instance to overwrite the current ones.
void SetDataFromDocument(const ScDocument &rDoc)
void SetDesiredHash(ScPasswordHash eHash)
virtual short run() override
void AddAccessibilityObject(SfxListener &rObject)
bool ExecuteRetypePassDlg(ScPasswordHash eDesiredHash)
void GetObjectState(SfxItemSet &rSet)
void BroadcastAccessibility(const SfxHint &rHint)
void ExecuteObject(const SfxRequest &rReq)
bool SelectObject(std::u16string_view rName)
bool HasAccessibilityObjects() const
std::unique_ptr< SfxBroadcaster > pAccessibilityBroadcaster
void RemoveAccessibilityObject(SfxListener &rObject)
virtual ErrCode DoVerb(sal_Int32 nVerb) override
ScViewData & GetViewData()
ScDrawView * GetScDrawView()
ScDocument & GetDocument() const
SfxObjectShell * GetSfxDocShell() const
void ResizeMarkedObj(const Point &rRef, const Fraction &xFact, const Fraction &yFact, bool bCopy=false)
void MoveMarkedObj(const Size &rSiz, bool bCopy=false)
size_t GetMarkCount() const
SdrMark * GetMark(size_t nNum) const
const SdrMarkList & GetMarkedObjectList() const
SdrObject * GetMarkedSdrObj() const
virtual SdrObjKind GetObjIdentifier() const
virtual const tools::Rectangle & GetLogicRect() const
css::uno::Reference< css::embed::XEmbeddedObject > const & GetObjRef() const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void StartListening(SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
void EndListening(SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
comphelper::EmbeddedObjectContainer & GetEmbeddedObjectContainer() const
sal_uInt16 GetSlot() const
const SfxItemSet * GetArgs() const
weld::Window * GetFrameWeld() const
OUString GetEmbeddedObjectName(const css::uno::Reference< css::embed::XEmbeddedObject > &) const
#define ERRCODE_BASIC_BAD_PARAMETER
static uno::Reference< embed::XEmbeddedObject > lcl_GetSelectedObj(const SdrView *pDrView)
member of ScDrawView?