diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-23 09:53:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-23 10:41:30 +0100 |
commit | 05ef22774ac842ffff96eeec3a3cdcfa3c292d2f (patch) | |
tree | dba7e2b672164b2c5240d8db67f8d6fdf2c01088 /sc/source/ui/miscdlgs/strindlg.cxx | |
parent | ea2738ec4571530ef2e40f1c9862a358df3dd08c (diff) |
convert input string dialog to .ui
Change-Id: I2d40924e77f075024aed54548ffda8a162f7af91
Diffstat (limited to 'sc/source/ui/miscdlgs/strindlg.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/strindlg.cxx | 43 |
1 files changed, 8 insertions, 35 deletions
diff --git a/sc/source/ui/miscdlgs/strindlg.cxx b/sc/source/ui/miscdlgs/strindlg.cxx index e621fdbc5dd7..ae04d4b6f6c1 100644 --- a/sc/source/ui/miscdlgs/strindlg.cxx +++ b/sc/source/ui/miscdlgs/strindlg.cxx @@ -17,53 +17,26 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #undef SC_DLLIMPLEMENTATION - - -//------------------------------------------------------------------ - #include "strindlg.hxx" #include "scresid.hxx" -#include "miscdlgs.hrc" - -//================================================================== ScStringInputDlg::ScStringInputDlg( Window* pParent, const OUString& rTitle, const OUString& rEditTitle, const OUString& rDefault, - const OString& sHelpId, const OString& sEditHelpId ) : - ModalDialog ( pParent, ScResId( RID_SCDLG_STRINPUT ) ), - // - aFtEditTitle ( this, ScResId( FT_LABEL ) ), - aEdInput ( this, ScResId( ED_INPUT ) ), - aBtnOk ( this, ScResId( BTN_OK ) ), - aBtnCancel ( this, ScResId( BTN_CANCEL ) ), - aBtnHelp ( this, ScResId( BTN_HELP ) ) + const OString& sHelpId, const OString& sEditHelpId ) + : ModalDialog(pParent, "InputStringDialog", "modules/scalc/ui/inputstringdialog.ui") { SetHelpId( sHelpId ); SetText( rTitle ); - aFtEditTitle.SetText( rEditTitle ); - aEdInput.SetText( rDefault ); - aEdInput.SetSelection(Selection(SELECTION_MIN, SELECTION_MAX)); - aEdInput.SetHelpId( sEditHelpId ); - //------------- - FreeResource(); -} - -//------------------------------------------------------------------------ - -void ScStringInputDlg::GetInputString( OUString& rString ) const -{ - rString = aEdInput.GetText(); + get(m_pFtEditTitle, "description_label"); + m_pFtEditTitle->SetText(rEditTitle); + get(m_pEdInput, "name_entry"); + m_pEdInput->SetText( rDefault ); + m_pEdInput->SetSelection(Selection(SELECTION_MIN, SELECTION_MAX)); + m_pEdInput->SetHelpId( sEditHelpId ); } -ScStringInputDlg::~ScStringInputDlg() -{ -} - - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |