29#include <svx/svxids.hrc>
46#define ShellClass_TableObjectBar
60 TableObjectBar::RegisterInterface(pMod);
71:
SfxShell( pSdViewShell->GetViewShell() )
73, mpViewSh( pSdViewShell )
119 sal_uInt16 nSlotId = rReq.
GetSlot();
124 case SID_TABLE_INSERT_ROW_DLG:
125 case SID_TABLE_INSERT_ROW_BEFORE:
126 case SID_TABLE_INSERT_ROW_AFTER:
127 case SID_TABLE_INSERT_COL_DLG:
128 case SID_TABLE_INSERT_COL_BEFORE:
129 case SID_TABLE_INSERT_COL_AFTER:
132 if (nSlotId == SID_TABLE_INSERT_ROW_DLG || nSlotId == SID_TABLE_INSERT_COL_DLG)
137 nSlotId == SID_TABLE_INSERT_COL_DLG,
138 SD_MOD()->GetSlotPool()->GetSlot(nSlotId)->GetCommand()) );
140 if (pDlg->Execute() != 1)
145 bool bInsertAfter = (nSlotId == SID_TABLE_INSERT_ROW_AFTER) || (nSlotId == SID_TABLE_INSERT_COL_AFTER);
147 if (nSlotId == SID_TABLE_INSERT_ROW_DLG)
149 nCount = pDlg->getInsertCount();
150 bInsertAfter = !pDlg->isInsertBefore();
152 else if (nSlotId == SID_TABLE_INSERT_COL_DLG)
154 nCount = pDlg->getInsertCount();
155 bInsertAfter = !pDlg->isInsertBefore();
158 if (nSlotId == SID_TABLE_INSERT_ROW_DLG || nSlotId == SID_TABLE_INSERT_ROW_BEFORE || nSlotId == SID_TABLE_INSERT_ROW_AFTER)
159 nSlotId = SID_TABLE_INSERT_ROW;
161 nSlotId = SID_TABLE_INSERT_COL;
177 case SID_ATTR_BORDER:
178 case SID_TABLE_MERGE_CELLS:
179 case SID_TABLE_SPLIT_CELLS:
180 case SID_OPTIMIZE_TABLE:
181 case SID_TABLE_DELETE_ROW:
182 case SID_TABLE_DELETE_COL:
183 case SID_TABLE_DELETE_TABLE:
184 case SID_FORMAT_TABLE_DLG:
185 case SID_TABLE_INSERT_ROW:
186 case SID_TABLE_INSERT_COL:
189 pBindings->
Invalidate( SID_TABLE_DELETE_ROW );
190 pBindings->
Invalidate( SID_TABLE_DELETE_COL );
191 pBindings->
Invalidate( SID_TABLE_DELETE_TABLE );
196 pBindings->
Invalidate( SID_ATTR_FILL_USE_SLIDE_BACKGROUND );
197 pBindings->
Invalidate( SID_ATTR_FILL_TRANSPARENCE );
198 pBindings->
Invalidate( SID_ATTR_FILL_FLOATTRANSPARENCE );
199 pBindings->
Invalidate( SID_TABLE_MERGE_CELLS );
200 pBindings->
Invalidate( SID_TABLE_SPLIT_CELLS );
202 pBindings->
Invalidate( SID_TABLE_VERT_BOTTOM );
203 pBindings->
Invalidate( SID_TABLE_VERT_CENTER );
207 case SID_TABLE_VERT_BOTTOM:
208 case SID_TABLE_VERT_CENTER:
209 case SID_TABLE_VERT_NONE:
211 pBindings->
Invalidate( SID_TABLE_VERT_BOTTOM );
212 pBindings->
Invalidate( SID_TABLE_VERT_CENTER );
void disposeAndReset(reference_type *pBody)
void AdjustMarkHdl(SfxViewShell *pOtherShell=nullptr)
const rtl::Reference< sdr::SelectionController > & getSelectionController() const
void Invalidate(sal_uInt16 nId)
sal_uInt16 GetSlot() const
void SetSlot(sal_uInt16 nNewSlot)
void AppendItem(const SfxPoolItem &)
void SetUndoManager(SfxUndoManager *pNewUndoMgr)
SfxItemPool & GetPool() const
void SetRepeatTarget(SfxRepeatTarget *pTarget)
void SetContextName(const OUString &rsContextName)
void SetPool(SfxItemPool *pNewPool)
void SetName(const OUString &rName)
SfxBindings & GetBindings()
virtual VclPtr< SvxAbstractInsRowColDlg > CreateSvxInsRowColDlg(weld::Window *pParent, bool bCol, const OUString &rHelpId)=0
static SvxAbstractDialogFactory * Create()
virtual SfxUndoManager * GetUndoManager() override
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
void GetAttrState(SfxItemSet &rSet)
Base class of the stacked shell hierarchy.
SD_DLLPUBLIC DrawDocShell * GetDocSh() const
vcl::Window * GetParentWindow() const
Return the window that is the parent of all controls of this view shell.
SD_DLLPUBLIC SfxViewFrame * GetViewFrame() const
ViewShell * GetViewShell() const
virtual ~TableObjectBar() override
::sd::ViewShell * mpViewSh
void GetAttrState(SfxItemSet &rSet)
void GetState(SfxItemSet &rSet)
TableObjectBar(::sd::ViewShell *pSdViewShell, ::sd::View *pSdView)
void Execute(SfxRequest &rReq)
static const OUString & GetContextName(const Context eContext)
weld::Window * GetFrameWeld() const
void RegisterInterfaces(const SfxModule *pMod)
registers the interfaces from the table ui
SfxShell * CreateTableObjectBar(ViewShell &rShell, ::sd::View *pView)
creates a table object bar for the given ViewShell
OUString SdResId(TranslateId aId)
#define SFX_IMPL_INTERFACE(Class, SuperClass)
Reference< XController > xController