@@ -22,40 +22,40 @@ using namespace com::sun::star::uno; PlaceEditDialog::PlaceEditDialog(weld::Window* pParent) - : GenericDialogController(pParent, "svt/ui/placeedit.ui", "PlaceEditDialog") + : GenericDialogController(pParent, u"svt/ui/placeedit.ui"_ustr, u"PlaceEditDialog"_ustr) , m_xCurrentDetails() , m_nCurrentType( 0 ) , m_bLabelChanged( false ) , m_bShowPassword( true ) - , m_xEDServerName(m_xBuilder->weld_entry("name")) - , m_xLBServerType(m_xBuilder->weld_combo_box("type")) - , m_xEDUsername(m_xBuilder->weld_entry("login")) - , m_xFTUsernameLabel(m_xBuilder->weld_label("loginLabel")) - , m_xBTOk(m_xBuilder->weld_button("ok")) - , m_xBTDelete(m_xBuilder->weld_button("delete")) - , m_xBTRepoRefresh(m_xBuilder->weld_button("repositoriesRefresh")) - , m_xCBPassword(m_xBuilder->weld_check_button("rememberPassword")) - , m_xEDPassword(m_xBuilder->weld_entry("password")) - , m_xFTPasswordLabel(m_xBuilder->weld_label("passwordLabel")) - , m_xTypeGrid(m_xBuilder->weld_widget("TypeGrid")) - - , m_xRepositoryBox(m_xBuilder->weld_widget("RepositoryDetails")) - , m_xFTRepository(m_xBuilder->weld_label("repositoryLabel")) - , m_xLBRepository(m_xBuilder->weld_combo_box("repositories")) - - , m_xEDShare(m_xBuilder->weld_entry("share")) - , m_xFTShare(m_xBuilder->weld_label("shareLabel")) - - , m_xDetailsGrid(m_xBuilder->weld_widget("Details")) - , m_xHostBox(m_xBuilder->weld_widget("HostDetails")) - , m_xEDHost(m_xBuilder->weld_entry("host")) - , m_xFTHost(m_xBuilder->weld_label("hostLabel")) - , m_xEDPort(m_xBuilder->weld_spin_button("port")) - , m_xFTPort(m_xBuilder->weld_label("portLabel")) - , m_xEDRoot(m_xBuilder->weld_entry("path")) - , m_xFTRoot(m_xBuilder->weld_label("pathLabel")) - - , m_xCBDavs(m_xBuilder->weld_check_button("webdavs")) + , m_xEDServerName(m_xBuilder->weld_entry(u"name"_ustr)) + , m_xLBServerType(m_xBuilder->weld_combo_box(u"type"_ustr)) + , m_xEDUsername(m_xBuilder->weld_entry(u"login"_ustr)) + , m_xFTUsernameLabel(m_xBuilder->weld_label(u"loginLabel"_ustr)) + , m_xBTOk(m_xBuilder->weld_button(u"ok"_ustr)) + , m_xBTDelete(m_xBuilder->weld_button(u"delete"_ustr)) + , m_xBTRepoRefresh(m_xBuilder->weld_button(u"repositoriesRefresh"_ustr)) + , m_xCBPassword(m_xBuilder->weld_check_button(u"rememberPassword"_ustr)) + , m_xEDPassword(m_xBuilder->weld_entry(u"password"_ustr)) + , m_xFTPasswordLabel(m_xBuilder->weld_label(u"passwordLabel"_ustr)) + , m_xTypeGrid(m_xBuilder->weld_widget(u"TypeGrid"_ustr)) + + , m_xRepositoryBox(m_xBuilder->weld_widget(u"RepositoryDetails"_ustr)) + , m_xFTRepository(m_xBuilder->weld_label(u"repositoryLabel"_ustr)) + , m_xLBRepository(m_xBuilder->weld_combo_box(u"repositories"_ustr)) + + , m_xEDShare(m_xBuilder->weld_entry(u"share"_ustr)) + , m_xFTShare(m_xBuilder->weld_label(u"shareLabel"_ustr)) + + , m_xDetailsGrid(m_xBuilder->weld_widget(u"Details"_ustr)) + , m_xHostBox(m_xBuilder->weld_widget(u"HostDetails"_ustr)) + , m_xEDHost(m_xBuilder->weld_entry(u"host"_ustr)) + , m_xFTHost(m_xBuilder->weld_label(u"hostLabel"_ustr)) + , m_xEDPort(m_xBuilder->weld_spin_button(u"port"_ustr)) + , m_xFTPort(m_xBuilder->weld_label(u"portLabel"_ustr)) + , m_xEDRoot(m_xBuilder->weld_entry(u"path"_ustr)) + , m_xFTRoot(m_xBuilder->weld_label(u"pathLabel"_ustr)) + + , m_xCBDavs(m_xBuilder->weld_check_button(u"webdavs"_ustr)) { m_xBTOk->connect_clicked( LINK( this, PlaceEditDialog, OKHdl) ); m_xBTOk->set_sensitive( false ); @@ -74,39 +74,39 @@ PlaceEditDialog::PlaceEditDialog(weld::Window* pParent) } PlaceEditDialog::PlaceEditDialog(weld::Window* pParent, const std::shared_ptr<Place>& rPlace) - : GenericDialogController(pParent, "svt/ui/placeedit.ui", "PlaceEditDialog") + : GenericDialogController(pParent, u"svt/ui/placeedit.ui"_ustr, u"PlaceEditDialog"_ustr) , m_xCurrentDetails( ) , m_bLabelChanged( true ) , m_bShowPassword( false ) - , m_xEDServerName(m_xBuilder->weld_entry("name")) - , m_xLBServerType(m_xBuilder->weld_combo_box("type")) - , m_xEDUsername(m_xBuilder->weld_entry("login")) - , m_xFTUsernameLabel(m_xBuilder->weld_label("loginLabel")) - , m_xBTOk(m_xBuilder->weld_button("ok")) - , m_xBTDelete(m_xBuilder->weld_button("delete")) - , m_xBTRepoRefresh(m_xBuilder->weld_button("repositoriesRefresh")) - , m_xCBPassword(m_xBuilder->weld_check_button("rememberPassword")) - , m_xEDPassword(m_xBuilder->weld_entry("password")) - , m_xFTPasswordLabel(m_xBuilder->weld_label("passwordLabel")) - , m_xTypeGrid(m_xBuilder->weld_widget("TypeGrid")) - - , m_xRepositoryBox(m_xBuilder->weld_widget("RepositoryDetails")) - , m_xFTRepository(m_xBuilder->weld_label("repositoryLabel")) - , m_xLBRepository(m_xBuilder->weld_combo_box("repositories")) - - , m_xEDShare(m_xBuilder->weld_entry("share")) - , m_xFTShare(m_xBuilder->weld_label("shareLabel")) - - , m_xDetailsGrid(m_xBuilder->weld_widget("Details")) - , m_xHostBox(m_xBuilder->weld_widget("HostDetails")) - , m_xEDHost(m_xBuilder->weld_entry("host")) - , m_xFTHost(m_xBuilder->weld_label("hostLabel")) - , m_xEDPort(m_xBuilder->weld_spin_button("port")) - , m_xFTPort(m_xBuilder->weld_label("portLabel")) - , m_xEDRoot(m_xBuilder->weld_entry("path")) - , m_xFTRoot(m_xBuilder->weld_label("pathLabel")) - - , m_xCBDavs(m_xBuilder->weld_check_button("webdavs")) + , m_xEDServerName(m_xBuilder->weld_entry(u"name"_ustr)) + , m_xLBServerType(m_xBuilder->weld_combo_box(u"type"_ustr)) + , m_xEDUsername(m_xBuilder->weld_entry(u"login"_ustr)) + , m_xFTUsernameLabel(m_xBuilder->weld_label(u"loginLabel"_ustr)) + , m_xBTOk(m_xBuilder->weld_button(u"ok"_ustr)) + , m_xBTDelete(m_xBuilder->weld_button(u"delete"_ustr)) + , m_xBTRepoRefresh(m_xBuilder->weld_button(u"repositoriesRefresh"_ustr)) + , m_xCBPassword(m_xBuilder->weld_check_button(u"rememberPassword"_ustr)) + , m_xEDPassword(m_xBuilder->weld_entry(u"password"_ustr)) + , m_xFTPasswordLabel(m_xBuilder->weld_label(u"passwordLabel"_ustr)) + , m_xTypeGrid(m_xBuilder->weld_widget(u"TypeGrid"_ustr)) + + , m_xRepositoryBox(m_xBuilder->weld_widget(u"RepositoryDetails"_ustr)) + , m_xFTRepository(m_xBuilder->weld_label(u"repositoryLabel"_ustr)) + , m_xLBRepository(m_xBuilder->weld_combo_box(u"repositories"_ustr)) + + , m_xEDShare(m_xBuilder->weld_entry(u"share"_ustr)) + , m_xFTShare(m_xBuilder->weld_label(u"shareLabel"_ustr)) + + , m_xDetailsGrid(m_xBuilder->weld_widget(u"Details"_ustr)) + , m_xHostBox(m_xBuilder->weld_widget(u"HostDetails"_ustr)) + , m_xEDHost(m_xBuilder->weld_entry(u"host"_ustr)) + , m_xFTHost(m_xBuilder->weld_label(u"hostLabel"_ustr)) + , m_xEDPort(m_xBuilder->weld_spin_button(u"port"_ustr)) + , m_xFTPort(m_xBuilder->weld_label(u"portLabel"_ustr)) + , m_xEDRoot(m_xBuilder->weld_entry(u"path"_ustr)) + , m_xFTRoot(m_xBuilder->weld_label(u"pathLabel"_ustr)) + + , m_xCBDavs(m_xBuilder->weld_check_button(u"webdavs"_ustr)) { m_xEDPassword->hide(); m_xFTPasswordLabel->hide(); |