summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-04-07 09:53:35 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-04-07 10:58:36 +0000
commit6584735bba4b96fbde5c7be55dc6c98878ad059a (patch)
tree5631d4285f83121fef74b055fe4921bbd1a4d2b8 /sfx2
parent1a95e2a2bbdd1b95d97d3e79b1ef0bc5da95a110 (diff)
Remove button handler and let the button dispatch the uno cmd
Change-Id: Iac4d0e1bf96505b02102ae94ca703c00d5348466 Reviewed-on: https://gerrit.libreoffice.org/36252 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewfrm.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 289bae55fb27..12eb84e539b2 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1156,7 +1156,7 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
VclPtrInstance<PushButton> xSignButton(&GetWindow());
xSignButton->SetText(SfxResId(STR_READONLY_SIGN));
xSignButton->SetSizePixel(xSignButton->GetOptimalSize());
- xSignButton->SetClickHdl(LINK(this, SfxViewFrame, SignDocumentHandler));
+ xSignButton->SetCommandHandler(".uno:Signature", false);
pInfoBar->addButton(xSignButton);
}
@@ -1259,11 +1259,6 @@ IMPL_LINK_NOARG(SfxViewFrame, SwitchReadOnlyHandler, Button*, void)
GetDispatcher()->Execute(SID_EDITDOC);
}
-IMPL_LINK_NOARG(SfxViewFrame, SignDocumentHandler, Button*, void)
-{
- GetDispatcher()->Execute(SID_SIGNATURE);
-}
-
void SfxViewFrame::Construct_Impl( SfxObjectShell *pObjSh )
{
m_pImpl->bResizeInToOut = true;