LibreOffice Module sc (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ScTabControl Class Reference

#include <tabcont.hxx>

Inheritance diagram for ScTabControl:
Collaboration diagram for ScTabControl:

Public Member Functions

 ScTabControl (vcl::Window *pParent, ScViewData *pData)
virtual void dispose () override
virtual ~ScTabControl () override
void UpdateInputContext ()
void UpdateStatus ()
void SetSheetLayoutRTL (bool bSheetRTL)
void SwitchToPageId (sal_uInt16 nId)
bool StartDrag (const CommandEvent &rCEvt, vcl::Region &rRegion)
- Public Member Functions inherited from TabBar
 TabBar (vcl::Window *pParent, WinBits nWinStyle)
virtual ~TabBar () override
virtual void dispose () override
virtual void MouseMove (const MouseEvent &rMEvt) override
virtual void MouseButtonDown (const MouseEvent &rMEvt) override
virtual void MouseButtonUp (const MouseEvent &rMEvt) override
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
virtual void Resize () override
virtual void RequestHelp (const HelpEvent &rHEvt) override
virtual void StateChanged (StateChangedType nStateChange) override
virtual void DataChanged (const DataChangedEvent &rDCEvt) override
virtual bool PreNotify (NotifyEvent &rNEvt) override
virtual void Select ()
virtual void DoubleClick ()
void Split ()
virtual void ActivatePage ()
virtual bool DeactivatePage ()
virtual bool StartRenaming ()
virtual TabBarAllowRenamingReturnCode AllowRenaming ()
virtual void EndRenaming ()
virtual void Mirror ()
virtual void InsertPage (sal_uInt16 nPageId, const OUString &rText, TabBarPageBits nBits=TabBarPageBits::NONE, sal_uInt16 nPos=TabBar::APPEND)
void RemovePage (sal_uInt16 nPageId)
void MovePage (sal_uInt16 nPageId, sal_uInt16 nNewPos)
Color GetTabBgColor (sal_uInt16 nPageId) const
void SetTabBgColor (sal_uInt16 nPageId, const Color &aTabBgColor)
void Clear ()
bool IsPageEnabled (sal_uInt16 nPageId) const
void SetPageBits (sal_uInt16 nPageId, TabBarPageBits nBits)
TabBarPageBits GetPageBits (sal_uInt16 nPageId) const
sal_uInt16 GetPageCount () const
sal_uInt16 GetPageId (sal_uInt16 nPos) const
sal_uInt16 GetPagePos (sal_uInt16 nPageId) const
sal_uInt16 GetCurPagePos () const
sal_uInt16 GetPageId (const Point &rPos) const
tools::Rectangle GetPageRect (sal_uInt16 nPageId) const
tools::Rectangle GetPageArea () const
void SetCurPageId (sal_uInt16 nPageId)
sal_uInt16 GetCurPageId () const
void SetFirstPageId (sal_uInt16 nPageId)
void MakeVisible (sal_uInt16 nPageId)
void SelectPage (sal_uInt16 nPageId, bool bSelect)
sal_uInt16 GetSelectPageCount () const
bool IsPageSelected (sal_uInt16 nPageId) const
void SetProtectionSymbol (sal_uInt16 nPageId, bool bProtection)
void SetMaxPageWidth (tools::Long nMaxWidth)
void EnableEditMode ()
bool StartEditMode (sal_uInt16 nPageId)
void EndEditMode (bool bCancel=false)
void SetEditText (const OUString &rText)
const OUString & GetEditText () const
bool IsInEditMode () const
bool IsEditModeCanceled () const
sal_uInt16 GetEditPageId () const
void SetMirrored (bool bMirrored)
bool IsMirrored () const
void SetEffectiveRTL (bool bRTL)
bool IsEffectiveRTL () const
bool StartDrag (const CommandEvent &rCEvt, vcl::Region &rRegion)
sal_uInt16 ShowDropPos (const Point &rPos)
void HideDropPos ()
void SwitchPage (const Point &rPos)
void EndSwitchPage ()
virtual void SetPageText (sal_uInt16 nPageId, const OUString &rText)
OUString GetPageText (sal_uInt16 nPageId) const
OUString GetHelpText (sal_uInt16 nPageId) const
tools::Long GetSplitSize () const
void SetStyle (WinBits nStyle)
WinBits GetStyle () const
void SetScrollAlwaysEnabled (bool bScrollAlwaysEnabled)
Size CalcWindowSizePixel () const
void SetSelectHdl (const Link< TabBar *, void > &rLink)
void SetSplitHdl (const Link< TabBar *, void > &rLink)
void SetScrollAreaContextHdl (const Link< const CommandEvent &, void > &rLink)
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
- Public Member Functions inherited from DropTargetHelper
virtual sal_Int8 AcceptDrop (const AcceptDropEvent &rEvt)
virtual sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt)
 DropTargetHelper (vcl::Window *pWindow)
 DropTargetHelper (const css::uno::Reference< css::datatransfer::dnd::XDropTarget > &rxDropTarget)
void dispose ()
virtual ~DropTargetHelper ()
bool IsDropFormatSupported (SotClipboardFormatId nFormat) const
const DataFlavorExVectorGetDataFlavorExVector () const
- Public Member Functions inherited from DragSourceHelper
virtual void StartDrag (sal_Int8 nAction, const Point &rPosPixel)
 DragSourceHelper (vcl::Window *pWindow)
void dispose ()
virtual ~DragSourceHelper ()

Protected Member Functions

