diff options
Diffstat (limited to 'cui/source/dialogs/dlgname.cxx')
-rw-r--r-- | cui/source/dialogs/dlgname.cxx | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/cui/source/dialogs/dlgname.cxx b/cui/source/dialogs/dlgname.cxx index 148c7374df95..73a35e6b9c5b 100644 --- a/cui/source/dialogs/dlgname.cxx +++ b/cui/source/dialogs/dlgname.cxx @@ -95,80 +95,4 @@ SvxObjectTitleDescDialog::SvxObjectTitleDescDialog(weld::Window* pParent, const m_xEdtTitle->select_region(0, -1); } -/************************************************************************* -|* -|* dialog for cancelling, saving or adding -|* -\************************************************************************/ - -SvxMessDialog::SvxMessDialog( vcl::Window* pWindow, const OUString& rText, const OUString& rDesc, Image const * pImg ) - : ModalDialog(pWindow, "MessBox", "cui/ui/messbox.ui") - , pImage(nullptr) -{ - get(pBtn1, "mess_box_btn1"); - get(pBtn2, "mess_box_btn2"); - get(pFtDescription, "mess_box_description"); - get(pFtImage, "mess_box_image"); - if( pImg ) - { - pImage = new Image( *pImg ); - pFtImage->SetImage( *pImage ); - pFtImage->SetStyle( ( pFtImage->GetStyle()/* | WB_NOTABSTOP */) & ~WB_3DLOOK ); - pFtImage->Show(); - } - - SetText( rText ); - pFtDescription->SetText( rDesc ); - - pBtn1->SetClickHdl( LINK( this, SvxMessDialog, Button1Hdl ) ); - pBtn2->SetClickHdl( LINK( this, SvxMessDialog, Button2Hdl ) ); -} - -SvxMessDialog::~SvxMessDialog() -{ - disposeOnce(); -} - -void SvxMessDialog::dispose() -{ - delete pImage; - pImage = nullptr; - pFtDescription.clear(); - pBtn1.clear(); - pBtn2.clear(); - pFtImage.clear(); - ModalDialog::dispose(); -} - -/*************************************************************************/ - -IMPL_LINK_NOARG(SvxMessDialog, Button1Hdl, Button*, void) -{ - EndDialog( RET_BTN_1 ); -} - -/*************************************************************************/ - -IMPL_LINK_NOARG(SvxMessDialog, Button2Hdl, Button*, void) -{ - EndDialog( RET_BTN_2 ); -} - -/*************************************************************************/ - -void SvxMessDialog::SetButtonText( SvxMessDialogButton nBtnId, const OUString& rNewTxt ) -{ - switch ( nBtnId ) - { - case SvxMessDialogButton::N1: - pBtn1->SetText( rNewTxt ); - break; - - case SvxMessDialogButton::N2: - pBtn2->SetText( rNewTxt ); - break; - } -} - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |