summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-06-18 20:40:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-06-19 09:23:29 +0100
commit19b18c40084070ffe10cde45b4c363ee9d16b804 (patch)
tree712cd87626544643187e95a1f5285b0198aea4be
parentf0f8eedf46f386be83608e9d37c2e4c0e7cbe8a8 (diff)
don't need explicit help handlers anymore
Change-Id: I5333ff8c4e50cbc4374b937bc8d7617c3b99ee97
-rw-r--r--starmath/inc/dialog.hxx2
-rw-r--r--starmath/inc/helpids.h1
-rw-r--r--starmath/source/dialog.cxx13
3 files changed, 0 insertions, 16 deletions
diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx
index 8c1f74d2db1a..a16b2f53a8bb 100644
--- a/starmath/inc/dialog.hxx
+++ b/starmath/inc/dialog.hxx
@@ -127,11 +127,9 @@ class SmFontSizeDialog : public ModalDialog
MetricField* m_pFunctionSize;
MetricField* m_pOperatorSize;
MetricField* m_pBorderSize;
- HelpButton* m_pHelpButton1;
PushButton* m_pDefaultButton;
DECL_LINK(DefaultButtonClickHdl, Button *);
- DECL_LINK(HelpButtonClickHdl, Button *);
public:
SmFontSizeDialog(Window *pParent);
diff --git a/starmath/inc/helpids.h b/starmath/inc/helpids.h
index 7c06d77171af..437fe42fb6c2 100644
--- a/starmath/inc/helpids.h
+++ b/starmath/inc/helpids.h
@@ -20,7 +20,6 @@
#define STARMATH_HELPIDS_H
#define HID_SMA_FONTDIALOG "STARMATH_HID_SMA_FONTDIALOG"
-#define HID_SMA_FONTSIZEDIALOG "STARMATH_HID_SMA_FONTSIZEDIALOG"
#define HID_SMA_FONTTYPEDIALOG "STARMATH_HID_SMA_FONTTYPEDIALOG"
#define HID_SMA_DISTANCEDIALOG "STARMATH_HID_SMA_DISTANCEDIALOG"
#define HID_SMA_SYMDEFINEDIALOG "STARMATH_HID_SMA_SYMDEFINEDIALOG"
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index 9fc2bb10cb4f..984461d091da 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -440,17 +440,6 @@ IMPL_LINK( SmFontSizeDialog, DefaultButtonClickHdl, Button *, EMPTYARG /*pButton
return 0;
}
-IMPL_LINK( SmFontSizeDialog, HelpButtonClickHdl, Button *, EMPTYARG /*pButton*/ )
-{
- // start help system
- Help* pHelp = Application::GetHelp();
- if( pHelp )
- {
- pHelp->Start( OUString( "HID_SMA_FONTSIZEDIALOG" ), m_pHelpButton1 );
- }
- return 0;
-}
-
SmFontSizeDialog::SmFontSizeDialog(Window * pParent)
: ModalDialog(pParent, "FontSizeDialog", "modules/smath/ui/fontsizedialog.ui")
{
@@ -460,11 +449,9 @@ SmFontSizeDialog::SmFontSizeDialog(Window * pParent)
get(m_pOperatorSize, "spinB_operator");
get(m_pBorderSize, "spinB_limit");
get(m_pBaseSize, "spinB_baseSize");
- get(m_pHelpButton1, "help");
get(m_pDefaultButton, "default");
m_pDefaultButton->SetClickHdl(LINK(this, SmFontSizeDialog, DefaultButtonClickHdl));
- m_pHelpButton1->SetClickHdl(LINK(this, SmFontSizeDialog, HelpButtonClickHdl));
}