diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-17 09:41:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-17 13:41:48 +0200 |
commit | 28fc986025009473c9782b61d8c6062fa60085ba (patch) | |
tree | 08c19f552e49802b93537ea108b04f9fe13770e9 /dbaccess/source/ui/dlg | |
parent | 65575016ab29b942aea482eab0b54afa262fb998 (diff) |
move GetStandardText to stdtext.hxx
Change-Id: Iaf9b5107cf88390f62d5ca94bf985c77bcb8b7ad
Reviewed-on: https://gerrit.libreoffice.org/79048
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/source/ui/dlg')
-rw-r--r-- | dbaccess/source/ui/dlg/ConnectionHelper.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/sqlmessage.cxx | 18 |
2 files changed, 11 insertions, 11 deletions
diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.cxx b/dbaccess/source/ui/dlg/ConnectionHelper.cxx index 18dde46c0c52..7a6901ce2150 100644 --- a/dbaccess/source/ui/dlg/ConnectionHelper.cxx +++ b/dbaccess/source/ui/dlg/ConnectionHelper.cxx @@ -495,8 +495,8 @@ namespace dbaui std::unique_ptr<weld::MessageDialog> xWhatToDo(Application::CreateMessageDialog(pWin ? pWin->GetFrameWeld() : nullptr, VclMessageType::Question, VclButtonsType::NONE, sQuery)); - xWhatToDo->add_button(Button::GetStandardText(StandardButtonType::Retry), RET_RETRY); - xWhatToDo->add_button(Button::GetStandardText(StandardButtonType::Cancel), RET_CANCEL); + xWhatToDo->add_button(GetStandardText(StandardButtonType::Retry), RET_RETRY); + xWhatToDo->add_button(GetStandardText(StandardButtonType::Cancel), RET_CANCEL); xWhatToDo->set_default_response(RET_RETRY); nQueryResult = xWhatToDo->run(); m_bUserGrabFocus = true; diff --git a/dbaccess/source/ui/dlg/sqlmessage.cxx b/dbaccess/source/ui/dlg/sqlmessage.cxx index f585b6fd1276..c48c4c224c12 100644 --- a/dbaccess/source/ui/dlg/sqlmessage.cxx +++ b/dbaccess/source/ui/dlg/sqlmessage.cxx @@ -24,9 +24,9 @@ #include <bitmaps.hlst> #include <com/sun/star/sdbc/SQLException.hpp> #include <com/sun/star/sdb/SQLContext.hpp> -#include <vcl/button.hxx> -#include <vcl/weld.hxx> +#include <vcl/stdtext.hxx> #include <vcl/svapp.hxx> +#include <vcl/weld.hxx> #include <osl/diagnose.h> #include <connectivity/dbexception.hxx> #include <connectivity/sqlerror.hxx> @@ -376,27 +376,27 @@ namespace { case StandardButtonType::Yes: nButtonID = RET_YES; - pDialog->add_button(Button::GetStandardText(StandardButtonType::Yes), nButtonID); + pDialog->add_button(GetStandardText(StandardButtonType::Yes), nButtonID); break; case StandardButtonType::No: nButtonID = RET_NO; - pDialog->add_button(Button::GetStandardText(StandardButtonType::No), nButtonID); + pDialog->add_button(GetStandardText(StandardButtonType::No), nButtonID); break; case StandardButtonType::OK: nButtonID = RET_OK; - pDialog->add_button(Button::GetStandardText(StandardButtonType::OK), nButtonID); + pDialog->add_button(GetStandardText(StandardButtonType::OK), nButtonID); break; case StandardButtonType::Cancel: nButtonID = RET_CANCEL; - pDialog->add_button(Button::GetStandardText(StandardButtonType::Cancel), nButtonID); + pDialog->add_button(GetStandardText(StandardButtonType::Cancel), nButtonID); break; case StandardButtonType::Retry: nButtonID = RET_RETRY; - pDialog->add_button(Button::GetStandardText(StandardButtonType::Retry), nButtonID); + pDialog->add_button(GetStandardText(StandardButtonType::Retry), nButtonID); break; case StandardButtonType::Help: nButtonID = RET_HELP; - pDialog->add_button(Button::GetStandardText(StandardButtonType::Help), nButtonID); + pDialog->add_button(GetStandardText(StandardButtonType::Help), nButtonID); break; default: OSL_FAIL( "lcl_addButton: invalid button id!" ); @@ -508,7 +508,7 @@ void OSQLMessageBox::impl_addDetailsButton() if ( bMoreDetailsAvailable ) { - m_xDialog->add_button(Button::GetStandardText(StandardButtonType::More), RET_MORE); + m_xDialog->add_button(GetStandardText(StandardButtonType::More), RET_MORE); m_xMoreButton.reset(m_xDialog->weld_widget_for_response(RET_MORE)); m_xMoreButton->connect_clicked(LINK(this, OSQLMessageBox, ButtonClickHdl)); } |