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 ) ?
|
||||
sOkButtonText : OUString( String( PDFFilterResId( STR_PDF_EXPORT ) ) ));
|
||||
|
||||
GetCancelButton().SetClickHdl(LINK(this, ImpPDFTabDialog, CancelHdl));
|
||||
|
||||
//remove the reset button, not needed in this tabbed dialog
|
||||
RemoveResetButton();
|
||||
/////////////////
|
||||
}
|
||||
|
||||
IMPL_LINK( ImpPDFTabDialog, CancelHdl, Button *, EMPTYARG )
|
||||
{
|
||||
EndDialog( sal_False );
|
||||
return 0;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
ImpPDFTabDialog::~ImpPDFTabDialog()
|
||||
{
|
||||
|
@@ -89,9 +89,11 @@ private:
|
||||
|
||||
Any maSelection;
|
||||
|
||||
DECL_LINK( CancelHdl, Button * );
|
||||
|
||||
protected:
|
||||
//the following data are the configuration used throughout the dialog and pages
|
||||
sal_Bool mbIsPresentation;
|
||||
sal_Bool mbIsPresentation;
|
||||
sal_Bool mbIsWriter;
|
||||
sal_Bool mbSelectionPresent;
|
||||
sal_Bool mbUseCTLFont;
|
||||
|
Reference in New Issue
Block a user