diff options
Diffstat (limited to 'sdext/source/minimizer/informationdialog.cxx')
-rw-r--r-- | sdext/source/minimizer/informationdialog.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sdext/source/minimizer/informationdialog.cxx b/sdext/source/minimizer/informationdialog.cxx index 45551141e275..4f3de61a2075 100644 --- a/sdext/source/minimizer/informationdialog.cxx +++ b/sdext/source/minimizer/informationdialog.cxx @@ -49,7 +49,7 @@ using namespace ::com::sun::star::beans; using namespace ::com::sun::star::container; -OUString InsertFixedText( InformationDialog& rInformationDialog, const OUString& rControlName, const OUString& rLabel, +OUString InsertFixedText( UnoDialog& rInformationDialog, const OUString& rControlName, const OUString& rLabel, sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int32 nHeight, bool bMultiLine, sal_Int16 nTabIndex ) { OUString pNames[] = { @@ -82,7 +82,7 @@ OUString InsertFixedText( InformationDialog& rInformationDialog, const OUString& } OUString InsertImage( - InformationDialog& rInformationDialog, + UnoDialog& rInformationDialog, const OUString& rControlName, const OUString& rURL, sal_Int32 nPosX, @@ -117,7 +117,7 @@ OUString InsertImage( return rControlName; } -OUString InsertCheckBox( InformationDialog& rInformationDialog, const OUString& rControlName, +OUString InsertCheckBox( UnoDialog& rInformationDialog, const OUString& rControlName, const Reference< XItemListener >& rItemListener, const OUString& rLabel, sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex ) { @@ -153,8 +153,8 @@ OUString InsertCheckBox( InformationDialog& rInformationDialog, const OUString& return rControlName; } -OUString InsertButton( InformationDialog& rInformationDialog, const OUString& rControlName, Reference< XActionListener > const & xActionListener, - sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex, PPPOptimizerTokenEnum nResID ) +OUString InsertButton( UnoDialog& rInformationDialog, const OUString& rControlName, Reference< XActionListener > const & xActionListener, + sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex, const OUString& rText ) { sal_Int32 nHeight = 14; OUString pNames[] = { @@ -171,7 +171,7 @@ OUString InsertButton( InformationDialog& rInformationDialog, const OUString& rC Any pValues[] = { Any( true ), Any( nHeight ), - Any( rInformationDialog.getString( nResID ) ), + Any( rText ), Any( nXPos ), Any( nYPos ), Any( static_cast< sal_Int16 >( PushButtonType_OK ) ), @@ -298,7 +298,7 @@ void InformationDialog::InitDialog() InsertFixedText( *this, "fixedtext", aInfoString, PAGE_POS_X, 6, PAGE_WIDTH, 24, true, 0 ); if ( !maSaveAsURL.isEmpty() ) InsertCheckBox( *this, "OpenNewDocument", xItemListener, getString( STR_AUTOMATICALLY_OPEN ), PAGE_POS_X, 42, PAGE_WIDTH, 1 ); - InsertButton( *this, "button", mxActionListener, DIALOG_WIDTH / 2 - 25, nDialogHeight - 20, 50, 2, STR_OK ); + InsertButton( *this, "button", mxActionListener, DIALOG_WIDTH / 2 - 25, nDialogHeight - 20, 50, 2, getString( STR_OK ) ); bool bOpenNewDocument = mrbOpenNewDocument; setControlProperty( "OpenNewDocument", "State", Any( static_cast<sal_Int16>(bOpenNewDocument) ) ); @@ -350,7 +350,7 @@ void OKActionListener::actionPerformed( const ActionEvent& rEvent ) { if ( rEvent.ActionCommand == "button" ) { - mrInformationDialog.endExecute( true ); + mrDialog.endExecute( true ); } } void OKActionListener::disposing( const css::lang::EventObject& /* Source */ ) |