LibreOffice Module sd (master) 1
|
#include <TabControl.hxx>
Classes | |
class | TabControlTransferable |
Public Member Functions | |
TabControl (DrawViewShell *pDrViewSh, vcl::Window *pParent) | |
virtual void | dispose () override |
virtual | ~TabControl () override |
void | SendActivatePageEvent () |
Inform all listeners of this control that the current page has been activated. More... | |
void | SendDeactivatePageEvent () |
Inform all listeners of this control that the current page has been deactivated. More... | |
Public Member Functions inherited from TabBar | |
TabBar (vcl::Window *pParent, WinBits nWinStyle, bool bSheets=false) | |
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) |
void | SetAddButtonEnabled (bool bAddButtonEnabled) |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () override |
Private Member Functions | |
virtual void | Select () override |
virtual void | DoubleClick () override |
virtual void | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual void | Command (const CommandEvent &rCEvt) override |
virtual bool | StartRenaming () override |
virtual TabBarAllowRenamingReturnCode | AllowRenaming () override |
virtual void | EndRenaming () override |
virtual void | ActivatePage () override |
virtual bool | DeactivatePage () override |
virtual void | StartDrag (sal_Int8 nAction, const Point &rPosPixel) override |
virtual sal_Int8 | AcceptDrop (const AcceptDropEvent &rEvt) override |
virtual sal_Int8 | ExecuteDrop (const ExecuteDropEvent &rEvt) override |
void | DragFinished () |
bool | StartDrag (const CommandEvent &rCEvt, vcl::Region &rRegion) |
Private Attributes | |
DrawViewShell * | pDrViewSh |
bool | bInternalMove |
Friends | |
class | TabControl::TabControlTransferable |
Additional Inherited Members | |
Static Public Attributes inherited from TabBar | |
static const sal_uInt16 | APPEND |
static const sal_uInt16 | PAGE_NOT_FOUND |
Protected Member Functions inherited from TabBar | |
virtual void | AddTabClick () |
OUString | GetAuxiliaryText (sal_uInt16 nPageId) const |
void | SetAuxiliaryText (sal_uInt16 nPageId, const OUString &rText) |
Definition at line 33 of file TabControl.hxx.
TabControl::TabControl | ( | DrawViewShell * | pDrViewSh, |
vcl::Window * | pParent | ||
) |
Definition at line 57 of file tabcontr.cxx.
References TabBar::EnableEditMode(), HID_SD_TABBAR_PAGES, SetHelpId(), TabBar::SetMaxPageWidth(), WB_3DLOOK, WB_BORDER, WB_DRAG, WB_SCROLL, and WB_SIZEABLE.
|
overridevirtual |
Definition at line 70 of file tabcontr.cxx.
|
overrideprivatevirtual |
Definition at line 159 of file tabcontr.cxx.
References sd::DrawViewShell::AcceptDrop(), bInternalMove, DND_ACTION_NONE, TabBar::EndSwitchPage(), sd::ViewShell::GetDoc(), sd::ViewShell::GetDocSh(), sd::DrawViewShell::GetEditMode(), SdrModel::GetPage(), TabBar::GetPageId(), TabBar::HideDropPos(), SfxObjectShell::IsReadOnly(), AcceptDropEvent::maPosPixel, MasterPage, AcceptDropEvent::mbLeaving, AcceptDropEvent::mnAction, nPageId, pDrViewSh, SDRLAYER_NOTFOUND(), TabBar::ShowDropPos(), and TabBar::SwitchPage().
|
overrideprivatevirtual |
Reimplemented from TabBar.
Definition at line 329 of file tabcontr.cxx.
References SfxDispatcher::Execute(), SfxViewFrame::GetDispatcher(), sd::ViewShell::GetViewFrame(), sd::DrawViewShell::IsSwitchPageAllowed(), and pDrViewSh.
|
overrideprivatevirtual |
Reimplemented from TabBar.
Definition at line 300 of file tabcontr.cxx.
References sd::DrawDocShell::CheckPageName(), EndRenaming(), sd::ViewShell::GetDocSh(), TabBar::GetEditPageId(), TabBar::GetEditText(), GetFrameWeld(), TabBar::GetPageText(), pDrViewSh, TabBar::SetEditText(), TABBAR_RENAMING_NO, and TABBAR_RENAMING_YES.
|
overrideprivatevirtual |
Definition at line 274 of file tabcontr.cxx.
References SfxDispatcher::ExecutePopup(), CommandEvent::GetCommand(), SfxViewFrame::GetDispatcher(), sd::ViewShell::GetViewFrame(), and pDrViewSh.
|
overrideprivatevirtual |
Reimplemented from TabBar.
Definition at line 339 of file tabcontr.cxx.
References sd::DrawViewShell::IsSwitchPageAllowed(), and pDrViewSh.
|
overridevirtual |
Reimplemented from TabBar.
Definition at line 75 of file tabcontr.cxx.
References TabBar::dispose().
|
overrideprivatevirtual |
Reimplemented from TabBar.
Definition at line 136 of file tabcontr.cxx.
References SfxDispatcher::Execute(), TabBar::GetCurPageId(), SfxViewFrame::GetDispatcher(), sd::ViewShell::GetViewFrame(), and pDrViewSh.
|
private |
Definition at line 154 of file tabcontr.cxx.
References bInternalMove.
|
overrideprivatevirtual |
Reimplemented from TabBar.
Definition at line 323 of file tabcontr.cxx.
References TabBar::GetEditPageId(), TabBar::GetEditText(), TabBar::IsEditModeCanceled(), pDrViewSh, and sd::DrawViewShell::RenameSlide().
Referenced by AllowRenaming().
|
overrideprivatevirtual |
Definition at line 198 of file tabcontr.cxx.
References bInternalMove, DND_ACTION_COPY, DND_ACTION_MOVE, DND_ACTION_NONE, SdDrawDocument::DuplicatePage(), TabBar::EndSwitchPage(), SfxDispatcher::Execute(), sd::DrawViewShell::ExecuteDrop(), TabBar::GetCurPageId(), SfxViewFrame::GetDispatcher(), sd::ViewShell::GetDoc(), SdrModel::GetPage(), TabBar::GetPageId(), sd::ViewShell::GetViewFrame(), TabBar::HideDropPos(), sd::DrawViewShell::IsSwitchPageAllowed(), ExecuteDropEvent::maPosPixel, ExecuteDropEvent::mnAction, SdDrawDocument::MovePages(), nPageId, pDrViewSh, SDRLAYER_NOTFOUND(), TabBar::SetCurPageId(), TabBar::ShowDropPos(), and sd::DrawViewShell::SwitchPage().
|
overrideprivatevirtual |
Reimplemented from TabBar.
Definition at line 89 of file tabcontr.cxx.
References SfxDispatcher::Execute(), MouseEvent::GetClicks(), SfxViewFrame::GetDispatcher(), MouseEvent::GetMode(), MouseEvent::GetModifier(), TabBar::GetPageId(), MouseEvent::GetPosPixel(), sd::ViewShell::GetViewFrame(), MouseEvent::IsLeft(), MouseEvent::IsMod1(), MouseEvent::IsMod2(), MouseEvent::IsRight(), MouseEvent::IsShift(), MOUSE_LEFT, TabBar::MouseButtonDown(), pDrViewSh, and sd::DrawViewShell::SwitchPage().
|
overrideprivatevirtual |
Reimplemented from TabBar.
Definition at line 82 of file tabcontr.cxx.
References SfxDispatcher::Execute(), SfxViewFrame::GetDispatcher(), sd::ViewShell::GetViewFrame(), and pDrViewSh.
void TabControl::SendActivatePageEvent | ( | ) |
Inform all listeners of this control that the current page has been activated.
Call this method after switching the current page and is not done elsewhere (like when using page up/down keys).
Definition at line 344 of file tabcontr.cxx.
References TabBar::GetCurPageId().
Referenced by sd::FuNavigation::DoExecute(), and sd::FuPoor::KeyInput().
void TabControl::SendDeactivatePageEvent | ( | ) |
Inform all listeners of this control that the current page has been deactivated.
Call this method before switching the current page and is not done elsewhere (like when using page up/down keys).
Definition at line 350 of file tabcontr.cxx.
References TabBar::GetCurPageId().
Referenced by sd::FuNavigation::DoExecute(), and sd::FuPoor::KeyInput().
|
private |
Definition at line 146 of file tabcontr.cxx.
References bInternalMove, DND_ACTION_COPYMOVE, and StartDrag().
Referenced by StartDrag().
|
overrideprivatevirtual |
Reimplemented from TabBar.
Definition at line 283 of file tabcontr.cxx.
References sd::DrawViewShell::GetPageKind(), sd::ViewShell::GetView(), SdrObjEditView::IsTextEdit(), pDrViewSh, sd::View::SdrEndTextEdit(), and Standard.
|
friend |
Definition at line 98 of file TabControl.hxx.
|
private |
Definition at line 57 of file TabControl.hxx.
Referenced by AcceptDrop(), DragFinished(), ExecuteDrop(), and StartDrag().
|
private |
Definition at line 56 of file TabControl.hxx.
Referenced by AcceptDrop(), ActivatePage(), AllowRenaming(), Command(), DeactivatePage(), DoubleClick(), EndRenaming(), ExecuteDrop(), MouseButtonDown(), Select(), and StartRenaming().