From e6f6818b44fe1dbaba815aed31510609ec456bc6 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 4 Jan 2014 16:55:30 +0000 Subject: convert new lib dialog to .ui Change-Id: I99043f2c259b56a7bfc2e7251f128b692e7d0e7f --- cui/source/inc/scriptdlg.hxx | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'cui/source/inc/scriptdlg.hxx') diff --git a/cui/source/inc/scriptdlg.hxx b/cui/source/inc/scriptdlg.hxx index 0874154b700b..bbf35c0eadb6 100644 --- a/cui/source/inc/scriptdlg.hxx +++ b/cui/source/inc/scriptdlg.hxx @@ -101,23 +101,22 @@ public: class CuiInputDialog : public ModalDialog { private: - FixedText aText; - Edit aEdit; - OKButton aOKButton; - CancelButton aCancelButton; - + Edit* m_pEdit; public: - CuiInputDialog( Window * pParent, sal_uInt16 nMode ); - ~CuiInputDialog(); - - OUString GetObjectName() const { return aEdit.GetText(); } - void SetObjectName( const OUString& rName ) { aEdit.SetText( rName ); aEdit.SetSelection( Selection( 0, rName.getLength() ) );} + CuiInputDialog(Window * pParent, sal_uInt16 nMode); + + OUString GetObjectName() const { return m_pEdit->GetText(); } + void SetObjectName(const OUString& rName) + { + m_pEdit->SetText( rName ); + m_pEdit->SetSelection( Selection( 0, rName.getLength() ) ); + } }; class SFEntry { private: - sal_uInt8 nType; + sal_uInt8 nType; bool loaded; ::com::sun::star::uno::Reference< ::com::sun::star::script::browse::XBrowseNode > nodes; ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > model; -- cgit