virtual void Select () override
virtual void Command (const CommandEvent &rCEvt) override
virtual void MouseButtonDown (const MouseEvent &rMEvt) override
virtual void MouseButtonUp (const MouseEvent &rMEvt) override
virtual sal_Int8 AcceptDrop (const AcceptDropEvent &rEvt) override
virtual sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt) override
virtual void StartDrag (sal_Int8 nAction, const Point &rPosPixel) override
virtual bool StartRenaming () override
virtual TabBarAllowRenamingReturnCode AllowRenaming () override
virtual void EndRenaming () override
virtual void Mirror () override
virtual void AddTabClick () override
- Protected Member Functions inherited from TabBar
virtual void AddTabClick ()
OUString GetAuxiliaryText (sal_uInt16 nPageId) const
void SetAuxiliaryText (sal_uInt16 nPageId, const OUString &rText)

Private Member Functions

void DoDrag ()
sal_uInt16 GetMaxId () const
SCTAB GetPrivatDropPos (const Point &rPos)
 DECL_LINK (ShowPageList, const CommandEvent &, void)

Private Attributes

sal_uInt16 nMouseClickPageId
sal_uInt16 nSelPageIdByMouse
 Last page ID after mouse button down/up. More...
bool bErrorShown
 Selected page ID, if selected with mouse. More...

Additional Inherited Members

- Static Public Attributes inherited from TabBar
static const sal_uInt16 APPEND
static const sal_uInt16 PAGE_NOT_FOUND

Detailed Description

Definition at line 31 of file tabcont.hxx.

Constructor & Destructor Documentation

◆ ScTabControl()

ScTabControl::ScTabControl ( vcl::Window pParent,
ScViewData pData 

◆ ~ScTabControl()

ScTabControl::~ScTabControl ( )

Definition at line 123 of file tabcont.cxx.

Member Function Documentation

◆ AcceptDrop()

sal_Int8 ScTabControl::AcceptDrop ( const AcceptDropEvent rEvt)

◆ AddTabClick()

void ScTabControl::AddTabClick ( )

◆ AllowRenaming()

TabBarAllowRenamingReturnCode ScTabControl::AllowRenaming ( )

◆ Command()

void ScTabControl::Command ( const CommandEvent rCEvt)


ScTabControl::DECL_LINK ( ShowPageList  ,
const CommandEvent ,

◆ dispose()

void ScTabControl::dispose ( void  )

Reimplemented from TabBar.

Definition at line 128 of file tabcont.cxx.

References DragSourceHelper::dispose(), DropTargetHelper::dispose(), and TabBar::dispose().

◆ DoDrag()

void ScTabControl::DoDrag ( )

◆ EndRenaming()

void ScTabControl::EndRenaming ( )

Reimplemented from TabBar.

Definition at line 651 of file tabcont.cxx.

References ScTabView::ActiveGrabFocus(), ScViewData::GetView(), and pViewData.

◆ ExecuteDrop()

sal_Int8 ScTabControl::ExecuteDrop ( const ExecuteDropEvent rEvt)

◆ GetMaxId()

sal_uInt16 ScTabControl::GetMaxId ( ) const

Definition at line 135 of file tabcont.cxx.

References TabBar::GetPageCount(), and TabBar::GetPageId().

Referenced by SwitchToPageId(), and UpdateStatus().

◆ GetPrivatDropPos()

SCTAB ScTabControl::GetPrivatDropPos ( const Point rPos)

◆ Mirror()

void ScTabControl::Mirror ( )

◆ MouseButtonDown()

void ScTabControl::MouseButtonDown ( const MouseEvent rMEvt)

◆ MouseButtonUp()

void ScTabControl::MouseButtonUp ( const MouseEvent rMEvt)

◆ Select()

void ScTabControl::Select ( )

◆ SetSheetLayoutRTL()

void ScTabControl::SetSheetLayoutRTL ( bool  bSheetRTL)

Definition at line 414 of file tabcont.cxx.

References nSelPageIdByMouse, TabBar::PAGE_NOT_FOUND, and TabBar::SetEffectiveRTL().

◆ StartDrag() [1/2]

bool TabBar::StartDrag ( const CommandEvent rCEvt,
vcl::Region rRegion 

◆ StartDrag() [2/2]

void ScTabControl::StartDrag ( sal_Int8  nAction,
const Point rPosPixel 

Reimplemented from DragSourceHelper.

Definition at line 473 of file tabcont.cxx.

References DoDrag(), ScModule::IsFormulaMode(), ScModule::IsModalMode(), SC_MOD, and TabBar::StartDrag().

◆ StartRenaming()

bool ScTabControl::StartRenaming ( )

Reimplemented from TabBar.

Definition at line 604 of file tabcont.cxx.

References ScViewData::GetDocument(), ScDocument::IsDocEditable(), and pViewData.

◆ SwitchToPageId()

void ScTabControl::SwitchToPageId ( sal_uInt16  nId)

◆ UpdateInputContext()

void ScTabControl::UpdateInputContext ( )

◆ UpdateStatus()

void ScTabControl::UpdateStatus ( )

Member Data Documentation

◆ bErrorShown

bool ScTabControl::bErrorShown

Selected page ID, if selected with mouse.

Definition at line 37 of file tabcont.hxx.

Referenced by AllowRenaming().

◆ nMouseClickPageId

sal_uInt16 ScTabControl::nMouseClickPageId

Definition at line 35 of file tabcont.hxx.

Referenced by MouseButtonDown(), MouseButtonUp(), and Select().

◆ nSelPageIdByMouse

sal_uInt16 ScTabControl::nSelPageIdByMouse

Last page ID after mouse button down/up.

Definition at line 36 of file tabcont.hxx.

Referenced by Mirror(), Select(), and SetSheetLayoutRTL().

◆ pViewData

ScViewData* ScTabControl::pViewData

The documentation for this class was generated from the following files: