summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/ins_paste.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-11-06 10:38:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-11-06 11:46:04 +0000
commitfbdc77fea91e6003e2c3438e326e454afd5c0f92 (patch)
tree9e1561646d53a5fd63d666be9429506d0a89044e /sd/source/ui/dlg/ins_paste.cxx
parent9b6b03542df7f6b0feecf60a13bab7e885ef3587 (diff)
convert insert slides dialog to .ui
Change-Id: I4285ccfb9609305b2e92fec6c3f79b5277016f8b
Diffstat (limited to 'sd/source/ui/dlg/ins_paste.cxx')
-rw-r--r--sd/source/ui/dlg/ins_paste.cxx34
1 files changed, 8 insertions, 26 deletions
diff --git a/sd/source/ui/dlg/ins_paste.cxx b/sd/source/ui/dlg/ins_paste.cxx
index f99322db8a67..109fb757ebf3 100644
--- a/sd/source/ui/dlg/ins_paste.cxx
+++ b/sd/source/ui/dlg/ins_paste.cxx
@@ -17,38 +17,20 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
-#include "ins_paste.hrc"
#include "ins_paste.hxx"
-// --------------------
-// - SdInsertPasteDlg -
-// --------------------
-
-SdInsertPasteDlg::SdInsertPasteDlg( Window* pWindow ) :
- ModalDialog( pWindow, SdResId( DLG_INSERT_PASTE ) ),
- aFlPosition( this, SdResId( FL_POSITION ) ),
- aRbBefore( this, SdResId( RB_BEFORE ) ),
- aRbAfter( this, SdResId( RB_AFTER ) ),
- aBtnOK( this, SdResId( BTN_OK ) ),
- aBtnCancel( this, SdResId( BTN_CANCEL ) ),
- aBtnHelp( this, SdResId( BTN_HELP ) )
+SdInsertPasteDlg::SdInsertPasteDlg(Window* pWindow)
+ : ModalDialog( pWindow, "InsertSlidesDialog",
+ "modules/simpress/ui/insertslides.ui")
{
- FreeResource();
- aRbAfter.Check( sal_True );
+ get(m_pRbBefore, "before");
+ get(m_pRbAfter, "after");
+ m_pRbAfter->Check( sal_True );
}
-// -----------------------------------------------------------------------------
-
-SdInsertPasteDlg::~SdInsertPasteDlg()
-{
-}
-
-// -----------------------------------------------------------------------------
-
-sal_Bool SdInsertPasteDlg::IsInsertBefore() const
+bool SdInsertPasteDlg::IsInsertBefore() const
{
- return( aRbBefore.IsChecked() );
+ return( m_pRbBefore->IsChecked() );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */