Resolves: fdo#43690 install explicit cancel handler
This commit is contained in:
@@ -255,11 +255,19 @@ ImpPDFTabDialog::ImpPDFTabDialog( Window* pParent,
|
|||||||
GetOKButton().SetText( ( sOkButtonText.getLength() > 0 ) ?
|
GetOKButton().SetText( ( sOkButtonText.getLength() > 0 ) ?
|
||||||
sOkButtonText : OUString( String( PDFFilterResId( STR_PDF_EXPORT ) ) ));
|
sOkButtonText : OUString( String( PDFFilterResId( STR_PDF_EXPORT ) ) ));
|
||||||
|
|
||||||
|
GetCancelButton().SetClickHdl(LINK(this, ImpPDFTabDialog, CancelHdl));
|
||||||
|
|
||||||
//remove the reset button, not needed in this tabbed dialog
|
//remove the reset button, not needed in this tabbed dialog
|
||||||
RemoveResetButton();
|
RemoveResetButton();
|
||||||
/////////////////
|
/////////////////
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IMPL_LINK( ImpPDFTabDialog, CancelHdl, Button *, EMPTYARG )
|
||||||
|
{
|
||||||
|
EndDialog( sal_False );
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
ImpPDFTabDialog::~ImpPDFTabDialog()
|
ImpPDFTabDialog::~ImpPDFTabDialog()
|
||||||
{
|
{
|
||||||
|
@@ -89,6 +89,8 @@ private:
|
|||||||
|
|
||||||
Any maSelection;
|
Any maSelection;
|
||||||
|
|
||||||
|
DECL_LINK( CancelHdl, Button * );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
//the following data are the configuration used throughout the dialog and pages
|
//the following data are the configuration used throughout the dialog and pages
|
||||||
sal_Bool mbIsPresentation;
|
sal_Bool mbIsPresentation;
|
||||||
|
Reference in New Issue
Block a user