diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-04-07 14:20:18 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-04-07 14:20:18 +0200 |
commit | 289158d59ecc739951ed4341175877a8544c2bd0 (patch) | |
tree | eb8d084e6578190d492ab5556e8b2a3fcad92c56 /sfx2 | |
parent | b805e5705cfaafd8e54283840bec23afc789124a (diff) |
Revert "Remove button handler and let the button dispatch the uno cmd"
This reverts commit 6584735bba4b96fbde5c7be55dc6c98878ad059a.
Ooops, that doesn't build any more without the previous reverted one.
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index adc24f98dc98..6127ce8ab611 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -1192,7 +1192,7 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) VclPtrInstance<PushButton> xSignButton(&GetWindow()); xSignButton->SetText(SfxResId(STR_READONLY_SIGN)); xSignButton->SetSizePixel(xSignButton->GetOptimalSize()); - xSignButton->SetCommandHandler(".uno:Signature", false); + xSignButton->SetClickHdl(LINK(this, SfxViewFrame, SignDocumentHandler)); pInfoBar->addButton(xSignButton); } @@ -1295,6 +1295,11 @@ 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; |