summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-11-28 08:58:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-11-28 09:17:48 +0000
commit282a6fb530e3b78c1e83a9276aea0a528b9e5752 (patch)
treefc9c338726a5ac44c0f92867bb8254cf4e410a14 /svtools
parent70fe99d01944e51fd2a9d5eaf007bd3ee8967832 (diff)
Finish rework of QueryDeleteDlg_Impl
This reverts commit a74b3e89c9b853338506249b0fac8d5f54909de7. Change-Id: Id670a2b66e61d3a4dceb9640d6ae34e9116691c0
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/fileview.cxx29
1 files changed, 0 insertions, 29 deletions
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
index 32ee18ba1870..a4f671f2eb2c 100644
--- a/svtools/source/contnr/fileview.cxx
+++ b/svtools/source/contnr/fileview.cxx
@@ -2534,44 +2534,15 @@ void SvtFileView_Impl::SetActualFolder( const INetURLObject& rActualFolder )
namespace svtools {
-// -----------------------------------------------------------------------
-// QueryDeleteDlg_Impl
-// -----------------------------------------------------------------------
-
QueryDeleteDlg_Impl::QueryDeleteDlg_Impl(Window* pParent, const OUString& rName)
: MessageDialog(pParent, "QueryDeleteDialog", "svt/ui/querydeletedialog.ui")
- , m_eResult( QUERYDELETE_YES )
{
- get(m_pNoButton, "no");
get(m_pAllButton, "all");
- get(m_pYesButton, "yes");
-
- // Handler
- Link aLink( STATIC_LINK( this, QueryDeleteDlg_Impl, ClickLink ) );
- m_pYesButton->SetClickHdl( aLink );
- m_pAllButton->SetClickHdl( aLink );
- m_pNoButton->SetClickHdl( aLink );
// display specified texts
set_secondary_text(get_secondary_text().replaceFirst("%s", rName));
}
-// -----------------------------------------------------------------------
-
-IMPL_STATIC_LINK( QueryDeleteDlg_Impl, ClickLink, PushButton*, pBtn )
-{
- if (pBtn == pThis->m_pYesButton)
- pThis->m_eResult = QUERYDELETE_YES;
- else if ( pBtn == pThis->m_pNoButton )
- pThis->m_eResult = QUERYDELETE_NO;
- else if (pBtn == pThis->m_pAllButton)
- pThis->m_eResult = QUERYDELETE_ALL;
-
- pThis->EndDialog( RET_OK );
-
- return 0;
-}
-
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */