don't need explicit help handlers anymore
Change-Id: I5333ff8c4e50cbc4374b937bc8d7617c3b99ee97
This commit is contained in:
@@ -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);
|
||||
|
@@ -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"
|
||||
|
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user