29 #include <document.hxx>
31 #define ShellClass_ScAuditingShell
32 #include <scslots.hxx>
39 GetStaticInterface()->RegisterPopupMenu(
"audit");
45 nFunction( SID_FILL_ADD_PRED )
52 pMgr->SetMaxUndoActionCount( 0 );
65 sal_uInt16 nSlot = rReq.
GetSlot();
68 case SID_FILL_ADD_PRED:
69 case SID_FILL_DEL_PRED:
70 case SID_FILL_ADD_SUCC:
71 case SID_FILL_DEL_SUCC:
90 if ( pReqArgs->
GetItemState( SID_RANGE_COL,
true, &pXItem ) == SfxItemState::SET
91 && pReqArgs->
GetItemState( SID_RANGE_ROW,
true, &pYItem ) == SfxItemState::SET )
93 OSL_ENSURE( dynamic_cast<const SfxInt16Item*>( pXItem) !=
nullptr && dynamic_cast<const SfxInt32Item*>( pYItem) !=
nullptr,
101 case SID_FILL_ADD_PRED:
104 case SID_FILL_DEL_PRED:
107 case SID_FILL_ADD_SUCC:
110 case SID_FILL_DEL_SUCC:
#define SFX_IMPL_INTERFACE(Class, SuperClass)
void GetState(SfxItemSet &rSet)
void SetAuditShell(bool bActive)
ScDocument & GetDocument() const
virtual SfxUndoManager * GetUndoManager()
const SfxItemSet * GetArgs() const
void Invalidate(sal_uInt16 nId)
SC_DLLPUBLIC void MoveCursorAbs(SCCOL nCurX, SCROW nCurY, ScFollowMode eMode, bool bShift, bool bControl, bool bKeepOld=false, bool bKeepSel=false)
void Execute(const SfxRequest &rReq)
void SetUndoManager(SfxUndoManager *pNewUndoMgr)
SfxItemPool & GetPool() const
ScTabViewShell * GetViewShell() const
ScAuditingShell(ScViewData &rData)
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
SfxBindings & GetBindings()
void SetPool(SfxItemPool *pNewPool)
void SetName(const OUString &rName)
ScDBFunc * GetView() const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
sal_uInt16 GetSlot() const
static const OUString & GetContextName(const Context eContext)
virtual ~ScAuditingShell() override
SfxObjectShell * GetSfxDocShell() const
bool IsUndoEnabled() const
void SetContextName(const OUString &rsContextName)