summaryrefslogtreecommitdiff
path: root/sc/source/ui/pagedlg/tphfedit.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/pagedlg/tphfedit.cxx')
-rw-r--r--sc/source/ui/pagedlg/tphfedit.cxx93
1 files changed, 0 insertions, 93 deletions
diff --git a/sc/source/ui/pagedlg/tphfedit.cxx b/sc/source/ui/pagedlg/tphfedit.cxx
index a2da0b30da8d..fbb75dfacfe7 100644
--- a/sc/source/ui/pagedlg/tphfedit.cxx
+++ b/sc/source/ui/pagedlg/tphfedit.cxx
@@ -335,97 +335,4 @@ css::uno::Reference< css::accessibility::XAccessible > ScEditWindow::CreateAcces
return pAcc;
}
-ScExtIButton::ScExtIButton(vcl::Window* pParent, WinBits nBits )
- : ImageButton(pParent,nBits),
- aIdle("sc pagedlg ScExtIButton"),
- pPopupMenu(nullptr)
-{
- nSelected=0;
- aIdle.SetPriority(TaskPriority::LOWEST);
- SetDropDown(PushButtonDropdownStyle::Toolbox);
-}
-
-ScExtIButton::~ScExtIButton()
-{
- disposeOnce();
-}
-
-void ScExtIButton::dispose()
-{
- pPopupMenu.clear();
- ImageButton::dispose();
-}
-
-VCL_BUILDER_FACTORY_ARGS(ScExtIButton, 0 /* WB_BORDER|WB_TABSTOP */)
-
-void ScExtIButton::SetPopupMenu(PopupMenu* pPopUp)
-{
- pPopupMenu=pPopUp;
-}
-
-void ScExtIButton::MouseButtonDown( const MouseEvent& rMEvt )
-{
- if(!aIdle.IsActive())
- {
- aIdle.SetInvokeHandler(LINK( this, ScExtIButton, TimerHdl));
- aIdle.Start();
- }
-
- ImageButton::MouseButtonDown(rMEvt );
-}
-
-void ScExtIButton::MouseButtonUp( const MouseEvent& rMEvt)
-{
- aIdle.Stop();
- aIdle.ClearInvokeHandler();
- ImageButton::MouseButtonUp(rMEvt );
-}
-
-void ScExtIButton::Click()
-{
- aIdle.Stop();
- aIdle.ClearInvokeHandler();
- ImageButton::Click();
-}
-
-void ScExtIButton::StartPopup()
-{
- nSelected=0;
- aSelectedIdent.clear();
-
- if(pPopupMenu!=nullptr)
- {
- SetPressed( true );
- EndSelection();
- Point aPoint(0,0);
- aPoint.setY(GetOutputSizePixel().Height() );
-
- nSelected = pPopupMenu->Execute( this, aPoint );
-
- if(nSelected)
- {
- aSelectedIdent = pPopupMenu->GetItemIdent(nSelected);
- aMLink.Call(*this);
- }
-
- SetPressed( false);
- }
-}
-
-bool ScExtIButton::PreNotify( NotifyEvent& rNEvt )
-{
- MouseNotifyEvent nSwitch=rNEvt.GetType();
- if(nSwitch==MouseNotifyEvent::MOUSEBUTTONUP)
- {
- MouseButtonUp(*rNEvt.GetMouseEvent());
- }
-
- return ImageButton::PreNotify(rNEvt );
-}
-
-IMPL_LINK_NOARG(ScExtIButton, TimerHdl, Timer *, void)
-{
- StartPopup();
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */