diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-19 21:36:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-20 09:53:51 +0100 |
commit | 38c153c121fc05c49fa9bb02f3a4edf54a3ddeb1 (patch) | |
tree | f845221ff6708086f5359441a20c85d7cdff4704 /cui/source | |
parent | 87d303201fcb9d390b0260759404ef6a2ec76b11 (diff) |
drop now unused SvxMessDialog
Change-Id: I019b73b3ae6bf2d61a90cf893b7f4cb356771192
Reviewed-on: https://gerrit.libreoffice.org/51605
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/dlgname.cxx | 76 | ||||
-rw-r--r-- | cui/source/factory/dlgfact.hxx | 1 | ||||
-rw-r--r-- | cui/source/inc/dlgname.hxx | 26 |
3 files changed, 0 insertions, 103 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: */ diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx index 157e949bebf0..7d74cb2d9dd9 100644 --- a/cui/source/factory/dlgfact.hxx +++ b/cui/source/factory/dlgfact.hxx @@ -41,7 +41,6 @@ class SvxNameDialog; class SvxObjectNameDialog; class SvxObjectTitleDescDialog; -class SvxMessDialog; class SvxMultiPathDialog; class SvxHpLinkDlg; class FmSearchDialog; diff --git a/cui/source/inc/dlgname.hxx b/cui/source/inc/dlgname.hxx index bed7fa68b850..4ac036ff6c10 100644 --- a/cui/source/inc/dlgname.hxx +++ b/cui/source/inc/dlgname.hxx @@ -119,32 +119,6 @@ public: OUString GetDescription() const { return m_xEdtDescription->get_text(); } }; -enum class SvxMessDialogButton { - N1, N2 -}; - -/// Dialog to cancel, save, or add -class SvxMessDialog : public ModalDialog -{ -private: - VclPtr<FixedText> pFtDescription; - VclPtr<PushButton> pBtn1; - VclPtr<PushButton> pBtn2; - VclPtr<FixedImage> pFtImage; - Image* pImage; - - DECL_LINK(Button1Hdl, Button*, void); - DECL_LINK(Button2Hdl, Button*, void); - -public: - SvxMessDialog( vcl::Window* pWindow, const OUString& rText, const OUString& rDesc, Image const * pImg ); - virtual ~SvxMessDialog() override; - virtual void dispose() override; - - void SetButtonText( SvxMessDialogButton nBtnId, const OUString& rNewTxt ); -}; - - #endif // INCLUDED_CUI_SOURCE_INC_DLGNAME_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |