44 AddFormat( SotClipboardFormatId::STARDRAW_TABBAR );
59 DragSourceHelper( this ),
60 DropTargetHelper( this ),
65 SetSizePixel(
Size(0, 0));
77 DragSourceHelper::dispose();
78 DropTargetHelper::dispose();
85 pDispatcher->
Execute(SID_SWITCHPAGE, SfxCallMode::ASYNCHRON |
104 pDispatcher->
Execute(SID_INSERTPAGE_QUICK,
105 SfxCallMode::SYNCHRON | SfxCallMode::RECORD);
141 pDispatcher->
Execute( SID_MODIFYPAGE,
142 SfxCallMode::SYNCHRON | SfxCallMode::RECORD );
214 pDispatcher->
Execute(SID_SWITCHPAGE, SfxCallMode::ASYNCHRON | SfxCallMode::RECORD);
236 if ((nPageNumOfCopy <= nPageNum) && (nPageNum != sal_uInt16(-1)))
243 if (nPageNumOfCopy >= nPageNum || (nPageNum == sal_uInt16(-1)))
247 pDispatcher->
Execute(SID_SWITCHPAGE,
248 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD);
276 if ( rCEvt.
GetCommand() == CommandEventId::ContextMenu )
307 if( aCompareName != aNewName )
334 pDispatcher->
Execute(SID_SWITCHPAGE,
335 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD);
346 CallEventListeners (VclEventId::TabbarPageActivated,
352 CallEventListeners (VclEventId::TabbarPageDeactivated,
BaseContainerNodeSharedPtr & mrParent
CommandEventId GetCommand() const
MouseEventModifiers GetMode() const
sal_uInt16 GetModifier() const
sal_uInt16 GetClicks() const
const Point & GetPosPixel() const
SAL_DLLPRIVATE sal_uInt16 DuplicatePage(sal_uInt16 nPageNum)
This method acts as a simplified front end for the more complex <member>DuplicatePage()</member> meth...
SAL_DLLPRIVATE bool MovePages(sal_uInt16 nTargetPage)
const SdrPage * GetPage(sal_uInt16 nPgNum) const
virtual bool IsTextEdit() const final override
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
void ExecutePopup(const OUString &rResName, vcl::Window *pWin=nullptr, const Point *pPos=nullptr)
SfxDispatcher * GetDispatcher()
sal_uInt16 GetEditPageId() const
void SetCurPageId(sal_uInt16 nPageId)
sal_uInt16 ShowDropPos(const Point &rPos)
void SetEditText(const OUString &rText)
const OUString & GetEditText() const
void SetMaxPageWidth(tools::Long nMaxWidth)
bool IsEditModeCanceled() const
OUString GetPageText(sal_uInt16 nPageId) const
sal_uInt16 GetPageId(sal_uInt16 nPos) const
void SwitchPage(const Point &rPos)
sal_uInt16 GetCurPageId() const
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
virtual void dispose() override
bool CheckPageName(weld::Window *pWin, OUString &rName)
checks, if the given name is a valid new name for a slide
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
EditMode GetEditMode() const
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt, DropTargetHelper &rTargetHelper, ::sd::Window *pTargetWindow, sal_uInt16 nPage, SdrLayerID nLayer) override
AcceptDrop.
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt, DropTargetHelper &rTargetHelper, ::sd::Window *pTargetWindow, sal_uInt16 nPage, SdrLayerID nLayer) override
ExecuteDrop.
bool SwitchPage(sal_uInt16 nPage, bool bAllowChangeFocus=true)
Switch to desired page.
bool RenameSlide(sal_uInt16 nPageId, const OUString &rName)
Renames the given slide using an SvxNameDialog.
bool IsSwitchPageAllowed() const
Check if page change is allowed.
PageKind GetPageKind() const
virtual bool GetData(const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override
virtual ~TabControlTransferable() override
virtual void DragFinished(sal_Int8 nDropAction) override
virtual void AddSupportedFormats() override
void SendDeactivatePageEvent()
Inform all listeners of this control that the current page has been deactivated.
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
virtual ~TabControl() override
DrawViewShell * pDrViewSh
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
virtual void EndRenaming() override
virtual bool DeactivatePage() override
virtual void dispose() override
virtual bool StartRenaming() override
virtual void ActivatePage() override
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
virtual TabBarAllowRenamingReturnCode AllowRenaming() override
void SendActivatePageEvent()
Inform all listeners of this control that the current page has been activated.
virtual void DoubleClick() override
TabControl(DrawViewShell *pDrViewSh, vcl::Window *pParent)
virtual void Command(const CommandEvent &rCEvt) override
virtual void StartDrag(sal_Int8 nAction, const Point &rPosPixel) override
virtual void Select() override
SD_DLLPUBLIC DrawDocShell * GetDocSh() const
SdDrawDocument * GetDoc() const
::sd::View * GetView() const
SD_DLLPUBLIC SfxViewFrame * GetViewFrame() const
virtual SdrEndTextEditKind SdrEndTextEdit(bool bDontDeleteReally=false) override
ends current text editing
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
virtual void SetHelpId(const OUString &) override
constexpr OUStringLiteral HID_SD_TABBAR_PAGES
constexpr SdrLayerID SDRLAYER_NOTFOUND(-1)
TabBarAllowRenamingReturnCode
#define DND_ACTION_COPYMOVE
WinBits const WB_SIZEABLE